mastra 0.2.0-alpha.149 → 0.2.0-alpha.150

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.
@@ -606,6 +606,8 @@ var createMastraProject = async () => {
606
606
  await exec2(`echo node_modules >> .gitignore`);
607
607
  await exec2(`echo dist >> .gitignore`);
608
608
  await exec2(`echo .mastra >> .gitignore`);
609
+ await exec2(`echo .env.development >> .gitignore`);
610
+ await exec2(`echo .env >> .gitignore`);
609
611
  s2.stop(".gitignore added");
610
612
  p.outro("Project created successfully");
611
613
  console.log("");
@@ -1 +1 @@
1
- export { create } from '../../chunk-AKW5JN32.js';
1
+ export { create } from '../../chunk-LXTKSDP6.js';
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #! /usr/bin/env node
2
2
  import { PosthogAnalytics } from './chunk-K5HPNH5H.js';
3
3
  export { PosthogAnalytics } from './chunk-K5HPNH5H.js';
4
- import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, FileService, logger } from './chunk-AKW5JN32.js';
5
- export { create } from './chunk-AKW5JN32.js';
4
+ import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, FileService, logger } from './chunk-LXTKSDP6.js';
5
+ export { create } from './chunk-LXTKSDP6.js';
6
6
  import { Command } from 'commander';
7
7
  import 'picocolors';
8
8
  import { join, dirname } from 'node:path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mastra",
3
- "version": "0.2.0-alpha.149",
3
+ "version": "0.2.0-alpha.150",
4
4
  "license": "MIT",
5
5
  "description": "cli for mastra",
6
6
  "type": "module",
@@ -55,8 +55,8 @@
55
55
  "yocto-spinner": "^0.1.1",
56
56
  "zod": "^3.24.1",
57
57
  "zod-to-json-schema": "^3.24.1",
58
- "@mastra/core": "^0.2.0-alpha.92",
59
- "@mastra/deployer": "^0.1.0-alpha.41"
58
+ "@mastra/deployer": "^0.1.0-alpha.42",
59
+ "@mastra/core": "^0.2.0-alpha.93"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/express": "^5.0.0",
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
2
- var qt=Object.defineProperty;var zt=(r,e,t)=>e in r?qt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var p=(r,e,t)=>zt(r,typeof e!="symbol"?e+"":e,t);import{_ as l,w as Me,s as ht,f as Jt,a as Kt,b as Qt,c as Je,h as Xt}from"./index-4_HS8ieP.js";const Ke={}.hasOwnProperty;function Yt(r,e){const t=e;function n(i,...s){let a=n.invalid;const c=n.handlers;if(i&&Ke.call(i,r)){const o=String(i[r]);a=Ke.call(c,o)?c[o]:n.unknown}if(a)return a.call(this,i,...s)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}const ft=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-LfdN0zeE.js").then(r=>r.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>l(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-BVz_zdnA.js"),[])}],Zt=Object.fromEntries(ft.map(r=>[r.id,r.import])),en=Object.fromEntries(ft.flatMap(r=>{var e;return((e=r.aliases)==null?void 0:e.map(t=>[t,r.import]))||[]})),tn={...Zt,...en},nn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],rn=Object.fromEntries(nn.map(r=>[r.id,r.import]));let B=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Be=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function sn(){return 2147483648}function an(){return typeof performance<"u"?performance.now():Date.now()}const on=(r,e)=>r+(e-r%e)%e;async function cn(r){let e,t;const n={};function i(h){t=h,n.HEAPU8=new Uint8Array(h),n.HEAPU32=new Uint32Array(h)}function s(h,_,T){n.HEAPU8.copyWithin(h,_,_+T)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function c(h){const _=n.HEAPU8.length;h=h>>>0;const T=sn();if(h>T)return!1;for(let E=1;E<=4;E*=2){let g=_*(1+.2/E);g=Math.min(g,h+100663296);const y=Math.min(T,on(Math.max(h,g),65536));if(a(y))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,_,T=1024){const E=_+T;let g=_;for(;h[g]&&!(g>=E);)++g;if(g-_>16&&h.buffer&&o)return o.decode(h.subarray(_,g));let y="";for(;_<g;){let R=h[_++];if(!(R&128)){y+=String.fromCharCode(R);continue}const A=h[_++]&63;if((R&224)===192){y+=String.fromCharCode((R&31)<<6|A);continue}const L=h[_++]&63;if((R&240)===224?R=(R&15)<<12|A<<6|L:R=(R&7)<<18|A<<12|L<<6|h[_++]&63,R<65536)y+=String.fromCharCode(R);else{const C=R-65536;y+=String.fromCharCode(55296|C>>10,56320|C&1023)}}return y}function d(h,_){return h?u(n.HEAPU8,h,_):""}const m={emscripten_get_now:an,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function f(){const _=await r({env:m,wasi_snapshot_preview1:m});e=_.memory,i(e.buffer),Object.assign(n,_),n.UTF8ToString=d}return await f(),n}var ln=Object.defineProperty,un=(r,e,t)=>e in r?ln(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,b=(r,e,t)=>(un(r,typeof e!="symbol"?e+"":e,t),t);let S=null;function dn(r){throw new Be(r.UTF8ToString(r.getLastOnigError()))}class ye{constructor(e){b(this,"utf16Length"),b(this,"utf8Length"),b(this,"utf16Value"),b(this,"utf8Value"),b(this,"utf16OffsetToUtf8"),b(this,"utf8OffsetToUtf16");const t=e.length,n=ye._utf8ByteLength(e),i=n!==t,s=i?new Uint32Array(t+1):null;i&&(s[t]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=t);const c=new Uint8Array(n);let o=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,f=!1;if(d>=55296&&d<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(m=(d-55296<<10)+65536|h-56320,f=!0)}i&&(s[u]=o,f&&(s[u+1]=o),m<=127?a[o+0]=u:m<=2047?(a[o+0]=u,a[o+1]=u):m<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),m<=127?c[o++]=m:m<=2047?(c[o++]=192|(m&1984)>>>6,c[o++]=128|(m&63)>>>0):m<=65535?(c[o++]=224|(m&61440)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0):(c[o++]=240|(m&1835008)>>>18,c[o++]=128|(m&258048)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0),f&&u++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){const s=e.charCodeAt(n);let a=s,c=!1;if(s>=55296&&s<=56319&&n+1<i){const o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&n++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const N=class{constructor(r){if(b(this,"id",++N.LAST_ID),b(this,"_onigBinding"),b(this,"content"),b(this,"utf16Length"),b(this,"utf8Length"),b(this,"utf16OffsetToUtf8"),b(this,"utf8OffsetToUtf16"),b(this,"ptr"),!S)throw new Be("Must invoke loadWasm first.");this._onigBinding=S,this.content=r;const e=new ye(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!N._sharedPtrInUse?(N._sharedPtr||(N._sharedPtr=S.omalloc(1e4)),N._sharedPtrInUse=!0,S.HEAPU8.set(e.utf8Value,N._sharedPtr),this.ptr=N._sharedPtr):this.ptr=e.createString(S)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===N._sharedPtr?N._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let ee=N;b(ee,"LAST_ID",0);b(ee,"_sharedPtr",0);b(ee,"_sharedPtrInUse",!1);class mn{constructor(e){if(b(this,"_onigBinding"),b(this,"_ptr"),!S)throw new Be("Must invoke loadWasm first.");const t=[],n=[];for(let c=0,o=e.length;c<o;c++){const u=new ye(e[c]);t[c]=u.createString(S),n[c]=u.utf8Length}const i=S.omalloc(4*e.length);S.HEAPU32.set(t,i/4);const s=S.omalloc(4*e.length);S.HEAPU32.set(n,s/4);const a=S.createOnigScanner(i,s,e.length);for(let c=0,o=e.length;c<o;c++)S.ofree(t[c]);S.ofree(s),S.ofree(i),a===0&&dn(S),this._onigBinding=S,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new ee(e);const s=this._findNextMatchSync(e,t,!1,i);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],d=c[o++],m=[];for(let f=0;f<d;f++){const h=e.convertUtf8OffsetToUtf16(c[o++]),_=e.convertUtf8OffsetToUtf16(c[o++]);m[f]={start:h,end:_,length:_-h}}return{index:u,captureIndices:m}}}function hn(r){return typeof r.instantiator=="function"}function fn(r){return typeof r.default=="function"}function pn(r){return typeof r.data<"u"}function _n(r){return typeof Response<"u"&&r instanceof Response}function gn(r){var e;return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,r))||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let re;function En(r){if(re)return re;async function e(){S=await cn(async t=>{let n=r;return n=await n,typeof n=="function"&&(n=await n(t)),typeof n=="function"&&(n=await n(t)),hn(n)?n=await n.instantiator(t):fn(n)?n=await n.default(t):(pn(n)&&(n=n.data),_n(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await yn(n)(t):n=await Rn(n)(t):gn(n)?n=await Pe(n)(t):n instanceof WebAssembly.Module?n=await Pe(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Pe(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return re=e(),re}function Pe(r){return e=>WebAssembly.instantiate(r,e)}function yn(r){return e=>WebAssembly.instantiateStreaming(r,e)}function Rn(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Tn;function An(){return Tn}async function pt(r){return r&&await En(r),{createScanner(e){return new mn(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new ee(e)}}}function Ln(r){return je(r)}function je(r){return Array.isArray(r)?Pn(r):r instanceof RegExp?r:typeof r=="object"?bn(r):r}function Pn(r){let e=[];for(let t=0,n=r.length;t<n;t++)e[t]=je(r[t]);return e}function bn(r){let e={};for(let t in r)e[t]=je(r[t]);return e}function _t(r,...e){return e.forEach(t=>{for(let n in t)r[n]=t[n]}),r}function gt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?gt(r.substring(0,r.length-1)):r.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ie=class{static hasCaptures(r){return r===null?!1:(be.lastIndex=0,be.test(r))}static replaceCaptures(r,e,t){return r.replace(be,(n,i,s,a)=>{let c=t[parseInt(i||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return n})}};function Et(r,e){return r<e?-1:r>e?1:0}function yt(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let i=0;i<t;i++){let s=Et(r[i],e[i]);if(s!==0)return s}return 0}return t-n}function Qe(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function Rt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Tt=class{constructor(r){p(this,"cache",new Map);this.fn=r}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},le=class{constructor(r,e,t){p(this,"_cachedMatchRoot",new Tt(r=>this._root.match(r)));this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(On(r),e)}static createFromParsedTheme(r,e){return Cn(r,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,n=this._cachedMatchRoot.get(e).find(i=>In(r.parent,i.parentScopes));return n?new At(n.fontStyle,n.foreground,n.background):null}},Ie=class oe{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new oe(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new oe(t,e[n]);return t}push(e){return new oe(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function In(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let n=e[t],i=!1;if(n===">"){if(t===e.length-1)return!1;n=e[++t],i=!0}for(;r&&!Sn(r.scopeName,n);){if(i)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Sn(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var At=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function On(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],n=0;for(let i=0,s=e.length;i<s;i++){let a=e[i];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let m=a.settings.fontStyle.split(" ");for(let f=0,h=m.length;f<h;f++)switch(m[f]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&Qe(a.settings.foreground)&&(u=a.settings.foreground);let d=null;typeof a.settings.background=="string"&&Qe(a.settings.background)&&(d=a.settings.background);for(let m=0,f=c.length;m<f;m++){let _=c[m].trim().split(" "),T=_[_.length-1],E=null;_.length>1&&(E=_.slice(0,_.length-1),E.reverse()),t[n++]=new wn(T,E,i,o,u,d)}}return t}var wn=class{constructor(r,e,t,n,i,s){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=s}},M=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(M||{});function Cn(r,e){r.sort((o,u)=>{let d=Et(o.scope,u.scope);return d!==0||(d=yt(o.parentScopes,u.parentScopes),d!==0)?d:o.index-u.index});let t=0,n="#000000",i="#ffffff";for(;r.length>=1&&r[0].scope==="";){let o=r.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(n=o.foreground),o.background!==null&&(i=o.background)}let s=new kn(e),a=new At(t,s.getId(n),s.getId(i)),c=new Nn(new ke(0,null,-1,0,0),[]);for(let o=0,u=r.length;o<u;o++){let d=r[o];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new le(s,a,c)}var kn=class{constructor(r){p(this,"_isFrozen");p(this,"_lastColorId");p(this,"_id2color");p(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Dn=Object.freeze([]),ke=class Lt{constructor(e,t,n,i,s){p(this,"scopeDepth");p(this,"parentScopes");p(this,"fontStyle");p(this,"foreground");p(this,"background");this.scopeDepth=e,this.parentScopes=t||Dn,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Nn=class De{constructor(e,t=[],n={}){p(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,t.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=t.parentScopes.length);){const s=t.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,n,i,s,a){if(t===""){this._doInsertHere(e,n,i,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let d;this._children.hasOwnProperty(o)?d=this._children[o]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[o]=d),d.insert(e+1,u,n,i,s,a)}_doInsertHere(e,t,n,i,s){if(t===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(yt(o.parentScopes,t)===0){o.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,n,i,s))}},H=class k{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=k.getLanguageId(e),n=k.getTokenType(e),i=k.getFontStyle(e),s=k.getForeground(e),a=k.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:i,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,n,i,s,a,c){let o=k.getLanguageId(e),u=k.getTokenType(e),d=k.containsBalancedBrackets(e)?1:0,m=k.getFontStyle(e),f=k.getForeground(e),h=k.getBackground(e);return t!==0&&(o=t),n!==8&&(u=n),i!==null&&(d=i?1:0),s!==-1&&(m=s),a!==0&&(f=a),c!==0&&(h=c),(o<<0|u<<8|d<<10|m<<11|f<<15|h<<24)>>>0}};function ue(r,e){const t=[],n=Vn(r);let i=n.next();for(;i!==null;){let o=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(t.push({matcher:u,priority:o}),i!==",")break;i=n.next()}return t;function s(){if(i==="-"){i=n.next();const o=s();return u=>!!o&&!o(u)}if(i==="("){i=n.next();const o=c();return i===")"&&(i=n.next()),o}if(Xe(i)){const o=[];do o.push(i),i=n.next();while(Xe(i));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return d=>o.every(m=>m(d))}function c(){const o=[];let u=a();for(;u&&(o.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return d=>o.some(m=>m(d))}}function Xe(r){return!!r&&!!r.match(/[\w\.:]+/)}function Vn(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function Pt(r){typeof r.dispose=="function"&&r.dispose()}var Q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},vn=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},xn=class{constructor(){p(this,"_references",[]);p(this,"_seenReferenceKeys",new Set);p(this,"visitedRule",new Set)}get references(){return this._references}add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Gn=class{constructor(r,e){p(this,"seenFullScopeRequests",new Set);p(this,"seenPartialScopeRequests",new Set);p(this,"Q");this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Q(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new xn;for(const t of r)Mn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Mn(r,e,t,n){const i=t.lookup(r.scopeName);if(!i){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);r instanceof Q?ce({baseGrammar:s,selfGrammar:i},n):Ne(r.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const a=t.injections(r.scopeName);if(a)for(const c of a)n.add(new Q(c))}function Ne(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];de([n],e,t)}}function ce(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&de(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&de(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function de(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const i=n.repository?_t({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&de(n.patterns,{...e,repository:i},t);const s=n.include;if(!s)continue;const a=bt(s);switch(a.kind){case 0:ce({...e,selfGrammar:e.baseGrammar},t);break;case 1:ce(e,t);break;case 2:Ne(a.ruleName,{...e,repository:i},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};a.kind===4?Ne(a.ruleName,o,t):ce(o,t)}else a.kind===4?t.add(new vn(a.scopeName,a.ruleName)):t.add(new Q(a.scopeName));break}}}var Bn=class{constructor(){p(this,"kind",0)}},jn=class{constructor(){p(this,"kind",1)}},$n=class{constructor(r){p(this,"kind",2);this.ruleName=r}},Wn=class{constructor(r){p(this,"kind",3);this.scopeName=r}},Un=class{constructor(r,e){p(this,"kind",4);this.scopeName=r,this.ruleName=e}};function bt(r){if(r==="$base")return new Bn;if(r==="$self")return new jn;const e=r.indexOf("#");if(e===-1)return new Wn(r);if(e===0)return new $n(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new Un(t,n)}}var Hn=/\\(\d+)/,Ye=/\\(\d+)/g,Fn=-1,It=-2;var te=class{constructor(r,e,t,n){p(this,"$location");p(this,"id");p(this,"_nameIsCapturing");p(this,"_name");p(this,"_contentNameIsCapturing");p(this,"_contentName");this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=ie.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=ie.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${gt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:ie.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ie.replaceCaptures(this._contentName,r,e)}},qn=class extends te{constructor(e,t,n,i,s){super(e,t,n,i);p(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},zn=class extends te{constructor(e,t,n,i,s){super(e,t,n,null);p(this,"_match");p(this,"captures");p(this,"_cachedCompiledPatterns");this._match=new X(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ze=class extends te{constructor(e,t,n,i,s){super(e,t,n,i);p(this,"hasMissingPatterns");p(this,"patterns");p(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends te{constructor(e,t,n,i,s,a,c,o,u,d){super(e,t,n,i);p(this,"_begin");p(this,"beginCaptures");p(this,"_end");p(this,"endHasBackReferences");p(this,"endCaptures");p(this,"applyEndPatternLast");p(this,"hasMissingPatterns");p(this,"patterns");p(this,"_cachedCompiledPatterns");this._begin=new X(s,this.id),this.beginCaptures=a,this._end=new X(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.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,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},me=class extends te{constructor(e,t,n,i,s,a,c,o,u){super(e,t,n,i);p(this,"_begin");p(this,"beginCaptures");p(this,"whileCaptures");p(this,"_while");p(this,"whileHasBackReferences");p(this,"hasMissingPatterns");p(this,"patterns");p(this,"_cachedCompiledPatterns");p(this,"_cachedCompiledWhilePatterns");this._begin=new X(s,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new X(c,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},St=class O{static createCaptureRule(e,t,n,i,s){return e.registerRule(a=>new qn(t,a,n,i,s))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new zn(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=_t({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Ze(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(s,t,n))}return e.while?new me(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,t,n),O._compilePatterns(e.patterns,t,n)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,O._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let i=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=O.getCompiledRuleId(e[a],t,n)),i[c]=O.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return i}static _compilePatterns(e,t,n){let i=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=bt(c.include);switch(u.kind){case 0:case 1:o=O.getCompiledRuleId(n[c.include],t,n);break;case 2:let d=n[u.ruleName];d&&(o=O.getCompiledRuleId(d,t,n));break;case 3:case 4:const m=u.scopeName,f=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(m,n);if(h)if(f){let _=h.repository[f];_&&(o=O.getCompiledRuleId(_,t,h.repository))}else o=O.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else o=O.getCompiledRuleId(c,t,n);if(o!==-1){const u=t.getRule(o);let d=!1;if((u instanceof Ze||u instanceof Ve||u instanceof me)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},X=class Ot{constructor(e,t){p(this,"source");p(this,"ruleId");p(this,"hasAnchor");p(this,"hasBackReferences");p(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],a=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Hn.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=t.map(i=>e.substring(i.start,i.end));return Ye.lastIndex=0,this.source.replace(Ye,(i,s)=>Rt(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],n=[],i=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,n[s]=c,i[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="￿",t[s+1]="￿",n[s+1]="A",i[s+1]="A"):o==="G"?(e[s+1]="￿",t[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=o,t[s+1]=o,n[s+1]=o,i[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Y=class{constructor(){p(this,"_items");p(this,"_hasAnchors");p(this,"_cached");p(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new et(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let n=this._items.map(i=>i.resolveAnchors(e,t));return new et(r,n,this._items.map(i=>i.ruleId))}},et=class{constructor(r,e,t){p(this,"scanner");this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
2
+ var qt=Object.defineProperty;var zt=(r,e,t)=>e in r?qt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var p=(r,e,t)=>zt(r,typeof e!="symbol"?e+"":e,t);import{_ as l,w as Me,s as ht,f as Jt,a as Kt,b as Qt,c as Je,h as Xt}from"./index-BuPwogkH.js";const Ke={}.hasOwnProperty;function Yt(r,e){const t=e;function n(i,...s){let a=n.invalid;const c=n.handlers;if(i&&Ke.call(i,r)){const o=String(i[r]);a=Ke.call(c,o)?c[o]:n.unknown}if(a)return a.call(this,i,...s)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}const ft=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-LfdN0zeE.js").then(r=>r.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>l(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-BVz_zdnA.js"),[])}],Zt=Object.fromEntries(ft.map(r=>[r.id,r.import])),en=Object.fromEntries(ft.flatMap(r=>{var e;return((e=r.aliases)==null?void 0:e.map(t=>[t,r.import]))||[]})),tn={...Zt,...en},nn=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],rn=Object.fromEntries(nn.map(r=>[r.id,r.import]));let B=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Be=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function sn(){return 2147483648}function an(){return typeof performance<"u"?performance.now():Date.now()}const on=(r,e)=>r+(e-r%e)%e;async function cn(r){let e,t;const n={};function i(h){t=h,n.HEAPU8=new Uint8Array(h),n.HEAPU32=new Uint32Array(h)}function s(h,_,T){n.HEAPU8.copyWithin(h,_,_+T)}function a(h){try{return e.grow(h-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function c(h){const _=n.HEAPU8.length;h=h>>>0;const T=sn();if(h>T)return!1;for(let E=1;E<=4;E*=2){let g=_*(1+.2/E);g=Math.min(g,h+100663296);const y=Math.min(T,on(Math.max(h,g),65536));if(a(y))return!0}return!1}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,_,T=1024){const E=_+T;let g=_;for(;h[g]&&!(g>=E);)++g;if(g-_>16&&h.buffer&&o)return o.decode(h.subarray(_,g));let y="";for(;_<g;){let R=h[_++];if(!(R&128)){y+=String.fromCharCode(R);continue}const A=h[_++]&63;if((R&224)===192){y+=String.fromCharCode((R&31)<<6|A);continue}const L=h[_++]&63;if((R&240)===224?R=(R&15)<<12|A<<6|L:R=(R&7)<<18|A<<12|L<<6|h[_++]&63,R<65536)y+=String.fromCharCode(R);else{const C=R-65536;y+=String.fromCharCode(55296|C>>10,56320|C&1023)}}return y}function d(h,_){return h?u(n.HEAPU8,h,_):""}const m={emscripten_get_now:an,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function f(){const _=await r({env:m,wasi_snapshot_preview1:m});e=_.memory,i(e.buffer),Object.assign(n,_),n.UTF8ToString=d}return await f(),n}var ln=Object.defineProperty,un=(r,e,t)=>e in r?ln(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,b=(r,e,t)=>(un(r,typeof e!="symbol"?e+"":e,t),t);let S=null;function dn(r){throw new Be(r.UTF8ToString(r.getLastOnigError()))}class ye{constructor(e){b(this,"utf16Length"),b(this,"utf8Length"),b(this,"utf16Value"),b(this,"utf8Value"),b(this,"utf16OffsetToUtf8"),b(this,"utf8OffsetToUtf16");const t=e.length,n=ye._utf8ByteLength(e),i=n!==t,s=i?new Uint32Array(t+1):null;i&&(s[t]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=t);const c=new Uint8Array(n);let o=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,f=!1;if(d>=55296&&d<=56319&&u+1<t){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(m=(d-55296<<10)+65536|h-56320,f=!0)}i&&(s[u]=o,f&&(s[u+1]=o),m<=127?a[o+0]=u:m<=2047?(a[o+0]=u,a[o+1]=u):m<=65535?(a[o+0]=u,a[o+1]=u,a[o+2]=u):(a[o+0]=u,a[o+1]=u,a[o+2]=u,a[o+3]=u)),m<=127?c[o++]=m:m<=2047?(c[o++]=192|(m&1984)>>>6,c[o++]=128|(m&63)>>>0):m<=65535?(c[o++]=224|(m&61440)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0):(c[o++]=240|(m&1835008)>>>18,c[o++]=128|(m&258048)>>>12,c[o++]=128|(m&4032)>>>6,c[o++]=128|(m&63)>>>0),f&&u++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){const s=e.charCodeAt(n);let a=s,c=!1;if(s>=55296&&s<=56319&&n+1<i){const o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(a=(s-55296<<10)+65536|o-56320,c=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,c&&n++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const N=class{constructor(r){if(b(this,"id",++N.LAST_ID),b(this,"_onigBinding"),b(this,"content"),b(this,"utf16Length"),b(this,"utf8Length"),b(this,"utf16OffsetToUtf8"),b(this,"utf8OffsetToUtf16"),b(this,"ptr"),!S)throw new Be("Must invoke loadWasm first.");this._onigBinding=S,this.content=r;const e=new ye(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!N._sharedPtrInUse?(N._sharedPtr||(N._sharedPtr=S.omalloc(1e4)),N._sharedPtrInUse=!0,S.HEAPU8.set(e.utf8Value,N._sharedPtr),this.ptr=N._sharedPtr):this.ptr=e.createString(S)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===N._sharedPtr?N._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let ee=N;b(ee,"LAST_ID",0);b(ee,"_sharedPtr",0);b(ee,"_sharedPtrInUse",!1);class mn{constructor(e){if(b(this,"_onigBinding"),b(this,"_ptr"),!S)throw new Be("Must invoke loadWasm first.");const t=[],n=[];for(let c=0,o=e.length;c<o;c++){const u=new ye(e[c]);t[c]=u.createString(S),n[c]=u.utf8Length}const i=S.omalloc(4*e.length);S.HEAPU32.set(t,i/4);const s=S.omalloc(4*e.length);S.HEAPU32.set(n,s/4);const a=S.createOnigScanner(i,s,e.length);for(let c=0,o=e.length;c<o;c++)S.ofree(t[c]);S.ofree(s),S.ofree(i),a===0&&dn(S),this._onigBinding=S,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new ee(e);const s=this._findNextMatchSync(e,t,!1,i);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){const s=this._onigBinding,a=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(a===0)return null;const c=s.HEAPU32;let o=a/4;const u=c[o++],d=c[o++],m=[];for(let f=0;f<d;f++){const h=e.convertUtf8OffsetToUtf16(c[o++]),_=e.convertUtf8OffsetToUtf16(c[o++]);m[f]={start:h,end:_,length:_-h}}return{index:u,captureIndices:m}}}function hn(r){return typeof r.instantiator=="function"}function fn(r){return typeof r.default=="function"}function pn(r){return typeof r.data<"u"}function _n(r){return typeof Response<"u"&&r instanceof Response}function gn(r){var e;return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,r))||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let re;function En(r){if(re)return re;async function e(){S=await cn(async t=>{let n=r;return n=await n,typeof n=="function"&&(n=await n(t)),typeof n=="function"&&(n=await n(t)),hn(n)?n=await n.instantiator(t):fn(n)?n=await n.default(t):(pn(n)&&(n=n.data),_n(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await yn(n)(t):n=await Rn(n)(t):gn(n)?n=await Pe(n)(t):n instanceof WebAssembly.Module?n=await Pe(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Pe(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return re=e(),re}function Pe(r){return e=>WebAssembly.instantiate(r,e)}function yn(r){return e=>WebAssembly.instantiateStreaming(r,e)}function Rn(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Tn;function An(){return Tn}async function pt(r){return r&&await En(r),{createScanner(e){return new mn(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new ee(e)}}}function Ln(r){return je(r)}function je(r){return Array.isArray(r)?Pn(r):r instanceof RegExp?r:typeof r=="object"?bn(r):r}function Pn(r){let e=[];for(let t=0,n=r.length;t<n;t++)e[t]=je(r[t]);return e}function bn(r){let e={};for(let t in r)e[t]=je(r[t]);return e}function _t(r,...e){return e.forEach(t=>{for(let n in t)r[n]=t[n]}),r}function gt(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?gt(r.substring(0,r.length-1)):r.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ie=class{static hasCaptures(r){return r===null?!1:(be.lastIndex=0,be.test(r))}static replaceCaptures(r,e,t){return r.replace(be,(n,i,s,a)=>{let c=t[parseInt(i||s,10)];if(c){let o=e.substring(c.start,c.end);for(;o[0]===".";)o=o.substring(1);switch(a){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return n})}};function Et(r,e){return r<e?-1:r>e?1:0}function yt(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let i=0;i<t;i++){let s=Et(r[i],e[i]);if(s!==0)return s}return 0}return t-n}function Qe(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function Rt(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Tt=class{constructor(r){p(this,"cache",new Map);this.fn=r}get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},le=class{constructor(r,e,t){p(this,"_cachedMatchRoot",new Tt(r=>this._root.match(r)));this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(On(r),e)}static createFromParsedTheme(r,e){return Cn(r,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,n=this._cachedMatchRoot.get(e).find(i=>In(r.parent,i.parentScopes));return n?new At(n.fontStyle,n.foreground,n.background):null}},Ie=class oe{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new oe(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new oe(t,e[n]);return t}push(e){return new oe(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function In(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let n=e[t],i=!1;if(n===">"){if(t===e.length-1)return!1;n=e[++t],i=!0}for(;r&&!Sn(r.scopeName,n);){if(i)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function Sn(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var At=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function On(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],n=0;for(let i=0,s=e.length;i<s;i++){let a=e[i];if(!a.settings)continue;let c;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(a.scope)?c=a.scope:c=[""];let o=-1;if(typeof a.settings.fontStyle=="string"){o=0;let m=a.settings.fontStyle.split(" ");for(let f=0,h=m.length;f<h;f++)switch(m[f]){case"italic":o=o|1;break;case"bold":o=o|2;break;case"underline":o=o|4;break;case"strikethrough":o=o|8;break}}let u=null;typeof a.settings.foreground=="string"&&Qe(a.settings.foreground)&&(u=a.settings.foreground);let d=null;typeof a.settings.background=="string"&&Qe(a.settings.background)&&(d=a.settings.background);for(let m=0,f=c.length;m<f;m++){let _=c[m].trim().split(" "),T=_[_.length-1],E=null;_.length>1&&(E=_.slice(0,_.length-1),E.reverse()),t[n++]=new wn(T,E,i,o,u,d)}}return t}var wn=class{constructor(r,e,t,n,i,s){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=s}},M=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(M||{});function Cn(r,e){r.sort((o,u)=>{let d=Et(o.scope,u.scope);return d!==0||(d=yt(o.parentScopes,u.parentScopes),d!==0)?d:o.index-u.index});let t=0,n="#000000",i="#ffffff";for(;r.length>=1&&r[0].scope==="";){let o=r.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(n=o.foreground),o.background!==null&&(i=o.background)}let s=new kn(e),a=new At(t,s.getId(n),s.getId(i)),c=new Nn(new ke(0,null,-1,0,0),[]);for(let o=0,u=r.length;o<u;o++){let d=r[o];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new le(s,a,c)}var kn=class{constructor(r){p(this,"_isFrozen");p(this,"_lastColorId");p(this,"_id2color");p(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},Dn=Object.freeze([]),ke=class Lt{constructor(e,t,n,i,s){p(this,"scopeDepth");p(this,"parentScopes");p(this,"fontStyle");p(this,"foreground");p(this,"background");this.scopeDepth=e,this.parentScopes=t||Dn,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Nn=class De{constructor(e,t=[],n={}){p(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,t.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=t.parentScopes.length);){const s=t.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,n,i,s,a){if(t===""){this._doInsertHere(e,n,i,s,a);return}let c=t.indexOf("."),o,u;c===-1?(o=t,u=""):(o=t.substring(0,c),u=t.substring(c+1));let d;this._children.hasOwnProperty(o)?d=this._children[o]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[o]=d),d.insert(e+1,u,n,i,s,a)}_doInsertHere(e,t,n,i,s){if(t===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let a=0,c=this._rulesWithParentScopes.length;a<c;a++){let o=this._rulesWithParentScopes[a];if(yt(o.parentScopes,t)===0){o.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,n,i,s))}},H=class k{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=k.getLanguageId(e),n=k.getTokenType(e),i=k.getFontStyle(e),s=k.getForeground(e),a=k.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:i,foreground:s,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,n,i,s,a,c){let o=k.getLanguageId(e),u=k.getTokenType(e),d=k.containsBalancedBrackets(e)?1:0,m=k.getFontStyle(e),f=k.getForeground(e),h=k.getBackground(e);return t!==0&&(o=t),n!==8&&(u=n),i!==null&&(d=i?1:0),s!==-1&&(m=s),a!==0&&(f=a),c!==0&&(h=c),(o<<0|u<<8|d<<10|m<<11|f<<15|h<<24)>>>0}};function ue(r,e){const t=[],n=Vn(r);let i=n.next();for(;i!==null;){let o=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(t.push({matcher:u,priority:o}),i!==",")break;i=n.next()}return t;function s(){if(i==="-"){i=n.next();const o=s();return u=>!!o&&!o(u)}if(i==="("){i=n.next();const o=c();return i===")"&&(i=n.next()),o}if(Xe(i)){const o=[];do o.push(i),i=n.next();while(Xe(i));return u=>e(o,u)}return null}function a(){const o=[];let u=s();for(;u;)o.push(u),u=s();return d=>o.every(m=>m(d))}function c(){const o=[];let u=a();for(;u&&(o.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return d=>o.some(m=>m(d))}}function Xe(r){return!!r&&!!r.match(/[\w\.:]+/)}function Vn(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function Pt(r){typeof r.dispose=="function"&&r.dispose()}var Q=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},vn=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},xn=class{constructor(){p(this,"_references",[]);p(this,"_seenReferenceKeys",new Set);p(this,"visitedRule",new Set)}get references(){return this._references}add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Gn=class{constructor(r,e){p(this,"seenFullScopeRequests",new Set);p(this,"seenPartialScopeRequests",new Set);p(this,"Q");this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Q(this.initialScopeName)]}processQueue(){const r=this.Q;this.Q=[];const e=new xn;for(const t of r)Mn(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Mn(r,e,t,n){const i=t.lookup(r.scopeName);if(!i){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);r instanceof Q?ce({baseGrammar:s,selfGrammar:i},n):Ne(r.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const a=t.injections(r.scopeName);if(a)for(const c of a)n.add(new Q(c))}function Ne(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];de([n],e,t)}}function ce(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&de(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&de(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function de(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const i=n.repository?_t({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&de(n.patterns,{...e,repository:i},t);const s=n.include;if(!s)continue;const a=bt(s);switch(a.kind){case 0:ce({...e,selfGrammar:e.baseGrammar},t);break;case 1:ce(e,t);break;case 2:Ne(a.ruleName,{...e,repository:i},t);break;case 3:case 4:const c=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const o={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};a.kind===4?Ne(a.ruleName,o,t):ce(o,t)}else a.kind===4?t.add(new vn(a.scopeName,a.ruleName)):t.add(new Q(a.scopeName));break}}}var Bn=class{constructor(){p(this,"kind",0)}},jn=class{constructor(){p(this,"kind",1)}},$n=class{constructor(r){p(this,"kind",2);this.ruleName=r}},Wn=class{constructor(r){p(this,"kind",3);this.scopeName=r}},Un=class{constructor(r,e){p(this,"kind",4);this.scopeName=r,this.ruleName=e}};function bt(r){if(r==="$base")return new Bn;if(r==="$self")return new jn;const e=r.indexOf("#");if(e===-1)return new Wn(r);if(e===0)return new $n(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new Un(t,n)}}var Hn=/\\(\d+)/,Ye=/\\(\d+)/g,Fn=-1,It=-2;var te=class{constructor(r,e,t,n){p(this,"$location");p(this,"id");p(this,"_nameIsCapturing");p(this,"_name");p(this,"_contentNameIsCapturing");p(this,"_contentName");this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=ie.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=ie.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${gt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:ie.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ie.replaceCaptures(this._contentName,r,e)}},qn=class extends te{constructor(e,t,n,i,s){super(e,t,n,i);p(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,i){throw new Error("Not supported!")}},zn=class extends te{constructor(e,t,n,i,s){super(e,t,n,null);p(this,"_match");p(this,"captures");p(this,"_cachedCompiledPatterns");this._match=new X(i,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ze=class extends te{constructor(e,t,n,i,s){super(e,t,n,i);p(this,"hasMissingPatterns");p(this,"patterns");p(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends te{constructor(e,t,n,i,s,a,c,o,u,d){super(e,t,n,i);p(this,"_begin");p(this,"beginCaptures");p(this,"_end");p(this,"endHasBackReferences");p(this,"endCaptures");p(this,"applyEndPatternLast");p(this,"hasMissingPatterns");p(this,"patterns");p(this,"_cachedCompiledPatterns");this._begin=new X(s,this.id),this.beginCaptures=a,this._end=new X(c||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.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,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},me=class extends te{constructor(e,t,n,i,s,a,c,o,u){super(e,t,n,i);p(this,"_begin");p(this,"beginCaptures");p(this,"whileCaptures");p(this,"_while");p(this,"whileHasBackReferences");p(this,"hasMissingPatterns");p(this,"patterns");p(this,"_cachedCompiledPatterns");p(this,"_cachedCompiledWhilePatterns");this._begin=new X(s,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=new X(c,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},St=class O{static createCaptureRule(e,t,n,i,s){return e.registerRule(a=>new qn(t,a,n,i,s))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new zn(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=_t({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Ze(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(s,t,n))}return e.while?new me(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,t,n),O._compilePatterns(e.patterns,t,n)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,O._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let i=[];if(e){let s=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);c>s&&(s=c)}for(let a=0;a<=s;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const c=parseInt(a,10);let o=0;e[a].patterns&&(o=O.getCompiledRuleId(e[a],t,n)),i[c]=O.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,o)}}return i}static _compilePatterns(e,t,n){let i=[];if(e)for(let s=0,a=e.length;s<a;s++){const c=e[s];let o=-1;if(c.include){const u=bt(c.include);switch(u.kind){case 0:case 1:o=O.getCompiledRuleId(n[c.include],t,n);break;case 2:let d=n[u.ruleName];d&&(o=O.getCompiledRuleId(d,t,n));break;case 3:case 4:const m=u.scopeName,f=u.kind===4?u.ruleName:null,h=t.getExternalGrammar(m,n);if(h)if(f){let _=h.repository[f];_&&(o=O.getCompiledRuleId(_,t,h.repository))}else o=O.getCompiledRuleId(h.repository.$self,t,h.repository);break}}else o=O.getCompiledRuleId(c,t,n);if(o!==-1){const u=t.getRule(o);let d=!1;if((u instanceof Ze||u instanceof Ve||u instanceof me)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},X=class Ot{constructor(e,t){p(this,"source");p(this,"ruleId");p(this,"hasAnchor");p(this,"hasBackReferences");p(this,"_anchorCache");if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],a=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(u==="A"||u==="G")&&(a=!0),c++}this.hasAnchor=a,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Hn.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=t.map(i=>e.substring(i.start,i.end));return Ye.lastIndex=0,this.source.replace(Ye,(i,s)=>Rt(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],n=[],i=[],s,a,c,o;for(s=0,a=this.source.length;s<a;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,n[s]=c,i[s]=c,c==="\\"&&s+1<a&&(o=this.source.charAt(s+1),o==="A"?(e[s+1]="￿",t[s+1]="￿",n[s+1]="A",i[s+1]="A"):o==="G"?(e[s+1]="￿",t[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=o,t[s+1]=o,n[s+1]=o,i[s+1]=o),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Y=class{constructor(){p(this,"_items");p(this,"_hasAnchors");p(this,"_cached");p(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new et(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let n=this._items.map(i=>i.resolveAnchors(e,t));return new et(r,n,this._items.map(i=>i.ruleId))}},et=class{constructor(r,e,t){p(this,"scanner");this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
3
3
  `)}findNextMatchSync(r,e,t){const n=this.scanner.findNextMatchSync(r,e,t);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Se=class{constructor(r,e){this.languageId=r,this.tokenType=e}},G,Jn=(G=class{constructor(e,t){p(this,"_defaultAttributes");p(this,"_embeddedLanguagesMatcher");p(this,"_getBasicScopeAttributes",new Tt(e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Se(t,n)}));this._defaultAttributes=new Se(e,8),this._embeddedLanguagesMatcher=new Kn(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?G._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(G.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},p(G,"_NULL_SCOPE_METADATA",new Se(0,0)),p(G,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),G),Kn=class{constructor(r){p(this,"values");p(this,"scopesRegExp");if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,n])=>Rt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},tt=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function wt(r,e,t,n,i,s,a,c){const o=e.content.length;let u=!1,d=-1;if(a){const h=Qn(r,e,t,n,i,s);i=h.stack,n=h.linePos,t=h.isFirstLine,d=h.anchorPosition}const m=Date.now();for(;!u;){if(c!==0&&Date.now()-m>c)return new tt(i,!0);f()}return new tt(i,!1);function f(){const h=Xn(r,e,t,n,i,d);if(!h){s.produce(i,o),u=!0;return}const _=h.captureIndices,T=h.matchedRuleId,E=_&&_.length>0?_[0].end>n:!1;if(T===Fn){const g=i.getRule(r);s.produce(i,_[0].start),i=i.withContentNameScopesList(i.nameScopesList),J(r,e,t,i,s,g.endCaptures,_),s.produce(i,_[0].end);const y=i;if(i=i.parent,d=y.getAnchorPos(),!E&&y.getEnterPos()===n){i=y,s.produce(i,o),u=!0;return}}else{const g=r.getRule(T);s.produce(i,_[0].start);const y=i,R=g.getName(e.content,_),A=i.contentNameScopesList.pushAttributed(R,r);if(i=i.push(T,n,d,_[0].end===o,null,A,A),g instanceof Ve){const L=g;J(r,e,t,i,s,L.beginCaptures,_),s.produce(i,_[0].end),d=_[0].end;const C=L.getContentName(e.content,_),P=A.pushAttributed(C,r);if(i=i.withContentNameScopesList(P),L.endHasBackReferences&&(i=i.withEndRule(L.getEndWithResolvedBackReferences(e.content,_))),!E&&y.hasSameRuleAs(i)){i=i.pop(),s.produce(i,o),u=!0;return}}else if(g instanceof me){const L=g;J(r,e,t,i,s,L.beginCaptures,_),s.produce(i,_[0].end),d=_[0].end;const C=L.getContentName(e.content,_),P=A.pushAttributed(C,r);if(i=i.withContentNameScopesList(P),L.whileHasBackReferences&&(i=i.withEndRule(L.getWhileWithResolvedBackReferences(e.content,_))),!E&&y.hasSameRuleAs(i)){i=i.pop(),s.produce(i,o),u=!0;return}}else if(J(r,e,t,i,s,g.captures,_),s.produce(i,_[0].end),i=i.pop(),!E){i=i.safePop(),s.produce(i,o),u=!0;return}}_[0].end>n&&(n=_[0].end,t=!1)}}function Qn(r,e,t,n,i,s){let a=i.beginRuleCapturedEOL?0:-1;const c=[];for(let o=i;o;o=o.pop()){const u=o.getRule(r);u instanceof me&&c.push({rule:u,stack:o})}for(let o=c.pop();o;o=c.pop()){const{ruleScanner:u,findOptions:d}=er(o.rule,r,o.stack.endRule,t,n===a),m=u.findNextMatchSync(e,n,d);if(m){if(m.ruleId!==It){i=o.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(o.stack,m.captureIndices[0].start),J(r,e,t,o.stack,s,o.rule.whileCaptures,m.captureIndices),s.produce(o.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,t=!1))}else{i=o.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:t}}function Xn(r,e,t,n,i,s){const a=Yn(r,e,t,n,i,s),c=r.getInjections();if(c.length===0)return a;const o=Zn(c,r,e,t,n,i,s);if(!o)return a;if(!a)return o;const u=a.captureIndices[0].start,d=o.captureIndices[0].start;return d<u||o.priorityMatch&&d===u?o:a}function Yn(r,e,t,n,i,s){const a=i.getRule(r),{ruleScanner:c,findOptions:o}=Ct(a,r,i.endRule,t,n===s),u=c.findNextMatchSync(e,n,o);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Zn(r,e,t,n,i,s,a){let c=Number.MAX_VALUE,o=null,u,d=0;const m=s.contentNameScopesList.getScopeNames();for(let f=0,h=r.length;f<h;f++){const _=r[f];if(!_.matcher(m))continue;const T=e.getRule(_.ruleId),{ruleScanner:E,findOptions:g}=Ct(T,e,null,n,i===a),y=E.findNextMatchSync(t,i,g);if(!y)continue;const R=y.captureIndices[0].start;if(!(R>=c)&&(c=R,o=y.captureIndices,u=y.ruleId,d=_.priority,c===i))break}return o?{priorityMatch:d===-1,captureIndices:o,matchedRuleId:u}:null}function Ct(r,e,t,n,i){return{ruleScanner:r.compileAG(e,t,n,i),findOptions:0}}function er(r,e,t,n,i){return{ruleScanner:r.compileWhileAG(e,t,n,i),findOptions:0}}function J(r,e,t,n,i,s,a){if(s.length===0)return;const c=e.content,o=Math.min(s.length,a.length),u=[],d=a[0].end;for(let m=0;m<o;m++){const f=s[m];if(f===null)continue;const h=a[m];if(h.length===0)continue;if(h.start>d)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(n,h.start),f.retokenizeCapturedWithRuleId){const T=f.getName(c,a),E=n.contentNameScopesList.pushAttributed(T,r),g=f.getContentName(c,a),y=E.pushAttributed(g,r),R=n.push(f.retokenizeCapturedWithRuleId,h.start,-1,!1,null,E,y),A=r.createOnigString(c.substring(0,h.end));wt(r,A,t&&h.start===0,h.start,R,i,!1,0),Pt(A);continue}const _=f.getName(c,a);if(_!==null){const E=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(_,r);u.push(new tr(E,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var tr=class{constructor(r,e){p(this,"scopes");p(this,"endPos");this.scopes=r,this.endPos=e}};function nr(r,e,t,n,i,s,a,c){return new ir(r,e,t,n,i,s,a,c)}function nt(r,e,t,n,i){const s=ue(e,he),a=St.getCompiledRuleId(t,n,i.repository);for(const c of s)r.push({debugSelector:e,matcher:c.matcher,ruleId:a,grammar:i,priority:c.priority})}function he(r,e){if(e.length<r.length)return!1;let t=0;return r.every(n=>{for(let i=t;i<e.length;i++)if(rr(e[i],n))return t=i+1,!0;return!1})}function rr(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var ir=class{constructor(r,e,t,n,i,s,a,c){p(this,"_rootId");p(this,"_lastRuleId");p(this,"_ruleId2desc");p(this,"_includedGrammars");p(this,"_grammarRepository");p(this,"_grammar");p(this,"_injections");p(this,"_basicScopeAttributesProvider");p(this,"_tokenTypeMatchers");if(this._rootScopeName=r,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new Jn(t,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=rt(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const o of Object.keys(i)){const u=ue(o,he);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:i[o]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],t=this._rootScopeName,n=r.lookup(t);if(n){const i=n.injections;if(i)for(let a in i)nt(e,a,i[a],this,n);const s=this._grammarRepository.injections(t);s&&s.forEach(a=>{const c=this.getExternalGrammar(a);if(c){const o=c.injectionSelector;o&&nt(e,o,c,this,c)}})}return e.sort((i,s)=>i.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=rt(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const n=this._tokenize(r,e,!1,t);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(r,e,t=0){const n=this._tokenize(r,e,!0,t);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(r,e,t,n){this._rootId===-1&&(this._rootId=St.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===ve.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=H.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),f=this.getRule(this._rootId).getName(null,null);let h;f?h=K.createRootAndLookUpScopeName(f,m,this):h=K.createRoot("unknown",m),e=new ve(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,e.reset();r=r+`
4
4
  `;const s=this.createOnigString(r),a=s.content.length,c=new ar(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),o=wt(this,s,i,0,e,c,!0,n);return Pt(s),{lineLength:a,lineTokens:c,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function rt(r,e){return r=Ln(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var K=class V{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(e,t){let n=e,i=(e==null?void 0:e.scopePath)??null;for(const s of t)i=Ie.push(i,s.scopeNames),n=new V(n,i,s.encodedTokenAttributes);return n}static createRoot(e,t){return new V(null,new Ie(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const i=n.getMetadataForScope(e),s=new Ie(null,e),a=n.themeProvider.themeMatch(s),c=V.mergeAttributes(t,i,a);return new V(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,t){do{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}while(!0)}static mergeAttributes(e,t,n){let i=-1,s=0,a=0;return n!==null&&(i=n.fontStyle,s=n.foregroundId,a=n.backgroundId),H.set(e,t.languageId,t.tokenType,null,i,s,a)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,t);const n=e.split(/ /g);let i=this;for(const s of n)i=V._pushAttributed(i,s,t);return i}static _pushAttributed(e,t,n){const i=n.getMetadataForScope(t),s=e.scopePath.push(t),a=n.themeProvider.themeMatch(s),c=V.mergeAttributes(e.tokenAttributes,i,a);return new V(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var i;const t=[];let n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===e?t.reverse():void 0}},D,ve=(D=class{constructor(e,t,n,i,s,a,c,o){p(this,"_stackElementBrand");p(this,"_enterPos");p(this,"_anchorPos");p(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=a,this.nameScopesList=c,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(e){return e===null?!1:D._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?K.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{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}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){D._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,i,s,a,c){return new D(this,e,t,n,i,s,a,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,i;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.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(e){return this.endRule===e?this:new D(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,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(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=K.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new D(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,K.fromExtension(n,t.contentNameScopesList))}},p(D,"NULL",new D(null,0,0,0,!1,null,null,null)),D),sr=class{constructor(r,e){p(this,"balancedBracketScopes");p(this,"unbalancedBracketScopes");p(this,"allowAny",!1);this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):ue(t,he).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>ue(t,he).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},ar=class{constructor(r,e,t,n){p(this,"_emitBinaryTokens");p(this,"_lineText");p(this,"_tokens");p(this,"_binaryTokens");p(this,"_lastTokenEndIndex");p(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){var n;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=(r==null?void 0:r.tokenAttributes)??0,s=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(r==null?void 0:r.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(a)&&(i=H.set(i,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(a))}if(s&&(i=H.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const t=(r==null?void 0:r.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)t[n]=this._binaryTokens[n];return t}},or=class{constructor(r,e){p(this,"_grammars",new Map);p(this,"_rawGrammars",new Map);p(this,"_injectionGrammars",new Map);p(this,"_theme");this._onigLib=e,this._theme=r}dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,n,i){if(!this._grammars.has(r)){let s=this._rawGrammars.get(r);if(!s)return null;this._grammars.set(r,nr(r,s,e,t,n,i,this,this._onigLib))}return this._grammars.get(r)}},cr=class{constructor(e){p(this,"_options");p(this,"_syncRegistry");p(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new or(le.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(le.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 sr(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,s){const a=new Gn(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(c=>this._loadSingleGrammar(c.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,s)}},xe=ve.NULL;const lr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ur=/["&'<>`]/g,dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,hr=/[|\\{}()[\]^$+*?.]/g,it=new WeakMap;function fr(r,e){if(r=r.replace(e.subset?pr(e.subset):ur,n),e.subset||e.escapeOnly)return r;return r.replace(dr,t).replace(mr,n);function t(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}function pr(r){let e=it.get(r);return e||(e=_r(r),it.set(r,e)),e}function _r(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(hr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const gr=/[\dA-Fa-f]/;function Er(r,e,t){const n="&#x"+r.toString(16).toUpperCase();return t&&e&&!gr.test(String.fromCharCode(e))?n:n+";"}const yr=/\d/;function Rr(r,e,t){const n="&#"+String(r);return t&&e&&!yr.test(String.fromCharCode(e))?n:n+";"}const Tr=["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"],Oe={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ar=["cent","copy","divide","gt","lt","not","para","times"],kt={}.hasOwnProperty,Ge={};let se;for(se in Oe)kt.call(Oe,se)&&(Ge[Oe[se]]=se);const Lr=/[^\dA-Za-z]/;function Pr(r,e,t,n){const i=String.fromCharCode(r);if(kt.call(Ge,i)){const s=Ge[i],a="&"+s;return t&&Tr.includes(s)&&!Ar.includes(s)&&(!n||e&&e!==61&&Lr.test(String.fromCharCode(e)))?a:a+";"}return""}function br(r,e,t){let n=Er(r,e,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=Pr(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const s=Rr(r,e,t.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!t.useShortestReferences||i.length<n.length)?i:n}function U(r,e){return fr(r,Object.assign({format:br},e))}const Ir=/^>|^->|<!--|-->|--!>|<!-$/g,Sr=[">"],Or=["<",">"];function wr(r,e,t,n){return n.settings.bogusComments?"<?"+U(r.value,Object.assign({},n.settings.characterReferences,{subset:Sr}))+">":"<!--"+r.value.replace(Ir,i)+"-->";function i(s){return U(s,Object.assign({},n.settings.characterReferences,{subset:Or}))}}function Cr(r,e,t,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const I=Nt(1),Dt=Nt(-1),kr=[];function Nt(r){return e;function e(t,n,i){const s=t?t.children:kr;let a=(n||0)+r,c=s[a];if(!i)for(;c&&Me(c);)a+=r,c=s[a];return c}}const Dr={}.hasOwnProperty;function Vt(r){return e;function e(t,n,i){return Dr.call(r,t.tagName)&&r[t.tagName](t,n,i)}}const $e=Vt({body:Vr,caption:we,colgroup:we,dd:Mr,dt:Gr,head:we,html:Nr,li:xr,optgroup:Br,option:jr,p:vr,rp:st,rt:st,tbody:Wr,td:at,tfoot:Ur,th:at,thead:$r,tr:Hr});function we(r,e,t){const n=I(t,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Me(n.value.charAt(0)))}function Nr(r,e,t){const n=I(t,e);return!n||n.type!=="comment"}function Vr(r,e,t){const n=I(t,e);return!n||n.type!=="comment"}function vr(r,e,t){const n=I(t,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function xr(r,e,t){const n=I(t,e);return!n||n.type==="element"&&n.tagName==="li"}function Gr(r,e,t){const n=I(t,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Mr(r,e,t){const n=I(t,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function st(r,e,t){const n=I(t,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Br(r,e,t){const n=I(t,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function jr(r,e,t){const n=I(t,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function $r(r,e,t){const n=I(t,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Wr(r,e,t){const n=I(t,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Ur(r,e,t){return!I(t,e)}function Hr(r,e,t){const n=I(t,e);return!n||n.type==="element"&&n.tagName==="tr"}function at(r,e,t){const n=I(t,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Fr=Vt({body:Jr,colgroup:Kr,head:zr,html:qr,tbody:Qr});function qr(r){const e=I(r,-1);return!e||e.type!=="comment"}function zr(r){const e=new Set;for(const n of r.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const t=r.children[0];return!t||t.type==="element"}function Jr(r){const e=I(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Me(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Kr(r,e,t){const n=Dt(t,e),i=I(r,-1,!0);return t&&n&&n.type==="element"&&n.tagName==="colgroup"&&$e(n,t.children.indexOf(n),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Qr(r,e,t){const n=Dt(t,e),i=I(r,-1);return t&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&$e(n,t.children.indexOf(n),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ae={name:[[`
5
5
  \f\r &/=>`.split(""),`
@@ -237,9 +237,9 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
237
237
  `))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
238
238
  `,...o.current()});return/^[\t ]/.test(c)&&(c=Jc(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),u(),a(),c}xD.peek=wK;function xD(e){return e.value||""}function wK(){return"<"}vD.peek=bK;function vD(e,t,n,r){const i=E1(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(a=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),a()),c+=u.move(")"),s(),c}function bK(){return"!"}wD.peek=kK;function wD(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const c=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(c+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return s(),n.stack=f,o(),i==="full"||!c||c!==h?u+=a.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function kK(){return"!"}bD.peek=SK;function bD(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],a=n.compilePattern(s);let u;if(s.atBreak)for(;u=a.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}function SK(){return"`"}function kD(e,t){const n=m1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}SD.peek=EK;function SD(e,t,n,r){const i=E1(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,u;if(kD(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),a(),n.stack=f,h}a=n.enter("link"),u=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(u=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),u()),c+=s.move(")"),a(),c}function EK(e,t,n){return kD(e,n)?"<":"["}ED.peek=CK;function ED(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(c+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return s(),n.stack=f,o(),i==="full"||!c||c!==h?u+=a.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function CK(){return"["}function C1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function _K(e){const t=C1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function NK(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function CD(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function TK(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?NK(n):C1(n);const a=e.ordered?s==="."?")":".":_K(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),CD(n)===s&&f){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c}function AK(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function PK(e,t,n,r){const i=AK(n);let o=n.bulletCurrent||C1(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),f);return u(),c;function f(h,p,m){return p?(m?"":" ".repeat(s))+h:(m?o:o+" ".repeat(s-o.length))+h}}function RK(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}const MK=Nm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function DK(e,t,n,r){return(e.children.some(function(s){return MK(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function jK(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_D.peek=OK;function _D(e,t,n,r){const i=jK(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=u.charCodeAt(0),f=Sp(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(u=Jc(c)+u.slice(1));const h=u.charCodeAt(u.length-1),p=Sp(r.after.charCodeAt(0),h,i);p.inside&&(u=u.slice(0,-1)+Jc(h));const m=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+m}function OK(e,t,n){return n.options.strong||"*"}function IK(e,t,n,r){return n.safe(e.value,r)}function LK(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function FK(e,t,n){const r=(CD(n)+(n.options.ruleSpaces?" ":"")).repeat(LK(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ND={blockquote:aK,break:zN,code:hK,definition:mK,emphasis:yD,hardBreak:zN,heading:vK,html:xD,image:vD,imageReference:wD,inlineCode:bD,link:SD,linkReference:ED,list:TK,listItem:PK,paragraph:RK,root:DK,strong:_D,text:IK,thematicBreak:FK};function $K(){return{enter:{table:zK,tableData:BN,tableHeader:BN,tableRow:VK},exit:{codeText:WK,table:BK,tableData:Gx,tableHeader:Gx,tableRow:Gx}}}function zK(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function BK(e){this.exit(e),this.data.inTable=void 0}function VK(e){this.enter({type:"tableRow",children:[]},e)}function Gx(e){this.exit(e)}function BN(e){this.enter({type:"tableCell",children:[]},e)}function WK(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,UK));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function UK(e,t){return t==="|"?t:e}function HK(e){const t=e,n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
239
239
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:u,tableRow:a}};function s(m,x,v,k){return c(f(m,v,k),m.align)}function a(m,x,v,k){const b=h(m,v,k),E=c([b]);return E.slice(0,E.indexOf(`
240
- `))}function u(m,x,v,k){const b=v.enter("tableCell"),E=v.enter("phrasing"),C=v.containerPhrasing(m,{...k,before:o,after:o});return E(),b(),C}function c(m,x){return oK(m,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function f(m,x,v){const k=m.children;let b=-1;const E=[],C=x.enter("table");for(;++b<k.length;)E[b]=h(k[b],x,v);return C(),E}function h(m,x,v){const k=m.children;let b=-1;const E=[],C=x.enter("tableRow");for(;++b<k.length;)E[b]=u(k[b],m,x,v);return C(),E}function p(m,x,v){let k=ND.inlineCode(m,x,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function YK(){return{exit:{taskListCheckValueChecked:VN,taskListCheckValueUnchecked:VN,paragraph:GK}}}function qK(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ZK}}}function VN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function GK(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ZK(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let u=ND.listItem(e,t,n,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(f){return f+s}}function KK(){return[NZ(),$Z(),JZ(),$K(),YK()]}function XK(e){return{extensions:[TZ(),zZ(),eK(),HK(e),qK()]}}const QK={tokenize:iX,partial:!0},TD={tokenize:oX,partial:!0},AD={tokenize:sX,partial:!0},PD={tokenize:aX,partial:!0},JK={tokenize:lX,partial:!0},RD={name:"wwwAutolink",tokenize:nX,previous:DD},MD={name:"protocolAutolink",tokenize:rX,previous:jD},Fo={name:"emailAutolink",tokenize:tX,previous:OD},eo={};function eX(){return{text:eo}}let ea=48;for(;ea<123;)eo[ea]=Fo,ea++,ea===58?ea=65:ea===91&&(ea=97);eo[43]=Fo;eo[45]=Fo;eo[46]=Fo;eo[95]=Fo;eo[72]=[Fo,MD];eo[104]=[Fo,MD];eo[87]=[Fo,RD];eo[119]=[Fo,RD];function tX(e,t,n){const r=this;let i,o;return s;function s(h){return!x0(h)||!OD.call(r,r.previous)||_1(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(h))}function a(h){return x0(h)?(e.consume(h),a):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(JK,f,c)(h):h===45||h===95||Yn(h)?(o=!0,e.consume(h),u):f(h)}function c(h){return e.consume(h),i=!0,u}function f(h){return o&&i&&ir(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function nX(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!DD.call(r,r.previous)||_1(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QK,e.attempt(TD,e.attempt(AD,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function rX(e,t,n){const r=this;let i="",o=!1;return s;function s(h){return(h===72||h===104)&&jD.call(r,r.previous)&&!_1(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),a):n(h)}function a(h){if(ir(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),a;if(h===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),o?c:(o=!0,u)):n(h)}function c(h){return h===null||wp(h)||Dt(h)||pa(h)||Em(h)?n(h):e.attempt(TD,e.attempt(AD,f),n)(h)}function f(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function iX(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function oX(e,t,n){let r,i,o;return s;function s(c){return c===46||c===95?e.check(PD,u,a)(c):c===null||Dt(c)||pa(c)||c!==45&&Em(c)?u(c):(o=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function u(c){return i||r||!o?n(c):t(c)}}function sX(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(PD,t,o)(s):s===null||Dt(s)||pa(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function aX(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||Dt(a)||pa(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||Dt(a)||pa(a)?t(a):r(a)}function o(a){return ir(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):ir(a)?(e.consume(a),s):n(a)}}function lX(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Yn(o)?n(o):t(o)}}function DD(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Dt(e)}function jD(e){return!ir(e)}function OD(e){return!(e===47||x0(e))}function x0(e){return e===43||e===45||e===46||e===95||Yn(e)}function _1(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const uX={tokenize:yX,partial:!0};function cX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pX,continuation:{tokenize:mX},exit:gX}},text:{91:{name:"gfmFootnoteCall",tokenize:hX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dX,resolveTo:fX}}}}function dX(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!s||!s._balanced)return n(u);const c=wi(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function fX(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function hX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return a;function a(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(o>999||h===93&&!s||h===null||h===91||Dt(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wi(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Dt(h)||(s=!0),o++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}}function pX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,a;return u;function u(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(x)}function f(x){if(s>999||x===93&&!a||x===null||x===91||Dt(x))return n(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=wi(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Dt(x)||(a=!0),s++,e.consume(x),x===92?h:f}function h(x){return x===91||x===92||x===93?(e.consume(x),s++,f):f(x)}function p(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),vt(e,m,"gfmFootnoteDefinitionWhitespace")):n(x)}function m(x){return t(x)}}function mX(e,t,n){return e.check(zd,t,e.attempt(uX,t,n))}function gX(e){e.exit("gfmFootnoteDefinition")}function yX(e,t,n){const r=this;return vt(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function xX(e){let n=e.singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},h={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},p=[["enter",f,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",h,a]],m=a.parser.constructs.insideSpan.null;m&&Mr(p,p.length,0,Cm(m,s.slice(c+1,u),a)),Mr(p,p.length,0,[["exit",h,a],["enter",s[u][1],a],["exit",s[u][1],a],["exit",f,a]]),Mr(s,c-1,u-c+3,p),u=c+p.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function o(s,a,u){const c=this.previous,f=this.events;let h=0;return p;function p(x){return c===126&&f[f.length-1][1].type!=="characterEscape"?u(x):(s.enter("strikethroughSequenceTemporary"),m(x))}function m(x){const v=$l(c);if(x===126)return h>1?u(x):(s.consume(x),h++,m);if(h<2&&!n)return u(x);const k=s.exit("strikethroughSequenceTemporary"),b=$l(x);return k._open=!b||b===2&&!!v,k._close=!v||v===2&&!!b,a(x)}}}class vX{constructor(){this.map=[]}add(t,n,r){wX(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function wX(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function bX(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function kX(){return{flow:{null:{name:"table",tokenize:SX,resolveAll:EX}}}}function SX(e,t,n){const r=this;let i=0,o=0,s;return a;function a(M){let z=r.events.length-1;for(;z>-1;){const O=r.events[z][1].type;if(O==="lineEnding"||O==="linePrefix")z--;else break}const F=z>-1?r.events[z][1].type:null,Y=F==="tableHead"||F==="tableRow"?T:u;return Y===T&&r.parser.lazy[r.now().line]?n(M):Y(M)}function u(M){return e.enter("tableHead"),e.enter("tableRow"),c(M)}function c(M){return M===124||(s=!0,o+=1),f(M)}function f(M){return M===null?n(M):Ze(M)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),m):n(M):mt(M)?vt(e,f,"whitespace")(M):(o+=1,s&&(s=!1,i+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),h(M)))}function h(M){return M===null||M===124||Dt(M)?(e.exit("data"),f(M)):(e.consume(M),M===92?p:h)}function p(M){return M===92||M===124?(e.consume(M),h):h(M)}function m(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),s=!1,mt(M)?vt(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):x(M))}function x(M){return M===45||M===58?k(M):M===124?(s=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),v):P(M)}function v(M){return mt(M)?vt(e,k,"whitespace")(M):k(M)}function k(M){return M===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),b):M===45?(o+=1,b(M)):M===null||Ze(M)?N(M):P(M)}function b(M){return M===45?(e.enter("tableDelimiterFiller"),E(M)):P(M)}function E(M){return M===45?(e.consume(M),E):M===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(M))}function C(M){return mt(M)?vt(e,N,"whitespace")(M):N(M)}function N(M){return M===124?x(M):M===null||Ze(M)?!s||i!==o?P(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):P(M)}function P(M){return n(M)}function T(M){return e.enter("tableRow"),D(M)}function D(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),D):M===null||Ze(M)?(e.exit("tableRow"),t(M)):mt(M)?vt(e,D,"whitespace")(M):(e.enter("data"),R(M))}function R(M){return M===null||M===124||Dt(M)?(e.exit("data"),D(M)):(e.consume(M),M===92?I:R)}function I(M){return M===92||M===124?(e.consume(M),R):R(M)}}function EX(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,u=0,c,f,h;const p=new vX;for(;++n<e.length;){const m=e[n],x=m[1];m[0]==="enter"?x.type==="tableHead"?(a=!1,u!==0&&(WN(p,t,u,c,f),f=void 0,u=0),c={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(n,0,[["enter",c,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(n,0,[["enter",f,t]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],h=Dh(p,t,o,i,void 0,h),o=[0,0,0,0]),s[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],h=Dh(p,t,o,i,void 0,h)),o=s,s=[o[1],n,0,0])):x.type==="tableHead"?(a=!0,u=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=n,o[1]!==0?(s[0]=s[1],h=Dh(p,t,o,i,n,h)):s[1]!==0&&(h=Dh(p,t,s,i,n,h)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&WN(p,t,u,c,f),p.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=bX(t.events,n))}return e}function Dh(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},fl(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=fl(t.events,n[1]);if(o={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=fl(t.events,n[2]),f=fl(t.events,n[3]),h={type:a,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const p=t.events[n[2]],m=t.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,v=n[3]-n[2]-1;e.add(x,v,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(o.end=Object.assign({},fl(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function WN(e,t,n,r,i){const o=[],s=fl(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function fl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const CX={name:"tasklistCheck",tokenize:NX};function _X(){return{text:{91:CX}}}function NX(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return Dt(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return Ze(u)?t(u):mt(u)?e.check({tokenize:TX},t,n)(u):n(u)}}function TX(e,t,n){return vt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function AX(e){return q2([eX(),cX(),xX(e),kX(),_X()])}const PX={};function RX(e){const t=this,n=e||PX,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(AX(n)),o.push(KK()),s.push(XK(n))}const MX="modulepreload",DX=function(e){return"/"+e},UN={},jX=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=DX(u),u in UN)return;UN[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":MX,c||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};async function OX(e,t){const{codeToTokens:n,bundledLanguages:r}=await jX(async()=>{const{codeToTokens:o,bundledLanguages:s}=await import("./index-Cn_fLtyS.js");return{codeToTokens:o,bundledLanguages:s}},[]);if(!(t in r))return null;const{tokens:i}=await n(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}function IX({children:e}){const t=e.replace(/\\n/g,`
240
+ `))}function u(m,x,v,k){const b=v.enter("tableCell"),E=v.enter("phrasing"),C=v.containerPhrasing(m,{...k,before:o,after:o});return E(),b(),C}function c(m,x){return oK(m,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function f(m,x,v){const k=m.children;let b=-1;const E=[],C=x.enter("table");for(;++b<k.length;)E[b]=h(k[b],x,v);return C(),E}function h(m,x,v){const k=m.children;let b=-1;const E=[],C=x.enter("tableRow");for(;++b<k.length;)E[b]=u(k[b],m,x,v);return C(),E}function p(m,x,v){let k=ND.inlineCode(m,x,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function YK(){return{exit:{taskListCheckValueChecked:VN,taskListCheckValueUnchecked:VN,paragraph:GK}}}function qK(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ZK}}}function VN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function GK(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ZK(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let u=ND.listItem(e,t,n,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(f){return f+s}}function KK(){return[NZ(),$Z(),JZ(),$K(),YK()]}function XK(e){return{extensions:[TZ(),zZ(),eK(),HK(e),qK()]}}const QK={tokenize:iX,partial:!0},TD={tokenize:oX,partial:!0},AD={tokenize:sX,partial:!0},PD={tokenize:aX,partial:!0},JK={tokenize:lX,partial:!0},RD={name:"wwwAutolink",tokenize:nX,previous:DD},MD={name:"protocolAutolink",tokenize:rX,previous:jD},Fo={name:"emailAutolink",tokenize:tX,previous:OD},eo={};function eX(){return{text:eo}}let ea=48;for(;ea<123;)eo[ea]=Fo,ea++,ea===58?ea=65:ea===91&&(ea=97);eo[43]=Fo;eo[45]=Fo;eo[46]=Fo;eo[95]=Fo;eo[72]=[Fo,MD];eo[104]=[Fo,MD];eo[87]=[Fo,RD];eo[119]=[Fo,RD];function tX(e,t,n){const r=this;let i,o;return s;function s(h){return!x0(h)||!OD.call(r,r.previous)||_1(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(h))}function a(h){return x0(h)?(e.consume(h),a):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(JK,f,c)(h):h===45||h===95||Yn(h)?(o=!0,e.consume(h),u):f(h)}function c(h){return e.consume(h),i=!0,u}function f(h){return o&&i&&ir(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function nX(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!DD.call(r,r.previous)||_1(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QK,e.attempt(TD,e.attempt(AD,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function rX(e,t,n){const r=this;let i="",o=!1;return s;function s(h){return(h===72||h===104)&&jD.call(r,r.previous)&&!_1(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),a):n(h)}function a(h){if(ir(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),a;if(h===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),o?c:(o=!0,u)):n(h)}function c(h){return h===null||wp(h)||Dt(h)||pa(h)||Em(h)?n(h):e.attempt(TD,e.attempt(AD,f),n)(h)}function f(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function iX(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function oX(e,t,n){let r,i,o;return s;function s(c){return c===46||c===95?e.check(PD,u,a)(c):c===null||Dt(c)||pa(c)||c!==45&&Em(c)?u(c):(o=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function u(c){return i||r||!o?n(c):t(c)}}function sX(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(PD,t,o)(s):s===null||Dt(s)||pa(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function aX(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||Dt(a)||pa(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||Dt(a)||pa(a)?t(a):r(a)}function o(a){return ir(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):ir(a)?(e.consume(a),s):n(a)}}function lX(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Yn(o)?n(o):t(o)}}function DD(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Dt(e)}function jD(e){return!ir(e)}function OD(e){return!(e===47||x0(e))}function x0(e){return e===43||e===45||e===46||e===95||Yn(e)}function _1(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const uX={tokenize:yX,partial:!0};function cX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pX,continuation:{tokenize:mX},exit:gX}},text:{91:{name:"gfmFootnoteCall",tokenize:hX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dX,resolveTo:fX}}}}function dX(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!s||!s._balanced)return n(u);const c=wi(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function fX(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function hX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return a;function a(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(o>999||h===93&&!s||h===null||h===91||Dt(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wi(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Dt(h)||(s=!0),o++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}}function pX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,a;return u;function u(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(x)}function f(x){if(s>999||x===93&&!a||x===null||x===91||Dt(x))return n(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=wi(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Dt(x)||(a=!0),s++,e.consume(x),x===92?h:f}function h(x){return x===91||x===92||x===93?(e.consume(x),s++,f):f(x)}function p(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),vt(e,m,"gfmFootnoteDefinitionWhitespace")):n(x)}function m(x){return t(x)}}function mX(e,t,n){return e.check(zd,t,e.attempt(uX,t,n))}function gX(e){e.exit("gfmFootnoteDefinition")}function yX(e,t,n){const r=this;return vt(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function xX(e){let n=e.singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},h={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},p=[["enter",f,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",h,a]],m=a.parser.constructs.insideSpan.null;m&&Mr(p,p.length,0,Cm(m,s.slice(c+1,u),a)),Mr(p,p.length,0,[["exit",h,a],["enter",s[u][1],a],["exit",s[u][1],a],["exit",f,a]]),Mr(s,c-1,u-c+3,p),u=c+p.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function o(s,a,u){const c=this.previous,f=this.events;let h=0;return p;function p(x){return c===126&&f[f.length-1][1].type!=="characterEscape"?u(x):(s.enter("strikethroughSequenceTemporary"),m(x))}function m(x){const v=$l(c);if(x===126)return h>1?u(x):(s.consume(x),h++,m);if(h<2&&!n)return u(x);const k=s.exit("strikethroughSequenceTemporary"),b=$l(x);return k._open=!b||b===2&&!!v,k._close=!v||v===2&&!!b,a(x)}}}class vX{constructor(){this.map=[]}add(t,n,r){wX(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function wX(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function bX(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function kX(){return{flow:{null:{name:"table",tokenize:SX,resolveAll:EX}}}}function SX(e,t,n){const r=this;let i=0,o=0,s;return a;function a(M){let z=r.events.length-1;for(;z>-1;){const O=r.events[z][1].type;if(O==="lineEnding"||O==="linePrefix")z--;else break}const F=z>-1?r.events[z][1].type:null,Y=F==="tableHead"||F==="tableRow"?T:u;return Y===T&&r.parser.lazy[r.now().line]?n(M):Y(M)}function u(M){return e.enter("tableHead"),e.enter("tableRow"),c(M)}function c(M){return M===124||(s=!0,o+=1),f(M)}function f(M){return M===null?n(M):Ze(M)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),m):n(M):mt(M)?vt(e,f,"whitespace")(M):(o+=1,s&&(s=!1,i+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),h(M)))}function h(M){return M===null||M===124||Dt(M)?(e.exit("data"),f(M)):(e.consume(M),M===92?p:h)}function p(M){return M===92||M===124?(e.consume(M),h):h(M)}function m(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),s=!1,mt(M)?vt(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):x(M))}function x(M){return M===45||M===58?k(M):M===124?(s=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),v):P(M)}function v(M){return mt(M)?vt(e,k,"whitespace")(M):k(M)}function k(M){return M===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),b):M===45?(o+=1,b(M)):M===null||Ze(M)?N(M):P(M)}function b(M){return M===45?(e.enter("tableDelimiterFiller"),E(M)):P(M)}function E(M){return M===45?(e.consume(M),E):M===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(M))}function C(M){return mt(M)?vt(e,N,"whitespace")(M):N(M)}function N(M){return M===124?x(M):M===null||Ze(M)?!s||i!==o?P(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):P(M)}function P(M){return n(M)}function T(M){return e.enter("tableRow"),D(M)}function D(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),D):M===null||Ze(M)?(e.exit("tableRow"),t(M)):mt(M)?vt(e,D,"whitespace")(M):(e.enter("data"),R(M))}function R(M){return M===null||M===124||Dt(M)?(e.exit("data"),D(M)):(e.consume(M),M===92?I:R)}function I(M){return M===92||M===124?(e.consume(M),R):R(M)}}function EX(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,u=0,c,f,h;const p=new vX;for(;++n<e.length;){const m=e[n],x=m[1];m[0]==="enter"?x.type==="tableHead"?(a=!1,u!==0&&(WN(p,t,u,c,f),f=void 0,u=0),c={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(n,0,[["enter",c,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(n,0,[["enter",f,t]])),i=x.type==="tableDelimiterRow"?2:f?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],h=Dh(p,t,o,i,void 0,h),o=[0,0,0,0]),s[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],h=Dh(p,t,o,i,void 0,h)),o=s,s=[o[1],n,0,0])):x.type==="tableHead"?(a=!0,u=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=n,o[1]!==0?(s[0]=s[1],h=Dh(p,t,o,i,n,h)):s[1]!==0&&(h=Dh(p,t,s,i,n,h)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&WN(p,t,u,c,f),p.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=bX(t.events,n))}return e}function Dh(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},fl(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=fl(t.events,n[1]);if(o={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=fl(t.events,n[2]),f=fl(t.events,n[3]),h={type:a,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const p=t.events[n[2]],m=t.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,v=n[3]-n[2]-1;e.add(x,v,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(o.end=Object.assign({},fl(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function WN(e,t,n,r,i){const o=[],s=fl(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function fl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const CX={name:"tasklistCheck",tokenize:NX};function _X(){return{text:{91:CX}}}function NX(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return Dt(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return Ze(u)?t(u):mt(u)?e.check({tokenize:TX},t,n)(u):n(u)}}function TX(e,t,n){return vt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function AX(e){return q2([eX(),cX(),xX(e),kX(),_X()])}const PX={};function RX(e){const t=this,n=e||PX,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(AX(n)),o.push(KK()),s.push(XK(n))}const MX="modulepreload",DX=function(e){return"/"+e},UN={},jX=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=DX(u),u in UN)return;UN[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":MX,c||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};async function OX(e,t){const{codeToTokens:n,bundledLanguages:r}=await jX(async()=>{const{codeToTokens:o,bundledLanguages:s}=await import("./index-BcDMRE9o.js");return{codeToTokens:o,bundledLanguages:s}},[]);if(!(t in r))return null;const{tokens:i}=await n(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}function IX({children:e}){const t=e.replace(/\\n/g,`
241
241
  `);return y.jsx(wZ,{remarkPlugins:[RX],components:FX,className:"space-y-3",children:t})}const ID=ne.memo(({children:e,language:t,...n})=>{const[r,i]=S.useState([]);return S.useEffect(()=>{OX(e,t).then(o=>{o&&i(o)})},[e,t]),r.length?y.jsx("pre",{...n,children:y.jsx("code",{children:r.map((o,s)=>y.jsxs(y.Fragment,{children:[y.jsx("span",{children:o.map((a,u)=>{const c=typeof a.htmlStyle=="string"?void 0:a.htmlStyle;return y.jsx("span",{className:"text-shiki-light bg-shiki-light-bg dark:text-shiki-dark dark:bg-shiki-dark-bg",style:c,children:a.content},u)})},s),s!==r.length-1&&`
242
- `]}))})}):y.jsx("pre",{...n,children:e})});ID.displayName="HighlightedCode";const LX=({children:e,className:t,language:n,...r})=>{const i=typeof e=="string"?e:v0(e),o=Te("overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",t);return y.jsxs("div",{className:"group/code relative mb-4",children:[y.jsx(S.Suspense,{fallback:y.jsx("pre",{className:o,...r,children:e}),children:y.jsx(ID,{language:n,className:o,children:i})}),y.jsx("div",{className:"invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100",children:y.jsx(Yc,{content:i,copyMessage:"Copied code to clipboard"})})]})};function v0(e){var t;if(typeof e=="string")return e;if((t=e==null?void 0:e.props)!=null&&t.children){let n=e.props.children;return Array.isArray(n)?n.map(r=>v0(r)).join(""):v0(n)}return""}const FX={h1:In("h1","text-2xl font-semibold"),h2:In("h2","font-semibold text-xl"),h3:In("h3","font-semibold text-lg"),h4:In("h4","font-semibold text-base"),h5:In("h5","font-medium"),strong:In("strong","font-semibold"),a:In("a","text-primary underline underline-offset-2"),blockquote:In("blockquote","border-l-2 border-primary pl-4"),code:({children:e,className:t,node:n,...r})=>{const i=/language-(\w+)/.exec(t||"");return i?y.jsx(LX,{className:t,language:i[1],...r,children:e}):y.jsx("code",{className:Te("font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"),...r,children:e})},pre:({children:e})=>e,ol:In("ol","list-decimal space-y-2 pl-6"),ul:In("ul","list-disc space-y-2 pl-6"),li:In("li","my-1.5"),table:In("table","w-full border-collapse overflow-y-auto rounded-md border border-foreground/20"),th:In("th","border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right"),td:In("td","border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right"),tr:In("tr","m-0 border-t p-0 even:bg-muted"),p:In("p","whitespace-pre-wrap leading-relaxed"),hr:In("hr","border-foreground/20")};function In(e,t){const n=({node:r,...i})=>y.jsx(e,{className:t,...i});return n.displayName=e,n}const $X=lu("group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",{variants:{isUser:{true:"bg-primary text-primary-foreground",false:"bg-muted text-foreground"},isError:{true:"bg-red-100 dark:bg-red-900/20",false:""},animation:{none:"",slide:"duration-300 animate-in fade-in-0",scale:"duration-300 animate-in fade-in-0 zoom-in-75",fade:"duration-500 animate-in fade-in-0"}},compoundVariants:[{isUser:!0,animation:"slide",class:"slide-in-from-right"},{isUser:!1,animation:"slide",class:"slide-in-from-left"},{isUser:!0,animation:"scale",class:"origin-bottom-right"},{isUser:!1,animation:"scale",class:"origin-bottom-left"}]}),zX=({role:e,content:t,createdAt:n,showTimeStamp:r=!1,animation:i="scale",actions:o,className:s,experimental_attachments:a,isError:u=!1})=>{const c=e==="user",f=S.useMemo(()=>a==null?void 0:a.map(p=>{const m=BX(p.url);return new File([m],p.name??"Unknown")}),[a]),h=n==null?void 0:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return y.jsxs("div",{className:Te("flex flex-col",c?"items-end":"items-start"),children:[f?y.jsx("div",{className:"mb-1 flex gap-2 flex-wrap",children:f.map((p,m)=>y.jsx(l1,{file:p},m))}):null,y.jsxs("div",{className:Te($X({isUser:c,isError:u,animation:i}),s),children:[y.jsx("div",{children:y.jsx(IX,{children:t})}),e==="assistant"&&o?y.jsx("div",{className:"absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 opacity-0 transition-opacity group-hover/message:opacity-100 text-foreground",children:o}):null]}),r&&n?y.jsx("time",{dateTime:n.toISOString(),className:Te("mt-1 block px-1 text-xs opacity-50",i!=="none"&&"duration-500 animate-in fade-in-0"),children:h}):null]})};function BX(e){const t=e.split(",")[1],n=Buffer.from(t??"","base64");return new Uint8Array(n)}function VX(){return y.jsx("div",{className:"justify-left flex space-x-1",children:y.jsx("div",{className:"rounded-lg bg-muted p-3",children:y.jsxs("div",{className:"flex -space-x-2.5",children:[y.jsx(cx,{className:"h-5 w-5 animate-typing-dot-bounce"}),y.jsx(cx,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:90ms]"}),y.jsx(cx,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:180ms]"})]})})})}function WX({messages:e,showTimeStamps:t=!0,isTyping:n=!1,messageOptions:r}){return y.jsxs("div",{className:"space-y-4 overflow-visible",children:[e.map((i,o)=>{const s=typeof r=="function"?r(i):r;return i.role==="assistant"&&!i.content.trim()?null:y.jsx(zX,{showTimeStamp:t,...i,...s},o)}),n&&y.jsx(VX,{})]})}function UX({label:e,append:t,suggestions:n}){return y.jsxs("div",{className:"space-y-6",children:[y.jsx("h2",{className:"text-center text-2xl font-bold",children:e}),y.jsx("div",{className:"flex flex-col sm:flex-row gap-6 text-sm items-center justify-center",children:n.map(r=>y.jsx("button",{onClick:()=>t({role:"user",content:r}),className:"h-max rounded-xl border bg-transparent p-4 hover:bg-accent",children:y.jsx("p",{children:r})},r))})]})}const HX=50;function YX(e){const t=S.useRef(null),n=S.useRef(null),[r,i]=S.useState(!0),o=()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},s=()=>{if(t.current){const{scrollTop:u,scrollHeight:c,clientHeight:f}=t.current;if(n.current?u<n.current:!1)i(!1);else{const p=Math.abs(c-u-f)<HX;i(p)}n.current=u}},a=()=>{i(!1)};return S.useEffect(()=>{t.current&&(n.current=t.current.scrollTop)},[]),S.useEffect(()=>{r&&o()},e),{containerRef:t,scrollToBottom:o,handleScroll:s,shouldAutoScroll:r,handleTouchStart:a}}function qX({messages:e,children:t}){const{containerRef:n,scrollToBottom:r,handleScroll:i,shouldAutoScroll:o,handleTouchStart:s}=YX([e]);return y.jsxs("div",{className:"grid overflow-y-auto pb-4 grid-cols-1",ref:n,onScroll:i,onTouchStart:s,children:[y.jsx("div",{className:"[grid-column:1/1] [grid-row:1/1] max-w-full",children:t}),y.jsx("div",{className:"flex justify-end items-end [grid-column:1/1] [grid-row:1/1] flex-1",children:!o&&y.jsx("div",{className:"sticky bottom-0 left-0 flex w-full justify-end",children:y.jsx(Mt,{onClick:r,className:"h-8 w-8 rounded-full ease-in-out animate-in fade-in-0 slide-in-from-bottom-1",size:"icon",variant:"ghost",children:y.jsx(XB,{className:"h-4 w-4"})})})})]})}const LD=S.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:Te("grid max-h-full w-full grid-rows-[1fr_auto]",e),...t}));LD.displayName="ChatContainer";const FD=S.forwardRef(({children:e,handleSubmit:t,isPending:n,className:r},i)=>{const[o,s]=S.useState(null),a=u=>{if(n){u.preventDefault();return}if(!o){t(u);return}const c=GX(o);t(u,{experimental_attachments:c}),s(null)};return y.jsx("form",{ref:i,onSubmit:a,className:r,children:e({files:o,setFiles:s})})});FD.displayName="ChatForm";function GX(e){const t=new DataTransfer;for(const n of Array.from(e))t.items.add(n);return t.files}function ZX({agentId:e,initialMessages:t=[],agentName:n,threadId:r,memory:i}){const[o,s]=S.useState(t),[a,u]=S.useState(""),[c,f]=S.useState(!1),{mutate:h}=_b();S.useEffect(()=>{t&&s(t)},[t]);const p=S.useCallback(C=>{u(C.target.value)},[]),m=async C=>{var D;if((D=C==null?void 0:C.preventDefault)==null||D.call(C),!a.trim()||c)return;const N=a;u(""),f(!0);const P={id:Date.now().toString(),role:"user",content:N},T={id:(Date.now()+1).toString(),role:"assistant",content:""};s(R=>[...R,P,T]);try{const R=await fetch("/api/agents/"+e+"/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[N],...i?{threadId:r,resourceid:e}:{}})});if(!R.body)return;if(R.status!==200){const Y=await R.json();s(O=>[...O.slice(0,-1),{...O[O.length-1],content:Y.message,isError:!0}]);return}h(`/api/memory/threads?resourceid=${e}`);const I=R.body.getReader(),M=new TextDecoder;let z="",F="";for(;;){const{done:Y,value:O}=await I.read();if(Y)break;const q=M.decode(O);z+=q;const W=z.match(/\d+:"([^"]*Error[^"]*)"/);if(W){const U=W[1].replace(/^An error occurred while processing your request\.\s*/,"");s(B=>[...B.slice(0,-1),{...B[B.length-1],content:U,isError:!0}]);return}const Z=z.matchAll(/0:"([^"]*)"/g);for(const U of Z){const B=U[1];F+=B,s(L=>[...L.slice(0,-1),{...L[L.length-1],content:F}])}z=""}}catch(R){s(I=>[...I.slice(0,-1),{...I[I.length-1],content:(R==null?void 0:R.message)||"An error occurred while processing your request.",isError:!0}])}finally{f(!1)}},x=o.at(-1),v=o.length===0,k=c&&(x==null?void 0:x.role)==="assistant"&&!(x!=null&&x.content.trim()),b=S.useCallback(C=>{u(C.content),m()},[m]),E=["What capabilities do you have?","How can you help me?","Tell me about yourself"];return y.jsxs(LD,{className:"h-full px-4 pb-3 pt-4 max-w-[1000px] mx-auto",children:[y.jsx("div",{className:"flex flex-col h-full",children:v?y.jsx("div",{className:"mx-auto max-w-2xl",children:y.jsx(UX,{label:`Chat with ${n}`,append:b,suggestions:E})}):y.jsx(Rn,{className:" h-[calc(100vh-15rem)] px-4",children:y.jsx(qX,{messages:o,children:y.jsx(WX,{messages:o,isTyping:k})})})}),y.jsxs("div",{className:"flex flex-col mt-auto gap-2",children:[y.jsx(FD,{isPending:c||k,handleSubmit:m,children:({files:C,setFiles:N})=>y.jsx(R2,{value:a,onChange:p,files:C,setFiles:N,isGenerating:c,placeholder:"Enter your message..."})}),!i&&y.jsxs("div",{className:"flex items-center gap-1 text-sm text-mastra-el-5",children:[y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"text-purple-400",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("path",{d:"M12 16v-4"}),y.jsx("path",{d:"M12 8h.01"})]}),y.jsxs("span",{className:"text-xs text-gray-300/60",children:["Agent will not remember previous messages. To enable memory for agent see"," ",y.jsx("a",{href:"https://mastra.ai/docs/agents/01-agent-memory",target:"_blank",rel:"noopener",className:"text-gray-300/60 hover:text-gray-100 underline",children:"docs."})]})]})]})]})}const $D=S.forwardRef(({...e},t)=>y.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));$D.displayName="Breadcrumb";const zD=S.forwardRef(({className:e,...t},n)=>y.jsx("ol",{ref:n,className:Te("text-mastra-el-6 flex items-center gap-2 break-words text-[calc(13_/_16_*_1rem)] font-medium",e),...t}));zD.displayName="BreadcrumbList";const BD=S.forwardRef(({className:e,...t},n)=>y.jsx("li",{ref:n,className:Te("inline-flex items-center gap-1.5",e),...t}));BD.displayName="BreadcrumbItem";const VD=S.forwardRef(({asChild:e,className:t,...n},r)=>{const i=e?qi:"a";return y.jsx(i,{ref:r,className:Te("hover:text-text transition-colors",t),...n})});VD.displayName="BreadcrumbLink";const WD=S.forwardRef(({className:e,...t},n)=>y.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:Te("text-mastra-el-5 text-sm font-medium",e),...t}));WD.displayName="BreadcrumbPage";const UD=({children:e,className:t,...n})=>y.jsx("li",{role:"presentation","aria-hidden":"true",className:Te(t),...n,children:e??y.jsx(am,{className:"text-mastra-el-3 !h-[0.625rem] !w-[0.625rem] -rotate-90"})});UD.displayName="BreadcrumbSeparator";function Am({items:e,pageClassName:t,icon:n}){return y.jsxs("div",{className:"flex items-center gap-4",children:[n,y.jsx($D,{children:y.jsx(zD,{children:e.map((r,i)=>y.jsxs("span",{className:"flex flex-nowrap items-center gap-2",children:[y.jsx(BD,{children:r.isCurrent?y.jsx(WD,{className:t,children:r.label}):y.jsx(VD,{asChild:!0,children:y.jsx(Dd,{to:r.href,className:"text-mastra-el-3",children:r.label})})},r.href),i<e.length-1&&y.jsx(UD,{})]},i))})})]})}function N1(e){const t=e+"CollectionProvider",[n,r]=ti(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:v}=m,k=ne.useRef(null),b=ne.useRef(new Map).current;return y.jsx(i,{scope:x,itemMap:b,collectionRef:k,children:v})};s.displayName=t;const a=e+"CollectionSlot",u=ne.forwardRef((m,x)=>{const{scope:v,children:k}=m,b=o(a,v),E=ht(x,b.collectionRef);return y.jsx(qi,{ref:E,children:k})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=ne.forwardRef((m,x)=>{const{scope:v,children:k,...b}=m,E=ne.useRef(null),C=ht(x,E),N=o(c,v);return ne.useEffect(()=>(N.itemMap.set(E,{ref:E,...b}),()=>void N.itemMap.delete(E))),y.jsx(qi,{[f]:"",ref:C,children:k})});h.displayName=c;function p(m){const x=o(e+"CollectionConsumer",m);return ne.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const b=Array.from(k.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,P)=>b.indexOf(N.ref.current)-b.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},p,r]}var KX=mz.useId||(()=>{}),XX=0;function En(e){const[t,n]=S.useState(KX());return qn(()=>{e||n(r=>r??String(XX++))},[e]),e||(t?`radix-${t}`:"")}function Ro({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=QX({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=hn(n),u=S.useCallback(c=>{if(o){const h=typeof c=="function"?c(e):c;h!==e&&a(h)}else i(c)},[o,e,i,a]);return[s,u]}function QX({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,i=S.useRef(r),o=hn(t);return S.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Zx="rovingFocusGroup.onEntryFocus",JX={bubbles:!1,cancelable:!0},Pm="RovingFocusGroup",[w0,HD,eQ]=N1(Pm),[tQ,Rm]=ti(Pm,[eQ]),[nQ,rQ]=tQ(Pm),YD=S.forwardRef((e,t)=>y.jsx(w0.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(w0.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(iQ,{...e,ref:t})})}));YD.displayName=Pm;var iQ=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...h}=e,p=S.useRef(null),m=ht(t,p),x=jd(o),[v=null,k]=Ro({prop:s,defaultProp:a,onChange:u}),[b,E]=S.useState(!1),C=hn(c),N=HD(n),P=S.useRef(!1),[T,D]=S.useState(0);return S.useEffect(()=>{const R=p.current;if(R)return R.addEventListener(Zx,C),()=>R.removeEventListener(Zx,C)},[C]),y.jsx(nQ,{scope:n,orientation:r,dir:x,loop:i,currentTabStopId:v,onItemFocus:S.useCallback(R=>k(R),[k]),onItemShiftTab:S.useCallback(()=>E(!0),[]),onFocusableItemAdd:S.useCallback(()=>D(R=>R+1),[]),onFocusableItemRemove:S.useCallback(()=>D(R=>R-1),[]),children:y.jsx(He.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{P.current=!0}),onFocus:Re(e.onFocus,R=>{const I=!P.current;if(R.target===R.currentTarget&&I&&!b){const M=new CustomEvent(Zx,JX);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){const z=N().filter(W=>W.focusable),F=z.find(W=>W.active),Y=z.find(W=>W.id===v),q=[F,Y,...z].filter(Boolean).map(W=>W.ref.current);ZD(q,f)}}P.current=!1}),onBlur:Re(e.onBlur,()=>E(!1))})})}),qD="RovingFocusGroupItem",GD=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...s}=e,a=En(),u=o||a,c=rQ(qD,n),f=c.currentTabStopId===u,h=HD(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),y.jsx(w0.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:y.jsx(He.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Re(e.onMouseDown,x=>{r?c.onItemFocus(u):x.preventDefault()}),onFocus:Re(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Re(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=aQ(x,c.orientation,c.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let b=h().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const E=b.indexOf(x.currentTarget);b=c.loop?lQ(b,E+1):b.slice(E+1)}setTimeout(()=>ZD(b))}})})})});GD.displayName=qD;var oQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sQ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function aQ(e,t,n){const r=sQ(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return oQ[r]}function ZD(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function lQ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KD=YD,XD=GD,T1="Tabs",[uQ,Wxe]=ti(T1,[Rm]),QD=Rm(),[cQ,A1]=uQ(T1),JD=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:a,activationMode:u="automatic",...c}=e,f=jd(a),[h,p]=Ro({prop:r,onChange:i,defaultProp:o});return y.jsx(cQ,{scope:n,baseId:En(),value:h,onValueChange:p,orientation:s,dir:f,activationMode:u,children:y.jsx(He.div,{dir:f,"data-orientation":s,...c,ref:t})})});JD.displayName=T1;var ej="TabsList",tj=S.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,o=A1(ej,n),s=QD(n);return y.jsx(KD,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:y.jsx(He.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});tj.displayName=ej;var nj="TabsTrigger",rj=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=A1(nj,n),a=QD(n),u=sj(s.baseId,r),c=aj(s.baseId,r),f=r===s.value;return y.jsx(XD,{asChild:!0,...a,focusable:!i,active:f,children:y.jsx(He.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:t,onMouseDown:Re(e.onMouseDown,h=>{!i&&h.button===0&&h.ctrlKey===!1?s.onValueChange(r):h.preventDefault()}),onKeyDown:Re(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&s.onValueChange(r)}),onFocus:Re(e.onFocus,()=>{const h=s.activationMode!=="manual";!f&&!i&&h&&s.onValueChange(r)})})})});rj.displayName=nj;var ij="TabsContent",oj=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:o,...s}=e,a=A1(ij,n),u=sj(a.baseId,r),c=aj(a.baseId,r),f=r===a.value,h=S.useRef(f);return S.useEffect(()=>{const p=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(p)},[]),y.jsx(sr,{present:i||f,children:({present:p})=>y.jsx(He.div,{"data-state":f?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!p,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:p&&o})})});oj.displayName=ij;function sj(e,t){return`${e}-trigger-${t}`}function aj(e,t){return`${e}-content-${t}`}var dQ=JD,lj=tj,uj=rj,cj=oj;const P1=dQ,Mm=S.forwardRef(({className:e,...t},n)=>y.jsx(lj,{ref:n,className:Te(e),...t}));Mm.displayName=lj.displayName;const _o=S.forwardRef(({className:e,...t},n)=>y.jsx(uj,{ref:n,className:Te(e),...t}));_o.displayName=uj.displayName;const No=S.forwardRef(({className:e,...t},n)=>y.jsx(cj,{ref:n,className:Te("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));No.displayName=cj.displayName;const HN=(e,t)=>{const[n,r]=S.useState([]),[i,o]=S.useState(!0),s=async a=>{o(!0);try{const u=await fetch(`/api/agents/${a??e}/evals/${t}`);if(!u.ok){const f=await u.json();r([]),console.error("Error fetching evals",f),nn.error((f==null?void 0:f.error)||"Error fetching evals");return}const c=await u.json();r(c.evals)}catch(u){r([]),console.error("Error fetching evals",u),nn.error("Error fetching evals")}finally{o(!1)}};return S.useEffect(()=>{s(e)},[e]),{evals:n,isLoading:i,refetchEvals:s}};function fQ({agentId:e}){const[t,n]=S.useState("live"),{evals:r,isLoading:i,refetchEvals:o}=HN(e,"live"),{evals:s,isLoading:a,refetchEvals:u}=HN(e,"ci"),c=()=>{t==="live"?o():u()};return y.jsx("div",{className:"flex-1 relative overflow-hidden",children:y.jsx("div",{className:"flex justify-between sticky top-0 bg-mastra-bg-2 p-4",children:y.jsxs(P1,{value:t,onValueChange:f=>n(f),className:"w-full",children:[y.jsxs(Mm,{children:[y.jsx(_o,{value:"live",className:"mr-4",children:"Live"}),y.jsx(_o,{value:"ci",children:"CI"})]}),y.jsx("div",{className:"flex justify-end my-2",children:y.jsx(Mt,{variant:"outline",onClick:c,disabled:t==="live"?i:a,children:(t==="live"?i:a)?y.jsx(jl,{className:"w-4 h-4 animate-spin"}):y.jsx(jl,{className:"w-4 h-4"})})}),y.jsxs(Rn,{className:"rounded-lg h-[calc(100vh-180px)]",children:[y.jsx(No,{value:"live",className:"mt-0",children:y.jsx(YN,{showTestName:!1,evals:r,isLoading:i})}),y.jsx(No,{value:"ci",className:"mt-0",children:y.jsx(YN,{showTestName:!0,evals:s,isLoading:a})})]})]})})})}function YN({showTestName:e=!1,evals:t,isLoading:n}){const[r,i]=S.useState(new Set),o=a=>{const u=new Set(r);u.has(a)?u.delete(a):u.add(a),i(u)},s=a=>a.reduce((u,c)=>{const f=u.find(h=>h.metricName===c.meta.metricName);return f?(f.evals.push(c),f.averageScore=f.evals.reduce((h,p)=>h+p.result.score,0)/f.evals.length):u.push({metricName:c.meta.metricName,averageScore:c.result.score,evals:[c]}),u},[]);return y.jsxs(hm,{children:[y.jsx(pm,{className:"bg-[#171717] sticky top-0 z-10",children:y.jsxs(Xr,{className:"border-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(mr,{className:"w-[50px]"}),y.jsx(mr,{className:"w-[300px] text-mastra-el-3",children:"Metric"}),y.jsx(mr,{className:"w-[600px] text-mastra-el-3"}),y.jsx(mr,{className:"w-[200px] text-mastra-el-3",children:"Average Score"}),y.jsx(mr,{className:"text-mastra-el-3",children:"Total Evaluations"})]})}),y.jsx(mm,{className:"border-b border-gray-6",children:n?y.jsxs(Xr,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(gt,{className:"w-[50px]",children:y.jsx(Ue,{className:"h-8 w-8"})}),y.jsx(gt,{className:"w-[400px]",children:y.jsx(Ue,{className:"h-8 w-full"})}),y.jsx(gt,{className:"w-[400px]",children:y.jsx(Ue,{className:"h-8 w-full"})}),y.jsx(gt,{className:"w-[200px]",children:y.jsx(Ue,{className:"h-8 w-full"})}),y.jsx(gt,{children:y.jsx(Ue,{className:"h-8 w-full"})})]}):s(t).map(a=>y.jsxs(y.Fragment,{children:[y.jsxs(Xr,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem] cursor-pointer hover:bg-mastra-bg-3",onClick:()=>o(a.metricName),children:[y.jsx(gt,{className:"w-[50px]",children:y.jsx("div",{className:"h-8 w-full flex items-center justify-center",children:r.has(a.metricName)?y.jsx(am,{className:"h-4 w-4 text-mastra-el-5"}):y.jsx(eV,{className:"h-4 w-4 text-mastra-el-5"})})}),y.jsx(gt,{className:"w-[300px] font-medium text-mastra-el-5",children:a.metricName}),y.jsx(gt,{className:"w-[600px] text-mastra-el-5"}),y.jsx(gt,{className:"w-[200px] text-mastra-el-5",children:a.averageScore.toFixed(2)}),y.jsx(gt,{className:"text-mastra-el-5",children:a.evals.length})]},a.metricName),r.has(a.metricName)&&y.jsxs(y.Fragment,{children:[y.jsxs(Xr,{className:"bg-mastra-bg-3 text-[0.7rem] text-mastra-el-3",children:[y.jsx(gt,{className:"w-[50px]"}),y.jsx(gt,{className:"w-[300px] pl-8",children:"Timestamp"}),y.jsx(gt,{className:"w-[600px] pl-8",children:"Input"}),y.jsx(gt,{className:"w-[200px]",children:"Score"}),e&&y.jsx(gt,{children:"Test Name"})]}),a.evals.map((u,c)=>y.jsxs(Xr,{className:"bg-mastra-bg-3 text-[0.8125rem]",children:[y.jsx(gt,{className:"w-[50px]"}),y.jsx(gt,{className:"w-[300px] text-mastra-el-4 pl-8",children:new Date(u.meta.timestamp).toLocaleString()}),y.jsx(gt,{className:"w-[600px] text-mastra-el-4",children:u.input}),y.jsx(gt,{className:"w-[200px] text-mastra-el-4",children:u.result.score}),e&&y.jsx(gt,{className:"text-mastra-el-4",children:u.meta.testName})]},`${a.metricName}-${c}`))]})]}))})]})}function hQ({agentId:e}){var i;const{isLoading:t,agent:n}=um(e),r=Lo();return t?y.jsx(Rn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]})]})]})}):y.jsx(Rn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Name"}),y.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.name})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Instructions"}),y.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:n==null?void 0:n.instructions})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Model"}),y.jsx("p",{className:"text-mastra-el-5",children:(i=n==null?void 0:n.model)==null?void 0:i.name})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Provider"}),y.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.model.provider})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Tools"}),y.jsx("div",{className:"flex flex-col gap-2 text-mastra-el-5",children:Object.entries((n==null?void 0:n.tools)??{}).map(([o,s])=>y.jsx("span",{onClick:()=>{r(`/tools/${e}/${s.id}`)},className:"no-underline",children:s.id},o))})]})]})})}function pQ({agentId:e}){return y.jsx(Rn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs w-[400px]",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsx("p",{className:"text-mastra-el-5",children:"/api/agents"})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/generate"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/text-object"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream-object"]})]})]})})}const dj=e=>{const[t,n]=S.useState([]),[r,i]=S.useState(!0),o=async s=>{i(!0);try{const a=await fetch(`/api/logs/${s??e}`);if(!a.ok){const c=await a.json();n([]),console.error("Error fetching logs",c),nn.error((c==null?void 0:c.error)||"Error fetching logs");return}const u=await a.json();n(u)}catch(a){n([]),console.error("Error fetching logs",a),nn.error("Error fetching logs")}finally{i(!1)}};return S.useEffect(()=>{o(e)},[e]),{logs:t,isLoading:r,refetchLogs:o}};function mQ({agentId:e}){const{logs:t,isLoading:n,refetchLogs:r}=dj(e);return y.jsxs(Rn,{className:"h-[calc(100vh-126px)] px-4 pb-4 text-xs w-[400px]",children:[y.jsx("div",{className:"flex justify-end sticky top-0 bg-mastra-bg-2 py-2",children:y.jsx(Mt,{variant:"outline",onClick:()=>r(),children:n?y.jsx(jl,{className:"w-4 h-4 animate-spin"}):y.jsx(jl,{className:"w-4 h-4"})})}),y.jsx("div",{className:"space-y-4",children:t.length===0?y.jsxs("p",{className:"text-gray-300/60",children:["No log drains. By default, logs are sent to the console. To configure log drains see"," ",y.jsx("a",{href:"https://mastra.ai/docs/reference/observability/create-logger#upstash-logger-remote-log-drain",target:"_blank",rel:"noopener",className:" hover:text-gray-100 underline",children:"docs."})]}):t.map(i=>{const o=JSON.parse(i.message);return y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex gap-2 items-center",children:[y.jsxs("p",{className:"text-mastra-el-4",children:["[",i.timestamp,"]"]}),y.jsxs("p",{className:"text-mastra-el-5",children:["[",i.level,"]"]})]}),y.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:y.jsx("code",{children:JSON.stringify(o,null,2)})})]},i.timestamp)})})]})}function qN({agentId:e}){const t=Lo();return y.jsxs(P1,{defaultValue:"details",children:[y.jsxs(Mm,{className:"flex shrink-0 border-b",children:[y.jsx(_o,{value:"details",className:"group",children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Details"})}),y.jsx(_o,{value:"endpoints",className:"group",children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Endpoints"})}),y.jsx(_o,{value:"logs",className:"group",children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Log Drains"})}),y.jsx("button",{className:"group",onClick:()=>t(`/agents/${e}/evals`),children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3",children:"Evals"})})]}),y.jsx(No,{value:"details",children:e?y.jsx(hQ,{agentId:e}):null}),y.jsx(No,{value:"endpoints",children:y.jsx(pQ,{agentId:e})}),y.jsx(No,{value:"logs",children:y.jsx(mQ,{agentId:e})})]})}function gQ(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e);S.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yQ="DismissableLayer",b0="dismissableLayer.update",xQ="dismissableLayer.pointerDownOutside",vQ="dismissableLayer.focusOutside",GN,fj=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vd=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...u}=e,c=S.useContext(fj),[f,h]=S.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=S.useState({}),x=ht(t,D=>h(D)),v=Array.from(c.layers),[k]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(k),E=f?v.indexOf(f):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,N=E>=b,P=kQ(D=>{const R=D.target,I=[...c.branches].some(M=>M.contains(R));!N||I||(i==null||i(D),s==null||s(D),D.defaultPrevented||a==null||a())},p),T=SQ(D=>{const R=D.target;[...c.branches].some(M=>M.contains(R))||(o==null||o(D),s==null||s(D),D.defaultPrevented||a==null||a())},p);return gQ(D=>{E===c.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&a&&(D.preventDefault(),a()))},p),S.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(GN=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),ZN(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=GN)}},[f,p,n,c]),S.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),ZN())},[f,c]),S.useEffect(()=>{const D=()=>m({});return document.addEventListener(b0,D),()=>document.removeEventListener(b0,D)},[]),y.jsx(He.div,{...u,ref:x,style:{pointerEvents:C?N?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,P.onPointerDownCapture)})});Vd.displayName=yQ;var wQ="DismissableLayerBranch",bQ=S.forwardRef((e,t)=>{const n=S.useContext(fj),r=S.useRef(null),i=ht(t,r);return S.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(He.div,{...e,ref:i})});bQ.displayName=wQ;function kQ(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let u=function(){hj(xQ,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SQ(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=S.useRef(!1);return S.useEffect(()=>{const i=o=>{o.target&&!r.current&&hj(vQ,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ZN(){const e=new CustomEvent(b0);document.dispatchEvent(e)}function hj(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?AR(i,o):i.dispatchEvent(o)}var Kx="focusScope.autoFocusOnMount",Xx="focusScope.autoFocusOnUnmount",KN={bubbles:!1,cancelable:!0},EQ="FocusScope",Wd=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,u]=S.useState(null),c=hn(i),f=hn(o),h=S.useRef(null),p=ht(t,v=>u(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let v=function(C){if(m.paused||!a)return;const N=C.target;a.contains(N)?h.current=N:ys(h.current,{select:!0})},k=function(C){if(m.paused||!a)return;const N=C.relatedTarget;N!==null&&(a.contains(N)||ys(h.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&ys(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",k);const E=new MutationObserver(b);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",k),E.disconnect()}}},[r,a,m.paused]),S.useEffect(()=>{if(a){QN.add(m);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(Kx,KN);a.addEventListener(Kx,c),a.dispatchEvent(b),b.defaultPrevented||(CQ(PQ(pj(a)),{select:!0}),document.activeElement===v&&ys(a))}return()=>{a.removeEventListener(Kx,c),setTimeout(()=>{const b=new CustomEvent(Xx,KN);a.addEventListener(Xx,f),a.dispatchEvent(b),b.defaultPrevented||ys(v??document.body,{select:!0}),a.removeEventListener(Xx,f),QN.remove(m)},0)}}},[a,c,f,m]);const x=S.useCallback(v=>{if(!n&&!r||m.paused)return;const k=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(k&&b){const E=v.currentTarget,[C,N]=_Q(E);C&&N?!v.shiftKey&&b===N?(v.preventDefault(),n&&ys(C,{select:!0})):v.shiftKey&&b===C&&(v.preventDefault(),n&&ys(N,{select:!0})):b===E&&v.preventDefault()}},[n,r,m.paused]);return y.jsx(He.div,{tabIndex:-1,...s,ref:p,onKeyDown:x})});Wd.displayName=EQ;function CQ(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ys(r,{select:t}),document.activeElement!==n)return}function _Q(e){const t=pj(e),n=XN(t,e),r=XN(t.reverse(),e);return[n,r]}function pj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function XN(e,t){for(const n of e)if(!NQ(n,{upTo:t}))return n}function NQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TQ(e){return e instanceof HTMLInputElement&&"select"in e}function ys(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TQ(e)&&t&&e.select()}}var QN=AQ();function AQ(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=JN(e,t),e.unshift(t)},remove(t){var n;e=JN(e,t),(n=e[0])==null||n.resume()}}}function JN(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function PQ(e){return e.filter(t=>t.tagName!=="A")}var RQ="Portal",Ud=S.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=S.useState(!1);qn(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?bR.createPortal(y.jsx(He.div,{...r,ref:t}),s):null});Ud.displayName=RQ;var Qx=0;function Dm(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eT()),document.body.insertAdjacentElement("beforeend",e[1]??eT()),Qx++,()=>{Qx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qx--}},[])}function eT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Li=function(){return Li=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Li.apply(this,arguments)};function mj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function MQ(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var tp="right-scroll-bar-position",np="width-before-scroll-bar",DQ="with-scroll-bars-hidden",jQ="--removed-body-scroll-bar-size";function Jx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function OQ(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var IQ=typeof window<"u"?S.useLayoutEffect:S.useEffect,tT=new WeakMap;function LQ(e,t){var n=OQ(null,function(r){return e.forEach(function(i){return Jx(i,r)})});return IQ(function(){var r=tT.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||Jx(a,null)}),o.forEach(function(a){i.has(a)||Jx(a,s)})}tT.set(n,e)},[e]),n}function FQ(e){return e}function $Q(e,t){t===void 0&&(t=FQ);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var u=function(){var f=s;s=[],f.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return i}function zQ(e){e===void 0&&(e={});var t=$Q(null);return t.options=Li({async:!0,ssr:!1},e),t}var gj=function(e){var t=e.sideCar,n=mj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Li({},n))};gj.isSideCarExport=!0;function BQ(e,t){return e.useMedium(t),gj}var yj=zQ(),ev=function(){},jm=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:ev,onWheelCapture:ev,onTouchMoveCapture:ev}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noIsolation,x=e.inert,v=e.allowPinchZoom,k=e.as,b=k===void 0?"div":k,E=e.gapMode,C=mj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=p,P=LQ([n,t]),T=Li(Li({},C),i);return S.createElement(S.Fragment,null,f&&S.createElement(N,{sideCar:yj,removeScrollBar:c,shards:h,noIsolation:m,inert:x,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:E}),s?S.cloneElement(S.Children.only(a),Li(Li({},T),{ref:P})):S.createElement(b,Li({},T,{className:u,ref:P}),a))});jm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jm.classNames={fullWidth:np,zeroRight:tp};var VQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VQ();return t&&e.setAttribute("nonce",t),e}function UQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function HQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var YQ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=WQ())&&(UQ(t,n),HQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qQ=function(){var e=YQ();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xj=function(){var e=qQ(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},GQ={left:0,top:0,right:0,gap:0},tv=function(e){return parseInt(e||"",10)||0},ZQ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[tv(n),tv(r),tv(i)]},KQ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return GQ;var t=ZQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},XQ=xj(),Nl="data-scroll-locked",QQ=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
242
+ `]}))})}):y.jsx("pre",{...n,children:e})});ID.displayName="HighlightedCode";const LX=({children:e,className:t,language:n,...r})=>{const i=typeof e=="string"?e:v0(e),o=Te("overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",t);return y.jsxs("div",{className:"group/code relative mb-4",children:[y.jsx(S.Suspense,{fallback:y.jsx("pre",{className:o,...r,children:e}),children:y.jsx(ID,{language:n,className:o,children:i})}),y.jsx("div",{className:"invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100",children:y.jsx(Yc,{content:i,copyMessage:"Copied code to clipboard"})})]})};function v0(e){var t;if(typeof e=="string")return e;if((t=e==null?void 0:e.props)!=null&&t.children){let n=e.props.children;return Array.isArray(n)?n.map(r=>v0(r)).join(""):v0(n)}return""}const FX={h1:In("h1","text-2xl font-semibold"),h2:In("h2","font-semibold text-xl"),h3:In("h3","font-semibold text-lg"),h4:In("h4","font-semibold text-base"),h5:In("h5","font-medium"),strong:In("strong","font-semibold"),a:In("a","text-primary underline underline-offset-2"),blockquote:In("blockquote","border-l-2 border-primary pl-4"),code:({children:e,className:t,node:n,...r})=>{const i=/language-(\w+)/.exec(t||"");return i?y.jsx(LX,{className:t,language:i[1],...r,children:e}):y.jsx("code",{className:Te("font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"),...r,children:e})},pre:({children:e})=>e,ol:In("ol","list-decimal space-y-2 pl-6"),ul:In("ul","list-disc space-y-2 pl-6"),li:In("li","my-1.5"),table:In("table","w-full border-collapse overflow-y-auto rounded-md border border-foreground/20"),th:In("th","border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right"),td:In("td","border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right"),tr:In("tr","m-0 border-t p-0 even:bg-muted"),p:In("p","whitespace-pre-wrap leading-relaxed"),hr:In("hr","border-foreground/20")};function In(e,t){const n=({node:r,...i})=>y.jsx(e,{className:t,...i});return n.displayName=e,n}const $X=lu("group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",{variants:{isUser:{true:"bg-primary text-primary-foreground",false:"bg-muted text-foreground"},isError:{true:"bg-red-100 dark:bg-red-900/20",false:""},animation:{none:"",slide:"duration-300 animate-in fade-in-0",scale:"duration-300 animate-in fade-in-0 zoom-in-75",fade:"duration-500 animate-in fade-in-0"}},compoundVariants:[{isUser:!0,animation:"slide",class:"slide-in-from-right"},{isUser:!1,animation:"slide",class:"slide-in-from-left"},{isUser:!0,animation:"scale",class:"origin-bottom-right"},{isUser:!1,animation:"scale",class:"origin-bottom-left"}]}),zX=({role:e,content:t,createdAt:n,showTimeStamp:r=!1,animation:i="scale",actions:o,className:s,experimental_attachments:a,isError:u=!1})=>{const c=e==="user",f=S.useMemo(()=>a==null?void 0:a.map(p=>{const m=BX(p.url);return new File([m],p.name??"Unknown")}),[a]),h=n==null?void 0:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return y.jsxs("div",{className:Te("flex flex-col",c?"items-end":"items-start"),children:[f?y.jsx("div",{className:"mb-1 flex gap-2 flex-wrap",children:f.map((p,m)=>y.jsx(l1,{file:p},m))}):null,y.jsxs("div",{className:Te($X({isUser:c,isError:u,animation:i}),s),children:[y.jsx("div",{children:y.jsx(IX,{children:t})}),e==="assistant"&&o?y.jsx("div",{className:"absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 opacity-0 transition-opacity group-hover/message:opacity-100 text-foreground",children:o}):null]}),r&&n?y.jsx("time",{dateTime:n.toISOString(),className:Te("mt-1 block px-1 text-xs opacity-50",i!=="none"&&"duration-500 animate-in fade-in-0"),children:h}):null]})};function BX(e){const t=e.split(",")[1],n=Buffer.from(t??"","base64");return new Uint8Array(n)}function VX(){return y.jsx("div",{className:"justify-left flex space-x-1",children:y.jsx("div",{className:"rounded-lg bg-muted p-3",children:y.jsxs("div",{className:"flex -space-x-2.5",children:[y.jsx(cx,{className:"h-5 w-5 animate-typing-dot-bounce"}),y.jsx(cx,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:90ms]"}),y.jsx(cx,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:180ms]"})]})})})}function WX({messages:e,showTimeStamps:t=!0,isTyping:n=!1,messageOptions:r}){return y.jsxs("div",{className:"space-y-4 overflow-visible",children:[e.map((i,o)=>{const s=typeof r=="function"?r(i):r;return i.role==="assistant"&&!i.content.trim()?null:y.jsx(zX,{showTimeStamp:t,...i,...s},o)}),n&&y.jsx(VX,{})]})}function UX({label:e,append:t,suggestions:n}){return y.jsxs("div",{className:"space-y-6",children:[y.jsx("h2",{className:"text-center text-2xl font-bold",children:e}),y.jsx("div",{className:"flex flex-col sm:flex-row gap-6 text-sm items-center justify-center",children:n.map(r=>y.jsx("button",{onClick:()=>t({role:"user",content:r}),className:"h-max rounded-xl border bg-transparent p-4 hover:bg-accent",children:y.jsx("p",{children:r})},r))})]})}const HX=50;function YX(e){const t=S.useRef(null),n=S.useRef(null),[r,i]=S.useState(!0),o=()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},s=()=>{if(t.current){const{scrollTop:u,scrollHeight:c,clientHeight:f}=t.current;if(n.current?u<n.current:!1)i(!1);else{const p=Math.abs(c-u-f)<HX;i(p)}n.current=u}},a=()=>{i(!1)};return S.useEffect(()=>{t.current&&(n.current=t.current.scrollTop)},[]),S.useEffect(()=>{r&&o()},e),{containerRef:t,scrollToBottom:o,handleScroll:s,shouldAutoScroll:r,handleTouchStart:a}}function qX({messages:e,children:t}){const{containerRef:n,scrollToBottom:r,handleScroll:i,shouldAutoScroll:o,handleTouchStart:s}=YX([e]);return y.jsxs("div",{className:"grid overflow-y-auto pb-4 grid-cols-1",ref:n,onScroll:i,onTouchStart:s,children:[y.jsx("div",{className:"[grid-column:1/1] [grid-row:1/1] max-w-full",children:t}),y.jsx("div",{className:"flex justify-end items-end [grid-column:1/1] [grid-row:1/1] flex-1",children:!o&&y.jsx("div",{className:"sticky bottom-0 left-0 flex w-full justify-end",children:y.jsx(Mt,{onClick:r,className:"h-8 w-8 rounded-full ease-in-out animate-in fade-in-0 slide-in-from-bottom-1",size:"icon",variant:"ghost",children:y.jsx(XB,{className:"h-4 w-4"})})})})]})}const LD=S.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:Te("grid max-h-full w-full grid-rows-[1fr_auto]",e),...t}));LD.displayName="ChatContainer";const FD=S.forwardRef(({children:e,handleSubmit:t,isPending:n,className:r},i)=>{const[o,s]=S.useState(null),a=u=>{if(n){u.preventDefault();return}if(!o){t(u);return}const c=GX(o);t(u,{experimental_attachments:c}),s(null)};return y.jsx("form",{ref:i,onSubmit:a,className:r,children:e({files:o,setFiles:s})})});FD.displayName="ChatForm";function GX(e){const t=new DataTransfer;for(const n of Array.from(e))t.items.add(n);return t.files}function ZX({agentId:e,initialMessages:t=[],agentName:n,threadId:r,memory:i}){const[o,s]=S.useState(t),[a,u]=S.useState(""),[c,f]=S.useState(!1),{mutate:h}=_b();S.useEffect(()=>{t&&s(t)},[t]);const p=S.useCallback(C=>{u(C.target.value)},[]),m=async C=>{var D;if((D=C==null?void 0:C.preventDefault)==null||D.call(C),!a.trim()||c)return;const N=a;u(""),f(!0);const P={id:Date.now().toString(),role:"user",content:N},T={id:(Date.now()+1).toString(),role:"assistant",content:""};s(R=>[...R,P,T]);try{const R=await fetch("/api/agents/"+e+"/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[N],...i?{threadId:r,resourceid:e}:{}})});if(!R.body)throw new Error("No response body");if(R.status!==200){const O=await R.json();throw new Error(O.message)}h(`/api/memory/threads?resourceid=${e}`);const I=R.body.getReader(),M=new TextDecoder;let z="",F="",Y="";try{for(;;){const{done:O,value:q}=await I.read();if(O)break;const W=M.decode(q);z+=W;const Z=z.matchAll(/0:"([^"]*)"/g),U=z.matchAll(/3:"([^"]*)"/g);if(U)for(const B of U){const L=B[1];Y+=L,s(H=>[...H.slice(0,-1),{...H[H.length-1],content:Y,isError:!0}])}for(const B of Z){const L=B[1];F+=L,s(H=>[...H.slice(0,-1),{...H[H.length-1],content:F}])}z=""}}catch(O){throw new Error(O.message)}finally{I.releaseLock()}}catch(R){s(I=>[...I.slice(0,-1),{...I[I.length-1],content:(R==null?void 0:R.message)||"An error occurred while processing your request.",isError:!0}])}finally{f(!1)}},x=o.at(-1),v=o.length===0,k=c&&(x==null?void 0:x.role)==="assistant"&&!(x!=null&&x.content.trim()),b=S.useCallback(C=>{u(C.content),m()},[m]),E=["What capabilities do you have?","How can you help me?","Tell me about yourself"];return y.jsxs(LD,{className:"h-full px-4 pb-3 pt-4 max-w-[1000px] mx-auto",children:[y.jsx("div",{className:"flex flex-col h-full",children:v?y.jsx("div",{className:"mx-auto max-w-2xl",children:y.jsx(UX,{label:`Chat with ${n}`,append:b,suggestions:E})}):y.jsx(Rn,{className:" h-[calc(100vh-15rem)] px-4",children:y.jsx(qX,{messages:o,children:y.jsx(WX,{messages:o,isTyping:k})})})}),y.jsxs("div",{className:"flex flex-col mt-auto gap-2",children:[y.jsx(FD,{isPending:c||k,handleSubmit:m,children:({files:C,setFiles:N})=>y.jsx(R2,{value:a,onChange:p,files:C,setFiles:N,isGenerating:c,placeholder:"Enter your message..."})}),!i&&y.jsxs("div",{className:"flex items-center gap-1 text-sm text-mastra-el-5",children:[y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"text-purple-400",children:[y.jsx("circle",{cx:"12",cy:"12",r:"10"}),y.jsx("path",{d:"M12 16v-4"}),y.jsx("path",{d:"M12 8h.01"})]}),y.jsxs("span",{className:"text-xs text-gray-300/60",children:["Agent will not remember previous messages. To enable memory for agent see"," ",y.jsx("a",{href:"https://mastra.ai/docs/agents/01-agent-memory",target:"_blank",rel:"noopener",className:"text-gray-300/60 hover:text-gray-100 underline",children:"docs."})]})]})]})]})}const $D=S.forwardRef(({...e},t)=>y.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));$D.displayName="Breadcrumb";const zD=S.forwardRef(({className:e,...t},n)=>y.jsx("ol",{ref:n,className:Te("text-mastra-el-6 flex items-center gap-2 break-words text-[calc(13_/_16_*_1rem)] font-medium",e),...t}));zD.displayName="BreadcrumbList";const BD=S.forwardRef(({className:e,...t},n)=>y.jsx("li",{ref:n,className:Te("inline-flex items-center gap-1.5",e),...t}));BD.displayName="BreadcrumbItem";const VD=S.forwardRef(({asChild:e,className:t,...n},r)=>{const i=e?qi:"a";return y.jsx(i,{ref:r,className:Te("hover:text-text transition-colors",t),...n})});VD.displayName="BreadcrumbLink";const WD=S.forwardRef(({className:e,...t},n)=>y.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:Te("text-mastra-el-5 text-sm font-medium",e),...t}));WD.displayName="BreadcrumbPage";const UD=({children:e,className:t,...n})=>y.jsx("li",{role:"presentation","aria-hidden":"true",className:Te(t),...n,children:e??y.jsx(am,{className:"text-mastra-el-3 !h-[0.625rem] !w-[0.625rem] -rotate-90"})});UD.displayName="BreadcrumbSeparator";function Am({items:e,pageClassName:t,icon:n}){return y.jsxs("div",{className:"flex items-center gap-4",children:[n,y.jsx($D,{children:y.jsx(zD,{children:e.map((r,i)=>y.jsxs("span",{className:"flex flex-nowrap items-center gap-2",children:[y.jsx(BD,{children:r.isCurrent?y.jsx(WD,{className:t,children:r.label}):y.jsx(VD,{asChild:!0,children:y.jsx(Dd,{to:r.href,className:"text-mastra-el-3",children:r.label})})},r.href),i<e.length-1&&y.jsx(UD,{})]},i))})})]})}function N1(e){const t=e+"CollectionProvider",[n,r]=ti(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:v}=m,k=ne.useRef(null),b=ne.useRef(new Map).current;return y.jsx(i,{scope:x,itemMap:b,collectionRef:k,children:v})};s.displayName=t;const a=e+"CollectionSlot",u=ne.forwardRef((m,x)=>{const{scope:v,children:k}=m,b=o(a,v),E=ht(x,b.collectionRef);return y.jsx(qi,{ref:E,children:k})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=ne.forwardRef((m,x)=>{const{scope:v,children:k,...b}=m,E=ne.useRef(null),C=ht(x,E),N=o(c,v);return ne.useEffect(()=>(N.itemMap.set(E,{ref:E,...b}),()=>void N.itemMap.delete(E))),y.jsx(qi,{[f]:"",ref:C,children:k})});h.displayName=c;function p(m){const x=o(e+"CollectionConsumer",m);return ne.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const b=Array.from(k.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,P)=>b.indexOf(N.ref.current)-b.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},p,r]}var KX=mz.useId||(()=>{}),XX=0;function En(e){const[t,n]=S.useState(KX());return qn(()=>{e||n(r=>r??String(XX++))},[e]),e||(t?`radix-${t}`:"")}function Ro({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=QX({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=hn(n),u=S.useCallback(c=>{if(o){const h=typeof c=="function"?c(e):c;h!==e&&a(h)}else i(c)},[o,e,i,a]);return[s,u]}function QX({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,i=S.useRef(r),o=hn(t);return S.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Zx="rovingFocusGroup.onEntryFocus",JX={bubbles:!1,cancelable:!0},Pm="RovingFocusGroup",[w0,HD,eQ]=N1(Pm),[tQ,Rm]=ti(Pm,[eQ]),[nQ,rQ]=tQ(Pm),YD=S.forwardRef((e,t)=>y.jsx(w0.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(w0.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(iQ,{...e,ref:t})})}));YD.displayName=Pm;var iQ=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...h}=e,p=S.useRef(null),m=ht(t,p),x=jd(o),[v=null,k]=Ro({prop:s,defaultProp:a,onChange:u}),[b,E]=S.useState(!1),C=hn(c),N=HD(n),P=S.useRef(!1),[T,D]=S.useState(0);return S.useEffect(()=>{const R=p.current;if(R)return R.addEventListener(Zx,C),()=>R.removeEventListener(Zx,C)},[C]),y.jsx(nQ,{scope:n,orientation:r,dir:x,loop:i,currentTabStopId:v,onItemFocus:S.useCallback(R=>k(R),[k]),onItemShiftTab:S.useCallback(()=>E(!0),[]),onFocusableItemAdd:S.useCallback(()=>D(R=>R+1),[]),onFocusableItemRemove:S.useCallback(()=>D(R=>R-1),[]),children:y.jsx(He.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:Re(e.onMouseDown,()=>{P.current=!0}),onFocus:Re(e.onFocus,R=>{const I=!P.current;if(R.target===R.currentTarget&&I&&!b){const M=new CustomEvent(Zx,JX);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){const z=N().filter(W=>W.focusable),F=z.find(W=>W.active),Y=z.find(W=>W.id===v),q=[F,Y,...z].filter(Boolean).map(W=>W.ref.current);ZD(q,f)}}P.current=!1}),onBlur:Re(e.onBlur,()=>E(!1))})})}),qD="RovingFocusGroupItem",GD=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...s}=e,a=En(),u=o||a,c=rQ(qD,n),f=c.currentTabStopId===u,h=HD(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),y.jsx(w0.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:y.jsx(He.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Re(e.onMouseDown,x=>{r?c.onItemFocus(u):x.preventDefault()}),onFocus:Re(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Re(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=aQ(x,c.orientation,c.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let b=h().filter(E=>E.focusable).map(E=>E.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const E=b.indexOf(x.currentTarget);b=c.loop?lQ(b,E+1):b.slice(E+1)}setTimeout(()=>ZD(b))}})})})});GD.displayName=qD;var oQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sQ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function aQ(e,t,n){const r=sQ(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return oQ[r]}function ZD(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function lQ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KD=YD,XD=GD,T1="Tabs",[uQ,Wxe]=ti(T1,[Rm]),QD=Rm(),[cQ,A1]=uQ(T1),JD=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:a,activationMode:u="automatic",...c}=e,f=jd(a),[h,p]=Ro({prop:r,onChange:i,defaultProp:o});return y.jsx(cQ,{scope:n,baseId:En(),value:h,onValueChange:p,orientation:s,dir:f,activationMode:u,children:y.jsx(He.div,{dir:f,"data-orientation":s,...c,ref:t})})});JD.displayName=T1;var ej="TabsList",tj=S.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,o=A1(ej,n),s=QD(n);return y.jsx(KD,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:y.jsx(He.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});tj.displayName=ej;var nj="TabsTrigger",rj=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=A1(nj,n),a=QD(n),u=sj(s.baseId,r),c=aj(s.baseId,r),f=r===s.value;return y.jsx(XD,{asChild:!0,...a,focusable:!i,active:f,children:y.jsx(He.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...o,ref:t,onMouseDown:Re(e.onMouseDown,h=>{!i&&h.button===0&&h.ctrlKey===!1?s.onValueChange(r):h.preventDefault()}),onKeyDown:Re(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&s.onValueChange(r)}),onFocus:Re(e.onFocus,()=>{const h=s.activationMode!=="manual";!f&&!i&&h&&s.onValueChange(r)})})})});rj.displayName=nj;var ij="TabsContent",oj=S.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:o,...s}=e,a=A1(ij,n),u=sj(a.baseId,r),c=aj(a.baseId,r),f=r===a.value,h=S.useRef(f);return S.useEffect(()=>{const p=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(p)},[]),y.jsx(sr,{present:i||f,children:({present:p})=>y.jsx(He.div,{"data-state":f?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!p,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:p&&o})})});oj.displayName=ij;function sj(e,t){return`${e}-trigger-${t}`}function aj(e,t){return`${e}-content-${t}`}var dQ=JD,lj=tj,uj=rj,cj=oj;const P1=dQ,Mm=S.forwardRef(({className:e,...t},n)=>y.jsx(lj,{ref:n,className:Te(e),...t}));Mm.displayName=lj.displayName;const _o=S.forwardRef(({className:e,...t},n)=>y.jsx(uj,{ref:n,className:Te(e),...t}));_o.displayName=uj.displayName;const No=S.forwardRef(({className:e,...t},n)=>y.jsx(cj,{ref:n,className:Te("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));No.displayName=cj.displayName;const HN=(e,t)=>{const[n,r]=S.useState([]),[i,o]=S.useState(!0),s=async a=>{o(!0);try{const u=await fetch(`/api/agents/${a??e}/evals/${t}`);if(!u.ok){const f=await u.json();r([]),console.error("Error fetching evals",f),nn.error((f==null?void 0:f.error)||"Error fetching evals");return}const c=await u.json();r(c.evals)}catch(u){r([]),console.error("Error fetching evals",u),nn.error("Error fetching evals")}finally{o(!1)}};return S.useEffect(()=>{s(e)},[e]),{evals:n,isLoading:i,refetchEvals:s}};function fQ({agentId:e}){const[t,n]=S.useState("live"),{evals:r,isLoading:i,refetchEvals:o}=HN(e,"live"),{evals:s,isLoading:a,refetchEvals:u}=HN(e,"ci"),c=()=>{t==="live"?o():u()};return y.jsx("div",{className:"flex-1 relative overflow-hidden",children:y.jsx("div",{className:"flex justify-between sticky top-0 bg-mastra-bg-2 p-4",children:y.jsxs(P1,{value:t,onValueChange:f=>n(f),className:"w-full",children:[y.jsxs(Mm,{children:[y.jsx(_o,{value:"live",className:"mr-4",children:"Live"}),y.jsx(_o,{value:"ci",children:"CI"})]}),y.jsx("div",{className:"flex justify-end my-2",children:y.jsx(Mt,{variant:"outline",onClick:c,disabled:t==="live"?i:a,children:(t==="live"?i:a)?y.jsx(jl,{className:"w-4 h-4 animate-spin"}):y.jsx(jl,{className:"w-4 h-4"})})}),y.jsxs(Rn,{className:"rounded-lg h-[calc(100vh-180px)]",children:[y.jsx(No,{value:"live",className:"mt-0",children:y.jsx(YN,{showTestName:!1,evals:r,isLoading:i})}),y.jsx(No,{value:"ci",className:"mt-0",children:y.jsx(YN,{showTestName:!0,evals:s,isLoading:a})})]})]})})})}function YN({showTestName:e=!1,evals:t,isLoading:n}){const[r,i]=S.useState(new Set),o=a=>{const u=new Set(r);u.has(a)?u.delete(a):u.add(a),i(u)},s=a=>a.reduce((u,c)=>{const f=u.find(h=>h.metricName===c.meta.metricName);return f?(f.evals.push(c),f.averageScore=f.evals.reduce((h,p)=>h+p.result.score,0)/f.evals.length):u.push({metricName:c.meta.metricName,averageScore:c.result.score,evals:[c]}),u},[]);return y.jsxs(hm,{children:[y.jsx(pm,{className:"bg-[#171717] sticky top-0 z-10",children:y.jsxs(Xr,{className:"border-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(mr,{className:"w-[50px]"}),y.jsx(mr,{className:"w-[300px] text-mastra-el-3",children:"Metric"}),y.jsx(mr,{className:"w-[600px] text-mastra-el-3"}),y.jsx(mr,{className:"w-[200px] text-mastra-el-3",children:"Average Score"}),y.jsx(mr,{className:"text-mastra-el-3",children:"Total Evaluations"})]})}),y.jsx(mm,{className:"border-b border-gray-6",children:n?y.jsxs(Xr,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[y.jsx(gt,{className:"w-[50px]",children:y.jsx(Ue,{className:"h-8 w-8"})}),y.jsx(gt,{className:"w-[400px]",children:y.jsx(Ue,{className:"h-8 w-full"})}),y.jsx(gt,{className:"w-[400px]",children:y.jsx(Ue,{className:"h-8 w-full"})}),y.jsx(gt,{className:"w-[200px]",children:y.jsx(Ue,{className:"h-8 w-full"})}),y.jsx(gt,{children:y.jsx(Ue,{className:"h-8 w-full"})})]}):s(t).map(a=>y.jsxs(y.Fragment,{children:[y.jsxs(Xr,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem] cursor-pointer hover:bg-mastra-bg-3",onClick:()=>o(a.metricName),children:[y.jsx(gt,{className:"w-[50px]",children:y.jsx("div",{className:"h-8 w-full flex items-center justify-center",children:r.has(a.metricName)?y.jsx(am,{className:"h-4 w-4 text-mastra-el-5"}):y.jsx(eV,{className:"h-4 w-4 text-mastra-el-5"})})}),y.jsx(gt,{className:"w-[300px] font-medium text-mastra-el-5",children:a.metricName}),y.jsx(gt,{className:"w-[600px] text-mastra-el-5"}),y.jsx(gt,{className:"w-[200px] text-mastra-el-5",children:a.averageScore.toFixed(2)}),y.jsx(gt,{className:"text-mastra-el-5",children:a.evals.length})]},a.metricName),r.has(a.metricName)&&y.jsxs(y.Fragment,{children:[y.jsxs(Xr,{className:"bg-mastra-bg-3 text-[0.7rem] text-mastra-el-3",children:[y.jsx(gt,{className:"w-[50px]"}),y.jsx(gt,{className:"w-[300px] pl-8",children:"Timestamp"}),y.jsx(gt,{className:"w-[600px] pl-8",children:"Input"}),y.jsx(gt,{className:"w-[200px]",children:"Score"}),e&&y.jsx(gt,{children:"Test Name"})]}),a.evals.map((u,c)=>y.jsxs(Xr,{className:"bg-mastra-bg-3 text-[0.8125rem]",children:[y.jsx(gt,{className:"w-[50px]"}),y.jsx(gt,{className:"w-[300px] text-mastra-el-4 pl-8",children:new Date(u.meta.timestamp).toLocaleString()}),y.jsx(gt,{className:"w-[600px] text-mastra-el-4",children:u.input}),y.jsx(gt,{className:"w-[200px] text-mastra-el-4",children:u.result.score}),e&&y.jsx(gt,{className:"text-mastra-el-4",children:u.meta.testName})]},`${a.metricName}-${c}`))]})]}))})]})}function hQ({agentId:e}){var i;const{isLoading:t,agent:n}=um(e),r=Lo();return t?y.jsx(Rn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"}),y.jsx(Ue,{className:"h-3"})]})]})]})}):y.jsx(Rn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Name"}),y.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.name})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Instructions"}),y.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:n==null?void 0:n.instructions})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Model"}),y.jsx("p",{className:"text-mastra-el-5",children:(i=n==null?void 0:n.model)==null?void 0:i.name})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Provider"}),y.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.model.provider})]}),y.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"Tools"}),y.jsx("div",{className:"flex flex-col gap-2 text-mastra-el-5",children:Object.entries((n==null?void 0:n.tools)??{}).map(([o,s])=>y.jsx("span",{onClick:()=>{r(`/tools/${e}/${s.id}`)},className:"no-underline",children:s.id},o))})]})]})})}function pQ({agentId:e}){return y.jsx(Rn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs w-[400px]",children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsx("p",{className:"text-mastra-el-5",children:"/api/agents"})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"GET"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/generate"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/text-object"]})]}),y.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[y.jsx("p",{className:"text-mastra-el-3",children:"POST"}),y.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",e,"/stream-object"]})]})]})})}const dj=e=>{const[t,n]=S.useState([]),[r,i]=S.useState(!0),o=async s=>{i(!0);try{const a=await fetch(`/api/logs/${s??e}`);if(!a.ok){const c=await a.json();n([]),console.error("Error fetching logs",c),nn.error((c==null?void 0:c.error)||"Error fetching logs");return}const u=await a.json();n(u)}catch(a){n([]),console.error("Error fetching logs",a),nn.error("Error fetching logs")}finally{i(!1)}};return S.useEffect(()=>{o(e)},[e]),{logs:t,isLoading:r,refetchLogs:o}};function mQ({agentId:e}){const{logs:t,isLoading:n,refetchLogs:r}=dj(e);return y.jsxs(Rn,{className:"h-[calc(100vh-126px)] px-4 pb-4 text-xs w-[400px]",children:[y.jsx("div",{className:"flex justify-end sticky top-0 bg-mastra-bg-2 py-2",children:y.jsx(Mt,{variant:"outline",onClick:()=>r(),children:n?y.jsx(jl,{className:"w-4 h-4 animate-spin"}):y.jsx(jl,{className:"w-4 h-4"})})}),y.jsx("div",{className:"space-y-4",children:t.length===0?y.jsxs("p",{className:"text-gray-300/60",children:["No log drains. By default, logs are sent to the console. To configure log drains see"," ",y.jsx("a",{href:"https://mastra.ai/docs/reference/observability/create-logger#upstash-logger-remote-log-drain",target:"_blank",rel:"noopener",className:" hover:text-gray-100 underline",children:"docs."})]}):t.map(i=>{const o=JSON.parse(i.message);return y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex gap-2 items-center",children:[y.jsxs("p",{className:"text-mastra-el-4",children:["[",i.timestamp,"]"]}),y.jsxs("p",{className:"text-mastra-el-5",children:["[",i.level,"]"]})]}),y.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:y.jsx("code",{children:JSON.stringify(o,null,2)})})]},i.timestamp)})})]})}function qN({agentId:e}){const t=Lo();return y.jsxs(P1,{defaultValue:"details",children:[y.jsxs(Mm,{className:"flex shrink-0 border-b",children:[y.jsx(_o,{value:"details",className:"group",children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Details"})}),y.jsx(_o,{value:"endpoints",className:"group",children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Endpoints"})}),y.jsx(_o,{value:"logs",className:"group",children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Log Drains"})}),y.jsx("button",{className:"group",onClick:()=>t(`/agents/${e}/evals`),children:y.jsx("p",{className:"text-xs p-3 text-mastra-el-3",children:"Evals"})})]}),y.jsx(No,{value:"details",children:e?y.jsx(hQ,{agentId:e}):null}),y.jsx(No,{value:"endpoints",children:y.jsx(pQ,{agentId:e})}),y.jsx(No,{value:"logs",children:y.jsx(mQ,{agentId:e})})]})}function gQ(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e);S.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yQ="DismissableLayer",b0="dismissableLayer.update",xQ="dismissableLayer.pointerDownOutside",vQ="dismissableLayer.focusOutside",GN,fj=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vd=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...u}=e,c=S.useContext(fj),[f,h]=S.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=S.useState({}),x=ht(t,D=>h(D)),v=Array.from(c.layers),[k]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(k),E=f?v.indexOf(f):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,N=E>=b,P=kQ(D=>{const R=D.target,I=[...c.branches].some(M=>M.contains(R));!N||I||(i==null||i(D),s==null||s(D),D.defaultPrevented||a==null||a())},p),T=SQ(D=>{const R=D.target;[...c.branches].some(M=>M.contains(R))||(o==null||o(D),s==null||s(D),D.defaultPrevented||a==null||a())},p);return gQ(D=>{E===c.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&a&&(D.preventDefault(),a()))},p),S.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(GN=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),ZN(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=GN)}},[f,p,n,c]),S.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),ZN())},[f,c]),S.useEffect(()=>{const D=()=>m({});return document.addEventListener(b0,D),()=>document.removeEventListener(b0,D)},[]),y.jsx(He.div,{...u,ref:x,style:{pointerEvents:C?N?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,P.onPointerDownCapture)})});Vd.displayName=yQ;var wQ="DismissableLayerBranch",bQ=S.forwardRef((e,t)=>{const n=S.useContext(fj),r=S.useRef(null),i=ht(t,r);return S.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y.jsx(He.div,{...e,ref:i})});bQ.displayName=wQ;function kQ(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let u=function(){hj(xQ,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function SQ(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=S.useRef(!1);return S.useEffect(()=>{const i=o=>{o.target&&!r.current&&hj(vQ,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ZN(){const e=new CustomEvent(b0);document.dispatchEvent(e)}function hj(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?AR(i,o):i.dispatchEvent(o)}var Kx="focusScope.autoFocusOnMount",Xx="focusScope.autoFocusOnUnmount",KN={bubbles:!1,cancelable:!0},EQ="FocusScope",Wd=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,u]=S.useState(null),c=hn(i),f=hn(o),h=S.useRef(null),p=ht(t,v=>u(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let v=function(C){if(m.paused||!a)return;const N=C.target;a.contains(N)?h.current=N:ys(h.current,{select:!0})},k=function(C){if(m.paused||!a)return;const N=C.relatedTarget;N!==null&&(a.contains(N)||ys(h.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&ys(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",k);const E=new MutationObserver(b);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",k),E.disconnect()}}},[r,a,m.paused]),S.useEffect(()=>{if(a){QN.add(m);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(Kx,KN);a.addEventListener(Kx,c),a.dispatchEvent(b),b.defaultPrevented||(CQ(PQ(pj(a)),{select:!0}),document.activeElement===v&&ys(a))}return()=>{a.removeEventListener(Kx,c),setTimeout(()=>{const b=new CustomEvent(Xx,KN);a.addEventListener(Xx,f),a.dispatchEvent(b),b.defaultPrevented||ys(v??document.body,{select:!0}),a.removeEventListener(Xx,f),QN.remove(m)},0)}}},[a,c,f,m]);const x=S.useCallback(v=>{if(!n&&!r||m.paused)return;const k=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(k&&b){const E=v.currentTarget,[C,N]=_Q(E);C&&N?!v.shiftKey&&b===N?(v.preventDefault(),n&&ys(C,{select:!0})):v.shiftKey&&b===C&&(v.preventDefault(),n&&ys(N,{select:!0})):b===E&&v.preventDefault()}},[n,r,m.paused]);return y.jsx(He.div,{tabIndex:-1,...s,ref:p,onKeyDown:x})});Wd.displayName=EQ;function CQ(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ys(r,{select:t}),document.activeElement!==n)return}function _Q(e){const t=pj(e),n=XN(t,e),r=XN(t.reverse(),e);return[n,r]}function pj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function XN(e,t){for(const n of e)if(!NQ(n,{upTo:t}))return n}function NQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TQ(e){return e instanceof HTMLInputElement&&"select"in e}function ys(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TQ(e)&&t&&e.select()}}var QN=AQ();function AQ(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=JN(e,t),e.unshift(t)},remove(t){var n;e=JN(e,t),(n=e[0])==null||n.resume()}}}function JN(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function PQ(e){return e.filter(t=>t.tagName!=="A")}var RQ="Portal",Ud=S.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=S.useState(!1);qn(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?bR.createPortal(y.jsx(He.div,{...r,ref:t}),s):null});Ud.displayName=RQ;var Qx=0;function Dm(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eT()),document.body.insertAdjacentElement("beforeend",e[1]??eT()),Qx++,()=>{Qx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qx--}},[])}function eT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Li=function(){return Li=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Li.apply(this,arguments)};function mj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function MQ(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var tp="right-scroll-bar-position",np="width-before-scroll-bar",DQ="with-scroll-bars-hidden",jQ="--removed-body-scroll-bar-size";function Jx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function OQ(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var IQ=typeof window<"u"?S.useLayoutEffect:S.useEffect,tT=new WeakMap;function LQ(e,t){var n=OQ(null,function(r){return e.forEach(function(i){return Jx(i,r)})});return IQ(function(){var r=tT.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||Jx(a,null)}),o.forEach(function(a){i.has(a)||Jx(a,s)})}tT.set(n,e)},[e]),n}function FQ(e){return e}function $Q(e,t){t===void 0&&(t=FQ);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var u=function(){var f=s;s=[],f.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return i}function zQ(e){e===void 0&&(e={});var t=$Q(null);return t.options=Li({async:!0,ssr:!1},e),t}var gj=function(e){var t=e.sideCar,n=mj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Li({},n))};gj.isSideCarExport=!0;function BQ(e,t){return e.useMedium(t),gj}var yj=zQ(),ev=function(){},jm=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:ev,onWheelCapture:ev,onTouchMoveCapture:ev}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noIsolation,x=e.inert,v=e.allowPinchZoom,k=e.as,b=k===void 0?"div":k,E=e.gapMode,C=mj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=p,P=LQ([n,t]),T=Li(Li({},C),i);return S.createElement(S.Fragment,null,f&&S.createElement(N,{sideCar:yj,removeScrollBar:c,shards:h,noIsolation:m,inert:x,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:E}),s?S.cloneElement(S.Children.only(a),Li(Li({},T),{ref:P})):S.createElement(b,Li({},T,{className:u,ref:P}),a))});jm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jm.classNames={fullWidth:np,zeroRight:tp};var VQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VQ();return t&&e.setAttribute("nonce",t),e}function UQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function HQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var YQ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=WQ())&&(UQ(t,n),HQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qQ=function(){var e=YQ();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xj=function(){var e=qQ(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},GQ={left:0,top:0,right:0,gap:0},tv=function(e){return parseInt(e||"",10)||0},ZQ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[tv(n),tv(r),tv(i)]},KQ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return GQ;var t=ZQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},XQ=xj(),Nl="data-scroll-locked",QQ=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
243
243
  .`.concat(DQ,` {
244
244
  overflow: hidden `).concat(r,`;
245
245
  padding-right: `).concat(a,"px ").concat(r,`;
@@ -27,7 +27,7 @@
27
27
 
28
28
  connectSSE();
29
29
  </script>
30
- <script type="module" crossorigin src="/assets/index-4_HS8ieP.js"></script>
30
+ <script type="module" crossorigin src="/assets/index-BuPwogkH.js"></script>
31
31
  <link rel="stylesheet" crossorigin href="/assets/style-_--6WeqI.css">
32
32
  </head>
33
33
  <body>