conductor-oss 0.29.2 → 0.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/package.json +5 -5
  2. package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
  3. package/web/.next/standalone/packages/web/.next/app-path-routes-manifest.json +5 -5
  4. package/web/.next/standalone/packages/web/.next/build-manifest.json +3 -3
  5. package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -3
  6. package/web/.next/standalone/packages/web/.next/react-loadable-manifest.json +9 -9
  7. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  8. package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +1 -1
  9. package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
  10. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  12. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  13. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  14. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  15. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js +1 -1
  17. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  18. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js +1 -1
  20. package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js.nft.json +1 -1
  21. package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page_client-reference-manifest.js +1 -1
  22. package/web/.next/standalone/packages/web/.next/server/app/page.js +1 -1
  23. package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
  24. package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
  25. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js +1 -1
  26. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
  27. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  28. package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js +1 -1
  29. package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js.nft.json +1 -1
  30. package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page_client-reference-manifest.js +1 -1
  31. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js +1 -1
  32. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
  33. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
  34. package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js +1 -1
  35. package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js.nft.json +1 -1
  36. package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page_client-reference-manifest.js +1 -1
  37. package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js +1 -1
  38. package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js.nft.json +1 -1
  39. package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page_client-reference-manifest.js +1 -1
  40. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js +1 -1
  41. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
  42. package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
  43. package/web/.next/standalone/packages/web/.next/server/app-paths-manifest.json +5 -5
  44. package/web/.next/standalone/packages/web/.next/server/chunks/2120.js +1 -0
  45. package/web/.next/standalone/packages/web/.next/server/chunks/3063.js +1 -0
  46. package/web/.next/standalone/packages/web/.next/server/chunks/3702.js +1 -0
  47. package/web/.next/standalone/packages/web/.next/server/chunks/5164.js +3 -3
  48. package/web/.next/standalone/packages/web/.next/server/chunks/7023.js +1 -1
  49. package/web/.next/standalone/packages/web/.next/server/chunks/9455.js +1 -1
  50. package/web/.next/standalone/packages/web/.next/server/middleware-build-manifest.js +1 -1
  51. package/web/.next/standalone/packages/web/.next/server/middleware-react-loadable-manifest.js +1 -1
  52. package/web/.next/standalone/packages/web/.next/server/pages/500.html +1 -1
  53. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
  54. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +1 -1
  55. package/web/.next/standalone/packages/web/.next/static/chunks/{2228.810adbeee03b4a23.js → 2228.799ecdc83677dc0b.js} +1 -1
  56. package/web/.next/standalone/packages/web/.next/static/chunks/{4429.8f0b98d34e7e0df0.js → 4429.5e7ddc417d25d962.js} +1 -1
  57. package/web/.next/standalone/packages/web/.next/static/chunks/4443.cd7b82ab2b745f68.js +1 -0
  58. package/web/.next/standalone/packages/web/.next/static/chunks/{4997-af3ab1850eb7e4bc.js → 4997-8999bef50a976132.js} +1 -1
  59. package/web/.next/standalone/packages/web/.next/static/chunks/5680-69049e56e9eee8ef.js +1 -0
  60. package/web/.next/standalone/packages/web/.next/static/chunks/{7220-1026c34175f542e8.js → 7220-4614ad9d40c5d1ef.js} +1 -1
  61. package/web/.next/standalone/packages/web/.next/static/chunks/977.9d9680132df8cd18.js +1 -0
  62. package/web/.next/{static/chunks/app/bridge/connect/page-28bc30f55e087ee7.js → standalone/packages/web/.next/static/chunks/app/bridge/connect/page-47ffaca2ce6dacf5.js} +1 -1
  63. package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-ff38738ecd0d0b66.js +1 -0
  64. package/web/.next/standalone/packages/web/.next/static/chunks/webpack-9b85bce23cb0b488.js +1 -0
  65. package/web/.next/static/chunks/{2228.810adbeee03b4a23.js → 2228.799ecdc83677dc0b.js} +1 -1
  66. package/web/.next/static/chunks/{4429.8f0b98d34e7e0df0.js → 4429.5e7ddc417d25d962.js} +1 -1
  67. package/web/.next/static/chunks/4443.cd7b82ab2b745f68.js +1 -0
  68. package/web/.next/static/chunks/{4997-af3ab1850eb7e4bc.js → 4997-8999bef50a976132.js} +1 -1
  69. package/web/.next/static/chunks/5680-69049e56e9eee8ef.js +1 -0
  70. package/web/.next/static/chunks/{7220-1026c34175f542e8.js → 7220-4614ad9d40c5d1ef.js} +1 -1
  71. package/web/.next/static/chunks/977.9d9680132df8cd18.js +1 -0
  72. package/web/.next/{standalone/packages/web/.next/static/chunks/app/bridge/connect/page-28bc30f55e087ee7.js → static/chunks/app/bridge/connect/page-47ffaca2ce6dacf5.js} +1 -1
  73. package/web/.next/static/chunks/app/layout-ff38738ecd0d0b66.js +1 -0
  74. package/web/.next/static/chunks/webpack-9b85bce23cb0b488.js +1 -0
  75. package/web/.next/standalone/packages/web/.next/server/chunks/4586.js +0 -1
  76. package/web/.next/standalone/packages/web/.next/server/chunks/8063.js +0 -1
  77. package/web/.next/standalone/packages/web/.next/server/chunks/8776.js +0 -1
  78. package/web/.next/standalone/packages/web/.next/static/chunks/3954-9bc13b5c99af6c4e.js +0 -1
  79. package/web/.next/standalone/packages/web/.next/static/chunks/4443.ba5097eaeba247d0.js +0 -1
  80. package/web/.next/standalone/packages/web/.next/static/chunks/7507.007587cc4c8d16c1.js +0 -1
  81. package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-750763e4acdf5898.js +0 -1
  82. package/web/.next/standalone/packages/web/.next/static/chunks/webpack-76868503f34eea38.js +0 -1
  83. package/web/.next/static/chunks/3954-9bc13b5c99af6c4e.js +0 -1
  84. package/web/.next/static/chunks/4443.ba5097eaeba247d0.js +0 -1
  85. package/web/.next/static/chunks/7507.007587cc4c8d16c1.js +0 -1
  86. package/web/.next/static/chunks/app/layout-750763e4acdf5898.js +0 -1
  87. package/web/.next/static/chunks/webpack-76868503f34eea38.js +0 -1
  88. /package/web/.next/standalone/packages/web/.next/static/{YOiflQNehk8Oq83QyAR5E → 0zZv92f2S-hZ5ImGIjTqD}/_buildManifest.js +0 -0
  89. /package/web/.next/standalone/packages/web/.next/static/{YOiflQNehk8Oq83QyAR5E → 0zZv92f2S-hZ5ImGIjTqD}/_ssgManifest.js +0 -0
  90. /package/web/.next/static/{YOiflQNehk8Oq83QyAR5E → 0zZv92f2S-hZ5ImGIjTqD}/_buildManifest.js +0 -0
  91. /package/web/.next/static/{YOiflQNehk8Oq83QyAR5E → 0zZv92f2S-hZ5ImGIjTqD}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2228],{42228:(e,t,n)=>{"use strict";let r,i,a,o,s,l;n.d(t,{codeToHtml:()=>nX});var u,c,h,p={};n.r(p),n.d(p,{createOnigurumaEngine:()=>j,getDefaultWasmLoader:()=>F,loadWasm:()=>U,setDefaultWasmLoader:()=>G});var d={};n.r(d),n.d(d,{boolean:()=>t_,booleanish:()=>tS,commaOrSpaceSeparated:()=>tP,commaSeparated:()=>tN,number:()=>tA,overloadedBoolean:()=>tx,spaceSeparated:()=>tE});var f=Object.defineProperty,g=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,b=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=m(t),o=0,s=a.length;o<s;o++)i=a[o],y.call(e,i)||i===n||f(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=g(t,i))||r.enumerable});return e},k=(e,t,n)=>(w(e,t,"default"),n&&w(n,t,"default"));let C=[{id:"abap",name:"ABAP",import:()=>n.e(66).then(n.bind(n,90066))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(695).then(n.bind(n,10695))},{id:"ada",name:"Ada",import:()=>n.e(7082).then(n.bind(n,67082))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(3736)]).then(n.bind(n,93736))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(9223),n.e(3849),n.e(5387),n.e(9115),n.e(8392),n.e(7582)]).then(n.bind(n,18960))},{id:"apache",name:"Apache Conf",import:()=>n.e(9602).then(n.bind(n,9602))},{id:"apex",name:"Apex",import:()=>n.e(8048).then(n.bind(n,68048))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(8115)]).then(n.bind(n,78115))},{id:"applescript",name:"AppleScript",import:()=>n.e(195).then(n.bind(n,70195))},{id:"ara",name:"Ara",import:()=>n.e(2944).then(n.bind(n,32944))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(5361).then(n.bind(n,65361))},{id:"asm",name:"Assembly",import:()=>n.e(9355).then(n.bind(n,39355))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(5387),n.e(3583)]).then(n.bind(n,63583))},{id:"awk",name:"AWK",import:()=>n.e(705).then(n.bind(n,60705))},{id:"ballerina",name:"Ballerina",import:()=>n.e(9650).then(n.bind(n,99650))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(9203).then(n.bind(n,29203))},{id:"beancount",name:"Beancount",import:()=>n.e(5937).then(n.bind(n,95937))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(7302).then(n.bind(n,77302))},{id:"bibtex",name:"BibTeX",import:()=>n.e(9982).then(n.bind(n,69982))},{id:"bicep",name:"Bicep",import:()=>n.e(6267).then(n.bind(n,16267))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(2968).then(n.bind(n,10587))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(9344)]).then(n.bind(n,59344))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(6453).then(n.bind(n,56453))},{id:"c",name:"C",import:()=>n.e(5965).then(n.bind(n,75965))},{id:"c3",name:"C3",import:()=>n.e(9506).then(n.bind(n,59506))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(143).then(n.bind(n,40143))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(4910),n.e(7578)]).then(n.bind(n,15197))},{id:"clarity",name:"Clarity",import:()=>n.e(8678).then(n.bind(n,88678))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(7538).then(n.bind(n,47538))},{id:"cmake",name:"CMake",import:()=>n.e(6227).then(n.bind(n,26227))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(39)]).then(n.bind(n,20039))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(8043).then(n.bind(n,8043))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(520).then(n.bind(n,20520))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(9223),n.e(8e3)]).then(n.bind(n,98e3))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(2118).then(n.bind(n,2118))},{id:"coq",name:"Coq",import:()=>n.e(8093).then(n.bind(n,48093))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(4762),n.e(9430),n.e(614),n.e(5965),n.e(8894)]).then(n.bind(n,96109))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(614),n.e(5965),n.e(4849),n.e(3048)]).then(n.bind(n,53048))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(8733).then(n.bind(n,8733))},{id:"css",name:"CSS",import:()=>n.e(5387).then(n.bind(n,5387))},{id:"csv",name:"CSV",import:()=>n.e(5910).then(n.bind(n,45910))},{id:"cue",name:"CUE",import:()=>n.e(4715).then(n.bind(n,64715))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(9381).then(n.bind(n,19381))},{id:"d",name:"D",import:()=>n.e(8706).then(n.bind(n,8706))},{id:"dart",name:"Dart",import:()=>n.e(3843).then(n.bind(n,3843))},{id:"dax",name:"DAX",import:()=>n.e(5541).then(n.bind(n,65541))},{id:"desktop",name:"Desktop",import:()=>n.e(5794).then(n.bind(n,85794))},{id:"diff",name:"Diff",import:()=>n.e(21).then(n.bind(n,90021))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(8132).then(n.bind(n,38132))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4582).then(n.bind(n,74582))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(920).then(n.bind(n,10920))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(9439)]).then(n.bind(n,99439))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(997)]).then(n.bind(n,997))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(5965),n.e(8090)]).then(n.bind(n,28090))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(9992).then(n.bind(n,13746))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(5559),n.e(1343)]).then(n.bind(n,1343))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(5503),n.e(8645)]).then(n.bind(n,28645))},{id:"fennel",name:"Fennel",import:()=>n.e(2136).then(n.bind(n,82136))},{id:"fish",name:"Fish",import:()=>n.e(6498).then(n.bind(n,6498))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(8218).then(n.bind(n,28218))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(338),n.e(6750)]).then(n.bind(n,96750))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(338).then(n.bind(n,10338))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(5503),n.e(1890)]).then(n.bind(n,1890))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(49).then(n.bind(n,20049))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(5644).then(n.bind(n,15644))},{id:"gdshader",name:"GDShader",import:()=>n.e(566).then(n.bind(n,50566))},{id:"genie",name:"Genie",import:()=>n.e(6226).then(n.bind(n,86226))},{id:"gherkin",name:"Gherkin",import:()=>n.e(6660).then(n.bind(n,66660))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(7078).then(n.bind(n,97078))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(4849),n.e(7565)]).then(n.bind(n,17565))},{id:"gleam",name:"Gleam",import:()=>n.e(9054).then(n.bind(n,99054))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(4107)]).then(n.bind(n,44107))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(4293)]).then(n.bind(n,74293))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(5965),n.e(736)]).then(n.bind(n,20736))},{id:"gn",name:"GN",import:()=>n.e(5811).then(n.bind(n,35811))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(3971).then(n.bind(n,63971))},{id:"go",name:"Go",import:()=>n.e(2394).then(n.bind(n,42394))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9781)]).then(n.bind(n,49781))},{id:"groovy",name:"Groovy",import:()=>n.e(8198).then(n.bind(n,88198))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(614),n.e(643)]).then(n.bind(n,80643))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(3826)]).then(n.bind(n,43826))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(3348)]).then(n.bind(n,23348))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(638).then(n.bind(n,20638))},{id:"haxe",name:"Haxe",import:()=>n.e(6944).then(n.bind(n,56944))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(347).then(n.bind(n,347))},{id:"hjson",name:"Hjson",import:()=>n.e(7452).then(n.bind(n,67452))},{id:"hlsl",name:"HLSL",import:()=>n.e(1745).then(n.bind(n,51745))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115)]).then(n.bind(n,89115))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(6097)]).then(n.bind(n,86097))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9388),n.e(4849),n.e(9781),n.e(8716)]).then(n.bind(n,58716))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9388),n.e(9781),n.e(3035)]).then(n.bind(n,33035))},{id:"hxml",name:"HXML",import:()=>n.e(7383).then(n.bind(n,37383))},{id:"hy",name:"Hy",import:()=>n.e(949).then(n.bind(n,90949))},{id:"imba",name:"Imba",import:()=>n.e(4305).then(n.bind(n,14305))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(1356).then(n.bind(n,31356))},{id:"java",name:"Java",import:()=>n.e(9388).then(n.bind(n,19388))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(9223).then(n.bind(n,16133))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(2643)]).then(n.bind(n,2643))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(9223),n.e(803)]).then(n.bind(n,30803))},{id:"json",name:"JSON",import:()=>n.e(6114).then(n.bind(n,56114))},{id:"json5",name:"JSON5",import:()=>n.e(9085).then(n.bind(n,29085))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(667).then(n.bind(n,60667))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(6884).then(n.bind(n,76884))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(2505).then(n.bind(n,92505))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(7245).then(n.bind(n,97245))},{id:"jsx",name:"JSX",import:()=>n.e(3543).then(n.bind(n,2345))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(9223),n.e(4762),n.e(9430),n.e(614),n.e(5965),n.e(4910),n.e(2716)]).then(n.bind(n,90789))},{id:"just",name:"Just",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(4163),n.e(4742)]).then(n.bind(n,74742))},{id:"kdl",name:"KDL",import:()=>n.e(1485).then(n.bind(n,91485))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(8959).then(n.bind(n,18959))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(137).then(n.bind(n,62518))},{id:"latex",name:"LaTeX",import:()=>n.e(5482).then(n.bind(n,45482))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(1604).then(n.bind(n,71604))},{id:"less",name:"Less",import:()=>n.e(5171).then(n.bind(n,55171))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(7604)]).then(n.bind(n,27604))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9327).then(n.bind(n,9327))},{id:"log",name:"Log file",import:()=>n.e(9120).then(n.bind(n,29120))},{id:"logo",name:"Logo",import:()=>n.e(5013).then(n.bind(n,75013))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(5965),n.e(5488)]).then(n.bind(n,95488))},{id:"luau",name:"Luau",import:()=>n.e(4063).then(n.bind(n,24063))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(918).then(n.bind(n,20918))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(5503).then(n.bind(n,25503))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(1917),n.e(5387),n.e(8392),n.e(5171),n.e(6772)]).then(n.bind(n,56772))},{id:"matlab",name:"MATLAB",import:()=>n.e(9647).then(n.bind(n,39647))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(5503),n.e(5372)]).then(n.bind(n,5372))},{id:"mdx",name:"MDX",import:()=>n.e(6439).then(n.bind(n,26439))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(4891).then(n.bind(n,24891))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1516).then(n.bind(n,81516))},{id:"mojo",name:"Mojo",import:()=>n.e(3462).then(n.bind(n,51081))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(6858).then(n.bind(n,6858))},{id:"move",name:"Move",import:()=>n.e(8791).then(n.bind(n,58791))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6056).then(n.bind(n,76056))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(9643).then(n.bind(n,89643))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>n.e(7388).then(n.bind(n,7388))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(5965),n.e(2582)]).then(n.bind(n,72582))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(5965),n.e(5503),n.e(4486)]).then(n.bind(n,44486))},{id:"nix",name:"Nix",import:()=>n.e(8672).then(n.bind(n,68672))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(7921).then(n.bind(n,47921))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(7799).then(n.bind(n,57799))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(8561).then(n.bind(n,60903))},{id:"ocaml",name:"OCaml",import:()=>n.e(8194).then(n.bind(n,18194))},{id:"odin",name:"Odin",import:()=>n.e(9136).then(n.bind(n,99136))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(205).then(n.bind(n,40205))},{id:"pascal",name:"Pascal",import:()=>n.e(6092).then(n.bind(n,96092))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(4163),n.e(4921)]).then(n.bind(n,64163))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5350),n.e(9683)]).then(n.bind(n,15350))},{id:"pkl",name:"Pkl",import:()=>n.e(491).then(n.bind(n,80491))},{id:"plsql",name:"PL/SQL",import:()=>n.e(2002).then(n.bind(n,62002))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(9003).then(n.bind(n,89003))},{id:"polar",name:"Polar",import:()=>n.e(2094).then(n.bind(n,22094))},{id:"postcss",name:"PostCSS",import:()=>n.e(901).then(n.bind(n,50901))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(7077).then(n.bind(n,67077))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(8179).then(n.bind(n,8179))},{id:"prisma",name:"Prisma",import:()=>n.e(9336).then(n.bind(n,9336))},{id:"prolog",name:"Prolog",import:()=>n.e(3445).then(n.bind(n,83445))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(7504).then(n.bind(n,37504))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9354)]).then(n.bind(n,39354))},{id:"puppet",name:"Puppet",import:()=>n.e(4982).then(n.bind(n,2601))},{id:"purescript",name:"PureScript",import:()=>n.e(7511).then(n.bind(n,97511))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(4910).then(n.bind(n,74910))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(9223),n.e(6836)]).then(n.bind(n,6836))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6543).then(n.bind(n,66543))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(2725).then(n.bind(n,52725))},{id:"r",name:"R",import:()=>n.e(6300).then(n.bind(n,96300))},{id:"racket",name:"Racket",import:()=>n.e(6674).then(n.bind(n,76674))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(3531).then(n.bind(n,23531))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(8733),n.e(6934)]).then(n.bind(n,76934))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5436).then(n.bind(n,15436))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(931).then(n.bind(n,60931))},{id:"rel",name:"Rel",import:()=>n.e(3111).then(n.bind(n,23111))},{id:"riscv",name:"RISC-V",import:()=>n.e(8735).then(n.bind(n,48735))},{id:"ron",name:"RON",import:()=>n.e(7915).then(n.bind(n,7915))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(7403).then(n.bind(n,7403))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(6637)]).then(n.bind(n,76637))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(5559)]).then(n.bind(n,1060))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(6558).then(n.bind(n,56558))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(614),n.e(1569)]).then(n.bind(n,31569))},{id:"sass",name:"Sass",import:()=>n.e(6318).then(n.bind(n,56318))},{id:"scala",name:"Scala",import:()=>n.e(4404).then(n.bind(n,94404))},{id:"scheme",name:"Scheme",import:()=>n.e(941).then(n.bind(n,30941))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(5387),n.e(8392)]).then(n.bind(n,28392))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9175).then(n.bind(n,9175))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(5990).then(n.bind(n,5990))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(4849).then(n.bind(n,34849))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(4849),n.e(6546)]).then(n.bind(n,96546))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(2213).then(n.bind(n,62213))},{id:"solidity",name:"Solidity",import:()=>n.e(3211).then(n.bind(n,53211))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(7813)]).then(n.bind(n,97813))},{id:"sparql",name:"SPARQL",import:()=>n.e(4651).then(n.bind(n,94651))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(4605).then(n.bind(n,34605))},{id:"sql",name:"SQL",import:()=>n.e(614).then(n.bind(n,614))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(1613).then(n.bind(n,71613))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(614),n.e(4429)]).then(n.bind(n,24429))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(3750).then(n.bind(n,33750))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(9223),n.e(659)]).then(n.bind(n,10659))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(4733)]).then(n.bind(n,54733))},{id:"swift",name:"Swift",import:()=>n.e(5299).then(n.bind(n,45299))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3502).then(n.bind(n,13502))},{id:"systemd",name:"Systemd Units",import:()=>n.e(3219).then(n.bind(n,3219))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(6347).then(n.bind(n,96347))},{id:"tasl",name:"Tasl",import:()=>n.e(8539).then(n.bind(n,70920))},{id:"tcl",name:"Tcl",import:()=>n.e(4743).then(n.bind(n,34743))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(2394),n.e(5968)]).then(n.bind(n,55968))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(2766).then(n.bind(n,2766))},{id:"tex",name:"TeX",import:()=>n.e(6721).then(n.bind(n,26721))},{id:"toml",name:"TOML",import:()=>n.e(7052).then(n.bind(n,97052))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4314)]).then(n.bind(n,74314))},{id:"tsv",name:"TSV",import:()=>n.e(7805).then(n.bind(n,87805))},{id:"tsx",name:"TSX",import:()=>n.e(260).then(n.bind(n,947))},{id:"turtle",name:"Turtle",import:()=>n.e(6294).then(n.bind(n,6294))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(8392),n.e(5350),n.e(4947)]).then(n.bind(n,14947))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(1917).then(n.bind(n,58461))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(8745).then(n.bind(n,58745))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(8564).then(n.bind(n,8564))},{id:"v",name:"V",import:()=>n.e(4280).then(n.bind(n,64280))},{id:"vala",name:"Vala",import:()=>n.e(8414).then(n.bind(n,8414))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2672).then(n.bind(n,22672))},{id:"verilog",name:"Verilog",import:()=>n.e(1924).then(n.bind(n,51924))},{id:"vhdl",name:"VHDL",import:()=>n.e(2618).then(n.bind(n,22618))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(7952).then(n.bind(n,67952))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(5406)]).then(n.bind(n,25406))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(9223),n.e(1006)]).then(n.bind(n,31006))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(9223),n.e(4177),n.e(5387),n.e(8392),n.e(5171),n.e(8130)]).then(n.bind(n,37749))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6702).then(n.bind(n,56702))},{id:"wasm",name:"WebAssembly",import:()=>n.e(7111).then(n.bind(n,79492))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(6258).then(n.bind(n,16258))},{id:"wgsl",name:"WGSL",import:()=>n.e(8967).then(n.bind(n,78967))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(3309).then(n.bind(n,43309))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(6202).then(n.bind(n,46202))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(1659).then(n.bind(n,71326))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(9388),n.e(2064)]).then(n.bind(n,84921))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(9388),n.e(5403)]).then(n.bind(n,65403))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(3025).then(n.bind(n,63025))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2248).then(n.bind(n,2248))},{id:"zig",name:"Zig",import:()=>n.e(8432).then(n.bind(n,98432))}],v=Object.fromEntries(C.map(e=>[e.id,e.import])),_=Object.fromEntries(C.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),S={...v,..._},x=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2009).then(n.bind(n,62009))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(3609).then(n.bind(n,83609))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7885).then(n.bind(n,97885))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(1949).then(n.bind(n,11949))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(2008).then(n.bind(n,82008))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(7268).then(n.bind(n,67268))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(2194).then(n.bind(n,32194))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(2029).then(n.bind(n,52029))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(3518).then(n.bind(n,43518))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(6976).then(n.bind(n,36976))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(763).then(n.bind(n,60763))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(9914).then(n.bind(n,39914))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(4185).then(n.bind(n,24185))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9121).then(n.bind(n,29121))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(2288).then(n.bind(n,59907))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(4611).then(n.bind(n,6992))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(9710).then(n.bind(n,19710))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(723).then(n.bind(n,30723))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3027).then(n.bind(n,63027))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(8707).then(n.bind(n,98707))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(1251).then(n.bind(n,11251))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(7605).then(n.bind(n,97605))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(9707).then(n.bind(n,29707))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(3714).then(n.bind(n,13714))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(4021).then(n.bind(n,24021))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(251).then(n.bind(n,60251))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(8658).then(n.bind(n,78658))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(1220).then(n.bind(n,1220))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>n.e(6639).then(n.bind(n,6639))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(6675).then(n.bind(n,16675))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(1052).then(n.bind(n,91052))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(4388).then(n.bind(n,84388))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(850).then(n.bind(n,70850))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(2187).then(n.bind(n,52187))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(9752).then(n.bind(n,79752))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1046).then(n.bind(n,71046))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(7540).then(n.bind(n,7540))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(8724).then(n.bind(n,68724))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(7559).then(n.bind(n,27559))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(9531).then(n.bind(n,9531))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(4352).then(n.bind(n,14352))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(3922).then(n.bind(n,3922))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(9291).then(n.bind(n,89291))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(6982).then(n.bind(n,76982))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(1973).then(n.bind(n,31973))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(7654).then(n.bind(n,57654))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(6778).then(n.bind(n,46778))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7966).then(n.bind(n,37966))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(4889).then(n.bind(n,74889))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8599).then(n.bind(n,18599))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(1256).then(n.bind(n,91256))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(6153).then(n.bind(n,66153))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(634).then(n.bind(n,60634))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(8495).then(n.bind(n,18495))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(6820).then(n.bind(n,66820))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(401).then(n.bind(n,401))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(1087).then(n.bind(n,1087))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(6143).then(n.bind(n,66143))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1159).then(n.bind(n,41159))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(759).then(n.bind(n,50759))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(3446).then(n.bind(n,63446))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(6446).then(n.bind(n,76446))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(5034).then(n.bind(n,95034))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(4695).then(n.bind(n,24695))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(4319).then(n.bind(n,54319))}],A=Object.fromEntries(x.map(e=>[e.id,e.import]));var E=n(64792).Buffer,N=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function P(){return"u">typeof performance?performance.now():Date.now()}let L=(e,t)=>e+(t-e%t)%t;async function I(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(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&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=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)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:P,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,L(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var T=Object.defineProperty,R=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?T(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let M=null;class ${constructor(e){R(this,"utf16Length"),R(this,"utf8Length"),R(this,"utf16Value"),R(this,"utf8Value"),R(this,"utf16OffsetToUtf8"),R(this,"utf8OffsetToUtf16");const t=e.length,n=$._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const o=new Uint8Array(n);let s=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=s,c&&(i[n+1]=s),u<=127?a[s+0]=n:u<=2047?(a[s+0]=n,a[s+1]=n):u<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let O=class e{constructor(t){if(R(this,"id",++e.LAST_ID),R(this,"_onigBinding"),R(this,"content"),R(this,"utf16Length"),R(this,"utf8Length"),R(this,"utf16OffsetToUtf8"),R(this,"utf8OffsetToUtf16"),R(this,"ptr"),!M)throw new N("Must invoke loadWasm first.");this._onigBinding=M,this.content=t;const n=new $(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=M.omalloc(1e4)),e._sharedPtrInUse=!0,M.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(M)}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)}};R(O,"LAST_ID",0),R(O,"_sharedPtr",0),R(O,"_sharedPtrInUse",!1);class B{constructor(e){if(R(this,"_onigBinding"),R(this,"_ptr"),!M)throw new N("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new $(e[r]);t[r]=i.createString(M),n[r]=i.utf8Length}const r=M.omalloc(4*e.length);M.HEAPU32.set(t,r/4);const i=M.omalloc(4*e.length);M.HEAPU32.set(n,i/4);const a=M.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)M.ofree(t[n]);M.ofree(i),M.ofree(r),0===a&&function(e){throw new N(e.UTF8ToString(e.getLastOnigError()))}(M),this._onigBinding=M,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new O(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],u=o[s++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function U(e){return r||(r=async function(){M=await I(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,a,o;if(void 0!==n.data&&(n=n.data),r=n,"u">typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==E&&E.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await D(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await D(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function D(e){return t=>WebAssembly.instantiate(e,t)}function G(e){i=e}function F(){return i}async function j(e){return e&&await U(e),{createScanner:e=>new B(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new O(e)}}var W=b({});k(W,p);var H=class extends Error{constructor(e){super(e),this.name="ShikiError"}},z=n(63680);function q(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var V=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,X=class{static hasCaptures(e){return null!==e&&(V.lastIndex=0,V.test(e))}static replaceCaptures(e,t,n){return e.replace(V,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function Q(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,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function K(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 J(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Y=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}},Z=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,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&K(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&K(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new en(u,c,e,o,s,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=Q(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 a=new ei(t),o=new et(n,a.getId(r),a.getId(i)),s=new es(new eo(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Z(a,o,s)}(e,t)}_cachedMatchRoot=new Y(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 a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new et(n.fontStyle,n.foreground,n.background):null}},ee=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}},et=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},en=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},er=((u=er||{})[u.NotSet=-1]="NotSet",u[u.None=0]="None",u[u.Italic=1]="Italic",u[u.Bold=2]="Bold",u[u.Underline=4]="Underline",u[u.Strikethrough=8]="Strikethrough",u),ei=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)}},ea=Object.freeze([]),eo=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ea,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)}},es=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,a,o){let s,l,u;if(""===n)return void this._doInsertHere(t,r,i,a,o);let c=n.indexOf(".");-1===c?(s=n,l=""):(s=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),eo.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===Q(o.parentScopes,t))return void o.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 eo(e,t,n,r,i))}},el=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,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==o&&(p=o),0!==s&&(d=s),(l|u<<8|c<<10|h<<11|p<<15|d<<24)>>>0}};function eu(e,t){var n;let r,i,a=[],o=(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}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s);t=u()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(ec(s)){let e=[];do e.push(s),s=o.next();while(ec(s));return n=>t(e,n)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function ec(e){return!!e&&!!e.match(/[\w\.:]+/)}var eh=((c=eh||{})[c.None=0]="None",c[c.NotBeginString=1]="NotBeginString",c[c.NotEndString=2]="NotEndString",c[c.NotBeginPosition=4]="NotBeginPosition",c[c.DebugCall=8]="DebugCall",c);function ep(e){"function"==typeof e.dispose&&e.dispose()}var ed=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ef=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},eg=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))}},em=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ed(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new eg;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 a=n.lookup(t);e instanceof ed?eb({baseGrammar:a,selfGrammar:i},r):ey(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ed(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ed){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 ey(e,t,n){t.repository&&t.repository[e]&&ew([t.repository[e]],t,n)}function eb(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ew(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ew(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ew(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?q({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ew(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=ex(i);switch(a.kind){case 0:eb({...t,selfGrammar:t.baseGrammar},n);break;case 1:eb(t,n);break;case 2:ey(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?ey(a.ruleName,r,n):eb(r,n)}else 4===a.kind?n.add(new ef(a.scopeName,a.ruleName)):n.add(new ed(a.scopeName))}}}var ek=class{kind=0},eC=class{kind=1},ev=class{constructor(e){this.ruleName=e}kind=2},e_=class{constructor(e){this.scopeName=e}kind=3},eS=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ex(e){if("$base"===e)return new ek;if("$self"===e)return new eC;let t=e.indexOf("#");return -1===t?new e_(e):0===t?new ev(e.substring(1)):new eS(e.substring(0,t),e.substring(t+1))}var eA=/\\(\d+)/,eE=/\\(\d+)/g;Symbol("RuleId");var eN=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=X.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=X.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?X.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?X.replaceCaptures(this._contentName,e,t):this._contentName}},eP=class extends eN{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!")}},eL=class extends eN{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new e$(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eO,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eI=class extends eN{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 eO,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eT=class extends eN{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,l,u){super(e,t,n,r),this._begin=new e$(i,this.id),this.beginCaptures=a,this._end=new e$(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.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 eO,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}},eR=class extends eN{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new e$(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new e$(o,-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 eO,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 eO,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},eM=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new eP(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new eL(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=q({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new eI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new eR(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 eT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=ex(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u)if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof eI||e instanceof eT||e instanceof eR)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},e$=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 a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}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=eA.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 eE.lastIndex=0,this.source.replace(eE,(e,t)=>J(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=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="￿",a[e+1]="￿",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="￿",a[e+1]="G",o[e+1]="￿",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.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}},eO=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)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new eB(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 eB(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},eB=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}},eU=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eD=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new eU(e,8),this._embeddedLanguagesMatcher=new eG(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 eU(0,0);_getBasicScopeAttributes=new Y(e=>new eU(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/},eG=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])=>J(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!==z&&z.env.VSCODE_TEXTMATE_DEBUG;var eF=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ej(e,t,n,r,i,a,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof eR&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,u,c,h,p;let{ruleScanner:s,findOptions:f}=(l=d.rule,u=e,c=d.stack.endRule,h=n,p=r===o,{ruleScanner:l.compileWhileAG(u,c,h,p),findOptions:0}),g=s.findNextMatchSync(t,r,f);if(g){if(-2!==g.ruleId){i=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(d.stack,g.captureIndices[0].start),eH(e,t,n,d.stack,a,d.rule.whileCaptures,g.captureIndices),a.produce(d.stack,g.captureIndices[0].end),o=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let h=Date.now();for(;!u;){if(0!==s&&Date.now()-h>s)return new eF(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=eW(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:f}=eW(t.getRule(p.ruleId),t,null,r,i===o),g=d.findNextMatchSync(n,i,f);if(!g)continue;let m=g.captureIndices[0].start;if(!(m>=l)&&(l=m,u=g.captureIndices,s=g.ruleId,c=p.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:o}(e,t,n,r,i,c);if(!o){a.produce(i,l),u=!0;return}let s=o.captureIndices,h=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),eH(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!p&&h.getEnterPos()===r){i=h,a.produce(i,l),u=!0;return}}else{let o=e.getRule(h);a.produce(i,s[0].start);let d=i,f=o.getName(t.content,s),g=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,r,c,s[0].end===l,null,g,g),o instanceof eT){eH(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(o instanceof eR){eH(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(eH(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new eF(i,!1)}function eW(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eH(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),u=[],c=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=a.pushAttributed(u,e),p=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),d=e.createOnigString(s.substring(0,h.end));ej(e,d,n&&0===h.start,h.start,p,i,!1,0),ep(d);continue}let p=l.getName(s,o);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new ez(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ez=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eq(e,t,n,r,i){let a=eu(t,eV),o=eM.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function eV(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 eX=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new eD(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=eQ(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of eu(e,eV))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)eq(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&&eq(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]=eQ(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=eM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eJ.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=el.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?eK.createRootAndLookUpScopeName(o,a,this):eK.createRoot("unknown",a),t=new eJ(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new eZ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ej(this,a,i,0,t,s,!0,r);return ep(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eQ(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},e.repository.$base=t||e.repository.$self,e}var eK=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=ee.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new ee(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new ee(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){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,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),el.set(e,t.languageId,t.tokenType,null,r,i,a)}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),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},eJ=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eK.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,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId: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=eK.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eK.fromExtension(r,n.contentNameScopesList))}},eY=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):eu(e,eV).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>eu(e,eV).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}},eZ=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=el.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=el.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}},e0=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eX(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},e1=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new e0(Z.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Z.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 eY(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new em(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="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)}},e2=eJ.NULL;function e5(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 e3(e,t){return e&&t?.[e?.toLowerCase()]||e}async function e8(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function e6(e){return!e||["plaintext","txt","text","plain"].includes(e)}function e9(e){return"ansi"===e||e6(e)}function e4(e){return"none"===e}function e7(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let te="__shiki_resolved";function tt(e){if(e?.[te])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,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}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=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,te,{enumerable:!1,writable:!1,value:!0}),t}async function tn(e){return Array.from(new Set((await Promise.all(e.filter(e=>!e9(e)).map(async e=>await e8(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tr(e){return(await Promise.all(e.map(async e=>e4(e)?null:tt(await e8(e))))).filter(e=>!!e)}function ti(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new H(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}var ta=class extends e1{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tt(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=Z.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=ti(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new H(`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){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},to=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let ts=0;async function tl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tr(e.themes||[]),tn(e.langs||[]),e.engine]);return function(e){let t;ts+=1,!1!==e.warnings&&ts>=10&&ts%10==0&&console.warn(`[Shiki] ${ts} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new H("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tt),a=new ta(new to(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new H(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new H("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),ts-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new H(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},resolveLangAlias:function(t){return ti(t,e.langAlias)},loadLanguage:async function(...e){return s(await tn(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await tr(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}let tu=new WeakMap;function tc(e,t){tu.set(e,t)}function th(e){return tu.get(e)}var tp=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,e2])),t)}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()}}};function td(e,t,n={}){var r,i;let a,o,{theme:s=e.getLoadedThemes()[0]}=n;if(e6(e.resolveLangAlias(n.lang||"text"))||e4(s))return e7(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:l,colorMap:u}=e.setTheme(s),c=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==c.name)throw new H(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(l.name))throw new H(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return o=new tp((a=tf(t,r=c,i=l,u,n)).stateStack,r.name,i.name),tc(a.tokens,o),a.tokens}function tf(e,t,n,r,i){let a=e5(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=e7(e),u=i.grammarState?function(e,t){if(!(e instanceof tp))throw new H("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??e2:null!=i.grammarContextCode?tf(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:e2,c=[],h=[];for(let e=0,p=l.length;e<p;e++){let p,d,[f,g]=l[e];if(""===f){c=[],h.push([]);continue}if(o>0&&f.length>=o){c=[],h.push([{content:f,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(p=t.tokenizeLine(f,u,s).tokens,d=0);let m=t.tokenizeLine2(f,u,s),y=m.tokens.length/2;for(let e=0;e<y;e++){let t=m.tokens[2*e],o=e+1<y?m.tokens[2*e+2]:f.length;if(t===o)continue;let s=m.tokens[2*e+1],l=e3(r[el.getForeground(s)],a),u=el.getFontStyle(s),h={content:f.substring(t,o),offset:g+t,color:l,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.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(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=p[d],n=f.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.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:a}of e)for(let e of i)if(function(e,t,n){if(!tg(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tg(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),d+=1}}c.push(h)}h.push(c),c=[],u=m.ruleStack}return{tokens:h,stateStack:u}}function tg(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tm(e,t,n,r=td){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:th(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),o=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]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:l,...u}=e[t][r];a.variants[i[n].color]=u}),a})),l=a[0].state?new tp(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return l&&tc(s,l),s}let ty=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class tb{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tw(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tb(n,r,t)}function tk(e){return e.toLowerCase()}tb.prototype.normal={},tb.prototype.property={},tb.prototype.space=void 0;class tC{constructor(e,t){this.attribute=t,this.property=e}}tC.prototype.attribute="",tC.prototype.booleanish=!1,tC.prototype.boolean=!1,tC.prototype.commaOrSpaceSeparated=!1,tC.prototype.commaSeparated=!1,tC.prototype.defined=!1,tC.prototype.mustUseProperty=!1,tC.prototype.number=!1,tC.prototype.overloadedBoolean=!1,tC.prototype.property="",tC.prototype.spaceSeparated=!1,tC.prototype.space=void 0;let tv=0,t_=tL(),tS=tL(),tx=tL(),tA=tL(),tE=tL(),tN=tL(),tP=tL();function tL(){return 2**++tv}let tI=Object.keys(d);class tT extends tC{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<tI.length;){const e=tI[i];!function(e,t,n){n&&(e[t]=n)}(this,tI[i],(n&d[e])===d[e])}}}function tR(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[tk(r)]=r,n[tk(a.attribute)]=r}return new tb(t,n,e.space)}tT.prototype.defined=!0;let tM=tR({properties:{ariaActiveDescendant:null,ariaAtomic:tS,ariaAutoComplete:null,ariaBusy:tS,ariaChecked:tS,ariaColCount:tA,ariaColIndex:tA,ariaColSpan:tA,ariaControls:tE,ariaCurrent:null,ariaDescribedBy:tE,ariaDetails:null,ariaDisabled:tS,ariaDropEffect:tE,ariaErrorMessage:null,ariaExpanded:tS,ariaFlowTo:tE,ariaGrabbed:tS,ariaHasPopup:null,ariaHidden:tS,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tE,ariaLevel:tA,ariaLive:null,ariaModal:tS,ariaMultiLine:tS,ariaMultiSelectable:tS,ariaOrientation:null,ariaOwns:tE,ariaPlaceholder:null,ariaPosInSet:tA,ariaPressed:tS,ariaReadOnly:tS,ariaRelevant:null,ariaRequired:tS,ariaRoleDescription:tE,ariaRowCount:tA,ariaRowIndex:tA,ariaRowSpan:tA,ariaSelected:tS,ariaSetSize:tA,ariaSort:null,ariaValueMax:tA,ariaValueMin:tA,ariaValueNow:tA,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function t$(e,t){return t in e?e[t]:t}function tO(e,t){return t$(e,t.toLowerCase())}let tB=tR({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tN,acceptCharset:tE,accessKey:tE,action:null,allow:null,allowFullScreen:t_,allowPaymentRequest:t_,allowUserMedia:t_,alt:null,as:null,async:t_,autoCapitalize:null,autoComplete:tE,autoFocus:t_,autoPlay:t_,blocking:tE,capture:null,charSet:null,checked:t_,cite:null,className:tE,cols:tA,colSpan:null,content:null,contentEditable:tS,controls:t_,controlsList:tE,coords:tA|tN,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t_,defer:t_,dir:null,dirName:null,disabled:t_,download:tx,draggable:tS,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t_,formTarget:null,headers:tE,height:tA,hidden:tx,high:tA,href:null,hrefLang:null,htmlFor:tE,httpEquiv:tE,id:null,imageSizes:null,imageSrcSet:null,inert:t_,inputMode:null,integrity:null,is:null,isMap:t_,itemId:null,itemProp:tE,itemRef:tE,itemScope:t_,itemType:tE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t_,low:tA,manifest:null,max:null,maxLength:tA,media:null,method:null,min:null,minLength:tA,multiple:t_,muted:t_,name:null,nonce:null,noModule:t_,noValidate:t_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:t_,optimum:tA,pattern:null,ping:tE,placeholder:null,playsInline:t_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:t_,referrerPolicy:null,rel:tE,required:t_,reversed:t_,rows:tA,rowSpan:tA,sandbox:tE,scope:null,scoped:t_,seamless:t_,selected:t_,shadowRootClonable:t_,shadowRootDelegatesFocus:t_,shadowRootMode:null,shape:null,size:tA,sizes:null,slot:null,span:tA,spellCheck:tS,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tA,step:null,style:null,tabIndex:tA,target:null,title:null,translate:null,type:null,typeMustMatch:t_,useMap:null,value:tS,width:tA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tE,axis:null,background:null,bgColor:null,border:tA,borderColor:null,bottomMargin:tA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t_,declare:t_,event:null,face:null,frame:null,frameBorder:null,hSpace:tA,leftMargin:tA,link:null,longDesc:null,lowSrc:null,marginHeight:tA,marginWidth:tA,noResize:t_,noHref:t_,noShade:t_,noWrap:t_,object:null,profile:null,prompt:null,rev:null,rightMargin:tA,rules:null,scheme:null,scrolling:tS,standby:null,summary:null,text:null,topMargin:tA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t_,disableRemotePlayback:t_,prefix:null,property:null,results:tA,security:null,unselectable:null},space:"html",transform:tO}),tU=tR({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tP,accentHeight:tA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tA,amplitude:tA,arabicForm:null,ascent:tA,attributeName:null,attributeType:null,azimuth:tA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tA,by:null,calcMode:null,capHeight:tA,className:tE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tA,diffuseConstant:tA,direction:null,display:null,dur:null,divisor:tA,dominantBaseline:null,download:t_,dx:null,dy:null,edgeMode:null,editable:null,elevation:tA,enableBackground:null,end:null,event:null,exponent:tA,externalResourcesRequired:null,fill:null,fillOpacity:tA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tN,g2:tN,glyphName:tN,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tA,horizOriginX:tA,horizOriginY:tA,id:null,ideographic:tA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tA,k:tA,k1:tA,k2:tA,k3:tA,k4:tA,kernelMatrix:tP,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tA,overlineThickness:tA,paintOrder:null,panose1:null,path:null,pathLength:tA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tA,pointsAtY:tA,pointsAtZ:tA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tP,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tP,rev:tP,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tP,requiredFeatures:tP,requiredFonts:tP,requiredFormats:tP,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tA,specularExponent:tA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tA,strikethroughThickness:tA,string:null,stroke:null,strokeDashArray:tP,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tA,strokeOpacity:tA,strokeWidth:null,style:null,surfaceScale:tA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tP,tabIndex:tA,tableValues:null,target:null,targetX:tA,targetY:tA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tP,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tA,underlineThickness:tA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tA,values:null,vAlphabetic:tA,vMathematical:tA,vectorEffect:null,vHanging:tA,vIdeographic:tA,version:null,vertAdvY:tA,vertOriginX:tA,vertOriginY:tA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:t$}),tD=tR({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tG=tR({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tO}),tF=tR({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tj=tw([tM,tB,tD,tG,tF],"html"),tW=tw([tM,tU,tD,tG,tF],"svg"),tH={}.hasOwnProperty,tz=/["&'<>`]/g,tq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tV=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tX=/[|\\{}()[\]^$+*?.]/g,tQ=new WeakMap,tK=/[\dA-Fa-f]/,tJ=/\d/,tY=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tZ={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},t0=["cent","copy","divide","gt","lt","not","para","times"],t1={}.hasOwnProperty,t2={};for(a in tZ)t1.call(tZ,a)&&(t2[tZ[a]]=a);let t5=/[^\dA-Za-z]/;function t3(e,t,n){var r,i;let a,o,s=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!tK.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(o=function(e,t,n,r){let i=String.fromCharCode(e);if(t1.call(t2,i)){let e=t2[i],a="&"+e;return n&&tY.includes(e)&&!t0.includes(e)&&(!r||t&&61!==t&&t5.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!tJ.test(String.fromCharCode(t))?r:r+";");a.length<s.length&&(s=a)}return o&&(!n.useShortestReferences||o.length<s.length)?o:s}function t8(e,t){let n;var r,i=e,a=Object.assign({format:t3},t);if(i=i.replace(a.subset?(r=a.subset,(n=tQ.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(tX,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),tQ.set(r,n)),n):tz,o),a.subset||a.escapeOnly)return i;return i.replace(tq,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(tV,o);function o(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let t6=/^>|^->|<!--|-->|--!>|<!-$/g,t9=[">"],t4=["<",">"];function t7(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}let ne=/[A-Z]/g,nt=/-[a-z]/g,nn=/^data[-\w.:]+$/i;function nr(e){return"-"+e.toLowerCase()}function ni(e){return e.charAt(1).toUpperCase()}let na=/[ \t\n\f\r]/g;function no(e){return"object"==typeof e?"text"===e.type&&ns(e.value):ns(e)}function ns(e){return""===e.replace(na,"")}let nl=nh(1),nu=nh(-1),nc=[];function nh(e){return function(t,n,r){let i=t?t.children:nc,a=(n||0)+e,o=i[a];if(!r)for(;o&&no(o);)a+=e,o=i[a];return o}}let np={}.hasOwnProperty;function nd(e){return function(t,n,r){return np.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let nf=nd({body:function(e,t,n){let r=nl(n,t);return!r||"comment"!==r.type},caption:ng,colgroup:ng,dd:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=nl(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:ng,html:function(e,t,n){let r=nl(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=nl(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:nm,rt:nm,tbody:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:ny,tfoot:function(e,t,n){return!nl(n,t)},th:ny,thead:function(e,t,n){let r=nl(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function ng(e,t,n){let r=nl(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&no(r.value.charAt(0)))}function nm(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function ny(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let nb=nd({body:function(e){let t=nl(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&no(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=nu(n,t),i=nl(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&nf(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=nl(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=nu(n,t),i=nl(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&nf(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),nw={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".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("")]]},nk=["<","&"];function nC(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:t8(e.value,Object.assign({},r.settings.characterReferences,{subset:nk}))}let nv=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&tH.call(t,e)){let n=String(t[e]);i=tH.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("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?"<?"+t8(e.value,Object.assign({},r.settings.characterReferences,{subset:t9}))+">":"\x3c!--"+e.value.replace(t6,function(e){return t8(e,Object.assign({},r.settings.characterReferences,{subset:t4}))})+"--\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,a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=tW);let u=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=function(e,t){let n=tk(t),r=t,i=tC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nn.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nt,ni);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nt.test(e)){let n=e.replace(ne,nr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tT}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=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=t8(i.attribute,Object.assign({},e.settings.characterReferences,{subset:nw.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=t8(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:nw.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&t7(n,s)>t7(n,e.alternative)&&(s=e.alternative),r=s+t8(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?nw.single:nw.double)[a][o],attribute:!0}))+s),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),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(s=!1),!u&&o&&nb(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&nf(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:nC(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:nC}}),n_={},nS={},nx=[];function nA(e,t,n){return nv(e,t,n,this)}function nE(e){let t=[],n=e&&e.children||nx,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function nN(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}let nP="light-dark()",nL=["color","background-color"];function nI(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&er.Italic&&(t["font-style"]="italic"),e.fontStyle&er.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&er.Underline&&n.push("underline"),e.fontStyle&er.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function nT(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let nR=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let i,a={lines:i=e7(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,r=0;for(let e of i){if(t<e.length)break;t-=e.length,r++}return{line:r,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=i[t].length;return n+t}};function r(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new H(`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 H(`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 H(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:a.posToIndex(e.line,n)}}}let o=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(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 H(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new H(`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){if(this.options.decorations?.length){var n;let r;return(r=Array.from((n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))instanceof Set?n:new Set(n)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,i=[];for(let r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),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 H(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],s="",l=-1,u=-1;if(0===t&&(l=0),0===n&&(u=0),n===1/0&&(u=o.children.length),-1===l||-1===u)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===u&&s.length===n&&(u=e+1);if(-1===l)throw new H(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new H(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let c=o.children.slice(l,u);if(i.alwaysWrap||c.length!==o.children.length)if(i.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};a(e,i,"wrapper"),o.children.splice(l,c.length,e)}else a(c[0],i,"token");else a(o,i,"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&&nN(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)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(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")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function nM(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,...nR]}var n$=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],nO={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nB(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 nU={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 nD={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 nG(e,t,n={}){let r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!e6(r)&&!e4(i)&&"ansi"===r){let r,a,o,s,l,u,c,{theme:h}=e.setTheme(i);return r=e5(h,n),a=e7(t),o=function(e=nU){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<n$.length;n++)t.push(e[n$[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 a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(n$.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,h.colors?.[t]||nD[e]]}))),s=null,l=null,u=new Set,c={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:l,decorations:new Set(u)}),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)nO[r]&&t.push({type:"setDecoration",value:nO[r]});else if(r<=29){let e=nO[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:n$[r-30]}});else if(38===r){let n=nB(e);n&&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:n$[r-40]}});else if(48===r){let n=nB(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:n$[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:n$[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(s=null,l=null,u.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?l=null:"resetDecoration"===t.type&&u.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?l=t.value:"setDecoration"===t.type&&u.add(t.value)}n=r.position}while(n<e.length);return t}},a.map(e=>c.parse(e[0]).map(t=>{let n,i;t.decorations.has("reverse")?(n=t.background?o.value(t.background):h.bg,i=t.foreground?o.value(t.foreground):h.fg):(n=t.foreground?o.value(t.foreground):h.fg,i=t.background?o.value(t.background):void 0),n=e3(n,r),i=e3(i,r),t.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let a=er.None;return t.decorations.has("bold")&&(a|=er.Bold),t.decorations.has("italic")&&(a|=er.Italic),t.decorations.has("underline")&&(a|=er.Underline),t.decorations.has("strikethrough")&&(a|=er.Strikethrough),{content:t.value,offset:e[1],color:n,bgColor:i,fontStyle:a}}))}return td(e,t,n)}function nF(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===p.length)throw new H("`themes` option must not be empty");let d=tm(e,t,n,nG);if(l=th(d),u&&nP!==u&&!p.find(e=>e.color===u))throw new H(`\`themes\` option must contain the defaultColor key \`${u}\``);let f=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);a=d.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>nI(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&nL.includes(a))if(r===nP&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new H('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]=`light-dark(${o[e][a]||"inherit"}, ${o[r][a]||"inherit"})`,"css-vars"===i&&(l[u(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[u(n,a)]=s)}}),a.htmlStyle=l,a})(e,g,c,u,h))),l&&tc(a,l);let m=p.map(e=>e5(e.theme,n));i=nj(p,f,m,c,u,"fg",h),r=nj(p,f,m,c,u,"bg",h),o=`shiki-themes ${f.map(e=>e.name).join(" ")}`,s=u?void 0:[i,r].join(";")}else if("theme"in n){let s=e5(n.theme,n);a=nG(e,t,n);let u=e.getTheme(n.theme);r=e3(u.bg,s),i=e3(u.fg,s),o=u.name,l=th(a)}else throw new H("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function nj(e,t,n,r,i,a,o){return e.map((s,l)=>{let u=e3(t[l][a],n[l])||"inherit",c=`${r+s.color}${"bg"===a?"-bg":""}:${u}`;if(0===l&&i){if(i===nP&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new H('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${e3(t[r][a],n[r])||"inherit"}, ${e3(t[i][a],n[i])||"inherit"});${c}`}return u}return"css-vars"===o?c:null}).filter(e=>!!e).join(";")}function nW(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>nW(e,t,n),codeToTokens:(t,n)=>nF(e,t,n)}){let i=t;for(let e of nM(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=nF(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;!0===h?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&er.Underline||i.fontStyle&er.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===h&&(a=a.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 a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),p&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=nT(e.htmlStyle||nI(e)),i=nT(n.htmlStyle||nI(n)),a=e.fontStyle&&(e.fontStyle&er.Underline||e.fontStyle&er.Strikethrough),o=n.fontStyle&&(n.fontStyle&er.Underline||n.fontStyle&er.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let d={...r,get source(){return i}};for(let e of nM(n))a=e.tokens?.call(d,a)||a;return function(e,t,n,r=th(e)){let i=nM(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(u.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(u[e]=n);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:a},p=[],d={...n,structure:s,addClassToHast:nN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return c},get code(){return h},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=nT(a.htmlStyle||nI(a));for(let o of(l&&(e.properties.style=l),i))e=o?.span?.call(d,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(d,n,t+1)||n;p.push(n),a.push(n)}else"inline"===s&&p.push(n)}),"classic"===s){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;o.children.push(c)}else if("inline"===s){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of o.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(d,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&o.children.push(...t.children)}}let f=o;for(let e of i)f=e?.root?.call(d,f)||f;return r&&tc(f,r),f}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??u)},d,c)}let nH=function(e,t){let n=t||n_,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:nA,all:nE,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||ty,characterReferences:n.characterReferences||nS,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?tW:tj,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function nz(e){let t=await tl(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return th(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(e6(i)||e4(a))throw new H("Plain language does not have grammar state");if("ansi"===i)throw new H("ANSI language does not have grammar state");let{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new tp(tf(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>nG(t,e,n),codeToTokensWithThemes:(e,n)=>tm(t,e,n),codeToTokens:(e,n)=>nF(t,e,n),codeToHast:(e,n)=>nW(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>nW(e,t,n),codeToTokens:(t,n)=>nF(e,t,n)},i=nH(nW(e,t,n,r));for(let e of nM(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var nq=b({bundledLanguages:()=>S,bundledLanguagesAlias:()=>_,bundledLanguagesBase:()=>v,bundledLanguagesInfo:()=>C,bundledThemes:()=>A,bundledThemesInfo:()=>x,codeToHast:()=>nQ,codeToHtml:()=>nX,codeToTokens:()=>nK,codeToTokensBase:()=>nJ,codeToTokensWithThemes:()=>nY,createHighlighter:()=>nV,getLastGrammarState:()=>n0,getSingletonHighlighter:()=>nZ});let nV=(o=(h={langs:S,themes:A,engine:()=>(0,W.createOnigurumaEngine)(Promise.all([n.e(3616),n.e(1227)]).then(n.bind(n,71227)))}).langs,s=h.themes,l=h.engine,async function(e){function t(t){if("string"==typeof t){if(e9(t=e.langAlias?.[t]||t))return[];let n=o[t];if(!n)throw new H(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(e4(e))return"none";if("string"==typeof e){let t=s[e];if(!t)throw new H(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),a=await nz({engine:e.engine??l(),...e,themes:r,langs:i});return{...a,loadLanguage:(...e)=>a.loadLanguage(...e.map(t)),loadTheme:(...e)=>a.loadTheme(...e.map(n)),getBundledLanguages:()=>o,getBundledThemes:()=>s}}),{codeToHtml:nX,codeToHast:nQ,codeToTokens:nK,codeToTokensBase:nJ,codeToTokensWithThemes:nY,getSingletonHighlighter:nZ,getLastGrammarState:n0}=function(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)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),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)}}(nV,{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}});var n1=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function n2(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let n5=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),n3=String.raw;function n8(e,t){if(null==e)throw Error(t??"Value expected");return e}let n6=n3`\[\^?`,n9=`c.? | C(?:-.?)?|${n3`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${n3`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${n3`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${n3`o\{[^\}]*\}?`}|${n3`\d{1,3}`}`,n4=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,n7=RegExp(n3`
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2228],{42228:(e,t,n)=>{"use strict";let r,i,a,o,s,l;n.d(t,{codeToHtml:()=>nX});var u,c,h,p={};n.r(p),n.d(p,{createOnigurumaEngine:()=>j,getDefaultWasmLoader:()=>F,loadWasm:()=>U,setDefaultWasmLoader:()=>G});var d={};n.r(d),n.d(d,{boolean:()=>t_,booleanish:()=>tS,commaOrSpaceSeparated:()=>tP,commaSeparated:()=>tN,number:()=>tA,overloadedBoolean:()=>tx,spaceSeparated:()=>tE});var f=Object.defineProperty,g=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,b=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=m(t),o=0,s=a.length;o<s;o++)i=a[o],y.call(e,i)||i===n||f(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=g(t,i))||r.enumerable});return e},k=(e,t,n)=>(w(e,t,"default"),n&&w(n,t,"default"));let C=[{id:"abap",name:"ABAP",import:()=>n.e(66).then(n.bind(n,90066))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(695).then(n.bind(n,10695))},{id:"ada",name:"Ada",import:()=>n.e(7082).then(n.bind(n,67082))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(3736)]).then(n.bind(n,93736))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(9223),n.e(3849),n.e(5387),n.e(9115),n.e(8392),n.e(7582)]).then(n.bind(n,18960))},{id:"apache",name:"Apache Conf",import:()=>n.e(9602).then(n.bind(n,9602))},{id:"apex",name:"Apex",import:()=>n.e(8048).then(n.bind(n,68048))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(8115)]).then(n.bind(n,78115))},{id:"applescript",name:"AppleScript",import:()=>n.e(195).then(n.bind(n,70195))},{id:"ara",name:"Ara",import:()=>n.e(2944).then(n.bind(n,32944))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(5361).then(n.bind(n,65361))},{id:"asm",name:"Assembly",import:()=>n.e(9355).then(n.bind(n,39355))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(5387),n.e(3583)]).then(n.bind(n,63583))},{id:"awk",name:"AWK",import:()=>n.e(705).then(n.bind(n,60705))},{id:"ballerina",name:"Ballerina",import:()=>n.e(9650).then(n.bind(n,99650))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(9203).then(n.bind(n,29203))},{id:"beancount",name:"Beancount",import:()=>n.e(5937).then(n.bind(n,95937))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(7302).then(n.bind(n,77302))},{id:"bibtex",name:"BibTeX",import:()=>n.e(9982).then(n.bind(n,69982))},{id:"bicep",name:"Bicep",import:()=>n.e(6267).then(n.bind(n,16267))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(2968).then(n.bind(n,10587))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(9344)]).then(n.bind(n,59344))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(6453).then(n.bind(n,56453))},{id:"c",name:"C",import:()=>n.e(5965).then(n.bind(n,75965))},{id:"c3",name:"C3",import:()=>n.e(9506).then(n.bind(n,59506))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(143).then(n.bind(n,40143))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(4910),n.e(7578)]).then(n.bind(n,15197))},{id:"clarity",name:"Clarity",import:()=>n.e(8678).then(n.bind(n,88678))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(7538).then(n.bind(n,47538))},{id:"cmake",name:"CMake",import:()=>n.e(6227).then(n.bind(n,26227))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(39)]).then(n.bind(n,20039))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(8043).then(n.bind(n,8043))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(520).then(n.bind(n,20520))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(9223),n.e(8e3)]).then(n.bind(n,98e3))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(2118).then(n.bind(n,2118))},{id:"coq",name:"Coq",import:()=>n.e(8093).then(n.bind(n,48093))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(4762),n.e(9430),n.e(614),n.e(5965),n.e(8894)]).then(n.bind(n,96109))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(614),n.e(5965),n.e(4849),n.e(3048)]).then(n.bind(n,53048))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(8733).then(n.bind(n,8733))},{id:"css",name:"CSS",import:()=>n.e(5387).then(n.bind(n,5387))},{id:"csv",name:"CSV",import:()=>n.e(5910).then(n.bind(n,45910))},{id:"cue",name:"CUE",import:()=>n.e(4715).then(n.bind(n,64715))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(9381).then(n.bind(n,19381))},{id:"d",name:"D",import:()=>n.e(8706).then(n.bind(n,8706))},{id:"dart",name:"Dart",import:()=>n.e(3843).then(n.bind(n,3843))},{id:"dax",name:"DAX",import:()=>n.e(5541).then(n.bind(n,65541))},{id:"desktop",name:"Desktop",import:()=>n.e(5794).then(n.bind(n,85794))},{id:"diff",name:"Diff",import:()=>n.e(21).then(n.bind(n,90021))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(8132).then(n.bind(n,38132))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4582).then(n.bind(n,74582))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(920).then(n.bind(n,10920))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(9439)]).then(n.bind(n,99439))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(997)]).then(n.bind(n,997))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(5965),n.e(8090)]).then(n.bind(n,28090))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(9992).then(n.bind(n,13746))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(5559),n.e(1343)]).then(n.bind(n,1343))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(5503),n.e(8645)]).then(n.bind(n,28645))},{id:"fennel",name:"Fennel",import:()=>n.e(2136).then(n.bind(n,82136))},{id:"fish",name:"Fish",import:()=>n.e(6498).then(n.bind(n,6498))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(8218).then(n.bind(n,28218))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(338),n.e(6750)]).then(n.bind(n,96750))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(338).then(n.bind(n,10338))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(5503),n.e(1890)]).then(n.bind(n,1890))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(49).then(n.bind(n,20049))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(5644).then(n.bind(n,15644))},{id:"gdshader",name:"GDShader",import:()=>n.e(566).then(n.bind(n,50566))},{id:"genie",name:"Genie",import:()=>n.e(6226).then(n.bind(n,86226))},{id:"gherkin",name:"Gherkin",import:()=>n.e(6660).then(n.bind(n,66660))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(7078).then(n.bind(n,97078))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(4849),n.e(7565)]).then(n.bind(n,17565))},{id:"gleam",name:"Gleam",import:()=>n.e(9054).then(n.bind(n,99054))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(4107)]).then(n.bind(n,44107))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(4293)]).then(n.bind(n,74293))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(5965),n.e(736)]).then(n.bind(n,20736))},{id:"gn",name:"GN",import:()=>n.e(5811).then(n.bind(n,35811))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(3971).then(n.bind(n,63971))},{id:"go",name:"Go",import:()=>n.e(2394).then(n.bind(n,42394))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9781)]).then(n.bind(n,49781))},{id:"groovy",name:"Groovy",import:()=>n.e(8198).then(n.bind(n,88198))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(614),n.e(643)]).then(n.bind(n,80643))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(3826)]).then(n.bind(n,43826))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(3348)]).then(n.bind(n,23348))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(638).then(n.bind(n,20638))},{id:"haxe",name:"Haxe",import:()=>n.e(6944).then(n.bind(n,56944))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(347).then(n.bind(n,347))},{id:"hjson",name:"Hjson",import:()=>n.e(7452).then(n.bind(n,67452))},{id:"hlsl",name:"HLSL",import:()=>n.e(1745).then(n.bind(n,51745))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115)]).then(n.bind(n,89115))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(6097)]).then(n.bind(n,86097))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9388),n.e(4849),n.e(9781),n.e(8716)]).then(n.bind(n,58716))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9388),n.e(9781),n.e(3035)]).then(n.bind(n,33035))},{id:"hxml",name:"HXML",import:()=>n.e(7383).then(n.bind(n,37383))},{id:"hy",name:"Hy",import:()=>n.e(949).then(n.bind(n,90949))},{id:"imba",name:"Imba",import:()=>n.e(4305).then(n.bind(n,14305))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(1356).then(n.bind(n,31356))},{id:"java",name:"Java",import:()=>n.e(9388).then(n.bind(n,19388))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(9223).then(n.bind(n,16133))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(2643)]).then(n.bind(n,2643))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(9223),n.e(803)]).then(n.bind(n,30803))},{id:"json",name:"JSON",import:()=>n.e(6114).then(n.bind(n,56114))},{id:"json5",name:"JSON5",import:()=>n.e(9085).then(n.bind(n,29085))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(667).then(n.bind(n,60667))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(6884).then(n.bind(n,76884))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(2505).then(n.bind(n,92505))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(7245).then(n.bind(n,97245))},{id:"jsx",name:"JSX",import:()=>n.e(3543).then(n.bind(n,2345))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(9223),n.e(4762),n.e(9430),n.e(614),n.e(5965),n.e(4910),n.e(2716)]).then(n.bind(n,90789))},{id:"just",name:"Just",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(4163),n.e(4742)]).then(n.bind(n,74742))},{id:"kdl",name:"KDL",import:()=>n.e(1485).then(n.bind(n,91485))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(8959).then(n.bind(n,18959))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(137).then(n.bind(n,62518))},{id:"latex",name:"LaTeX",import:()=>n.e(5482).then(n.bind(n,45482))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(1604).then(n.bind(n,71604))},{id:"less",name:"Less",import:()=>n.e(5171).then(n.bind(n,55171))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(7604)]).then(n.bind(n,27604))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9327).then(n.bind(n,9327))},{id:"log",name:"Log file",import:()=>n.e(9120).then(n.bind(n,29120))},{id:"logo",name:"Logo",import:()=>n.e(5013).then(n.bind(n,75013))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(5965),n.e(5488)]).then(n.bind(n,95488))},{id:"luau",name:"Luau",import:()=>n.e(4063).then(n.bind(n,24063))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(918).then(n.bind(n,20918))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(5503).then(n.bind(n,25503))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(1917),n.e(5387),n.e(8392),n.e(5171),n.e(6772)]).then(n.bind(n,56772))},{id:"matlab",name:"MATLAB",import:()=>n.e(9647).then(n.bind(n,39647))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(5503),n.e(5372)]).then(n.bind(n,5372))},{id:"mdx",name:"MDX",import:()=>n.e(6439).then(n.bind(n,26439))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(4891).then(n.bind(n,24891))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1516).then(n.bind(n,81516))},{id:"mojo",name:"Mojo",import:()=>n.e(3462).then(n.bind(n,51081))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(6858).then(n.bind(n,6858))},{id:"move",name:"Move",import:()=>n.e(8791).then(n.bind(n,58791))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6056).then(n.bind(n,76056))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(9643).then(n.bind(n,89643))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>n.e(7388).then(n.bind(n,7388))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(5965),n.e(2582)]).then(n.bind(n,72582))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(5965),n.e(5503),n.e(4486)]).then(n.bind(n,44486))},{id:"nix",name:"Nix",import:()=>n.e(8672).then(n.bind(n,68672))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(7921).then(n.bind(n,47921))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(7799).then(n.bind(n,57799))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(8561).then(n.bind(n,60903))},{id:"ocaml",name:"OCaml",import:()=>n.e(8194).then(n.bind(n,18194))},{id:"odin",name:"Odin",import:()=>n.e(9136).then(n.bind(n,99136))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(205).then(n.bind(n,40205))},{id:"pascal",name:"Pascal",import:()=>n.e(6092).then(n.bind(n,96092))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(4163),n.e(4921)]).then(n.bind(n,64163))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5350),n.e(9683)]).then(n.bind(n,15350))},{id:"pkl",name:"Pkl",import:()=>n.e(491).then(n.bind(n,80491))},{id:"plsql",name:"PL/SQL",import:()=>n.e(2002).then(n.bind(n,62002))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(9003).then(n.bind(n,89003))},{id:"polar",name:"Polar",import:()=>n.e(2094).then(n.bind(n,22094))},{id:"postcss",name:"PostCSS",import:()=>n.e(901).then(n.bind(n,50901))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(7077).then(n.bind(n,67077))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(8179).then(n.bind(n,8179))},{id:"prisma",name:"Prisma",import:()=>n.e(9336).then(n.bind(n,9336))},{id:"prolog",name:"Prolog",import:()=>n.e(3445).then(n.bind(n,83445))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(7504).then(n.bind(n,37504))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9354)]).then(n.bind(n,39354))},{id:"puppet",name:"Puppet",import:()=>n.e(4982).then(n.bind(n,2601))},{id:"purescript",name:"PureScript",import:()=>n.e(7511).then(n.bind(n,97511))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(4910).then(n.bind(n,74910))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(9223),n.e(6836)]).then(n.bind(n,6836))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6543).then(n.bind(n,66543))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(2725).then(n.bind(n,52725))},{id:"r",name:"R",import:()=>n.e(6300).then(n.bind(n,96300))},{id:"racket",name:"Racket",import:()=>n.e(6674).then(n.bind(n,76674))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(3531).then(n.bind(n,23531))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(8733),n.e(6934)]).then(n.bind(n,76934))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5436).then(n.bind(n,15436))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(931).then(n.bind(n,60931))},{id:"rel",name:"Rel",import:()=>n.e(3111).then(n.bind(n,23111))},{id:"riscv",name:"RISC-V",import:()=>n.e(8735).then(n.bind(n,48735))},{id:"ron",name:"RON",import:()=>n.e(7915).then(n.bind(n,7915))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(7403).then(n.bind(n,7403))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(6637)]).then(n.bind(n,76637))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(5559)]).then(n.bind(n,1060))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(6558).then(n.bind(n,56558))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(614),n.e(1569)]).then(n.bind(n,31569))},{id:"sass",name:"Sass",import:()=>n.e(6318).then(n.bind(n,56318))},{id:"scala",name:"Scala",import:()=>n.e(4404).then(n.bind(n,94404))},{id:"scheme",name:"Scheme",import:()=>n.e(941).then(n.bind(n,30941))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(5387),n.e(8392)]).then(n.bind(n,28392))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9175).then(n.bind(n,9175))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(5990).then(n.bind(n,5990))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(4849).then(n.bind(n,34849))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(4849),n.e(6546)]).then(n.bind(n,96546))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(2213).then(n.bind(n,62213))},{id:"solidity",name:"Solidity",import:()=>n.e(3211).then(n.bind(n,53211))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(7813)]).then(n.bind(n,97813))},{id:"sparql",name:"SPARQL",import:()=>n.e(4651).then(n.bind(n,94651))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(4605).then(n.bind(n,34605))},{id:"sql",name:"SQL",import:()=>n.e(614).then(n.bind(n,614))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(1613).then(n.bind(n,71613))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(614),n.e(4429)]).then(n.bind(n,46810))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(3750).then(n.bind(n,33750))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(9223),n.e(659)]).then(n.bind(n,10659))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(4733)]).then(n.bind(n,54733))},{id:"swift",name:"Swift",import:()=>n.e(5299).then(n.bind(n,45299))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3502).then(n.bind(n,13502))},{id:"systemd",name:"Systemd Units",import:()=>n.e(3219).then(n.bind(n,3219))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(6347).then(n.bind(n,96347))},{id:"tasl",name:"Tasl",import:()=>n.e(8539).then(n.bind(n,70920))},{id:"tcl",name:"Tcl",import:()=>n.e(4743).then(n.bind(n,34743))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(2394),n.e(5968)]).then(n.bind(n,55968))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(2766).then(n.bind(n,2766))},{id:"tex",name:"TeX",import:()=>n.e(6721).then(n.bind(n,26721))},{id:"toml",name:"TOML",import:()=>n.e(7052).then(n.bind(n,97052))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4314)]).then(n.bind(n,74314))},{id:"tsv",name:"TSV",import:()=>n.e(7805).then(n.bind(n,87805))},{id:"tsx",name:"TSX",import:()=>n.e(260).then(n.bind(n,947))},{id:"turtle",name:"Turtle",import:()=>n.e(6294).then(n.bind(n,6294))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(8392),n.e(5350),n.e(4947)]).then(n.bind(n,14947))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(1917).then(n.bind(n,58461))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(8745).then(n.bind(n,58745))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(8564).then(n.bind(n,8564))},{id:"v",name:"V",import:()=>n.e(4280).then(n.bind(n,64280))},{id:"vala",name:"Vala",import:()=>n.e(8414).then(n.bind(n,8414))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2672).then(n.bind(n,22672))},{id:"verilog",name:"Verilog",import:()=>n.e(1924).then(n.bind(n,51924))},{id:"vhdl",name:"VHDL",import:()=>n.e(2618).then(n.bind(n,22618))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(7952).then(n.bind(n,67952))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(5406)]).then(n.bind(n,25406))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(9223),n.e(1006)]).then(n.bind(n,31006))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(9223),n.e(4177),n.e(5387),n.e(8392),n.e(5171),n.e(8130)]).then(n.bind(n,37749))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6702).then(n.bind(n,56702))},{id:"wasm",name:"WebAssembly",import:()=>n.e(7111).then(n.bind(n,79492))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(6258).then(n.bind(n,16258))},{id:"wgsl",name:"WGSL",import:()=>n.e(8967).then(n.bind(n,78967))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(3309).then(n.bind(n,43309))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(6202).then(n.bind(n,46202))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(1659).then(n.bind(n,71326))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(9388),n.e(2064)]).then(n.bind(n,84921))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(9388),n.e(5403)]).then(n.bind(n,65403))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(3025).then(n.bind(n,63025))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2248).then(n.bind(n,2248))},{id:"zig",name:"Zig",import:()=>n.e(8432).then(n.bind(n,98432))}],v=Object.fromEntries(C.map(e=>[e.id,e.import])),_=Object.fromEntries(C.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),S={...v,..._},x=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2009).then(n.bind(n,62009))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(3609).then(n.bind(n,83609))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7885).then(n.bind(n,97885))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(1949).then(n.bind(n,11949))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(2008).then(n.bind(n,82008))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(7268).then(n.bind(n,67268))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(2194).then(n.bind(n,32194))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(2029).then(n.bind(n,52029))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(3518).then(n.bind(n,43518))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(6976).then(n.bind(n,36976))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(763).then(n.bind(n,60763))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(9914).then(n.bind(n,39914))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(4185).then(n.bind(n,24185))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9121).then(n.bind(n,29121))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(2288).then(n.bind(n,59907))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(4611).then(n.bind(n,6992))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(9710).then(n.bind(n,19710))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(723).then(n.bind(n,30723))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3027).then(n.bind(n,63027))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(8707).then(n.bind(n,98707))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(1251).then(n.bind(n,11251))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(7605).then(n.bind(n,97605))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(9707).then(n.bind(n,29707))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(3714).then(n.bind(n,13714))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(4021).then(n.bind(n,24021))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(251).then(n.bind(n,60251))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(8658).then(n.bind(n,78658))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(1220).then(n.bind(n,1220))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>n.e(6639).then(n.bind(n,6639))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(6675).then(n.bind(n,16675))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(1052).then(n.bind(n,91052))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(4388).then(n.bind(n,84388))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(850).then(n.bind(n,70850))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(2187).then(n.bind(n,52187))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(9752).then(n.bind(n,79752))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1046).then(n.bind(n,71046))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(7540).then(n.bind(n,7540))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(8724).then(n.bind(n,68724))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(7559).then(n.bind(n,27559))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(9531).then(n.bind(n,9531))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(4352).then(n.bind(n,14352))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(3922).then(n.bind(n,3922))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(9291).then(n.bind(n,89291))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(6982).then(n.bind(n,76982))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(1973).then(n.bind(n,31973))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(7654).then(n.bind(n,57654))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(6778).then(n.bind(n,46778))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7966).then(n.bind(n,37966))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(4889).then(n.bind(n,74889))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8599).then(n.bind(n,18599))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(1256).then(n.bind(n,91256))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(6153).then(n.bind(n,66153))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(634).then(n.bind(n,60634))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(8495).then(n.bind(n,18495))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(6820).then(n.bind(n,66820))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(401).then(n.bind(n,401))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(1087).then(n.bind(n,1087))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(6143).then(n.bind(n,66143))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1159).then(n.bind(n,41159))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(759).then(n.bind(n,50759))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(3446).then(n.bind(n,63446))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(6446).then(n.bind(n,76446))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(5034).then(n.bind(n,95034))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(4695).then(n.bind(n,24695))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(4319).then(n.bind(n,54319))}],A=Object.fromEntries(x.map(e=>[e.id,e.import]));var E=n(64792).Buffer,N=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function P(){return"u">typeof performance?performance.now():Date.now()}let L=(e,t)=>e+(t-e%t)%t;async function I(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(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&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=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)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:P,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,L(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var T=Object.defineProperty,R=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?T(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let M=null;class ${constructor(e){R(this,"utf16Length"),R(this,"utf8Length"),R(this,"utf16Value"),R(this,"utf8Value"),R(this,"utf16OffsetToUtf8"),R(this,"utf8OffsetToUtf16");const t=e.length,n=$._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const o=new Uint8Array(n);let s=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=s,c&&(i[n+1]=s),u<=127?a[s+0]=n:u<=2047?(a[s+0]=n,a[s+1]=n):u<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let O=class e{constructor(t){if(R(this,"id",++e.LAST_ID),R(this,"_onigBinding"),R(this,"content"),R(this,"utf16Length"),R(this,"utf8Length"),R(this,"utf16OffsetToUtf8"),R(this,"utf8OffsetToUtf16"),R(this,"ptr"),!M)throw new N("Must invoke loadWasm first.");this._onigBinding=M,this.content=t;const n=new $(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=M.omalloc(1e4)),e._sharedPtrInUse=!0,M.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(M)}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)}};R(O,"LAST_ID",0),R(O,"_sharedPtr",0),R(O,"_sharedPtrInUse",!1);class B{constructor(e){if(R(this,"_onigBinding"),R(this,"_ptr"),!M)throw new N("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new $(e[r]);t[r]=i.createString(M),n[r]=i.utf8Length}const r=M.omalloc(4*e.length);M.HEAPU32.set(t,r/4);const i=M.omalloc(4*e.length);M.HEAPU32.set(n,i/4);const a=M.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)M.ofree(t[n]);M.ofree(i),M.ofree(r),0===a&&function(e){throw new N(e.UTF8ToString(e.getLastOnigError()))}(M),this._onigBinding=M,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new O(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],u=o[s++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function U(e){return r||(r=async function(){M=await I(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,a,o;if(void 0!==n.data&&(n=n.data),r=n,"u">typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==E&&E.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await D(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await D(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function D(e){return t=>WebAssembly.instantiate(e,t)}function G(e){i=e}function F(){return i}async function j(e){return e&&await U(e),{createScanner:e=>new B(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new O(e)}}var W=b({});k(W,p);var H=class extends Error{constructor(e){super(e),this.name="ShikiError"}},z=n(63680);function q(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var V=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,X=class{static hasCaptures(e){return null!==e&&(V.lastIndex=0,V.test(e))}static replaceCaptures(e,t,n){return e.replace(V,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function Q(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,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function K(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 J(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Y=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}},Z=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,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&K(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&K(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new en(u,c,e,o,s,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=Q(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 a=new ei(t),o=new et(n,a.getId(r),a.getId(i)),s=new es(new eo(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Z(a,o,s)}(e,t)}_cachedMatchRoot=new Y(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 a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new et(n.fontStyle,n.foreground,n.background):null}},ee=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}},et=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},en=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},er=((u=er||{})[u.NotSet=-1]="NotSet",u[u.None=0]="None",u[u.Italic=1]="Italic",u[u.Bold=2]="Bold",u[u.Underline=4]="Underline",u[u.Strikethrough=8]="Strikethrough",u),ei=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)}},ea=Object.freeze([]),eo=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ea,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)}},es=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,a,o){let s,l,u;if(""===n)return void this._doInsertHere(t,r,i,a,o);let c=n.indexOf(".");-1===c?(s=n,l=""):(s=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),eo.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===Q(o.parentScopes,t))return void o.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 eo(e,t,n,r,i))}},el=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,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==o&&(p=o),0!==s&&(d=s),(l|u<<8|c<<10|h<<11|p<<15|d<<24)>>>0}};function eu(e,t){var n;let r,i,a=[],o=(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}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s);t=u()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(ec(s)){let e=[];do e.push(s),s=o.next();while(ec(s));return n=>t(e,n)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function ec(e){return!!e&&!!e.match(/[\w\.:]+/)}var eh=((c=eh||{})[c.None=0]="None",c[c.NotBeginString=1]="NotBeginString",c[c.NotEndString=2]="NotEndString",c[c.NotBeginPosition=4]="NotBeginPosition",c[c.DebugCall=8]="DebugCall",c);function ep(e){"function"==typeof e.dispose&&e.dispose()}var ed=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ef=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},eg=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))}},em=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ed(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new eg;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 a=n.lookup(t);e instanceof ed?eb({baseGrammar:a,selfGrammar:i},r):ey(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ed(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ed){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 ey(e,t,n){t.repository&&t.repository[e]&&ew([t.repository[e]],t,n)}function eb(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ew(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ew(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ew(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?q({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ew(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=ex(i);switch(a.kind){case 0:eb({...t,selfGrammar:t.baseGrammar},n);break;case 1:eb(t,n);break;case 2:ey(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?ey(a.ruleName,r,n):eb(r,n)}else 4===a.kind?n.add(new ef(a.scopeName,a.ruleName)):n.add(new ed(a.scopeName))}}}var ek=class{kind=0},eC=class{kind=1},ev=class{constructor(e){this.ruleName=e}kind=2},e_=class{constructor(e){this.scopeName=e}kind=3},eS=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ex(e){if("$base"===e)return new ek;if("$self"===e)return new eC;let t=e.indexOf("#");return -1===t?new e_(e):0===t?new ev(e.substring(1)):new eS(e.substring(0,t),e.substring(t+1))}var eA=/\\(\d+)/,eE=/\\(\d+)/g;Symbol("RuleId");var eN=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=X.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=X.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?X.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?X.replaceCaptures(this._contentName,e,t):this._contentName}},eP=class extends eN{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!")}},eL=class extends eN{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new e$(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eO,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eI=class extends eN{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 eO,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eT=class extends eN{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,l,u){super(e,t,n,r),this._begin=new e$(i,this.id),this.beginCaptures=a,this._end=new e$(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.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 eO,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}},eR=class extends eN{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new e$(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new e$(o,-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 eO,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 eO,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},eM=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new eP(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new eL(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=q({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new eI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new eR(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 eT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=ex(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u)if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof eI||e instanceof eT||e instanceof eR)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},e$=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 a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}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=eA.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 eE.lastIndex=0,this.source.replace(eE,(e,t)=>J(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=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="￿",a[e+1]="￿",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="￿",a[e+1]="G",o[e+1]="￿",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.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}},eO=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)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new eB(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 eB(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},eB=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}},eU=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eD=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new eU(e,8),this._embeddedLanguagesMatcher=new eG(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 eU(0,0);_getBasicScopeAttributes=new Y(e=>new eU(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/},eG=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])=>J(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!==z&&z.env.VSCODE_TEXTMATE_DEBUG;var eF=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ej(e,t,n,r,i,a,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof eR&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,u,c,h,p;let{ruleScanner:s,findOptions:f}=(l=d.rule,u=e,c=d.stack.endRule,h=n,p=r===o,{ruleScanner:l.compileWhileAG(u,c,h,p),findOptions:0}),g=s.findNextMatchSync(t,r,f);if(g){if(-2!==g.ruleId){i=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(d.stack,g.captureIndices[0].start),eH(e,t,n,d.stack,a,d.rule.whileCaptures,g.captureIndices),a.produce(d.stack,g.captureIndices[0].end),o=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let h=Date.now();for(;!u;){if(0!==s&&Date.now()-h>s)return new eF(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=eW(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:f}=eW(t.getRule(p.ruleId),t,null,r,i===o),g=d.findNextMatchSync(n,i,f);if(!g)continue;let m=g.captureIndices[0].start;if(!(m>=l)&&(l=m,u=g.captureIndices,s=g.ruleId,c=p.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:o}(e,t,n,r,i,c);if(!o){a.produce(i,l),u=!0;return}let s=o.captureIndices,h=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),eH(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!p&&h.getEnterPos()===r){i=h,a.produce(i,l),u=!0;return}}else{let o=e.getRule(h);a.produce(i,s[0].start);let d=i,f=o.getName(t.content,s),g=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,r,c,s[0].end===l,null,g,g),o instanceof eT){eH(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(o instanceof eR){eH(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(eH(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new eF(i,!1)}function eW(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eH(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),u=[],c=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=a.pushAttributed(u,e),p=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),d=e.createOnigString(s.substring(0,h.end));ej(e,d,n&&0===h.start,h.start,p,i,!1,0),ep(d);continue}let p=l.getName(s,o);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new ez(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ez=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eq(e,t,n,r,i){let a=eu(t,eV),o=eM.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function eV(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 eX=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new eD(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=eQ(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of eu(e,eV))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)eq(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&&eq(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]=eQ(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=eM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eJ.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=el.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?eK.createRootAndLookUpScopeName(o,a,this):eK.createRoot("unknown",a),t=new eJ(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new eZ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ej(this,a,i,0,t,s,!0,r);return ep(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eQ(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},e.repository.$base=t||e.repository.$self,e}var eK=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=ee.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new ee(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new ee(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){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,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),el.set(e,t.languageId,t.tokenType,null,r,i,a)}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),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},eJ=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eK.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,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId: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=eK.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eK.fromExtension(r,n.contentNameScopesList))}},eY=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):eu(e,eV).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>eu(e,eV).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}},eZ=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=el.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=el.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}},e0=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eX(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},e1=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new e0(Z.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Z.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 eY(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new em(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="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)}},e2=eJ.NULL;function e5(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 e3(e,t){return e&&t?.[e?.toLowerCase()]||e}async function e8(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function e6(e){return!e||["plaintext","txt","text","plain"].includes(e)}function e9(e){return"ansi"===e||e6(e)}function e4(e){return"none"===e}function e7(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let te="__shiki_resolved";function tt(e){if(e?.[te])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,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}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=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,te,{enumerable:!1,writable:!1,value:!0}),t}async function tn(e){return Array.from(new Set((await Promise.all(e.filter(e=>!e9(e)).map(async e=>await e8(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tr(e){return(await Promise.all(e.map(async e=>e4(e)?null:tt(await e8(e))))).filter(e=>!!e)}function ti(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new H(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}var ta=class extends e1{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tt(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=Z.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=ti(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new H(`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){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},to=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let ts=0;async function tl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tr(e.themes||[]),tn(e.langs||[]),e.engine]);return function(e){let t;ts+=1,!1!==e.warnings&&ts>=10&&ts%10==0&&console.warn(`[Shiki] ${ts} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new H("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tt),a=new ta(new to(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new H(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new H("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),ts-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new H(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},resolveLangAlias:function(t){return ti(t,e.langAlias)},loadLanguage:async function(...e){return s(await tn(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await tr(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}let tu=new WeakMap;function tc(e,t){tu.set(e,t)}function th(e){return tu.get(e)}var tp=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,e2])),t)}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()}}};function td(e,t,n={}){var r,i;let a,o,{theme:s=e.getLoadedThemes()[0]}=n;if(e6(e.resolveLangAlias(n.lang||"text"))||e4(s))return e7(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:l,colorMap:u}=e.setTheme(s),c=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==c.name)throw new H(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(l.name))throw new H(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return o=new tp((a=tf(t,r=c,i=l,u,n)).stateStack,r.name,i.name),tc(a.tokens,o),a.tokens}function tf(e,t,n,r,i){let a=e5(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=e7(e),u=i.grammarState?function(e,t){if(!(e instanceof tp))throw new H("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??e2:null!=i.grammarContextCode?tf(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:e2,c=[],h=[];for(let e=0,p=l.length;e<p;e++){let p,d,[f,g]=l[e];if(""===f){c=[],h.push([]);continue}if(o>0&&f.length>=o){c=[],h.push([{content:f,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(p=t.tokenizeLine(f,u,s).tokens,d=0);let m=t.tokenizeLine2(f,u,s),y=m.tokens.length/2;for(let e=0;e<y;e++){let t=m.tokens[2*e],o=e+1<y?m.tokens[2*e+2]:f.length;if(t===o)continue;let s=m.tokens[2*e+1],l=e3(r[el.getForeground(s)],a),u=el.getFontStyle(s),h={content:f.substring(t,o),offset:g+t,color:l,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.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(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=p[d],n=f.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.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:a}of e)for(let e of i)if(function(e,t,n){if(!tg(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tg(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),d+=1}}c.push(h)}h.push(c),c=[],u=m.ruleStack}return{tokens:h,stateStack:u}}function tg(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tm(e,t,n,r=td){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:th(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),o=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]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:l,...u}=e[t][r];a.variants[i[n].color]=u}),a})),l=a[0].state?new tp(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return l&&tc(s,l),s}let ty=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class tb{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tw(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tb(n,r,t)}function tk(e){return e.toLowerCase()}tb.prototype.normal={},tb.prototype.property={},tb.prototype.space=void 0;class tC{constructor(e,t){this.attribute=t,this.property=e}}tC.prototype.attribute="",tC.prototype.booleanish=!1,tC.prototype.boolean=!1,tC.prototype.commaOrSpaceSeparated=!1,tC.prototype.commaSeparated=!1,tC.prototype.defined=!1,tC.prototype.mustUseProperty=!1,tC.prototype.number=!1,tC.prototype.overloadedBoolean=!1,tC.prototype.property="",tC.prototype.spaceSeparated=!1,tC.prototype.space=void 0;let tv=0,t_=tL(),tS=tL(),tx=tL(),tA=tL(),tE=tL(),tN=tL(),tP=tL();function tL(){return 2**++tv}let tI=Object.keys(d);class tT extends tC{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<tI.length;){const e=tI[i];!function(e,t,n){n&&(e[t]=n)}(this,tI[i],(n&d[e])===d[e])}}}function tR(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[tk(r)]=r,n[tk(a.attribute)]=r}return new tb(t,n,e.space)}tT.prototype.defined=!0;let tM=tR({properties:{ariaActiveDescendant:null,ariaAtomic:tS,ariaAutoComplete:null,ariaBusy:tS,ariaChecked:tS,ariaColCount:tA,ariaColIndex:tA,ariaColSpan:tA,ariaControls:tE,ariaCurrent:null,ariaDescribedBy:tE,ariaDetails:null,ariaDisabled:tS,ariaDropEffect:tE,ariaErrorMessage:null,ariaExpanded:tS,ariaFlowTo:tE,ariaGrabbed:tS,ariaHasPopup:null,ariaHidden:tS,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tE,ariaLevel:tA,ariaLive:null,ariaModal:tS,ariaMultiLine:tS,ariaMultiSelectable:tS,ariaOrientation:null,ariaOwns:tE,ariaPlaceholder:null,ariaPosInSet:tA,ariaPressed:tS,ariaReadOnly:tS,ariaRelevant:null,ariaRequired:tS,ariaRoleDescription:tE,ariaRowCount:tA,ariaRowIndex:tA,ariaRowSpan:tA,ariaSelected:tS,ariaSetSize:tA,ariaSort:null,ariaValueMax:tA,ariaValueMin:tA,ariaValueNow:tA,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function t$(e,t){return t in e?e[t]:t}function tO(e,t){return t$(e,t.toLowerCase())}let tB=tR({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tN,acceptCharset:tE,accessKey:tE,action:null,allow:null,allowFullScreen:t_,allowPaymentRequest:t_,allowUserMedia:t_,alt:null,as:null,async:t_,autoCapitalize:null,autoComplete:tE,autoFocus:t_,autoPlay:t_,blocking:tE,capture:null,charSet:null,checked:t_,cite:null,className:tE,cols:tA,colSpan:null,content:null,contentEditable:tS,controls:t_,controlsList:tE,coords:tA|tN,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t_,defer:t_,dir:null,dirName:null,disabled:t_,download:tx,draggable:tS,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t_,formTarget:null,headers:tE,height:tA,hidden:tx,high:tA,href:null,hrefLang:null,htmlFor:tE,httpEquiv:tE,id:null,imageSizes:null,imageSrcSet:null,inert:t_,inputMode:null,integrity:null,is:null,isMap:t_,itemId:null,itemProp:tE,itemRef:tE,itemScope:t_,itemType:tE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t_,low:tA,manifest:null,max:null,maxLength:tA,media:null,method:null,min:null,minLength:tA,multiple:t_,muted:t_,name:null,nonce:null,noModule:t_,noValidate:t_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:t_,optimum:tA,pattern:null,ping:tE,placeholder:null,playsInline:t_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:t_,referrerPolicy:null,rel:tE,required:t_,reversed:t_,rows:tA,rowSpan:tA,sandbox:tE,scope:null,scoped:t_,seamless:t_,selected:t_,shadowRootClonable:t_,shadowRootDelegatesFocus:t_,shadowRootMode:null,shape:null,size:tA,sizes:null,slot:null,span:tA,spellCheck:tS,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tA,step:null,style:null,tabIndex:tA,target:null,title:null,translate:null,type:null,typeMustMatch:t_,useMap:null,value:tS,width:tA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tE,axis:null,background:null,bgColor:null,border:tA,borderColor:null,bottomMargin:tA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t_,declare:t_,event:null,face:null,frame:null,frameBorder:null,hSpace:tA,leftMargin:tA,link:null,longDesc:null,lowSrc:null,marginHeight:tA,marginWidth:tA,noResize:t_,noHref:t_,noShade:t_,noWrap:t_,object:null,profile:null,prompt:null,rev:null,rightMargin:tA,rules:null,scheme:null,scrolling:tS,standby:null,summary:null,text:null,topMargin:tA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t_,disableRemotePlayback:t_,prefix:null,property:null,results:tA,security:null,unselectable:null},space:"html",transform:tO}),tU=tR({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tP,accentHeight:tA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tA,amplitude:tA,arabicForm:null,ascent:tA,attributeName:null,attributeType:null,azimuth:tA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tA,by:null,calcMode:null,capHeight:tA,className:tE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tA,diffuseConstant:tA,direction:null,display:null,dur:null,divisor:tA,dominantBaseline:null,download:t_,dx:null,dy:null,edgeMode:null,editable:null,elevation:tA,enableBackground:null,end:null,event:null,exponent:tA,externalResourcesRequired:null,fill:null,fillOpacity:tA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tN,g2:tN,glyphName:tN,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tA,horizOriginX:tA,horizOriginY:tA,id:null,ideographic:tA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tA,k:tA,k1:tA,k2:tA,k3:tA,k4:tA,kernelMatrix:tP,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tA,overlineThickness:tA,paintOrder:null,panose1:null,path:null,pathLength:tA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tA,pointsAtY:tA,pointsAtZ:tA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tP,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tP,rev:tP,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tP,requiredFeatures:tP,requiredFonts:tP,requiredFormats:tP,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tA,specularExponent:tA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tA,strikethroughThickness:tA,string:null,stroke:null,strokeDashArray:tP,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tA,strokeOpacity:tA,strokeWidth:null,style:null,surfaceScale:tA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tP,tabIndex:tA,tableValues:null,target:null,targetX:tA,targetY:tA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tP,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tA,underlineThickness:tA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tA,values:null,vAlphabetic:tA,vMathematical:tA,vectorEffect:null,vHanging:tA,vIdeographic:tA,version:null,vertAdvY:tA,vertOriginX:tA,vertOriginY:tA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:t$}),tD=tR({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tG=tR({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tO}),tF=tR({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tj=tw([tM,tB,tD,tG,tF],"html"),tW=tw([tM,tU,tD,tG,tF],"svg"),tH={}.hasOwnProperty,tz=/["&'<>`]/g,tq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tV=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tX=/[|\\{}()[\]^$+*?.]/g,tQ=new WeakMap,tK=/[\dA-Fa-f]/,tJ=/\d/,tY=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tZ={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},t0=["cent","copy","divide","gt","lt","not","para","times"],t1={}.hasOwnProperty,t2={};for(a in tZ)t1.call(tZ,a)&&(t2[tZ[a]]=a);let t5=/[^\dA-Za-z]/;function t3(e,t,n){var r,i;let a,o,s=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!tK.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(o=function(e,t,n,r){let i=String.fromCharCode(e);if(t1.call(t2,i)){let e=t2[i],a="&"+e;return n&&tY.includes(e)&&!t0.includes(e)&&(!r||t&&61!==t&&t5.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!tJ.test(String.fromCharCode(t))?r:r+";");a.length<s.length&&(s=a)}return o&&(!n.useShortestReferences||o.length<s.length)?o:s}function t8(e,t){let n;var r,i=e,a=Object.assign({format:t3},t);if(i=i.replace(a.subset?(r=a.subset,(n=tQ.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(tX,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),tQ.set(r,n)),n):tz,o),a.subset||a.escapeOnly)return i;return i.replace(tq,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(tV,o);function o(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let t6=/^>|^->|<!--|-->|--!>|<!-$/g,t9=[">"],t4=["<",">"];function t7(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}let ne=/[A-Z]/g,nt=/-[a-z]/g,nn=/^data[-\w.:]+$/i;function nr(e){return"-"+e.toLowerCase()}function ni(e){return e.charAt(1).toUpperCase()}let na=/[ \t\n\f\r]/g;function no(e){return"object"==typeof e?"text"===e.type&&ns(e.value):ns(e)}function ns(e){return""===e.replace(na,"")}let nl=nh(1),nu=nh(-1),nc=[];function nh(e){return function(t,n,r){let i=t?t.children:nc,a=(n||0)+e,o=i[a];if(!r)for(;o&&no(o);)a+=e,o=i[a];return o}}let np={}.hasOwnProperty;function nd(e){return function(t,n,r){return np.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let nf=nd({body:function(e,t,n){let r=nl(n,t);return!r||"comment"!==r.type},caption:ng,colgroup:ng,dd:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=nl(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:ng,html:function(e,t,n){let r=nl(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=nl(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:nm,rt:nm,tbody:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:ny,tfoot:function(e,t,n){return!nl(n,t)},th:ny,thead:function(e,t,n){let r=nl(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function ng(e,t,n){let r=nl(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&no(r.value.charAt(0)))}function nm(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function ny(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let nb=nd({body:function(e){let t=nl(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&no(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=nu(n,t),i=nl(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&nf(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=nl(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=nu(n,t),i=nl(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&nf(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),nw={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".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("")]]},nk=["<","&"];function nC(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:t8(e.value,Object.assign({},r.settings.characterReferences,{subset:nk}))}let nv=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&tH.call(t,e)){let n=String(t[e]);i=tH.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("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?"<?"+t8(e.value,Object.assign({},r.settings.characterReferences,{subset:t9}))+">":"\x3c!--"+e.value.replace(t6,function(e){return t8(e,Object.assign({},r.settings.characterReferences,{subset:t4}))})+"--\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,a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=tW);let u=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=function(e,t){let n=tk(t),r=t,i=tC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nn.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nt,ni);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nt.test(e)){let n=e.replace(ne,nr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tT}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=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=t8(i.attribute,Object.assign({},e.settings.characterReferences,{subset:nw.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=t8(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:nw.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&t7(n,s)>t7(n,e.alternative)&&(s=e.alternative),r=s+t8(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?nw.single:nw.double)[a][o],attribute:!0}))+s),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),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(s=!1),!u&&o&&nb(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&nf(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:nC(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:nC}}),n_={},nS={},nx=[];function nA(e,t,n){return nv(e,t,n,this)}function nE(e){let t=[],n=e&&e.children||nx,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function nN(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}let nP="light-dark()",nL=["color","background-color"];function nI(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&er.Italic&&(t["font-style"]="italic"),e.fontStyle&er.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&er.Underline&&n.push("underline"),e.fontStyle&er.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function nT(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let nR=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let i,a={lines:i=e7(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,r=0;for(let e of i){if(t<e.length)break;t-=e.length,r++}return{line:r,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=i[t].length;return n+t}};function r(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new H(`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 H(`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 H(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:a.posToIndex(e.line,n)}}}let o=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(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 H(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new H(`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){if(this.options.decorations?.length){var n;let r;return(r=Array.from((n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))instanceof Set?n:new Set(n)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,i=[];for(let r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),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 H(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],s="",l=-1,u=-1;if(0===t&&(l=0),0===n&&(u=0),n===1/0&&(u=o.children.length),-1===l||-1===u)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===u&&s.length===n&&(u=e+1);if(-1===l)throw new H(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new H(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let c=o.children.slice(l,u);if(i.alwaysWrap||c.length!==o.children.length)if(i.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};a(e,i,"wrapper"),o.children.splice(l,c.length,e)}else a(c[0],i,"token");else a(o,i,"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&&nN(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)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(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")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function nM(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,...nR]}var n$=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],nO={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nB(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 nU={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 nD={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 nG(e,t,n={}){let r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!e6(r)&&!e4(i)&&"ansi"===r){let r,a,o,s,l,u,c,{theme:h}=e.setTheme(i);return r=e5(h,n),a=e7(t),o=function(e=nU){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<n$.length;n++)t.push(e[n$[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 a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(n$.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,h.colors?.[t]||nD[e]]}))),s=null,l=null,u=new Set,c={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:l,decorations:new Set(u)}),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)nO[r]&&t.push({type:"setDecoration",value:nO[r]});else if(r<=29){let e=nO[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:n$[r-30]}});else if(38===r){let n=nB(e);n&&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:n$[r-40]}});else if(48===r){let n=nB(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:n$[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:n$[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(s=null,l=null,u.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?l=null:"resetDecoration"===t.type&&u.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?l=t.value:"setDecoration"===t.type&&u.add(t.value)}n=r.position}while(n<e.length);return t}},a.map(e=>c.parse(e[0]).map(t=>{let n,i;t.decorations.has("reverse")?(n=t.background?o.value(t.background):h.bg,i=t.foreground?o.value(t.foreground):h.fg):(n=t.foreground?o.value(t.foreground):h.fg,i=t.background?o.value(t.background):void 0),n=e3(n,r),i=e3(i,r),t.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let a=er.None;return t.decorations.has("bold")&&(a|=er.Bold),t.decorations.has("italic")&&(a|=er.Italic),t.decorations.has("underline")&&(a|=er.Underline),t.decorations.has("strikethrough")&&(a|=er.Strikethrough),{content:t.value,offset:e[1],color:n,bgColor:i,fontStyle:a}}))}return td(e,t,n)}function nF(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===p.length)throw new H("`themes` option must not be empty");let d=tm(e,t,n,nG);if(l=th(d),u&&nP!==u&&!p.find(e=>e.color===u))throw new H(`\`themes\` option must contain the defaultColor key \`${u}\``);let f=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);a=d.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>nI(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&nL.includes(a))if(r===nP&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new H('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]=`light-dark(${o[e][a]||"inherit"}, ${o[r][a]||"inherit"})`,"css-vars"===i&&(l[u(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[u(n,a)]=s)}}),a.htmlStyle=l,a})(e,g,c,u,h))),l&&tc(a,l);let m=p.map(e=>e5(e.theme,n));i=nj(p,f,m,c,u,"fg",h),r=nj(p,f,m,c,u,"bg",h),o=`shiki-themes ${f.map(e=>e.name).join(" ")}`,s=u?void 0:[i,r].join(";")}else if("theme"in n){let s=e5(n.theme,n);a=nG(e,t,n);let u=e.getTheme(n.theme);r=e3(u.bg,s),i=e3(u.fg,s),o=u.name,l=th(a)}else throw new H("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function nj(e,t,n,r,i,a,o){return e.map((s,l)=>{let u=e3(t[l][a],n[l])||"inherit",c=`${r+s.color}${"bg"===a?"-bg":""}:${u}`;if(0===l&&i){if(i===nP&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new H('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${e3(t[r][a],n[r])||"inherit"}, ${e3(t[i][a],n[i])||"inherit"});${c}`}return u}return"css-vars"===o?c:null}).filter(e=>!!e).join(";")}function nW(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>nW(e,t,n),codeToTokens:(t,n)=>nF(e,t,n)}){let i=t;for(let e of nM(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=nF(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;!0===h?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&er.Underline||i.fontStyle&er.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===h&&(a=a.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 a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),p&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=nT(e.htmlStyle||nI(e)),i=nT(n.htmlStyle||nI(n)),a=e.fontStyle&&(e.fontStyle&er.Underline||e.fontStyle&er.Strikethrough),o=n.fontStyle&&(n.fontStyle&er.Underline||n.fontStyle&er.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let d={...r,get source(){return i}};for(let e of nM(n))a=e.tokens?.call(d,a)||a;return function(e,t,n,r=th(e)){let i=nM(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(u.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(u[e]=n);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:a},p=[],d={...n,structure:s,addClassToHast:nN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return c},get code(){return h},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=nT(a.htmlStyle||nI(a));for(let o of(l&&(e.properties.style=l),i))e=o?.span?.call(d,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(d,n,t+1)||n;p.push(n),a.push(n)}else"inline"===s&&p.push(n)}),"classic"===s){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;o.children.push(c)}else if("inline"===s){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of o.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(d,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&o.children.push(...t.children)}}let f=o;for(let e of i)f=e?.root?.call(d,f)||f;return r&&tc(f,r),f}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??u)},d,c)}let nH=function(e,t){let n=t||n_,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:nA,all:nE,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||ty,characterReferences:n.characterReferences||nS,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?tW:tj,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function nz(e){let t=await tl(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return th(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(e6(i)||e4(a))throw new H("Plain language does not have grammar state");if("ansi"===i)throw new H("ANSI language does not have grammar state");let{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new tp(tf(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>nG(t,e,n),codeToTokensWithThemes:(e,n)=>tm(t,e,n),codeToTokens:(e,n)=>nF(t,e,n),codeToHast:(e,n)=>nW(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>nW(e,t,n),codeToTokens:(t,n)=>nF(e,t,n)},i=nH(nW(e,t,n,r));for(let e of nM(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var nq=b({bundledLanguages:()=>S,bundledLanguagesAlias:()=>_,bundledLanguagesBase:()=>v,bundledLanguagesInfo:()=>C,bundledThemes:()=>A,bundledThemesInfo:()=>x,codeToHast:()=>nQ,codeToHtml:()=>nX,codeToTokens:()=>nK,codeToTokensBase:()=>nJ,codeToTokensWithThemes:()=>nY,createHighlighter:()=>nV,getLastGrammarState:()=>n0,getSingletonHighlighter:()=>nZ});let nV=(o=(h={langs:S,themes:A,engine:()=>(0,W.createOnigurumaEngine)(Promise.all([n.e(3616),n.e(1227)]).then(n.bind(n,71227)))}).langs,s=h.themes,l=h.engine,async function(e){function t(t){if("string"==typeof t){if(e9(t=e.langAlias?.[t]||t))return[];let n=o[t];if(!n)throw new H(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(e4(e))return"none";if("string"==typeof e){let t=s[e];if(!t)throw new H(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),a=await nz({engine:e.engine??l(),...e,themes:r,langs:i});return{...a,loadLanguage:(...e)=>a.loadLanguage(...e.map(t)),loadTheme:(...e)=>a.loadTheme(...e.map(n)),getBundledLanguages:()=>o,getBundledThemes:()=>s}}),{codeToHtml:nX,codeToHast:nQ,codeToTokens:nK,codeToTokensBase:nJ,codeToTokensWithThemes:nY,getSingletonHighlighter:nZ,getLastGrammarState:n0}=function(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)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),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)}}(nV,{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}});var n1=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function n2(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let n5=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),n3=String.raw;function n8(e,t){if(null==e)throw Error(t??"Value expected");return e}let n6=n3`\[\^?`,n9=`c.? | C(?:-.?)?|${n3`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${n3`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${n3`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${n3`o\{[^\}]*\}?`}|${n3`\d{1,3}`}`,n4=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,n7=RegExp(n3`
2
2
  \\ (?:
3
3
  ${n9}
4
4
  | [gk]<[^>]*>?