yanki 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,222 @@
1
+ var of=Object.defineProperty;var a=(t,e)=>of(t,"name",{value:e,configurable:!0});import af from"rehype-mathjax";import lf from"rehype-parse";import"node:path";import{webcrypto as ao}from"node:crypto";function X(t,e,n){const r={type:String(t)};return n==null&&(typeof e=="string"||Array.isArray(e))?n=e:Object.assign(r,e),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r}a(X,"u$2");const uf=`.card {
2
+ font-family: arial;
3
+ font-size: 20px;
4
+ text-align: center;
5
+ color: black;
6
+ background-color: white;
7
+ }`,Jr=!0,Ot="yanki",cn="Yanki",zn="(Empty)",cf=X("root",[X("element",{properties:{},tagName:"p"},[X("element",{properties:{},tagName:"em"},[X("text",zn)])])]);function Xr(t){return t.charAt(0).toUpperCase()+t.slice(1)}a(Xr,"capitalize");function Zr(t,e){if(t.length<=e)return t;const n=t.split(" ");for(;n.length>1&&n.join(" ").length>e;)n.pop();return`${n.join(" ").slice(0,e)}...`}a(Zr,"truncateWithEllipsis");function ff(t){const e=new URL(t);return{host:`${e.protocol}//${e.hostname}`,port:Number.parseInt(e.port,10)}}a(ff,"urlToHostAndPort");function hf(t,e){return`${t}:${e}`}a(hf,"hostAndPortToUrl");function pf(t){return t.toLowerCase().replaceAll(/[^\da-z]/gi," ").trim().replaceAll(/ +/g,"-")}a(pf,"cleanClassName");function Pt(t){if(t!==void 0)return t.trim()===""?void 0:t}a(Pt,"emptyIsUndefined");const lo=[{id:"abap",name:"ABAP",import:()=>import("./abap-DXFkqnOI.js")},{id:"actionscript-3",name:"ActionScript",import:()=>import("./actionscript-3-BigF1UXR.js")},{id:"ada",name:"Ada",import:()=>import("./ada-CowR2XfX.js")},{id:"angular-html",name:"Angular HTML",import:()=>import("./angular-html-CZfDmWtJ.js").then(function(t){return t.e})},{id:"angular-ts",name:"Angular TypeScript",import:()=>import("./angular-ts-CIhYrOL5.js")},{id:"apache",name:"Apache Conf",import:()=>import("./apache-rS0jd3Ly.js")},{id:"apex",name:"Apex",import:()=>import("./apex-Sfo2eW0G.js")},{id:"apl",name:"APL",import:()=>import("./apl-DPLNWaKG.js")},{id:"applescript",name:"AppleScript",import:()=>import("./applescript-BXKAgOFh.js")},{id:"ara",name:"Ara",import:()=>import("./ara-CG4fK2Nq.js")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>import("./asciidoc-C539GviS.js")},{id:"asm",name:"Assembly",import:()=>import("./asm-PWN5J14X.js")},{id:"astro",name:"Astro",import:()=>import("./astro-71xeBtnw.js")},{id:"awk",name:"AWK",import:()=>import("./awk-i0IPvypD.js")},{id:"ballerina",name:"Ballerina",import:()=>import("./ballerina-T9ysyp6P.js")},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>import("./bat-BPiaQZfK.js")},{id:"beancount",name:"Beancount",import:()=>import("./beancount-Urb1RsFe.js")},{id:"berry",name:"Berry",aliases:["be"],import:()=>import("./berry-CxrokwfH.js")},{id:"bibtex",name:"BibTeX",import:()=>import("./bibtex-BaedD2tq.js")},{id:"bicep",name:"Bicep",import:()=>import("./bicep-3ghuYFLd.js")},{id:"blade",name:"Blade",import:()=>import("./blade-D3A5GssZ.js")},{id:"c",name:"C",import:()=>import("./c-RCJZWN-0.js")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>import("./cadence-Bgpqy2XC.js")},{id:"clarity",name:"Clarity",import:()=>import("./clarity-CIekO_uJ.js")},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>import("./clojure-BF6G6X0H.js")},{id:"cmake",name:"CMake",import:()=>import("./cmake-DXZpi2gR.js")},{id:"cobol",name:"COBOL",import:()=>import("./cobol-Bi0pgIzz.js")},{id:"codeowners",name:"CODEOWNERS",import:()=>import("./codeowners-CGmujMTu.js")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>import("./codeql-BOpLLL-w.js")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>import("./coffee-Cp6Hkwsd.js")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>import("./common-lisp-C3qUB5O8.js")},{id:"cpp",name:"C++",aliases:["c++"],import:()=>import("./cpp-CeZn6MzL.js")},{id:"crystal",name:"Crystal",import:()=>import("./crystal-B5pCH4eR.js")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>import("./csharp-DISxKEhY.js")},{id:"css",name:"CSS",import:()=>import("./css-CbYhyuC0.js")},{id:"csv",name:"CSV",import:()=>import("./csv-B2DkETJQ.js")},{id:"cue",name:"CUE",import:()=>import("./cue-C6Aznpr-.js")},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>import("./cypher-ByMv4Xf1.js")},{id:"d",name:"D",import:()=>import("./d-PifQWv0n.js")},{id:"dart",name:"Dart",import:()=>import("./dart-DZLoTQm4.js")},{id:"dax",name:"DAX",import:()=>import("./dax-DsfXcHUZ.js")},{id:"desktop",name:"Desktop",import:()=>import("./desktop-D71BffLY.js")},{id:"diff",name:"Diff",import:()=>import("./diff-DvyTQcux.js")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>import("./docker-DNR26wTC.js")},{id:"dream-maker",name:"Dream Maker",import:()=>import("./dream-maker-Eh5U-gDp.js")},{id:"elixir",name:"Elixir",import:()=>import("./elixir-Exce1dLy.js")},{id:"elm",name:"Elm",import:()=>import("./elm-D7CfdsEG.js")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>import("./emacs-lisp-51pKhIDe.js")},{id:"erb",name:"ERB",import:()=>import("./erb-S7d1X-Y-.js")},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>import("./erlang-DS9ZWoKD.js")},{id:"fennel",name:"Fennel",import:()=>import("./fennel-DuK7IM-L.js")},{id:"fish",name:"Fish",import:()=>import("./fish-DfeQjIbs.js")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>import("./fluent-KPqz0Sb3.js")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>import("./fortran-fixed-form-6v7-xzYY.js")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>import("./fortran-free-form-D6pmzCqS.js")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>import("./fsharp-JZjmD0Li.js")},{id:"gdresource",name:"GDResource",import:()=>import("./gdresource-CFKM8Ske.js")},{id:"gdscript",name:"GDScript",import:()=>import("./gdscript-CoEqzGFw.js")},{id:"gdshader",name:"GDShader",import:()=>import("./gdshader-B_SUYfiV.js")},{id:"genie",name:"Genie",import:()=>import("./genie-DAfrLhwG.js")},{id:"gherkin",name:"Gherkin",import:()=>import("./gherkin-B0PjAhci.js")},{id:"git-commit",name:"Git Commit Message",import:()=>import("./git-commit-XY8bXq83.js")},{id:"git-rebase",name:"Git Rebase Message",import:()=>import("./git-rebase-BE3WlPTi.js")},{id:"gleam",name:"Gleam",import:()=>import("./gleam-Dd6f7Z5P.js")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>import("./glimmer-js-I0TZ3_O1.js")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>import("./glimmer-ts-CY38hlIb.js")},{id:"glsl",name:"GLSL",import:()=>import("./glsl-tOUOXML3.js")},{id:"gnuplot",name:"Gnuplot",import:()=>import("./gnuplot-nclm9rTJ.js")},{id:"go",name:"Go",import:()=>import("./go-BJn7Ek5W.js")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>import("./graphql-DwwLrXH1.js")},{id:"groovy",name:"Groovy",import:()=>import("./groovy-wChcbJ1V.js")},{id:"hack",name:"Hack",import:()=>import("./hack-DmjQSZc3.js")},{id:"haml",name:"Ruby Haml",import:()=>import("./haml-map1ik7u.js")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>import("./handlebars-CCc9qS91.js")},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>import("./haskell-DOVD4hs_.js")},{id:"haxe",name:"Haxe",import:()=>import("./haxe-Dit6kIrv.js")},{id:"hcl",name:"HashiCorp HCL",import:()=>import("./hcl-CpAANOdC.js")},{id:"hjson",name:"Hjson",import:()=>import("./hjson-DZqG9GXz.js")},{id:"hlsl",name:"HLSL",import:()=>import("./hlsl-DmDrTTlz.js")},{id:"html",name:"HTML",import:()=>import("./html-NmvpQUfQ.js")},{id:"html-derivative",name:"HTML (Derivative)",import:()=>import("./html-derivative-QphQoco-.js")},{id:"http",name:"HTTP",import:()=>import("./http-B58UUte0.js")},{id:"hxml",name:"HXML",import:()=>import("./hxml-4EC8aR1F.js")},{id:"hy",name:"Hy",import:()=>import("./hy-y-6HuL9l.js")},{id:"imba",name:"Imba",import:()=>import("./imba-CyaA9484.js")},{id:"ini",name:"INI",aliases:["properties"],import:()=>import("./ini-DeVv6D4_.js")},{id:"java",name:"Java",import:()=>import("./java-ClXEvkw9.js")},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>import("./javascript-Dch3xQiY.js")},{id:"jinja",name:"Jinja",import:()=>import("./jinja-BrXMjE5a.js")},{id:"jison",name:"Jison",import:()=>import("./jison-DlEKeWyG.js")},{id:"json",name:"JSON",import:()=>import("./json-CupVZNk8.js")},{id:"json5",name:"JSON5",import:()=>import("./json5-Bh8mriwU.js")},{id:"jsonc",name:"JSON with Comments",import:()=>import("./jsonc-DYI1rfmx.js")},{id:"jsonl",name:"JSON Lines",import:()=>import("./jsonl-BUpeXbsf.js")},{id:"jsonnet",name:"Jsonnet",import:()=>import("./jsonnet-C9d3aiqh.js")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>import("./jssm-Dble9ECP.js")},{id:"jsx",name:"JSX",import:()=>import("./jsx-CsyrCbsw.js")},{id:"julia",name:"Julia",aliases:["jl"],import:()=>import("./julia-jDzGJc6I.js")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>import("./kotlin-BIxS-Weu.js")},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>import("./kusto-DGEpfOTx.js")},{id:"latex",name:"LaTeX",import:()=>import("./latex-bjPeSN-x.js")},{id:"less",name:"Less",import:()=>import("./less-Du6_OKDb.js")},{id:"liquid",name:"Liquid",import:()=>import("./liquid-DHpvaAyy.js")},{id:"log",name:"Log file",import:()=>import("./log-Ksn5IXup.js")},{id:"logo",name:"Logo",import:()=>import("./logo-DdacRhvC.js")},{id:"lua",name:"Lua",import:()=>import("./lua-Cy9U1SwF.js")},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>import("./make-B9S9BZZh.js")},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>import("./markdown-BdfWgkoX.js")},{id:"marko",name:"Marko",import:()=>import("./marko-neMFgnTa.js")},{id:"matlab",name:"MATLAB",import:()=>import("./matlab-Btshr8M_.js")},{id:"mdc",name:"MDC",import:()=>import("./mdc-_-l14nii.js")},{id:"mdx",name:"MDX",import:()=>import("./mdx-CBPJd_fO.js")},{id:"mermaid",name:"Mermaid",import:()=>import("./mermaid-Dkb1Nx48.js")},{id:"mojo",name:"Mojo",import:()=>import("./mojo--7WWnkdy.js")},{id:"move",name:"Move",import:()=>import("./move-DOHBU7tp.js")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>import("./narrat-B9CT-1u6.js")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>import("./nextflow-DBxHOdLe.js")},{id:"nginx",name:"Nginx",import:()=>import("./nginx-C3DmzmOp.js")},{id:"nim",name:"Nim",import:()=>import("./nim-BjhyiCLB.js")},{id:"nix",name:"Nix",import:()=>import("./nix-B7rNE5kf.js")},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>import("./nushell-CrgTADc5.js")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>import("./objective-c-DHmGyzbM.js")},{id:"objective-cpp",name:"Objective-C++",import:()=>import("./objective-cpp-BWKJ1FCf.js")},{id:"ocaml",name:"OCaml",import:()=>import("./ocaml-RqY_Nz63.js")},{id:"pascal",name:"Pascal",import:()=>import("./pascal-BvCdDh2R.js")},{id:"perl",name:"Perl",import:()=>import("./perl-PZnu_VA7.js")},{id:"php",name:"PHP",import:()=>import("./php-m9Z3qs_k.js")},{id:"plsql",name:"PL/SQL",import:()=>import("./plsql-BbJj1K1w.js")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>import("./po-HrnDn_2Q.js")},{id:"postcss",name:"PostCSS",import:()=>import("./postcss-DXT9h7v2.js")},{id:"powerquery",name:"PowerQuery",import:()=>import("./powerquery-CApMHEaB.js")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>import("./powershell-9ZOzOPqN.js")},{id:"prisma",name:"Prisma",import:()=>import("./prisma-BBJYjQ0k.js")},{id:"prolog",name:"Prolog",import:()=>import("./prolog-BH_RS3WO.js")},{id:"proto",name:"Protocol Buffer 3",import:()=>import("./proto-DOtRmeXT.js")},{id:"pug",name:"Pug",aliases:["jade"],import:()=>import("./pug-jyQP1XtO.js")},{id:"puppet",name:"Puppet",import:()=>import("./puppet-37ic6j3l.js")},{id:"purescript",name:"PureScript",import:()=>import("./purescript-Bm5O5oLm.js")},{id:"python",name:"Python",aliases:["py"],import:()=>import("./python-DwuVtWc2.js")},{id:"qml",name:"QML",import:()=>import("./qml-DM3j-f55.js")},{id:"qmldir",name:"QML Directory",import:()=>import("./qmldir-MS3qTAOR.js")},{id:"qss",name:"Qt Style Sheets",import:()=>import("./qss-FJDVp-XM.js")},{id:"r",name:"R",import:()=>import("./r-BXfENWL6.js")},{id:"racket",name:"Racket",import:()=>import("./racket-BbLA0SU8.js")},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>import("./raku-D384ylkT.js")},{id:"razor",name:"ASP.NET Razor",import:()=>import("./razor-DokJXJPk.js")},{id:"reg",name:"Windows Registry Script",import:()=>import("./reg-CrhH3_Og.js")},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>import("./regexp-C_ZPRiAj.js")},{id:"rel",name:"Rel",import:()=>import("./rel-BuawaRXJ.js")},{id:"riscv",name:"RISC-V",import:()=>import("./riscv-D-aEEwJo.js")},{id:"rst",name:"reStructuredText",import:()=>import("./rst-DlAMacAQ.js")},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>import("./ruby-eQ1iIi6H.js")},{id:"rust",name:"Rust",aliases:["rs"],import:()=>import("./rust-DGxQkqYo.js")},{id:"sas",name:"SAS",import:()=>import("./sas-BhBoFsCt.js")},{id:"sass",name:"Sass",import:()=>import("./sass-CMDmr8et.js")},{id:"scala",name:"Scala",import:()=>import("./scala-Cd0cRMx9.js")},{id:"scheme",name:"Scheme",import:()=>import("./scheme-BTeww-4z.js")},{id:"scss",name:"SCSS",import:()=>import("./scss-DoQ2ojfq.js")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>import("./shaderlab-Bb-6Dmi7.js")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>import("./shellscript-BZfs-ost.js")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>import("./shellsession-B6XH_PlG.js")},{id:"smalltalk",name:"Smalltalk",import:()=>import("./smalltalk-DSsji4Hu.js")},{id:"solidity",name:"Solidity",import:()=>import("./solidity-CThH5sBG.js")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>import("./soy-rVg8SA9F.js")},{id:"sparql",name:"SPARQL",import:()=>import("./sparql-Cmp61EUJ.js")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>import("./splunk-6XBPEST2.js")},{id:"sql",name:"SQL",import:()=>import("./sql-DxR2xW-a.js")},{id:"ssh-config",name:"SSH Config",import:()=>import("./ssh-config-BH1M7C1g.js")},{id:"stata",name:"Stata",import:()=>import("./stata-DGeqZgIM.js")},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>import("./stylus-DSrLtGYv.js")},{id:"svelte",name:"Svelte",import:()=>import("./svelte-BMtjZn0z.js")},{id:"swift",name:"Swift",import:()=>import("./swift-C8WrqfNz.js")},{id:"system-verilog",name:"SystemVerilog",import:()=>import("./system-verilog-BscxmKrE.js")},{id:"systemd",name:"Systemd Units",import:()=>import("./systemd-IQPSIA3x.js")},{id:"tasl",name:"Tasl",import:()=>import("./tasl-BxwAa5i0.js")},{id:"tcl",name:"Tcl",import:()=>import("./tcl-C_8Fx7bH.js")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>import("./terraform-DBeuZS66.js")},{id:"tex",name:"TeX",import:()=>import("./tex-BqVuN0dX.js")},{id:"toml",name:"TOML",import:()=>import("./toml-BT9ZzGyQ.js")},{id:"tsv",name:"TSV",import:()=>import("./tsv-DnLUQrgA.js")},{id:"tsx",name:"TSX",import:()=>import("./tsx-BlxWTfDV.js")},{id:"turtle",name:"Turtle",import:()=>import("./turtle-C15OxdQ5.js")},{id:"twig",name:"Twig",import:()=>import("./twig-DDlPLETn.js")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>import("./typescript-DC8MraHL.js")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>import("./typespec-Bx89rGXK.js")},{id:"typst",name:"Typst",aliases:["typ"],import:()=>import("./typst-I4qd5QHW.js")},{id:"v",name:"V",import:()=>import("./v-C2TBxDwV.js")},{id:"vala",name:"Vala",import:()=>import("./vala-CO5hpdkB.js")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>import("./vb-beD-FUib.js")},{id:"verilog",name:"Verilog",import:()=>import("./verilog-DVfdqzEq.js")},{id:"vhdl",name:"VHDL",import:()=>import("./vhdl-QZ3jNtnE.js")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>import("./viml-BLluXI4E.js")},{id:"vue",name:"Vue",import:()=>import("./vue-B6Rs-4k4.js")},{id:"vue-html",name:"Vue HTML",import:()=>import("./vue-html-Blw9Jzz9.js")},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>import("./vyper-o-cPXEvd.js")},{id:"wasm",name:"WebAssembly",import:()=>import("./wasm-Cicx_DS6.js")},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:()=>import("./wenyan-Cavfe_d0.js")},{id:"wgsl",name:"WGSL",import:()=>import("./wgsl-BZz1Hhek.js")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>import("./wikitext-zfUCmn4z.js")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>import("./wolfram-BICIrM8O.js")},{id:"xml",name:"XML",import:()=>import("./xml-sp2Egr0Z.js")},{id:"xsl",name:"XSL",import:()=>import("./xsl-BQYvujlj.js")},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>import("./yaml-C5gCGmDW.js")},{id:"zenscript",name:"ZenScript",import:()=>import("./zenscript-B1nm99XP.js")},{id:"zig",name:"Zig",import:()=>import("./zig-xtV5iK4E.js")}],df=Object.fromEntries(lo.map(t=>[t.id,t.import])),mf=Object.fromEntries(lo.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),uo={...df,...mf},gf=a(async t=>import("./wasm-2oxoyaYy.js").then(e=>e.default(t)),"getWasmInlined"),yf=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>import("./andromeeda-YxQm0tCS.js")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>import("./aurora-x-BaWyeHV_.js")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>import("./ayu-dark-Bn5gmY5k.js")},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:()=>import("./catppuccin-frappe-BsOrZxH8.js")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>import("./catppuccin-latte-BYdKNJ10.js")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>import("./catppuccin-macchiato-DVLwECkk.js")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>import("./catppuccin-mocha-CEfge3mM.js")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>import("./dark-plus-KEYLhlmT.js")},{id:"dracula",displayName:"Dracula",type:"dark",import:()=>import("./dracula-DGO8GyiP.js")},{id:"dracula-soft",displayName:"Dracula Soft",type:"dark",import:()=>import("./dracula-soft-9B1nZgL-.js")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>import("./github-dark-CzPA46E-.js")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>import("./github-dark-default-BXF7Vm5l.js")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>import("./github-dark-dimmed-CRDKj6ck.js")},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>import("./github-light-CRlnGVMD.js")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>import("./github-light-default-UREJT2Bw.js")},{id:"houston",displayName:"Houston",type:"dark",import:()=>import("./houston-CZZ6oYdA.js")},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>import("./light-plus-BsvsQ1iS.js")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>import("./material-theme-B2BuIiKK.js")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>import("./material-theme-darker-BrGg7AAd.js")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>import("./material-theme-lighter-DDRuGeQH.js")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>import("./material-theme-ocean-CBL0qBdF.js")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>import("./material-theme-palenight-D7gg1Usp.js")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>import("./min-dark-iSbrOpM4.js")},{id:"min-light",displayName:"Min Light",type:"light",import:()=>import("./min-light-BITGhEdf.js")},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>import("./monokai-sMI-pExk.js")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>import("./night-owl-BeocmOPF.js")},{id:"nord",displayName:"Nord",type:"dark",import:()=>import("./nord-CsyjKwr8.js")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>import("./one-dark-pro-BTtaZsq5.js")},{id:"one-light",displayName:"One Light",type:"light",import:()=>import("./one-light-alpzPJ78.js")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>import("./poimandres-Cda-MJFk.js")},{id:"red",displayName:"Red",type:"dark",import:()=>import("./red-jaXbsbtS.js")},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:()=>import("./rose-pine-BIAFg_EN.js")},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:()=>import("./rose-pine-dawn-C5m_N-6l.js")},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:()=>import("./rose-pine-moon-B9S0JTD1.js")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>import("./slack-dark-C7oZ9nno.js")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>import("./slack-ochin-hXH8Gyq8.js")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>import("./snazzy-light-CA9nliXM.js")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>import("./solarized-dark-C86elO-m.js")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>import("./solarized-light-xPNGhBYe.js")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>import("./synthwave-84-BBDuFDsq.js")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>import("./tokyo-night-eJfcURhx.js")},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>import("./vesper-BSB_bK09.js")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>import("./vitesse-black-B3g-KkBK.js")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>import("./vitesse-dark-Bxkoe-BC.js")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>import("./vitesse-light-Br6ll-O0.js")}],bf=Object.fromEntries(yf.map(t=>[t.id,t.import]));var $e;(function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline"})($e||($e={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Rt;(function(t){function e(h){return h.toString(2).padStart(32,"0")}a(e,"toBinaryStr"),t.toBinaryStr=e;function n(h){const f=t.getLanguageId(h),p=t.getTokenType(h),d=t.getFontStyle(h),m=t.getForeground(h),g=t.getBackground(h);console.log({languageId:f,tokenType:p,fontStyle:d,foreground:m,background:g})}a(n,"print"),t.print=n;function r(h){return(h&255)>>>0}a(r,"getLanguageId"),t.getLanguageId=r;function i(h){return(h&768)>>>8}a(i,"getTokenType"),t.getTokenType=i;function s(h){return(h&1024)!==0}a(s,"containsBalancedBrackets"),t.containsBalancedBrackets=s;function o(h){return(h&30720)>>>11}a(o,"getFontStyle"),t.getFontStyle=o;function l(h){return(h&16744448)>>>15}a(l,"getForeground"),t.getForeground=l;function u(h){return(h&4278190080)>>>24}a(u,"getBackground"),t.getBackground=u;function c(h,f,p,d,m,g,y){let k=t.getLanguageId(h),b=t.getTokenType(h),S=t.containsBalancedBrackets(h)?1:0,N=t.getFontStyle(h),C=t.getForeground(h),w=t.getBackground(h);return f!==0&&(k=f),p!==8&&(b=p),d!==null&&(S=d?1:0),m!==-1&&(N=m),g!==0&&(C=g),y!==0&&(w=y),(k<<0|b<<8|S<<10|N<<11|C<<15|w<<24)>>>0}a(c,"set"),t.set=c})(Rt||(Rt={}));function zN(t){return t}a(zN,"toOptionalTokenType");function jN(t){return t}a(jN,"fromOptionalTokenType");function jn(t,e){const n=[],r=kf(t);let i=r.next();for(;i!==null;){let u=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=o();if(n.push({matcher:c,priority:u}),i!==",")break;i=r.next()}return n;function s(){if(i==="-"){i=r.next();const u=s();return c=>!!u&&!u(c)}if(i==="("){i=r.next();const u=l();return i===")"&&(i=r.next()),u}if(co(i)){const u=[];do u.push(i),i=r.next();while(co(i));return c=>e(u,c)}return null}function o(){const u=[];let c=s();for(;c;)u.push(c),c=s();return h=>u.every(f=>f(h))}function l(){const u=[];let c=o();for(;c&&(u.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=o()}return h=>u.some(f=>f(h))}}a(jn,"createMatchers");function co(t){return!!t&&!!t.match(/[\w\.:]+/)}a(co,"isIdentifier");function kf(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const r=n[0];return n=e.exec(t),r}}}a(kf,"newTokenizer");function fo(t){typeof t.dispose=="function"&&t.dispose()}a(fo,"disposeOnigString");function wf(t){return ei(t)}a(wf,"clone");function ei(t){return Array.isArray(t)?Sf(t):typeof t=="object"?xf(t):t}a(ei,"doClone");function Sf(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=ei(t[n]);return e}a(Sf,"cloneArray");function xf(t){let e={};for(let n in t)e[n]=ei(t[n]);return e}a(xf,"cloneObj");function ho(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}a(ho,"mergeObjects");function po(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?po(t.substring(0,t.length-1)):t.substr(~e+1)}a(po,"basename$1");let ti=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class Un{static{a(this,"RegexSource")}static hasCaptures(e){return e===null?!1:(ti.lastIndex=0,ti.test(e))}static replaceCaptures(e,n,r){return e.replace(ti,(i,s,o,l)=>{let u=r[parseInt(s||o,10)];if(u){let c=n.substring(u.start,u.end);for(;c[0]===".";)c=c.substring(1);switch(l){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return i})}}function mo(t,e){return t<e?-1:t>e?1:0}a(mo,"strcmp");function go(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let s=mo(t[i],e[i]);if(s!==0)return s}return 0}return n-r}a(go,"strArrCmp");function yo(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}a(yo,"isValidHexColor");function bo(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}a(bo,"escapeRegExpCharacters");class ko{static{a(this,"CachedFn")}fn;cache=new Map;constructor(e){this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const n=this.fn(e);return this.cache.set(e,n),n}}class fn{static{a(this,"TopLevelRuleReference")}scopeName;constructor(e){this.scopeName=e}toKey(){return this.scopeName}}class vf{static{a(this,"TopLevelRepositoryRuleReference")}scopeName;ruleName;constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class Cf{static{a(this,"ExternalReferenceCollector")}_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}}class Nf{static{a(this,"ScopeDependencyProcessor")}repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new fn(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const n=new Cf;for(const r of e)Af(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof fn){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}}function Af(t,e,n,r){const i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof fn?Gn({baseGrammar:s,selfGrammar:i},r):ni(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},r);const o=n.injections(t.scopeName);if(o)for(const l of o)r.add(new fn(l))}a(Af,"collectReferencesOfReference");function ni(t,e,n){if(e.repository&&e.repository[t]){const r=e.repository[t];Vn([r],e,n)}}a(ni,"collectExternalReferencesInTopLevelRepositoryRule");function Gn(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Vn(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Vn(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}a(Gn,"collectExternalReferencesInTopLevelRule");function Vn(t,e,n){for(const r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?ho({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&Vn(r.patterns,{...e,repository:i},n);const s=r.include;if(!s)continue;const o=wo(s);switch(o.kind){case 0:Gn({...e,selfGrammar:e.baseGrammar},n);break;case 1:Gn(e,n);break;case 2:ni(o.ruleName,{...e,repository:i},n);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const u={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};o.kind===4?ni(o.ruleName,u,n):Gn(u,n)}else o.kind===4?n.add(new vf(o.scopeName,o.ruleName)):n.add(new fn(o.scopeName));break}}}a(Vn,"collectExternalReferencesInRules");class Ef{static{a(this,"BaseReference")}kind=0}class _f{static{a(this,"SelfReference")}kind=1}class Tf{static{a(this,"RelativeReference")}ruleName;kind=2;constructor(e){this.ruleName=e}}class If{static{a(this,"TopLevelReference")}scopeName;kind=3;constructor(e){this.scopeName=e}}class Lf{static{a(this,"TopLevelRepositoryReference")}scopeName;ruleName;kind=4;constructor(e,n){this.scopeName=e,this.ruleName=n}}function wo(t){if(t==="$base")return new Ef;if(t==="$self")return new _f;const e=t.indexOf("#");if(e===-1)return new If(t);if(e===0)return new Tf(t.substring(1));{const n=t.substring(0,e),r=t.substring(e+1);return new Lf(n,r)}}a(wo,"parseInclude");const Of=/\\(\d+)/,So=/\\(\d+)/g,Pf=-1,xo=-2;function UN(t){return t}a(UN,"ruleIdFromNumber");function GN(t){return t}a(GN,"ruleIdToNumber");class hn{static{a(this,"Rule")}$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,r,i){this.$location=e,this.id=n,this._name=r||null,this._nameIsCapturing=Un.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Un.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${po(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return!this._nameIsCapturing||this._name===null||e===null||n===null?this._name:Un.replaceCaptures(this._name,e,n)}getContentName(e,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Un.replaceCaptures(this._contentName,e,n)}}class Rf extends hn{static{a(this,"CaptureRule")}retokenizeCapturedWithRuleId;constructor(e,n,r,i,s){super(e,n,r,i),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,i){throw new Error("Not supported!")}}class Df extends hn{static{a(this,"MatchRule")}_match;captures;_cachedCompiledPatterns;constructor(e,n,r,i,s){super(e,n,r,null),this._match=new Et(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,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new pn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class vo extends hn{static{a(this,"IncludeOnlyRule")}hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,i,s){super(e,n,r,i),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new pn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class ri extends hn{static{a(this,"BeginEndRule")}_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,i,s,o,l,u,c,h){super(e,n,r,i),this._begin=new Et(s,this.id),this.beginCaptures=o,this._end=new Et(l||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=c||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.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,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,i)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pn;for(const r of this.patterns)e.getRule(r).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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class Hn extends hn{static{a(this,"BeginWhileRule")}_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,r,i,s,o,l,u,c){super(e,n,r,i),this._begin=new Et(s,this.id),this.beginCaptures=o,this.whileCaptures=u,this._while=new Et(l,xo),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,i){return this._getCachedCompiledPatterns(e).compileAG(e,r,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new pn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,i){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,i)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new pn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}}class ue{static{a(this,"RuleFactory")}static createCaptureRule(e,n,r,i,s){return e.registerRule(o=>new Rf(n,o,r,i,s))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new Df(e.$vscodeTextmateLocation,e.id,e.name,e.match,ue._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=ho({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new vo(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ue._compilePatterns(s,n,r))}return e.while?new Hn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ue._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,ue._compileCaptures(e.whileCaptures||e.captures,n,r),ue._compilePatterns(e.patterns,n,r)):new ri(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ue._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,ue._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,ue._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let u=0;e[o].patterns&&(u=ue.getCompiledRuleId(e[o],n,r)),i[l]=ue.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,u)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let u=-1;if(l.include){const c=wo(l.include);switch(c.kind){case 0:case 1:u=ue.getCompiledRuleId(r[l.include],n,r);break;case 2:let h=r[c.ruleName];h&&(u=ue.getCompiledRuleId(h,n,r));break;case 3:case 4:const f=c.scopeName,p=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(p){let m=d.repository[p];m&&(u=ue.getCompiledRuleId(m,n,d.repository))}else u=ue.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else u=ue.getCompiledRuleId(l,n,r);if(u!==-1){const c=n.getRule(u);let h=!1;if((c instanceof vo||c instanceof ri||c instanceof Hn)&&c.hasMissingPatterns&&c.patterns.length===0&&(h=!0),h)continue;i.push(u)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}}class Et{static{a(this,"RegExpSource")}source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e){const r=e.length;let i=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const c=e.charAt(l+1);c==="z"?(s.push(e.substring(i,l)),s.push("$(?!\\n)(?<!\\n)"),i=l+2):(c==="A"||c==="G")&&(o=!0),l++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=Of.test(this.source)}clone(){return new Et(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){let r=n.map(i=>e.substring(i.start,i.end));return So.lastIndex=0,this.source.replace(So,(i,s)=>bo(r[parseInt(s,10)]||""))}_buildAnchorCache(){let e=[],n=[],r=[],i=[],s,o,l,u;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,n[s]=l,r[s]=l,i[s]=l,l==="\\"&&s+1<o&&(u=this.source.charAt(s+1),u==="A"?(e[s+1]="\uFFFF",n[s+1]="\uFFFF",r[s+1]="A",i[s+1]="A"):u==="G"?(e[s+1]="\uFFFF",n[s+1]="G",r[s+1]="\uFFFF",i[s+1]="G"):(e[s+1]=u,n[s+1]=u,r[s+1]=u,i[s+1]=u),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class pn{static{a(this,"RegExpSourceList")}_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new Co(e,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,r){let i=this._items.map(s=>s.resolveAnchors(n,r));return new Co(e,i,this._items.map(s=>s.ruleId))}}class Co{static{a(this,"CompiledRule")}regExps;rules;scanner;constructor(e,n,r){this.regExps=n,this.rules=r,this.scanner=e.createOnigScanner(n)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let n=0,r=this.rules.length;n<r;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
8
+ `)}findNextMatchSync(e,n,r){const i=this.scanner.findNextMatchSync(e,n,r);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class Wn{static{a(this,"Theme")}_colorMap;_defaults;_root;static createFromRawTheme(e,n){return this.createFromParsedTheme($f(e),n)}static createFromParsedTheme(e,n){return qf(e,n)}_cachedMatchRoot=new ko(e=>this._root.match(e));constructor(e,n,r){this._colorMap=e,this._defaults=n,this._root=r}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const n=e.scopeName,i=this._cachedMatchRoot.get(n).find(s=>Ff(e.parent,s.parentScopes));return i?new No(i.fontStyle,i.foreground,i.background):null}}class _t{static{a(this,"ScopeStack")}parent;scopeName;static push(e,n){for(const r of n)e=new _t(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new _t(n,e[r]);return n}constructor(e,n){this.parent=e,this.scopeName=n}push(e){return new _t(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}}function Ff(t,e){if(e===null)return!0;let n=0,r=e[n];for(;t;){if(Mf(t.scopeName,r)){if(n++,n===e.length)return!0;r=e[n]}t=t.parent}return!1}a(Ff,"_scopePathMatchesParentScopes");function Mf(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}a(Mf,"_matchesScope");class No{static{a(this,"StyleAttributes")}fontStyle;foregroundId;backgroundId;constructor(e,n,r){this.fontStyle=e,this.foregroundId=n,this.backgroundId=r}}function $f(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let f=o.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),l=f.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let u=-1;if(typeof o.settings.fontStyle=="string"){u=0;let f=o.settings.fontStyle.split(" ");for(let p=0,d=f.length;p<d;p++)switch(f[p]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof o.settings.foreground=="string"&&yo(o.settings.foreground)&&(c=o.settings.foreground);let h=null;typeof o.settings.background=="string"&&yo(o.settings.background)&&(h=o.settings.background);for(let f=0,p=l.length;f<p;f++){let m=l[f].trim().split(" "),g=m[m.length-1],y=null;m.length>1&&(y=m.slice(0,m.length-1),y.reverse()),n[r++]=new Bf(g,y,i,u,c,h)}}return n}a($f,"parseTheme");class Bf{static{a(this,"ParsedThemeRule")}scope;parentScopes;index;fontStyle;foreground;background;constructor(e,n,r,i,s,o){this.scope=e,this.parentScopes=n,this.index=r,this.fontStyle=i,this.foreground=s,this.background=o}}function qf(t,e){t.sort((u,c)=>{let h=mo(u.scope,c.scope);return h!==0||(h=go(u.parentScopes,c.parentScopes),h!==0)?h:u.index-c.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let u=t.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(i=u.background)}let s=new zf(e),o=new No(n,s.getId(r),s.getId(i)),l=new $n(new Mn(0,null,-1,0,0),[]);for(let u=0,c=t.length;u<c;u++){let h=t[u];l.insert(0,h.scope,h.parentScopes,h.fontStyle,s.getId(h.foreground),s.getId(h.background))}return new Wn(s,o,l)}a(qf,"resolveParsedThemeRules");class zf{static{a(this,"ColorMap")}_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,r=e.length;n<r;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}}class Mn{static{a(this,"ThemeTrieElementRule")}scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,i,s){this.scopeDepth=e,this.parentScopes=n,this.fontStyle=r,this.foreground=i,this.background=s}clone(){return new Mn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}}class $n{static{a(this,"ThemeTrieElement")}_mainRule;_children;_rulesWithParentScopes;constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _sortBySpecificity(e){return e.length===1||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,n){if(e.scopeDepth===n.scopeDepth){const r=e.parentScopes,i=n.parentScopes;let s=r===null?0:r.length,o=i===null?0:i.length;if(s===o)for(let l=0;l<s;l++){const u=r[l].length,c=i[l].length;if(u!==c)return c-u}return o-s}return n.scopeDepth-e.scopeDepth}match(e){if(e==="")return $n._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let n=e.indexOf("."),r,i;return n===-1?(r=e,i=""):(r=e.substring(0,n),i=e.substring(n+1)),this._children.hasOwnProperty(r)?this._children[r].match(i):$n._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,n,r,i,s,o){if(n===""){this._doInsertHere(e,r,i,s,o);return}let l=n.indexOf("."),u,c;l===-1?(u=n,c=""):(u=n.substring(0,l),c=n.substring(l+1));let h;this._children.hasOwnProperty(u)?h=this._children[u]:(h=new $n(this._mainRule.clone(),Mn.cloneArr(this._rulesWithParentScopes)),this._children[u]=h),h.insert(e+1,c,r,i,s,o)}_doInsertHere(e,n,r,i,s){if(n===null){this._mainRule.acceptOverwrite(e,r,i,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let u=this._rulesWithParentScopes[o];if(go(u.parentScopes,n)===0){u.acceptOverwrite(e,r,i,s);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Mn(e,n,r,i,s))}}class ii{static{a(this,"BasicScopeAttributes")}languageId;tokenType;constructor(e,n){this.languageId=e,this.tokenType=n}}class Yr{static{a(this,"BasicScopeAttributesProvider")}_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new ii(e,8),this._embeddedLanguagesMatcher=new jf(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Yr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new ii(0,0);_getBasicScopeAttributes=new ko(e=>{const n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new ii(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Yr.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class jf{static{a(this,"ScopeMatcher")}values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const n=e.map(([r,i])=>bo(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const n=e.match(this.scopesRegExp);if(n)return this.values.get(n[1])}}class Ao{static{a(this,"TokenizeStringResult")}stack;stoppedEarly;constructor(e,n){this.stack=e,this.stoppedEarly=n}}function Eo(t,e,n,r,i,s,o,l){const u=e.content.length;let c=!1,h=-1;if(o){const d=Uf(t,e,n,r,i,s);i=d.stack,r=d.linePos,n=d.isFirstLine,h=d.anchorPosition}const f=Date.now();for(;!c;){if(l!==0&&Date.now()-f>l)return new Ao(i,!0);p()}return new Ao(i,!1);function p(){const d=Gf(t,e,n,r,i,h);if(!d){s.produce(i,u),c=!0;return}const m=d.captureIndices,g=d.matchedRuleId,y=m&&m.length>0?m[0].end>r:!1;if(g===Pf){const k=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),dn(t,e,n,i,s,k.endCaptures,m),s.produce(i,m[0].end);const b=i;if(i=i.parent,h=b.getAnchorPos(),!y&&b.getEnterPos()===r){i=b,s.produce(i,u),c=!0;return}}else{const k=t.getRule(g);s.produce(i,m[0].start);const b=i,S=k.getName(e.content,m),N=i.contentNameScopesList.pushAttributed(S,t);if(i=i.push(g,r,h,m[0].end===u,null,N,N),k instanceof ri){const C=k;dn(t,e,n,i,s,C.beginCaptures,m),s.produce(i,m[0].end),h=m[0].end;const w=C.getContentName(e.content,m),A=N.pushAttributed(w,t);if(i=i.withContentNameScopesList(A),C.endHasBackReferences&&(i=i.withEndRule(C.getEndWithResolvedBackReferences(e.content,m))),!y&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,u),c=!0;return}}else if(k instanceof Hn){const C=k;dn(t,e,n,i,s,C.beginCaptures,m),s.produce(i,m[0].end),h=m[0].end;const w=C.getContentName(e.content,m),A=N.pushAttributed(w,t);if(i=i.withContentNameScopesList(A),C.whileHasBackReferences&&(i=i.withEndRule(C.getWhileWithResolvedBackReferences(e.content,m))),!y&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,u),c=!0;return}}else if(dn(t,e,n,i,s,k.captures,m),s.produce(i,m[0].end),i=i.pop(),!y){i=i.safePop(),s.produce(i,u),c=!0;return}}m[0].end>r&&(r=m[0].end,n=!1)}}a(Eo,"_tokenizeString");function Uf(t,e,n,r,i,s){let o=i.beginRuleCapturedEOL?0:-1;const l=[];for(let u=i;u;u=u.pop()){const c=u.getRule(t);c instanceof Hn&&l.push({rule:c,stack:u})}for(let u=l.pop();u;u=l.pop()){const{ruleScanner:c,findOptions:h}=Wf(u.rule,t,u.stack.endRule,n,r===o),f=c.findNextMatchSync(e,r,h);if(f){if(f.ruleId!==xo){i=u.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(s.produce(u.stack,f.captureIndices[0].start),dn(t,e,n,u.stack,s,u.rule.whileCaptures,f.captureIndices),s.produce(u.stack,f.captureIndices[0].end),o=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=u.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}a(Uf,"_checkWhileConditions");function Gf(t,e,n,r,i,s){const o=Vf(t,e,n,r,i,s),l=t.getInjections();if(l.length===0)return o;const u=Hf(l,t,e,n,r,i,s);if(!u)return o;if(!o)return u;const c=o.captureIndices[0].start,h=u.captureIndices[0].start;return h<c||u.priorityMatch&&h===c?u:o}a(Gf,"matchRuleOrInjections");function Vf(t,e,n,r,i,s){const o=i.getRule(t),{ruleScanner:l,findOptions:u}=_o(o,t,i.endRule,n,r===s),c=l.findNextMatchSync(e,r,u);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}a(Vf,"matchRule");function Hf(t,e,n,r,i,s,o){let l=Number.MAX_VALUE,u=null,c,h=0;const f=s.contentNameScopesList.getScopeNames();for(let p=0,d=t.length;p<d;p++){const m=t[p];if(!m.matcher(f))continue;const g=e.getRule(m.ruleId),{ruleScanner:y,findOptions:k}=_o(g,e,null,r,i===o),b=y.findNextMatchSync(n,i,k);if(!b)continue;const S=b.captureIndices[0].start;if(!(S>=l)&&(l=S,u=b.captureIndices,c=b.ruleId,h=m.priority,l===i))break}return u?{priorityMatch:h===-1,captureIndices:u,matchedRuleId:c}:null}a(Hf,"matchInjections");function _o(t,e,n,r,i){return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}a(_o,"prepareRuleSearch");function Wf(t,e,n,r,i){return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}a(Wf,"prepareRuleWhileSearch");function dn(t,e,n,r,i,s,o){if(s.length===0)return;const l=e.content,u=Math.min(s.length,o.length),c=[],h=o[0].end;for(let f=0;f<u;f++){const p=s[f];if(p===null)continue;const d=o[f];if(d.length===0)continue;if(d.start>h)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),p.retokenizeCapturedWithRuleId){const g=p.getName(l,o),y=r.contentNameScopesList.pushAttributed(g,t),k=p.getContentName(l,o),b=y.pushAttributed(k,t),S=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,b),N=t.createOnigString(l.substring(0,d.end));Eo(t,N,n&&d.start===0,d.start,S,i,!1,0),fo(N);continue}const m=p.getName(l,o);if(m!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,t);c.push(new Kf(y,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}a(dn,"handleCaptures");class Kf{static{a(this,"LocalStackElement")}scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}}function Yf(t,e,n,r,i,s,o,l){return new Jf(t,e,n,r,i,s,o,l)}a(Yf,"createGrammar");function To(t,e,n,r,i){const s=jn(e,Kn),o=ue.getCompiledRuleId(n,r,i.repository);for(const l of s)t.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:i,priority:l.priority})}a(To,"collectInjections");function Kn(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(Qf(e[i],r))return n=i+1,!0;return!1})}a(Kn,"nameMatcher");function Qf(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}a(Qf,"scopesAreMatching");class Jf{static{a(this,"Grammar")}_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(e,n,r,i,s,o,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=u,this._basicScopeAttributesProvider=new Yr(r,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=Io(n,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const c of Object.keys(s)){const h=jn(c,Kn);for(const f of h)this._tokenTypeMatchers.push({matcher:f.matcher,type:s[c]})}}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},n=[],r=this._rootScopeName,i=e.lookup(r);if(i){const s=i.injections;if(s)for(let l in s)To(n,l,s[l],this,i);const o=this._grammarRepository.injections(r);o&&o.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const c=u.injectionSelector;c&&To(n,c,u,this,u)}})}return n.sort((s,o)=>s.priority-o.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const n=++this._lastRuleId,r=e(n);return this._ruleId2desc[n]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Io(r,n&&n.$base),this._includedGrammars[e]}}tokenizeLine(e,n,r=0){const i=this._tokenize(e,n,!1,r);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,n,r=0){const i=this._tokenize(e,n,!0,r);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,n,r,i){this._rootId===-1&&(this._rootId=ue.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!n||n===He.NULL){s=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),p=Rt.set(0,h.languageId,h.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),d=this.getRule(this._rootId).getName(null,null);let m;d?m=be.createRootAndLookUpScopeName(d,p,this):m=be.createRoot("unknown",p),n=new He(null,this._rootId,-1,-1,!1,null,m,m)}else s=!1,n.reset();e=e+`
9
+ `;const o=this.createOnigString(e),l=o.content.length,u=new Zf(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Eo(this,o,s,0,n,u,!0,i);return fo(o),{lineLength:l,lineTokens:u,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}function Io(t,e){return t=wf(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}a(Io,"initGrammar");class be{static{a(this,"AttributedScopeStack")}parent;scopePath;tokenAttributes;static fromExtension(e,n){let r=e,i=e?.scopePath??null;for(const s of n)i=_t.push(i,s.scopeNames),r=new be(r,i,s.encodedTokenAttributes);return r}static createRoot(e,n){return new be(null,new _t(null,e),n)}static createRootAndLookUpScopeName(e,n,r){const i=r.getMetadataForScope(e),s=new _t(null,e),o=r.themeProvider.themeMatch(s),l=be.mergeAttributes(n,i,o);return new be(null,s,l)}get scopeName(){return this.scopePath.scopeName}constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}toString(){return this.getScopeNames().join(" ")}equals(e){return be.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,s=0,o=0;return r!==null&&(i=r.fontStyle,s=r.foregroundId,o=r.backgroundId),Rt.set(e,n.languageId,n.tokenType,null,i,s,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return be._pushAttributed(this,e,n);const r=e.split(/ /g);let i=this;for(const s of r)i=be._pushAttributed(i,s,n);return i}static _pushAttributed(e,n,r){const i=r.getMetadataForScope(n),s=e.scopePath.push(n),o=r.themeProvider.themeMatch(s),l=be.mergeAttributes(e.tokenAttributes,i,o);return new be(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}}class He{static{a(this,"StateStackImpl")}parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new He(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(e,n,r,i,s,o,l,u){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(e){return e===null?!1:He._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?be.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){He._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,s,o,l){return new He(this,e,n,r,i,s,o,l)}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,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}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 He(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const r=be.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new He(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,be.fromExtension(r,n.contentNameScopesList))}}class Xf{static{a(this,"BalancedBracketSelectors")}balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):jn(r,Kn).map(i=>i.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>jn(r,Kn).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const n of this.unbalancedBracketScopes)if(n(e))return!1;for(const n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}}class Zf{static{a(this,"LineTokens")}balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(e,n,r,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let i=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(i=Rt.set(i,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(i=Rt.set(i,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=n;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(e,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)r[i]=this._binaryTokens[i];return r}}class eh{static{a(this,"SyncRegistry")}_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(e,n){this._onigLibPromise=n,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){this._rawGrammars.set(e.scopeName,e),n&&this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,n,r,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Yf(e,o,n,r,i,s,this,await this._onigLibPromise))}return this._grammars.get(e)}}let th=class{static{a(this,"Registry")}_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eh(Wn.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(Wn.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,r){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,n,r){return this._loadGrammar(e,n,r.embeddedLanguages,r.tokenTypes,new Xf(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,n,r,i,s){const o=new Nf(this._syncRegistry,e);for(;o.Q.length>0;)await Promise.all(o.Q.map(l=>this._loadSingleGrammar(l.scopeName))),o.processQueue();return this._grammarForScopeName(e,n,r,i,s)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const n=await this._options.loadGrammar(e);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,r)}}async addGrammar(e,n=[],r=0,i=null){return this._syncRegistry.addGrammar(e,n),await this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,n=0,r=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,r,i,s)}};const nh=He.NULL,he={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class tt{static{a(this,"StackElementMetadata")}static toBinaryStr(e){let n=e.toString(2);for(;n.length<32;)n=`0${n}`;return n}static getLanguageId(e){return(e&he.LANGUAGEID_MASK)>>>he.LANGUAGEID_OFFSET}static getTokenType(e){return(e&he.TOKEN_TYPE_MASK)>>>he.TOKEN_TYPE_OFFSET}static getFontStyle(e){return(e&he.FONT_STYLE_MASK)>>>he.FONT_STYLE_OFFSET}static getForeground(e){return(e&he.FOREGROUND_MASK)>>>he.FOREGROUND_OFFSET}static getBackground(e){return(e&he.BACKGROUND_MASK)>>>he.BACKGROUND_OFFSET}static containsBalancedBrackets(e){return(e&he.BALANCED_BRACKETS_MASK)!==0}static set(e,n,r,i,s,o){let l=tt.getLanguageId(e),u=tt.getTokenType(e),c=tt.getFontStyle(e),h=tt.getForeground(e),f=tt.getBackground(e);const p=tt.containsBalancedBrackets(e)?1:0;return n!==0&&(l=n),r!==0&&(u=r===8?0:r),i!==$e.NotSet&&(c=i),s!==0&&(h=s),o!==0&&(f=o),(l<<he.LANGUAGEID_OFFSET|u<<he.TOKEN_TYPE_OFFSET|c<<he.FONT_STYLE_OFFSET|p<<he.BALANCED_BRACKETS_OFFSET|h<<he.FOREGROUND_OFFSET|f<<he.BACKGROUND_OFFSET)>>>0}}function Yn(t,e=!1){const n=t.split(/(\r?\n)/g);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const o=e?n[s]+(n[s+1]||""):n[s];i.push([o,r]),r+=n[s].length,r+=n[s+1]?.length||0}return i}a(Yn,"splitLines$1");function Lo(t){return!t||["plaintext","txt","text","plain"].includes(t)}a(Lo,"isPlainLang");function Oo(t){return t==="ansi"||Lo(t)}a(Oo,"isSpecialLang");function Po(t){return t==="none"}a(Po,"isNoneTheme");function Ro(t){return Po(t)}a(Ro,"isSpecialTheme");function Do(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}a(Do,"addClassToHast");function rh(t,e){let n=0;const r=[];for(const i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}a(rh,"splitToken");function ih(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{const s=n.filter(o=>i.offset<o&&o<i.offset+i.content.length).map(o=>o-i.offset).sort((o,l)=>o-l);return s.length?rh(i,s):i})):t}a(ih,"splitTokens");function Qn(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(const[i,s]of Object.entries(e?.colorReplacements||{}))typeof s=="string"?n[i]=s:i===r&&Object.assign(n,s);return n}a(Qn,"resolveColorReplacements");function ht(t,e){return t&&(e?.[t?.toLowerCase()]||t)}a(ht,"applyColorReplacements");function Fo(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&$e.Italic&&(e["font-style"]="italic"),t.fontStyle&$e.Bold&&(e["font-weight"]="bold"),t.fontStyle&$e.Underline&&(e["text-decoration"]="underline")),e}a(Fo,"getTokenStyleObject");function Mo(t){return Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}a(Mo,"stringifyTokenStyle");function sh(t){const e=Yn(t,!0).map(([i])=>i);function n(i){let s=i,o=0;for(const l of e){if(s<l.length)break;s-=l.length,o++}return{line:o,character:s}}a(n,"indexToPos");function r(i,s){let o=0;for(let l=0;l<i;l++)o+=e[l].length;return o+=s,o}return a(r,"posToIndex"),{lines:e,indexToPos:n,posToIndex:r}}a(sh,"createPositionConverter");var pt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],si={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function oh(t,e){const n=t.indexOf("\x1B[",e);if(n!==-1){const r=t.indexOf("m",n);return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}a(oh,"findSequence");function $o(t,e){let n=1;const r=t[e+n++];let i;if(r==="2"){const s=[t[e+n++],t[e+n++],t[e+n]].map(o=>Number.parseInt(o));s.length===3&&!s.some(o=>Number.isNaN(o))&&(i={type:"rgb",rgb:s})}else if(r==="5"){const s=Number.parseInt(t[e+n]);Number.isNaN(s)||(i={type:"table",index:Number(s)})}return[n,i]}a($o,"parseColor");function ah(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=Number.parseInt(r);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)si[i]&&e.push({type:"setDecoration",value:si[i]});else if(i<=29){const s=si[i-20];s&&e.push({type:"resetDecoration",value:s})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:pt[i-30]}});else if(i===38){const[s,o]=$o(t,n);o&&e.push({type:"setForegroundColor",value:o}),n+=s}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:pt[i-40]}});else if(i===48){const[s,o]=$o(t,n);o&&e.push({type:"setBackgroundColor",value:o}),n+=s}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:pt[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:pt[i-100+8]}})}return e}a(ah,"parseSequence");function lh(){let t=null,e=null,n=new Set;return{parse(r){const i=[];let s=0;do{const o=oh(r,s),l=o.sequence?r.substring(s,o.startPosition):r.substring(s);if(l.length>0&&i.push({value:l,foreground:t,background:e,decorations:new Set(n)}),o.sequence){const u=ah(o.sequence);for(const c of u)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of u)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}s=o.position}while(s<r.length);return i}}}a(lh,"createAnsiSequenceParser");var uh={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ch(t=uh){function e(l){return t[l]}a(e,"namedColor");function n(l){return`#${l.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}a(n,"rgbColor");let r;function i(){if(r)return r;r=[];for(let c=0;c<pt.length;c++)r.push(e(pt[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let h=0;h<6;h++)for(let f=0;f<6;f++)r.push(n([l[c],l[h],l[f]]));let u=8;for(let c=0;c<24;c++,u+=10)r.push(n([u,u,u]));return r}a(i,"getColorTable");function s(l){return i()[l]}a(s,"tableColor");function o(l){switch(l.type){case"named":return e(l.name);case"rgb":return n(l.rgb);case"table":return s(l.index)}}return a(o,"value"),{value:o}}a(ch,"createColorPalette");function fh(t,e,n){const r=Qn(t,n),i=Yn(e),s=ch(Object.fromEntries(pt.map(l=>[l,t.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),o=lh();return i.map(l=>o.parse(l[0]).map(u=>{let c,h;u.decorations.has("reverse")?(c=u.background?s.value(u.background):t.bg,h=u.foreground?s.value(u.foreground):t.fg):(c=u.foreground?s.value(u.foreground):t.fg,h=u.background?s.value(u.background):void 0),c=ht(c,r),h=ht(h,r),u.decorations.has("dim")&&(c=hh(c));let f=$e.None;return u.decorations.has("bold")&&(f|=$e.Bold),u.decorations.has("italic")&&(f|=$e.Italic),u.decorations.has("underline")&&(f|=$e.Underline),{content:u.value,offset:l[1],color:c,bgColor:h,fontStyle:f}}))}a(fh,"tokenizeAnsiWithTheme");function hh(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}a(hh,"dimColor");function oi(t,e,n={}){const{lang:r="text",theme:i=t.getLoadedThemes()[0]}=n;if(Lo(r)||Po(i))return Yn(e).map(u=>[{content:u[0],offset:u[1]}]);const{theme:s,colorMap:o}=t.setTheme(i);if(r==="ansi")return fh(s,e,n);const l=t.getLanguage(r);return ph(e,l,s,o,n)}a(oi,"codeToTokensBase");function ph(t,e,n,r,i){const s=Qn(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=i,u=Yn(t);let c=nh,h=[];const f=[];for(let p=0,d=u.length;p<d;p++){const[m,g]=u[p];if(m===""){h=[],f.push([]);continue}if(o>0&&m.length>=o){h=[],f.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}let y,k,b;i.includeExplanation&&(y=e.tokenizeLine(m,c),k=y.tokens,b=0);const S=e.tokenizeLine2(m,c,l),N=S.tokens.length/2;for(let C=0;C<N;C++){const w=S.tokens[2*C],A=C+1<N?S.tokens[2*C+2]:m.length;if(w===A)continue;const _=S.tokens[2*C+1],R=ht(r[tt.getForeground(_)],s),E=tt.getFontStyle(_),P={content:m.substring(w,A),offset:g+w,color:R,fontStyle:E};if(i.includeExplanation){P.explanation=[];let O=0;for(;w+O<A;){const V=k[b],K=m.substring(V.startIndex,V.endIndex);O+=K.length,P.explanation.push({content:K,scopes:dh(n,V.scopes)}),b+=1}}h.push(P)}f.push(h),h=[],c=S.ruleStack}return f}a(ph,"tokenizeWithTheme");function dh(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const s=e.slice(0,r),o=e[r];n[r]={scopeName:o,themeMatches:gh(t,o,s)}}return n}a(dh,"explainThemeScopes");function Bo(t,e){const n=`${t}.`;return t===e||e.substring(0,n.length)===n}a(Bo,"matchesOne");function mh(t,e,n,r){if(!Bo(t,n))return!1;let i=e.length-1,s=r.length-1;for(;i>=0&&s>=0;)Bo(e[i],r[s])&&(i-=1),s-=1;return i===-1}a(mh,"matches");function gh(t,e,n){const r=[];let i=0;for(let s=0,o=t.settings.length;s<o;s++){const l=t.settings[s];let u;if(typeof l.scope=="string")u=l.scope.split(/,/).map(c=>c.trim());else if(Array.isArray(l.scope))u=l.scope;else continue;for(let c=0,h=u.length;c<h;c++){const p=u[c].split(/ /),d=p[p.length-1],m=p.slice(0,p.length-1);mh(d,m,e,n)&&(r[i++]=l,c=h)}}return r}a(gh,"explainThemeScope");function qo(t,e,n){const r=Object.entries(n.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),i=yh(...r.map(o=>oi(t,e,{...n,theme:o.theme})));return i[0].map((o,l)=>o.map((u,c)=>{const h={content:u.content,variants:{},offset:u.offset};return i.forEach((f,p)=>{const{content:d,explanation:m,offset:g,...y}=f[l][c];h.variants[r[p].color]=y}),h}))}a(qo,"codeToTokensWithThemes");function yh(...t){const e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){const i=t.map(u=>u[r]),s=e.map(()=>[]);e.forEach((u,c)=>u.push(s[c]));const o=i.map(()=>0),l=i.map(u=>u[0]);for(;l.every(u=>u);){const u=Math.min(...l.map(c=>c.content.length));for(let c=0;c<n;c++){const h=l[c];h.content.length===u?(s[c].push(h),o[c]+=1,l[c]=i[c][o[c]]):(s[c].push({...h,content:h.content.slice(0,u)}),l[c]={...h,content:h.content.slice(u),offset:h.offset+u})}}}return e}a(yh,"syncThemesTokenization");class pe extends Error{static{a(this,"ShikiError")}constructor(e){super(e),this.name="ShikiError"}}function Jn(t,e,n){let r,i,s,o,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-"}=n,h=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,y)=>g.color===u?-1:y.color===u?1:0);if(h.length===0)throw new pe("`themes` option must not be empty");const f=qo(t,e,n);if(u&&!h.find(g=>g.color===u))throw new pe(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=h.map(g=>t.getTheme(g.theme)),d=h.map(g=>g.color);s=f.map(g=>g.map(y=>bh(y,d,c,u)));const m=h.map(g=>Qn(g.theme,n));i=h.map((g,y)=>(y===0&&u?"":`${c+g.color}:`)+(ht(p[y].fg,m[y])||"inherit")).join(";"),r=h.map((g,y)=>(y===0&&u?"":`${c+g.color}-bg:`)+(ht(p[y].bg,m[y])||"inherit")).join(";"),o=`shiki-themes ${p.map(g=>g.name).join(" ")}`,l=u?void 0:[i,r].join(";")}else if("theme"in n){const u=Qn(n.theme,n.colorReplacements);s=oi(t,e,n);const c=t.getTheme(n.theme);r=ht(c.bg,u),i=ht(c.fg,u),o=c.name}else throw new pe("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:i,bg:r,themeName:o,rootStyle:l}}a(Jn,"codeToTokens");function bh(t,e,n,r){const i={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(u=>Fo(t.variants[u])),o=new Set(s.flatMap(u=>Object.keys(u))),l=s.reduce((u,c,h)=>{for(const f of o){const p=c[f]||"inherit";if(h===0&&r)u[f]=p;else{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`,m=n+e[h]+(f==="color"?"":d);u[f]?u[f]+=`;${m}:${p}`:u[f]=`${m}:${p}`}}return u},{});return i.htmlStyle=r?Mo(l):Object.values(l).join(";"),i}a(bh,"mergeToken");function kh(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let s=function(l){return typeof l=="number"?{...i.indexToPos(l),offset:l}:{...l,offset:i.posToIndex(l.line,l.character)}};a(s,"normalizePosition");const i=sh(r.source),o=(r.options.decorations||[]).map(l=>({...l,start:s(l.start),end:s(l.end)}));n(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}a(e,"getContext");function n(r){for(let i=0;i<r.length;i++){const s=r[i];if(s.start.offset>s.end.offset)throw new pe(`Invalid decoration range: ${JSON.stringify(s.start)} - ${JSON.stringify(s.end)}`);for(let o=i+1;o<r.length;o++){const l=r[o],u=s.start.offset<l.start.offset&&l.start.offset<s.end.offset,c=s.start.offset<l.end.offset&&l.end.offset<s.end.offset,h=l.start.offset<s.start.offset&&s.start.offset<l.end.offset,f=l.start.offset<s.end.offset&&s.end.offset<l.end.offset;if(u||c||h||f){if(c&&c||h&&f)continue;throw new pe(`Decorations ${JSON.stringify(s.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}return a(n,"verifyIntersections"),{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const s=e(this).decorations.flatMap(l=>[l.start.offset,l.end.offset]);return ih(r,s)},code(r){if(!this.options.decorations?.length)return;const i=e(this),s=Array.from(r.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==i.converter.lines.length)throw new pe(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(f,p,d,m){const g=s[f];let y="",k=-1,b=-1;function S(C){return C.type==="text"?C.value:C.type==="element"?C.children.map(S).join(""):""}if(a(S,"stringify"),p===0&&(k=0),d===0&&(b=0),d===Number.POSITIVE_INFINITY&&(b=g.children.length),k===-1||b===-1)for(let C=0;C<g.children.length;C++)y+=S(g.children[C]),k===-1&&y.length===p&&(k=C+1),b===-1&&y.length===d&&(b=C+1);if(k===-1)throw new pe(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(b===-1)throw new pe(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const N=g.children.slice(k,b);if(!m.alwaysWrap&&N.length===g.children.length)u(g,m,"line");else if(!m.alwaysWrap&&N.length===1&&N[0].type==="element")u(N[0],m,"token");else{const C={type:"element",tagName:"span",properties:{},children:N};u(C,m,"wrapper"),g.children.splice(k,N.length,C)}}a(o,"applyLineSection");function l(f,p){s[f]=u(s[f],p,"line")}a(l,"applyLine");function u(f,p,d){const m=p.properties||{},g=p.transform||(y=>y);return f.tagName=p.tagName||"span",f.properties={...f.properties,...m,class:f.properties.class},p.properties?.class&&Do(f,p.properties.class),f=g(f,d)||f,f}a(u,"applyDecoration");const c=[],h=i.decorations.sort((f,p)=>p.start.offset-f.start.offset);for(const f of h){const{start:p,end:d}=f;if(p.line===d.line)o(p.line,p.character,d.character,f);else if(p.line<d.line){o(p.line,p.character,Number.POSITIVE_INFINITY,f);for(let m=p.line+1;m<d.line;m++)c.unshift(()=>l(m,f));o(d.line,0,d.character,f)}}c.forEach(f=>f())}}}a(kh,"transformerDecorations");const wh=[kh()];function Xn(t){return[...t.transformers||[],...wh]}a(Xn,"getTransformers");function Zn(t,e,n,r={meta:{},options:n,codeToHast:(i,s)=>Zn(t,i,s),codeToTokens:(i,s)=>Jn(t,i,s)}){let i=e;for(const p of Xn(n))i=p.preprocess?.call(r,i,n)||i;let{tokens:s,fg:o,bg:l,themeName:u,rootStyle:c}=Jn(t,i,n);const{mergeWhitespaces:h=!0}=n;h===!0?s=xh(s):h==="never"&&(s=vh(s));const f={...r,get source(){return i}};for(const p of Xn(n))s=p.tokens?.call(f,s)||s;return Sh(s,{...n,fg:o,bg:l,themeName:u,rootStyle:c},f)}a(Zn,"codeToHast");function Sh(t,e,n){const r=Xn(e),i=[],s={type:"root",children:[]},{structure:o="classic"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:i};const c=[],h={...n,structure:o,addClassToHast:Do,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return l},get code(){return u},get lines(){return c}};if(t.forEach((p,d)=>{d&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&i.push({type:"text",value:`
10
+ `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const y of p){let k={type:"element",tagName:"span",properties:{},children:[{type:"text",value:y.content}]};const b=y.htmlStyle||Mo(Fo(y));b&&(k.properties.style=b);for(const S of r)k=S?.span?.call(h,k,d+1,g,m)||k;o==="inline"?s.children.push(k):o==="classic"&&m.children.push(k),g+=y.content.length}if(o==="classic"){for(const y of r)m=y?.line?.call(h,m,d+1)||m;c.push(m),i.push(m)}}),o==="classic"){for(const p of r)u=p?.code?.call(h,u)||u;l.children.push(u);for(const p of r)l=p?.pre?.call(h,l)||l;s.children.push(l)}let f=s;for(const p of r)f=p?.root?.call(h,f)||f;return f}a(Sh,"tokensToHast");function xh(t){return t.map(e=>{const n=[];let r="",i=0;return e.forEach((s,o)=>{const u=!(s.fontStyle&&s.fontStyle&$e.Underline);u&&s.content.match(/^\s+$/)&&e[o+1]?(i||(i=s.offset),r+=s.content):r?(u?n.push({...s,offset:i,content:r+s.content}):n.push({content:r,offset:i},s),i=0,r=""):n.push(s)}),n})}a(xh,"mergeWhitespaceTokens");function vh(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,s,o]=r;if(!i&&!o)return n;const l=[{...n,offset:n.offset+i.length,content:s}];return i&&l.unshift({content:i,offset:n.offset}),o&&l.push({content:o,offset:n.offset+i.length+s.length}),l}))}a(vh,"splitWhitespaceTokens");const Ch=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let mn=class{static{a(this,"Schema")}constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};mn.prototype.property={},mn.prototype.normal={},mn.prototype.space=null;function zo(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new mn(n,r,e)}a(zo,"merge$1");function ai(t){return t.toLowerCase()}a(ai,"normalize$2");let Ne=class{static{a(this,"Info")}constructor(e,n){this.property=e,this.attribute=n}};Ne.prototype.space=null,Ne.prototype.boolean=!1,Ne.prototype.booleanish=!1,Ne.prototype.overloadedBoolean=!1,Ne.prototype.number=!1,Ne.prototype.commaSeparated=!1,Ne.prototype.spaceSeparated=!1,Ne.prototype.commaOrSpaceSeparated=!1,Ne.prototype.mustUseProperty=!1,Ne.prototype.defined=!1;let Nh=0;const B=dt(),ne=dt(),jo=dt(),I=dt(),Y=dt(),Dt=dt(),ve=dt();function dt(){return 2**++Nh}a(dt,"increment$1");var li=Object.freeze({__proto__:null,boolean:B,booleanish:ne,commaOrSpaceSeparated:ve,commaSeparated:Dt,number:I,overloadedBoolean:jo,spaceSeparated:Y});const ui=Object.keys(li);let ci=class extends Ne{static{a(this,"DefinedInfo")}constructor(e,n,r,i){let s=-1;if(super(e,n),Uo(this,"space",i),typeof r=="number")for(;++s<ui.length;){const o=ui[s];Uo(this,ui[s],(r&li[o])===li[o])}}};ci.prototype.defined=!0;function Uo(t,e,n){n&&(t[e]=n)}a(Uo,"mark$1");const Ah={}.hasOwnProperty;function Ft(t){const e={},n={};let r;for(r in t.properties)if(Ah.call(t.properties,r)){const i=t.properties[r],s=new ci(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[ai(r)]=r,n[ai(s.attribute)]=r}return new mn(e,n,t.space)}a(Ft,"create$2");const Go=Ft({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Vo=Ft({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ho(t,e){return e in t?t[e]:e}a(Ho,"caseSensitiveTransform$1");function Wo(t,e){return Ho(t,e.toLowerCase())}a(Wo,"caseInsensitiveTransform$1");const Ko=Ft({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Wo,properties:{xmlns:null,xmlnsXLink:null}}),Yo=Ft({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ne,ariaAutoComplete:null,ariaBusy:ne,ariaChecked:ne,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:ne,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:ne,ariaFlowTo:Y,ariaGrabbed:ne,ariaHasPopup:null,ariaHidden:ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:I,ariaLive:null,ariaModal:ne,ariaMultiLine:ne,ariaMultiSelectable:ne,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ne,ariaReadOnly:ne,ariaRelevant:null,ariaRequired:ne,ariaRoleDescription:Y,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ne,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null}}),Eh=Ft({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Wo,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:Y,autoFocus:B,autoPlay:B,blocking:Y,capture:null,charSet:null,checked:B,cite:null,className:Y,cols:I,colSpan:null,content:null,contentEditable:ne,controls:B,controlsList:Y,coords:I|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:jo,draggable:ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:Y,height:I,hidden:B,high:I,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:Y,itemRef:Y,itemScope:B,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:I,pattern:null,ping:Y,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:Y,required:B,reversed:B,rows:I,rowSpan:I,sandbox:Y,scope:null,scoped:B,seamless:B,selected:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:ne,width:I,wrap:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ne,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:I,security:null,unselectable:null}}),_h=Ft({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ho,properties:{about:ve,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Y,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ve,rev:ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ve,requiredFeatures:ve,requiredFonts:ve,requiredFormats:ve,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ve,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Th=/^data[-\w.:]+$/i,Qo=/-[a-z]/g,Ih=/[A-Z]/g;function Lh(t,e){const n=ai(e);let r=e,i=Ne;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Th.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(Qo,Ph);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!Qo.test(s)){let o=s.replace(Ih,Oh);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=ci}return new i(r,e)}a(Lh,"find$1");function Oh(t){return"-"+t.toLowerCase()}a(Oh,"kebab$1");function Ph(t){return t.charAt(1).toUpperCase()}a(Ph,"camelcase$1");const Rh=zo([Vo,Go,Ko,Yo,Eh],"html"),Jo=zo([Vo,Go,Ko,Yo,_h],"svg"),Xo={}.hasOwnProperty;function Dh(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&Xo.call(i,t)){const u=String(i[t]);o=Xo.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return a(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}a(Dh,"zwitch$1");function Fh(t,e){if(t=t.replace(e.subset?Mh(e.subset):/["&'<>`]/g,r),e.subset||e.escapeOnly)return t;return t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}a(Fh,"core$1");function Mh(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}a(Mh,"charactersToExpression$1");function $h(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?r:r+";"}a($h,"toHexadecimal$1");function Bh(t,e,n){const r="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?r:r+";"}a(Bh,"toDecimal$1");const qh=["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"],fi={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},zh=["cent","copy","divide","gt","lt","not","para","times"],Zo={}.hasOwnProperty,hi={};let er;for(er in fi)Zo.call(fi,er)&&(hi[fi[er]]=er);function jh(t,e,n,r){const i=String.fromCharCode(t);if(Zo.call(hi,i)){const s=hi[i],o="&"+s;return n&&qh.includes(s)&&!zh.includes(s)&&(!r||e&&e!==61&&/[^\da-z]/i.test(String.fromCharCode(e)))?o:o+";"}return""}a(jh,"toNamed$1");function Uh(t,e,n){let r=$h(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=jh(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Bh(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}a(Uh,"formatSmart$1");function Mt(t,e){return Fh(t,Object.assign({format:Uh},e))}a(Mt,"stringifyEntities$1");const Gh=/^>|^->|<!--|-->|--!>|<!-$/g,Vh=[">"],Hh=["<",">"];function Wh(t,e,n,r){return r.settings.bogusComments?"<?"+Mt(t.value,Object.assign({},r.settings.characterReferences,{subset:Vh}))+">":"<!--"+t.value.replace(Gh,i)+"-->";function i(s){return Mt(s,Object.assign({},r.settings.characterReferences,{subset:Hh}))}}a(Wh,"comment$1");function Kh(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}a(Kh,"doctype$1");function ea(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}a(ea,"ccount$1");function Yh(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}a(Yh,"stringify$1$1");function Qh(t){return t.join(" ").trim()}a(Qh,"stringify$4");const Jh=/[ \t\n\f\r]/g;function pi(t){return typeof t=="object"?t.type==="text"?ta(t.value):!1:ta(t)}a(pi,"whitespace$1");function ta(t){return t.replace(Jh,"")===""}a(ta,"empty$2");const se=ra(1),na=ra(-1),Xh=[];function ra(t){return e;function e(n,r,i){const s=n?n.children:Xh;let o=(r||0)+t,l=s[o];if(!i)for(;l&&pi(l);)o+=t,l=s[o];return l}}a(ra,"siblings$1");const Zh={}.hasOwnProperty;function ia(t){return e;function e(n,r,i){return Zh.call(t,n.tagName)&&t[n.tagName](n,r,i)}}a(ia,"omission$1");const di=ia({body:tp,caption:mi,colgroup:mi,dd:sp,dt:ip,head:mi,html:ep,li:rp,optgroup:op,option:ap,p:np,rp:sa,rt:sa,tbody:up,td:oa,tfoot:cp,th:oa,thead:lp,tr:fp});function mi(t,e,n){const r=se(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&pi(r.value.charAt(0)))}a(mi,"headOrColgroupOrCaption$1");function ep(t,e,n){const r=se(n,e);return!r||r.type!=="comment"}a(ep,"html$1$1");function tp(t,e,n){const r=se(n,e);return!r||r.type!=="comment"}a(tp,"body$1$1");function np(t,e,n){const r=se(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}a(np,"p$4");function rp(t,e,n){const r=se(n,e);return!r||r.type==="element"&&r.tagName==="li"}a(rp,"li$1");function ip(t,e,n){const r=se(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}a(ip,"dt$1");function sp(t,e,n){const r=se(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}a(sp,"dd$1");function sa(t,e,n){const r=se(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}a(sa,"rubyElement$1");function op(t,e,n){const r=se(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}a(op,"optgroup$1");function ap(t,e,n){const r=se(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}a(ap,"option$1");function lp(t,e,n){const r=se(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}a(lp,"thead$1");function up(t,e,n){const r=se(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}a(up,"tbody$1$1");function cp(t,e,n){return!se(n,e)}a(cp,"tfoot$1");function fp(t,e,n){const r=se(n,e);return!r||r.type==="element"&&r.tagName==="tr"}a(fp,"tr$1");function oa(t,e,n){const r=se(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}a(oa,"cells$1");const hp=ia({body:mp,colgroup:gp,head:dp,html:pp,tbody:yp});function pp(t){const e=se(t,-1);return!e||e.type!=="comment"}a(pp,"html$6");function dp(t){const e=t.children,n=[];let r=-1;for(;++r<e.length;){const i=e[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return e.length>0}a(dp,"head$1");function mp(t){const e=se(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&pi(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}a(mp,"body$2");function gp(t,e,n){const r=na(n,e),i=se(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&di(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}a(gp,"colgroup$1");function yp(t,e,n){const r=na(n,e),i=se(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&di(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}a(yp,"tbody$2");const tr={name:[[`
11
+ \f\r &/=>`.split(""),`
12
+ \f\r "&'/=>\``.split("")],[`\0
13
+ \f\r "&'/<=>`.split(""),`\0
14
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
15
+ \f\r &>`.split(""),`\0
16
+ \f\r "&'<=>\``.split("")],[`\0
17
+ \f\r "&'<=>\``.split(""),`\0
18
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function bp(t,e,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const l=[];let u;i.space==="html"&&t.tagName==="svg"&&(r.schema=Jo);const c=kp(r,t.properties),h=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,h&&(o=!1),(c||!s||!hp(t,e,n))&&(l.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(h),!o&&(!s||!di(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}a(bp,"element$2");function kp(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=wp(t,i,e[i]);s&&n.push(s)}}for(;++r<n.length;){const s=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}a(kp,"serializeAttributes$1");function wp(t,e,n){const r=Lh(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=Mt(r.attribute,Object.assign({},t.settings.characterReferences,{subset:tr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Yh:Qh)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?u:(t.settings.preferUnquoted&&(l=Mt(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:tr.unquoted[i][s]}))),l!==n&&(t.settings.quoteSmart&&ea(n,o)>ea(n,t.alternative)&&(o=t.alternative),l=o+Mt(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?tr.single:tr.double)[i][s],attribute:!0}))+o),u+(l&&"="+l))}a(wp,"serializeAttribute$1");const Sp=["<","&"];function aa(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Mt(t.value,Object.assign({},r.settings.characterReferences,{subset:Sp}))}a(aa,"text$6");function xp(t,e,n,r){return r.settings.allowDangerousHtml?t.value:aa(t,e,n,r)}a(xp,"raw$1");function vp(t,e,n,r){return r.all(t)}a(vp,"root$3");const Cp=Dh("type",{invalid:Np,unknown:Ap,handlers:{comment:Wh,doctype:Kh,element:bp,raw:xp,root:vp,text:aa}});function Np(t){throw new Error("Expected node, not `"+t+"`")}a(Np,"invalid$1");function Ap(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}a(Ap,"unknown$1");const Ep={},_p={},Tp=[];function Ip(t,e){const n=Ep,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Lp,all:Op,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ch,characterReferences:n.characterReferences||_p,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Jo:Rh,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}a(Ip,"toHtml$1");function Lp(t,e,n){return Cp(t,e,n,this)}a(Lp,"one$3");function Op(t){const e=[],n=t&&t.children||Tp;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}a(Op,"all$3");function Pp(t,e,n){const r={meta:{},options:n,codeToHast:(s,o)=>Zn(t,s,o),codeToTokens:(s,o)=>Jn(t,s,o)};let i=Ip(Zn(t,e,n,r));for(const s of Xn(n))i=s.postprocess?.call(r,i,n)||i;return i}a(Pp,"codeToHtml");async function Rp(t){let e,n;const r={};function i(p){n=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}a(i,"updateGlobalBufferAndViews");function s(){return typeof performance<"u"?performance.now():Date.now()}a(s,"_emscripten_get_now");function o(p,d,m){r.HEAPU8.copyWithin(p,d,d+m)}a(o,"_emscripten_memcpy_big");function l(){return 2147483648}a(l,"getHeapMax");function u(p){try{return e.grow(p-n.byteLength+65535>>>16),i(e.buffer),1}catch{}}a(u,"emscripten_realloc_buffer");function c(p){const d=r.HEAPU8.length;p=p>>>0;const m=l();if(p>m)return!1;const g=a((y,k)=>y+(k-y%k)%k,"alignUp");for(let y=1;y<=4;y*=2){let k=d*(1+.2/y);k=Math.min(k,p+100663296);const b=Math.min(m,g(Math.max(p,k),65536));if(u(b))return!0}return!1}a(c,"_emscripten_resize_heap");const h={emscripten_get_now:s,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function f(){const d=await t({env:h,wasi_snapshot_preview1:h});e=d.memory,i(e.buffer),Object.assign(r,d)}return a(f,"createWasm"),await f(),r}a(Rp,"main");let le=null,Dp=!1;function Fp(t){throw new pe(t.UTF8ToString(t.getLastOnigError()))}a(Fp,"throwLastOnigError");class Qr{static{a(this,"UtfString")}static _utf8ByteLength(e){let n=0;for(let r=0,i=e.length;r<i;r++){const s=e.charCodeAt(r);let o=s,l=!1;if(s>=55296&&s<=56319&&r+1<i){const u=e.charCodeAt(r+1);u>=56320&&u<=57343&&(o=(s-55296<<10)+65536|u-56320,l=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,l&&r++}return n}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){const n=e.length,r=Qr._utf8ByteLength(e),i=r!==n,s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const l=new Uint8Array(r);let u=0;for(let c=0;c<n;c++){const h=e.charCodeAt(c);let f=h,p=!1;if(h>=55296&&h<=56319&&c+1<n){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(f=(h-55296<<10)+65536|d-56320,p=!0)}i&&(s[c]=u,p&&(s[c+1]=u),f<=127?o[u+0]=c:f<=2047?(o[u+0]=c,o[u+1]=c):f<=65535?(o[u+0]=c,o[u+1]=c,o[u+2]=c):(o[u+0]=c,o[u+1]=c,o[u+2]=c,o[u+3]=c)),f<=127?l[u++]=f:f<=2047?(l[u++]=192|(f&1984)>>>6,l[u++]=128|(f&63)>>>0):f<=65535?(l[u++]=224|(f&61440)>>>12,l[u++]=128|(f&4032)>>>6,l[u++]=128|(f&63)>>>0):(l[u++]=240|(f&1835008)>>>18,l[u++]=128|(f&258048)>>>12,l[u++]=128|(f&4032)>>>6,l[u++]=128|(f&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}class Pe{static{a(this,"OnigString")}static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++Pe.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!le)throw new pe("Must invoke loadWasm first.");this._onigBinding=le,this.content=e;const n=new Qr(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Pe._sharedPtrInUse?(Pe._sharedPtr||(Pe._sharedPtr=le.omalloc(1e4)),Pe._sharedPtrInUse=!0,le.HEAPU8.set(n.utf8Value,Pe._sharedPtr),this.ptr=Pe._sharedPtr):this.ptr=n.createString(le)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Pe._sharedPtr?Pe._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Mp{static{a(this,"OnigScanner")}_onigBinding;_ptr;constructor(e){if(!le)throw new pe("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,u=e.length;l<u;l++){const c=new Qr(e[l]);n[l]=c.createString(le),r[l]=c.utf8Length}const i=le.omalloc(4*e.length);le.HEAPU32.set(n,i/4);const s=le.omalloc(4*e.length);le.HEAPU32.set(r,s/4);const o=le.createOnigScanner(i,s,e.length);for(let l=0,u=e.length;l<u;l++)le.ofree(n[l]);le.ofree(s),le.ofree(i),o===0&&Fp(le),this._onigBinding=le,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let i=Dp,s=0;if(typeof r=="number"?(r&8&&(i=!0),s=r):typeof r=="boolean"&&(i=r),typeof e=="string"){e=new Pe(e);const o=this._findNextMatchSync(e,n,i,s);return e.dispose(),o}return this._findNextMatchSync(e,n,i,s)}_findNextMatchSync(e,n,r,i){const s=this._onigBinding;let o;if(r?o=s.findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i):o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),i),o===0)return null;const l=s.HEAPU32;let u=o/4;const c=l[u++],h=l[u++],f=[];for(let p=0;p<h;p++){const d=e.convertUtf8OffsetToUtf16(l[u++]),m=e.convertUtf8OffsetToUtf16(l[u++]);f[p]={start:d,end:m,length:m-d}}return{index:c,captureIndices:f}}}function $p(t){return typeof t.instantiator=="function"}a($p,"isInstantiatorOptionsObject");function Bp(t){return typeof t.default=="function"}a(Bp,"isInstantiatorModule");function qp(t){return typeof t.data<"u"}a(qp,"isDataOptionsObject");function zp(t){return typeof Response<"u"&&t instanceof Response}a(zp,"isResponse");function jp(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}a(jp,"isArrayBuffer");let nr;function Up(t){if(nr)return nr;async function e(){le=await Rp(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),$p(r)?r=await r.instantiator(n):Bp(r)?r=await r.default(n):(qp(r)&&(r=r.data),zp(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Gp(r)(n):r=await Vp(r)(n):jp(r)?r=await gi(r)(n):r instanceof WebAssembly.Module?r=await gi(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await gi(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return a(e,"_load"),nr=e(),nr}a(Up,"loadWasm");function gi(t){return e=>WebAssembly.instantiate(t,e)}a(gi,"_makeArrayBufferLoader");function Gp(t){return e=>WebAssembly.instantiateStreaming(t,e)}a(Gp,"_makeResponseStreamingLoader");function Vp(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}a(Vp,"_makeResponseNonStreamingLoader");function Hp(t){return new Pe(t)}a(Hp,"createOnigString");function Wp(t){return new Mp(t)}a(Wp,"createOnigScanner");const la={light:"#333333",dark:"#bbbbbb"},ua={light:"#fffffe",dark:"#1e1e1e"},ca="__shiki_resolved";function fa(t){if(t?.[ca])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){const l=e.settings?e.settings.find(u=>!u.name&&!u.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?la.light:la.dark),n||(n=e.type==="light"?ua.light:ua.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const s=new Map;function o(l){if(s.has(l))return s.get(l);i+=1;const u=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${u}`]?o(l):(s.set(l,u),u)}a(o,"getReplacementColor"),e.settings=e.settings.map(l=>{const u=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!u&&!c)return l;const h={...l,settings:{...l.settings}};if(u){const f=o(l.settings.foreground);e.colorReplacements[f]=l.settings.foreground,h.settings.foreground=f}if(c){const f=o(l.settings.background);e.colorReplacements[f]=l.settings.background,h.settings.background=f}return h});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const u=o(e.colors[l]);e.colorReplacements[u]=e.colors[l],e.colors[l]=u}return Object.defineProperty(e,ca,{enumerable:!1,writable:!1,value:!0}),e}a(fa,"normalizeTheme");class Kp extends th{static{a(this,"Registry")}_resolver;_themes;_langs;_alias;_resolvedThemes={};_resolvedGrammars={};_langMap={};_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,n,r,i={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,n.forEach(s=>this.loadTheme(s)),r.forEach(s=>this.loadLanguage(s))}getTheme(e){return typeof e=="string"?this._resolvedThemes[e]:this.loadTheme(e)}loadTheme(e){const n=fa(e);return n.name&&(this._resolvedThemes[n.name]=n,this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=Object.keys(this._resolvedThemes)),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Wn.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){if(this._alias[e]){const n=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],n.has(e))throw new pe(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return this._resolvedGrammars[e]}async loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set(Object.values(this._langMap).filter(s=>s.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=await this.loadGrammarWithConfiguration(e.scopeName,1,r);if(this._resolvedGrammars[e.name]=i,e.aliases&&e.aliases.forEach(s=>{this._alias[s]=e.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)delete this._resolvedGrammars[s.name],this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),await this.loadLanguage(this._langMap[s.name])}async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}async loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,s])=>!s);if(r.length){const i=n.filter(([s,o])=>o&&o.embeddedLangs?.some(l=>r.map(([u])=>u).includes(l))).filter(s=>!r.includes(s));throw new pe(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${i.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[i,s]of n)this._resolver.addLanguage(s);for(const[i,s]of n)await this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=Object.keys({...this._resolvedGrammars,...this._alias})),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap[e.name]=e,this._langGraph.set(e.name,e),e.embeddedLangs)for(const n of e.embeddedLangs)this._langGraph.set(n,this._langMap[n])}}class Yp{static{a(this,"Resolver")}_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(e,n){this._onigLibPromise=e,n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let r=[];for(let i=1;i<=n.length;i++){const s=n.slice(0,i).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Qp;async function Jp(t={}){async function e(y){return Promise.resolve(typeof y=="function"?y():y).then(k=>k.default||k)}a(e,"normalizeGetter");async function n(y){return Array.from(new Set((await Promise.all(y.filter(k=>!Oo(k)).map(async k=>await e(k).then(b=>Array.isArray(b)?b:[b])))).flat()))}a(n,"resolveLangs");const r=t.loadWasm||Qp,[i,s]=await Promise.all([Promise.all((t.themes||[]).map(e)).then(y=>y.map(fa)),n(t.langs||[]),r?Up(r):void 0]),o=new Yp(Promise.resolve({createOnigScanner(y){return Wp(y)},createOnigString(y){return Hp(y)}}),s),l=new Kp(o,i,s,t.langAlias);await l.init();let u;function c(y){const k=l.getGrammar(typeof y=="string"?y:y.name);if(!k)throw new pe(`Language \`${y}\` not found, you may need to load it first`);return k}a(c,"getLanguage");function h(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};const k=l.getTheme(y);if(!k)throw new pe(`Theme \`${y}\` not found, you may need to load it first`);return k}a(h,"getTheme");function f(y){const k=h(y);u!==y&&(l.setTheme(k),u=y);const b=l.getColorMap();return{theme:k,colorMap:b}}a(f,"setTheme");function p(){return l.getLoadedThemes()}a(p,"getLoadedThemes");function d(){return l.getLoadedLanguages()}a(d,"getLoadedLanguages");async function m(...y){await l.loadLanguages(await n(y))}a(m,"loadLanguage");async function g(...y){await Promise.all(y.map(async k=>Ro(k)?null:l.loadTheme(await e(k))))}return a(g,"loadTheme"),{setTheme:f,getTheme:h,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:d,loadLanguage:m,loadTheme:g}}a(Jp,"getShikiInternal");async function Xp(t={}){const e=await Jp(t);return{codeToTokensBase:(n,r)=>oi(e,n,r),codeToTokensWithThemes:(n,r)=>qo(e,n,r),codeToTokens:(n,r)=>Jn(e,n,r),codeToHast:(n,r)=>Zn(e,n,r),codeToHtml:(n,r)=>Pp(e,n,r),...e,getInternalContext:()=>e}}a(Xp,"getHighlighterCore");function Zp(t,e,n){async function r(i){function s(h){if(typeof h=="string"){if(Oo(h))return[];const f=t[h];if(!f)throw new pe(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}a(s,"resolveLang");function o(h){if(Ro(h))return"none";if(typeof h=="string"){const f=e[h];if(!f)throw new pe(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}a(o,"resolveTheme");const l=(i.themes??[]).map(h=>o(h)),u=(i.langs??[]).map(h=>s(h)),c=await Xp({...i,themes:l,langs:u,loadWasm:n});return{...c,loadLanguage(...h){return c.loadLanguage(...h.map(s))},loadTheme(...h){return c.loadTheme(...h.map(o))}}}return a(r,"getHighlighter"),r}a(Zp,"createdBundledHighlighter");const ed=Zp(uo,bf,gf);function td(t){return"children"in t?ha(t):"value"in t?t.value:""}a(td,"toString$2");function nd(t){return t.type==="text"?t.value:"children"in t?ha(t):""}a(nd,"one$2");function ha(t){let e=-1;const n=[];for(;++e<t.children.length;)n[e]=nd(t.children[e]);return n.join("")}a(ha,"all$2");const rt=a(function(t){if(t==null)return od;if(typeof t=="function")return rr(t);if(typeof t=="object")return Array.isArray(t)?rd(t):id(t);if(typeof t=="string")return sd(t);throw new Error("Expected function, string, or object as test")},"convert");function rd(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=rt(t[n]);return rr(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}a(rd,"anyFactory$1");function id(t){const e=t;return rr(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}a(id,"propsFactory");function sd(t){return rr(e);function e(n){return n&&n.type===t}}a(sd,"typeFactory");function rr(t){return e;function e(n,r,i){return!!(ad(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}a(rr,"castFactory$1");function od(){return!0}a(od,"ok$1");function ad(t){return t!==null&&typeof t=="object"&&"type"in t}a(ad,"looksLikeANode");function YN(t){return t}a(YN,"color");const pa=[],it=!0,Je=!1,ir="skip";function da(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=rt(i),o=r?-1:1;l(t,void 0,[])();function l(u,c,h){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=pa,m,g,y;if((!e||s(u,c,h[h.length-1]||void 0))&&(d=ld(n(u,h)),d[0]===Je))return d;if("children"in u&&u.children){const k=u;if(k.children&&d[0]!==ir)for(g=(r?k.children.length:-1)+o,y=h.concat(k);g>-1&&g<k.children.length;){const b=k.children[g];if(m=l(b,g,y)(),m[0]===Je)return m;g=typeof m[1]=="number"?m[1]:g+o}}return d}}a(l,"factory")}a(da,"visitParents");function ld(t){return Array.isArray(t)?t:typeof t=="number"?[it,t]:t==null?pa:[t]}a(ld,"toResult");function oe(t,e,n,r){let i,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,i=n):(s=e,o=n,i=r),da(t,s,l,i);function l(u,c){const h=c[c.length-1],f=h?h.children.indexOf(u):void 0;return o(u,f,h)}a(l,"overload")}a(oe,"visit$1");const yi="language-";function ud(t,e){const n=t.getLoadedLanguages(),{addLanguageClass:r=!1,parseMetaString:i,cache:s,defaultLanguage:o,fallbackLanguage:l,onError:u,...c}=e;return function(h){oe(h,"element",(f,p,d)=>{if(!d||p==null||f.tagName!=="pre")return;const m=f.children[0];if(!m||m.type!=="element"||m.tagName!=="code"||!m.properties)return;const g=m.properties.className,y=Array.isArray(g)?g.find(A=>typeof A=="string"&&A.startsWith(yi)):void 0;let k=typeof y=="string"?y.slice(yi.length):o;if(!k)return;l&&!n.includes(k)&&(k=l);const b=td(m),S=s?.get(b);if(S){d.children.splice(p,1,...S);return}const N=m.data?.meta??m.properties.metastring??"",C=i?.(N,f,h)||{},w={...c,lang:k,meta:{...c.meta,...C,__raw:N}};r&&(w.transformers||(w.transformers=[]),w.transformers.push({name:"rehype-shiki:code-language-class",code(A){return this.addClassToHast(A,`${yi}${k}`),A}}));try{const A=t.codeToHast(b,w);s?.set(b,A.children),d.children.splice(p,1,...A.children)}catch(A){if(u)u(A);else throw A}})}}a(ud,"rehypeShikiFromHighlighter");const cd=a(function(t={}){const e=("themes"in t?Object.values(t.themes):[t.theme]).filter(Boolean),n=t.langs||Object.keys(uo);let r;return async i=>(r||(r=ed({themes:e,langs:n}).then(o=>ud.call(this,o,t))),(await r)(i))},"rehypeShiki"),bi=a(function(t,e,n){const r=rt(n);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(r(t.children[e],e,t))return t.children[e]},"findAfter"),mt=a(function(t){if(t==null)return pd;if(typeof t=="string")return hd(t);if(typeof t=="object")return fd(t);if(typeof t=="function")return ki(t);throw new Error("Expected function, string, or array as `test`")},"convertElement");function fd(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=mt(t[n]);return ki(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}a(fd,"anyFactory");function hd(t){return ki(e);function e(n){return n.tagName===t}}a(hd,"tagNameFactory");function ki(t){return e;function e(n,r,i){return!!(dd(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}a(ki,"castFactory");function pd(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}a(pd,"element$1");function dd(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}a(dd,"looksLikeAnElement");const ma=/\n/g,ga=/[\t ]+/g,wi=mt("br"),ya=mt(xd),md=mt("p"),ba=mt("tr"),gd=mt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Sd,vd]),ka=mt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function yd(t,e){const n={},r="children"in t?t.children:[],i=ka(t),s=xa(t,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...Sa(t,{whitespace:s,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<r.length;)o.push(...wa(r[l],t,{whitespace:s,breakBefore:l?void 0:i,breakAfter:l<r.length-1?wi(r[l+1]):i}));const u=[];let c;for(l=-1;++l<o.length;){const h=o[l];typeof h=="number"?c!==void 0&&h>c&&(c=h):h&&(c!==void 0&&c>-1&&u.push(`
19
+ `.repeat(c)||" "),c=-1,u.push(h))}return u.join("")}a(yd,"toText");function wa(t,e,n){return t.type==="element"?bd(t,e,n):t.type==="text"?n.whitespace==="normal"?Sa(t,n):kd(t):[]}a(wa,"renderedTextCollection");function bd(t,e,n){const r=xa(t,n),i=t.children||[];let s=-1,o=[];if(gd(t))return o;let l,u;for(wi(t)||ba(t)&&bi(e,t,ba)?u=`
20
+ `:md(t)?(l=2,u=2):ka(t)&&(l=1,u=1);++s<i.length;)o=o.concat(wa(i[s],t,{whitespace:r,breakBefore:s?void 0:l,breakAfter:s<i.length-1?wi(i[s+1]):u}));return ya(t)&&bi(e,t,ya)&&o.push(" "),l&&o.unshift(l),u&&o.push(u),o}a(bd,"collectElement");function Sa(t,e){const n=String(t.value),r=[],i=[];let s=0;for(;s<=n.length;){ma.lastIndex=s;const u=ma.exec(n),c=u&&"index"in u?u.index:n.length;r.push(wd(n.slice(s,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?e.breakBefore:!0,c===n.length?e.breakAfter:!0)),s=c+1}let o=-1,l;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),l=void 0):r[o]?(typeof l=="number"&&i.push(l),i.push(r[o]),l=0):(o===0||o===r.length-1)&&i.push(0);return i}a(Sa,"collectText");function kd(t){return[String(t.value)]}a(kd,"collectPreText");function wd(t,e,n){const r=[];let i=0,s;for(;i<t.length;){ga.lastIndex=i;const o=ga.exec(t);s=o?o.index:t.length,!i&&!s&&o&&!e&&r.push(""),i!==s&&r.push(t.slice(i,s)),i=o?s+o[0].length:s}return i!==s&&!n&&r.push(""),r.join(" ")}a(wd,"trimAndCollapseSpacesAndTabs");function xa(t,e){if(t.type==="element"){const n=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}a(xa,"inferWhitespace");function Sd(t){return!!(t.properties||{}).hidden}a(Sd,"hidden");function xd(t){return t.tagName==="td"||t.tagName==="th"}a(xd,"isCell");function vd(t){return t.tagName==="dialog"&&!(t.properties||{}).open}a(vd,"closedDialog");const Cd=/^\[if[ \t\f\n\r]+[^\]]+]|<!\[endif]$/;function Nd(t){return t.type==="comment"&&Cd.test(t.value)}a(Nd,"isConditionalComment");const Ad={};function Ed(t){const e=t||Ad;return function(n){oe(n,"comment",function(r,i,s){if(typeof i=="number"&&s&&(e.removeConditional||!Nd(r)))return s.children.splice(i,1),i})}}a(Ed,"rehypeRemoveComments");const _d=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let gn=class{static{a(this,"Schema")}constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}};gn.prototype.property={},gn.prototype.normal={},gn.prototype.space=null;function va(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new gn(n,r,e)}a(va,"merge");function Si(t){return t.toLowerCase()}a(Si,"normalize$1");class Ae{static{a(this,"Info")}constructor(e,n){this.property=e,this.attribute=n}}Ae.prototype.space=null,Ae.prototype.boolean=!1,Ae.prototype.booleanish=!1,Ae.prototype.overloadedBoolean=!1,Ae.prototype.number=!1,Ae.prototype.commaSeparated=!1,Ae.prototype.spaceSeparated=!1,Ae.prototype.commaOrSpaceSeparated=!1,Ae.prototype.mustUseProperty=!1,Ae.prototype.defined=!1;let Td=0;const $=gt(),re=gt(),Ca=gt(),L=gt(),Q=gt(),$t=gt(),Ce=gt();function gt(){return 2**++Td}a(gt,"increment");var xi=Object.freeze({__proto__:null,boolean:$,booleanish:re,commaOrSpaceSeparated:Ce,commaSeparated:$t,number:L,overloadedBoolean:Ca,spaceSeparated:Q});const vi=Object.keys(xi);class Ci extends Ae{static{a(this,"DefinedInfo")}constructor(e,n,r,i){let s=-1;if(super(e,n),Na(this,"space",i),typeof r=="number")for(;++s<vi.length;){const o=vi[s];Na(this,vi[s],(r&xi[o])===xi[o])}}}Ci.prototype.defined=!0;function Na(t,e,n){n&&(t[e]=n)}a(Na,"mark");const Id={}.hasOwnProperty;function Bt(t){const e={},n={};let r;for(r in t.properties)if(Id.call(t.properties,r)){const i=t.properties[r],s=new Ci(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Si(r)]=r,n[Si(s.attribute)]=r}return new gn(e,n,t.space)}a(Bt,"create$1");const Aa=Bt({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ea=Bt({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _a(t,e){return e in t?t[e]:e}a(_a,"caseSensitiveTransform");function Ta(t,e){return _a(t,e.toLowerCase())}a(Ta,"caseInsensitiveTransform");const Ia=Bt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ta,properties:{xmlns:null,xmlnsXLink:null}}),La=Bt({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:Q,ariaCurrent:null,ariaDescribedBy:Q,ariaDetails:null,ariaDisabled:re,ariaDropEffect:Q,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:Q,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Q,ariaLevel:L,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:Q,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:Q,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:re,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}}),Ld=Bt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ta,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$t,acceptCharset:Q,accessKey:Q,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:Q,autoFocus:$,autoPlay:$,blocking:Q,capture:null,charSet:null,checked:$,cite:null,className:Q,cols:L,colSpan:null,content:null,contentEditable:re,controls:$,controlsList:Q,coords:L|$t,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Ca,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:Q,height:L,hidden:$,high:L,href:null,hrefLang:null,htmlFor:Q,httpEquiv:Q,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:Q,itemRef:Q,itemScope:$,itemType:Q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:L,pattern:null,ping:Q,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:Q,required:$,reversed:$,rows:L,rowSpan:L,sandbox:Q,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:re,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Q,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:L,security:null,unselectable:null}}),Od=Bt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_a,properties:{about:Ce,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:Q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$t,g2:$t,glyphName:$t,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Pd=/^data[-\w.:]+$/i,Oa=/-[a-z]/g,Rd=/[A-Z]/g;function Dd(t,e){const n=Si(e);let r=e,i=Ae;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Pd.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(Oa,Md);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!Oa.test(s)){let o=s.replace(Rd,Fd);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Ci}return new i(r,e)}a(Dd,"find");function Fd(t){return"-"+t.toLowerCase()}a(Fd,"kebab");function Md(t){return t.charAt(1).toUpperCase()}a(Md,"camelcase");const $d=va([Ea,Aa,Ia,La,Ld],"html"),Pa=va([Ea,Aa,Ia,La,Od],"svg"),Ra={}.hasOwnProperty;function Bd(t,e){const n=e||{};function r(i,...s){let o=r.invalid;const l=r.handlers;if(i&&Ra.call(i,t)){const u=String(i[t]);o=Ra.call(l,u)?l[u]:r.unknown}if(o)return o.call(this,i,...s)}return a(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}a(Bd,"zwitch");const qd=/["&'<>`]/g,zd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jd=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ud=/[|\\{}()[\]^$+*?.]/g,Da=new WeakMap;function Gd(t,e){if(t=t.replace(e.subset?Vd(e.subset):qd,r),e.subset||e.escapeOnly)return t;return t.replace(zd,n).replace(jd,r);function n(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}a(Gd,"core");function Vd(t){let e=Da.get(t);return e||(e=Hd(t),Da.set(t,e)),e}a(Vd,"charactersToExpressionCached");function Hd(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(Ud,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}a(Hd,"charactersToExpression");const Wd=/[\dA-Fa-f]/;function Kd(t,e,n){const r="&#x"+t.toString(16).toUpperCase();return n&&e&&!Wd.test(String.fromCharCode(e))?r:r+";"}a(Kd,"toHexadecimal");const Yd=/\d/;function Qd(t,e,n){const r="&#"+String(t);return n&&e&&!Yd.test(String.fromCharCode(e))?r:r+";"}a(Qd,"toDecimal");const Jd=["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"],Ni={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},Xd=["cent","copy","divide","gt","lt","not","para","times"],Fa={}.hasOwnProperty,Ai={};let sr;for(sr in Ni)Fa.call(Ni,sr)&&(Ai[Ni[sr]]=sr);const Zd=/[^\dA-Za-z]/;function em(t,e,n,r){const i=String.fromCharCode(t);if(Fa.call(Ai,i)){const s=Ai[i],o="&"+s;return n&&Jd.includes(s)&&!Xd.includes(s)&&(!r||e&&e!==61&&Zd.test(String.fromCharCode(e)))?o:o+";"}return""}a(em,"toNamed");function tm(t,e,n){let r=Kd(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=em(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=Qd(t,e,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}a(tm,"formatSmart");function qt(t,e){return Gd(t,Object.assign({format:tm},e))}a(qt,"stringifyEntities");const nm=/^>|^->|<!--|-->|--!>|<!-$/g,rm=[">"],im=["<",">"];function sm(t,e,n,r){return r.settings.bogusComments?"<?"+qt(t.value,Object.assign({},r.settings.characterReferences,{subset:rm}))+">":"<!--"+t.value.replace(nm,i)+"-->";function i(s){return qt(s,Object.assign({},r.settings.characterReferences,{subset:im}))}}a(sm,"comment");function om(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}a(om,"doctype");function or(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}a(or,"ccount");function am(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}a(am,"stringify$3");function lm(t){return t.join(" ").trim()}a(lm,"stringify$2");const um=/[ \t\n\f\r]/g;function Ei(t){return typeof t=="object"?t.type==="text"?Ma(t.value):!1:Ma(t)}a(Ei,"whitespace");function Ma(t){return t.replace(um,"")===""}a(Ma,"empty");const ae=Ba(1),$a=Ba(-1),cm=[];function Ba(t){return e;function e(n,r,i){const s=n?n.children:cm;let o=(r||0)+t,l=s[o];if(!i)for(;l&&Ei(l);)o+=t,l=s[o];return l}}a(Ba,"siblings");const fm={}.hasOwnProperty;function qa(t){return e;function e(n,r,i){return fm.call(t,n.tagName)&&t[n.tagName](n,r,i)}}a(qa,"omission");const _i=qa({body:pm,caption:Ti,colgroup:Ti,dd:ym,dt:gm,head:Ti,html:hm,li:mm,optgroup:bm,option:km,p:dm,rp:za,rt:za,tbody:Sm,td:ja,tfoot:xm,th:ja,thead:wm,tr:vm});function Ti(t,e,n){const r=ae(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ei(r.value.charAt(0)))}a(Ti,"headOrColgroupOrCaption");function hm(t,e,n){const r=ae(n,e);return!r||r.type!=="comment"}a(hm,"html$3");function pm(t,e,n){const r=ae(n,e);return!r||r.type!=="comment"}a(pm,"body$1");function dm(t,e,n){const r=ae(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}a(dm,"p$2");function mm(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="li"}a(mm,"li");function gm(t,e,n){const r=ae(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}a(gm,"dt");function ym(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}a(ym,"dd");function za(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}a(za,"rubyElement");function bm(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}a(bm,"optgroup");function km(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}a(km,"option");function wm(t,e,n){const r=ae(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}a(wm,"thead");function Sm(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}a(Sm,"tbody$1");function xm(t,e,n){return!ae(n,e)}a(xm,"tfoot");function vm(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&r.tagName==="tr"}a(vm,"tr");function ja(t,e,n){const r=ae(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}a(ja,"cells");const Cm=qa({body:Em,colgroup:_m,head:Am,html:Nm,tbody:Tm});function Nm(t){const e=ae(t,-1);return!e||e.type!=="comment"}a(Nm,"html$2");function Am(t){const e=t.children,n=[];let r=-1;for(;++r<e.length;){const i=e[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return e.length>0}a(Am,"head");function Em(t){const e=ae(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ei(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}a(Em,"body");function _m(t,e,n){const r=$a(n,e),i=ae(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&_i(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}a(_m,"colgroup");function Tm(t,e,n){const r=$a(n,e),i=ae(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&_i(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}a(Tm,"tbody");const ar={name:[[`
21
+ \f\r &/=>`.split(""),`
22
+ \f\r "&'/=>\``.split("")],[`\0
23
+ \f\r "&'/<=>`.split(""),`\0
24
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
25
+ \f\r &>`.split(""),`\0
26
+ \f\r "&'<=>\``.split("")],[`\0
27
+ \f\r "&'<=>\``.split(""),`\0
28
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Im(t,e,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase());const l=[];let u;i.space==="html"&&t.tagName==="svg"&&(r.schema=Pa);const c=Lm(r,t.properties),h=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,h&&(o=!1),(c||!s||!Cm(t,e,n))&&(l.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(h),!o&&(!s||!_i(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}a(Im,"element");function Lm(t,e){const n=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const s=Om(t,i,e[i]);s&&n.push(s)}}for(;++r<n.length;){const s=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}a(Lm,"serializeAttributes");function Om(t,e,n){const r=Dd(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=qt(r.attribute,Object.assign({},t.settings.characterReferences,{subset:ar.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?am:lm)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?u:(t.settings.preferUnquoted&&(l=qt(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:ar.unquoted[i][s]}))),l!==n&&(t.settings.quoteSmart&&or(n,o)>or(n,t.alternative)&&(o=t.alternative),l=o+qt(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?ar.single:ar.double)[i][s],attribute:!0}))+o),u+(l&&"="+l))}a(Om,"serializeAttribute");const Pm=["<","&"];function Ua(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:qt(t.value,Object.assign({},r.settings.characterReferences,{subset:Pm}))}a(Ua,"text$5");function Rm(t,e,n,r){return r.settings.allowDangerousHtml?t.value:Ua(t,e,n,r)}a(Rm,"raw");function Dm(t,e,n,r){return r.all(t)}a(Dm,"root$2");const Fm=Bd("type",{invalid:Mm,unknown:$m,handlers:{comment:sm,doctype:om,element:Im,raw:Rm,root:Dm,text:Ua}});function Mm(t){throw new Error("Expected node, not `"+t+"`")}a(Mm,"invalid");function $m(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}a($m,"unknown");const Bm={},qm={},zm=[];function jm(t,e){const n=e||Bm,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Um,all:Gm,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||_d,characterReferences:n.characterReferences||qm,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Pa:$d,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}a(jm,"toHtml");function Um(t,e,n){return Fm(t,e,n,this)}a(Um,"one$1");function Gm(t){const e=[],n=t&&t.children||zm;let r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}a(Gm,"all$1");function Vm(t){const e=this,n={...e.data("settings"),...t};e.compiler=r;function r(i){return jm(i,n)}a(r,"compiler")}a(Vm,"rehypeStringify");function Hm(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}a(Hm,"blockquote$1");function Wm(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
29
+ `}]}a(Wm,"hardBreak$1");function Km(t,e){const n=e.value?e.value+`
30
+ `:"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}a(Km,"code$2");function Ym(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(Ym,"strikethrough");function Qm(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(Qm,"emphasis$2");const ge=st(/[A-Za-z]/),me=st(/[\dA-Za-z]/),Jm=st(/[#-'*+\--9=?A-Z^-~]/);function lr(t){return t!==null&&(t<32||t===127)}a(lr,"asciiControl");const Ii=st(/\d/),Xm=st(/[\dA-Fa-f]/),Zm=st(/[!-/:-@[-`{-~]/);function F(t){return t!==null&&t<-2}a(F,"markdownLineEnding");function W(t){return t!==null&&(t<0||t===32)}a(W,"markdownLineEndingOrSpace");function q(t){return t===-2||t===-1||t===32}a(q,"markdownSpace");const ur=st(/\p{P}|\p{S}/u),yt=st(/\s/);function st(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}a(st,"regexCheck");function zt(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let o="";if(s===37&&me(t.charCodeAt(n+1))&&me(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const l=t.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(o=String.fromCharCode(s,l),i=1):o="\uFFFD"}else o=String.fromCharCode(s);o&&(e.push(t.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}a(zt,"normalizeUri");function eg(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=zt(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let o,l=t.footnoteCounts.get(r);l===void 0?(l=0,t.footnoteOrder.push(r),o=t.footnoteOrder.length):o=s+1,l+=1,t.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,c),t.applyData(e,c)}a(eg,"footnoteReference$1");function tg(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(tg,"heading$1");function ng(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}a(ng,"html$1");function Ga(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}a(Ga,"revert");function rg(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return Ga(t,e);const i={src:zt(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}a(rg,"imageReference$1");function ig(t,e){const n={src:zt(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}a(ig,"image$1");function sg(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}a(sg,"inlineCode$1");function og(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return Ga(t,e);const i={href:zt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}a(og,"linkReference$1");function ag(t,e){const n={href:zt(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}a(ag,"link$1");function lg(t,e,n){const r=t.all(e),i=n?ug(n):Va(e),s={},o=[];if(typeof e.checked=="boolean"){const h=r[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const h=r[l];(i||l!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
31
+ `}),h.type==="element"&&h.tagName==="p"&&!i?o.push(...h.children):o.push(h)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
32
+ `});const c={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,c),t.applyData(e,c)}a(lg,"listItem$1");function ug(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Va(n[r])}return e}a(ug,"listLoose");function Va(t){const e=t.spread;return e??t.children.length>1}a(Va,"listItemLoose");function cg(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}a(cg,"list$2");function fg(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(fg,"paragraph$1");function hg(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}a(hg,"root$1");function pg(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(pg,"strong$1");const Ha=Ka("end"),Wa=Ka("start");function Ka(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}a(Ka,"point$2");function dg(t){const e=Wa(t),n=Ha(t);if(e&&n)return{start:e,end:n}}a(dg,"position$1");function mg(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},l=Wa(e.children[1]),u=Ha(e.children[e.children.length-1]);l&&u&&(o.position={start:l,end:u}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}a(mg,"table");function gg(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:e.children.length;let u=-1;const c=[];for(;++u<l;){const f=e.children[u],p={},d=o?o[u]:void 0;d&&(p.align=d);let m={type:"element",tagName:s,properties:p,children:[]};f&&(m.children=t.all(f),t.patch(f,m),m=t.applyData(f,m)),c.push(m)}const h={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,h),t.applyData(e,h)}a(gg,"tableRow");function yg(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}a(yg,"tableCell");const Ya=9,Qa=32;function bg(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(Ja(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(Ja(e.slice(i),i>0,!1)),s.join("")}a(bg,"trimLines");function Ja(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===Ya||s===Qa;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===Ya||s===Qa;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}a(Ja,"trimLine");function kg(t,e){const n={type:"text",value:bg(String(e.value))};return t.patch(e,n),t.applyData(e,n)}a(kg,"text$4");function wg(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}a(wg,"thematicBreak$2");const Sg={blockquote:Hm,break:Wm,code:Km,delete:Ym,emphasis:Qm,footnoteReference:eg,heading:tg,html:ng,imageReference:rg,image:ig,inlineCode:sg,linkReference:og,link:ag,listItem:lg,list:cg,paragraph:fg,root:hg,strong:pg,table:mg,tableCell:yg,tableRow:gg,text:kg,thematicBreak:wg,toml:cr,yaml:cr,definition:cr,footnoteDefinition:cr};function cr(){}a(cr,"ignore");function JN(){}a(JN,"ok");const Xa=-1,fr=0,hr=1,pr=2,Li=3,Oi=4,Pi=5,Ri=6,Za=7,el=8,tl=typeof self=="object"?self:globalThis,xg=a((t,e)=>{const n=a((i,s)=>(t.set(s,i),i),"as"),r=a(i=>{if(t.has(i))return t.get(i);const[s,o]=e[i];switch(s){case fr:case Xa:return n(o,i);case hr:{const l=n([],i);for(const u of o)l.push(r(u));return l}case pr:{const l=n({},i);for(const[u,c]of o)l[r(u)]=r(c);return l}case Li:return n(new Date(o),i);case Oi:{const{source:l,flags:u}=o;return n(new RegExp(l,u),i)}case Pi:{const l=n(new Map,i);for(const[u,c]of o)l.set(r(u),r(c));return l}case Ri:{const l=n(new Set,i);for(const u of o)l.add(r(u));return l}case Za:{const{name:l,message:u}=o;return n(new tl[l](u),i)}case el:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new tl[s](o),i)},"unpair");return r},"deserializer"),nl=a(t=>xg(new Map,t)(0),"deserialize"),jt="",{toString:vg}={},{keys:Cg}=Object,yn=a(t=>{const e=typeof t;if(e!=="object"||!t)return[fr,e];const n=vg.call(t).slice(8,-1);switch(n){case"Array":return[hr,jt];case"Object":return[pr,jt];case"Date":return[Li,jt];case"RegExp":return[Oi,jt];case"Map":return[Pi,jt];case"Set":return[Ri,jt]}return n.includes("Array")?[hr,n]:n.includes("Error")?[Za,n]:[pr,n]},"typeOf"),dr=a(([t,e])=>t===fr&&(e==="function"||e==="symbol"),"shouldSkip"),Ng=a((t,e,n,r)=>{const i=a((o,l)=>{const u=r.push(o)-1;return n.set(l,u),u},"as"),s=a(o=>{if(n.has(o))return n.get(o);let[l,u]=yn(o);switch(l){case fr:{let h=o;switch(u){case"bigint":l=el,h=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return i([Xa],o)}return i([l,h],o)}case hr:{if(u)return i([u,[...o]],o);const h=[],f=i([l,h],o);for(const p of o)h.push(s(p));return f}case pr:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const h=[],f=i([l,h],o);for(const p of Cg(o))(t||!dr(yn(o[p])))&&h.push([s(p),s(o[p])]);return f}case Li:return i([l,o.toISOString()],o);case Oi:{const{source:h,flags:f}=o;return i([l,{source:h,flags:f}],o)}case Pi:{const h=[],f=i([l,h],o);for(const[p,d]of o)(t||!(dr(yn(p))||dr(yn(d))))&&h.push([s(p),s(d)]);return f}case Ri:{const h=[],f=i([l,h],o);for(const p of o)(t||!dr(yn(p)))&&h.push(s(p));return f}}const{message:c}=o;return i([l,{name:u,message:c}],o)},"pair");return s},"serializer"),rl=a((t,{json:e,lossy:n}={})=>{const r=[];return Ng(!(e||n),!!e,new Map,r)(t),r},"serialize$1");var mr=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?nl(rl(t,e)):structuredClone(t):(t,e)=>nl(rl(t,e));function Ag(t,e){const n=[{type:"text",value:"\u21A9"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}a(Ag,"defaultFootnoteBackContent");function Eg(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}a(Eg,"defaultFootnoteBackLabel");function _g(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||Ag,r=t.options.footnoteBackLabel||Eg,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<t.footnoteOrder.length;){const c=t.footnoteById.get(t.footnoteOrder[u]);if(!c)continue;const h=t.all(c),f=String(c.identifier).toUpperCase(),p=zt(f.toLowerCase());let d=0;const m=[],g=t.footnoteCounts.get(f);for(;g!==void 0&&++d<=g;){m.length>0&&m.push({type:"text",value:" "});let b=typeof n=="string"?n:n(u,d);typeof b=="string"&&(b={type:"text",value:b}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const y=h[h.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const b=y.children[y.children.length-1];b&&b.type==="text"?b.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...m)}else h.push(...m);const k={type:"element",tagName:"li",properties:{id:e+"fn-"+p},children:t.wrap(h,!0)};t.patch(c,k),l.push(k)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...mr(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
33
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
34
+ `}]}}a(_g,"footer");const Di={}.hasOwnProperty,Tg={};function Ig(t,e){const n=e||Tg,r=new Map,i=new Map,s=new Map,o={...Sg,...n.handlers},l={all:c,applyData:Og,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:u,options:n,patch:Lg,wrap:Rg};return oe(t,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const f=h.type==="definition"?r:i,p=String(h.identifier).toUpperCase();f.has(p)||f.set(p,h)}}),l;function u(h,f){const p=h.type,d=l.handlers[p];if(Di.call(l.handlers,p)&&d)return d(l,h,f);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in h){const{children:g,...y}=h,k=mr(y);return k.children=l.all(h),k}return mr(h)}return(l.options.unknownHandler||Pg)(l,h,f)}a(u,"one");function c(h){const f=[];if("children"in h){const p=h.children;let d=-1;for(;++d<p.length;){const m=l.one(p[d],h);if(m){if(d&&p[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=il(m.value)),!Array.isArray(m)&&m.type==="element")){const g=m.children[0];g&&g.type==="text"&&(g.value=il(g.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}a(c,"all")}a(Ig,"createState");function Lg(t,e){t.position&&(e.position=dg(t))}a(Lg,"patch");function Og(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,mr(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}a(Og,"applyData");function Pg(t,e){const n=e.data||{},r="value"in e&&!(Di.call(n,"hProperties")||Di.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}a(Pg,"defaultUnknownHandler");function Rg(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
35
+ `});++r<t.length;)r&&n.push({type:"text",value:`
36
+ `}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
37
+ `}),n}a(Rg,"wrap$1");function il(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}a(il,"trimMarkdownSpaceStart");function sl(t,e){const n=Ig(t,e),r=n.one(t,void 0),i=_g(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
38
+ `},i),s}a(sl,"toHast");function Dg(t,e){return t&&"run"in t?async function(n,r){const i=sl(n,{file:r,...e});await t.run(i,r)}:function(n,r){return sl(n,{file:r,...e||t})}}a(Dg,"remarkRehype");function ol(t){if(t)throw t}a(ol,"bail");function Fi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(Fi,"getDefaultExportFromCjs");var gr=Object.prototype.hasOwnProperty,al=Object.prototype.toString,ll=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,cl=a(function(e){return typeof Array.isArray=="function"?Array.isArray(e):al.call(e)==="[object Array]"},"isArray"),fl=a(function(e){if(!e||al.call(e)!=="[object Object]")return!1;var n=gr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||gr.call(e,i)},"isPlainObject"),hl=a(function(e,n){ll&&n.name==="__proto__"?ll(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},"setProperty"),pl=a(function(e,n){if(n==="__proto__")if(gr.call(e,n)){if(ul)return ul(e,n).value}else return;return e[n]},"getProperty"),Fg=a(function t(){var e,n,r,i,s,o,l=arguments[0],u=1,c=arguments.length,h=!1;for(typeof l=="boolean"&&(h=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<c;++u)if(e=arguments[u],e!=null)for(n in e)r=pl(l,n),i=pl(e,n),l!==i&&(h&&i&&(fl(i)||(s=cl(i)))?(s?(s=!1,o=r&&cl(r)?r:[]):o=r&&fl(r)?r:{},hl(l,{name:n,newValue:t(h,o,i)})):typeof i<"u"&&hl(l,{name:n,newValue:i}));return l},"extend"),Mi=Fi(Fg);function $i(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}a($i,"isPlainObject");function Mg(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...i);function l(u,...c){const h=t[++s];let f=-1;if(u){o(u);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,h?$g(h,l)(...c):o(null,...c)}a(l,"next")}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}a(Mg,"trough");function $g(t,e){let n;return r;function r(...o){const l=t.length>o.length;let u;l&&o.push(i);try{u=t.apply(this,o)}catch(c){const h=c;if(l&&n)throw h;return i(h)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(o,...l){n||(n=!0,e(o,...l))}function s(o){i(null,o)}}a($g,"wrap");function bn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?dl(t.position):"start"in t||"end"in t?dl(t):"line"in t||"column"in t?Bi(t):""}a(bn,"stringifyPosition");function Bi(t){return ml(t&&t.line)+":"+ml(t&&t.column)}a(Bi,"point$1");function dl(t){return Bi(t&&t.start)+"-"+Bi(t&&t.end)}a(dl,"position");function ml(t){return t&&typeof t=="number"?t:1}a(ml,"index$1");class we extends Error{static{a(this,"VFileMessage")}constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(o=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=l?l.line:void 0,this.name=bn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}we.prototype.file="",we.prototype.name="",we.prototype.reason="",we.prototype.message="",we.prototype.stack="",we.prototype.column=void 0,we.prototype.line=void 0,we.prototype.ancestors=void 0,we.prototype.cause=void 0,we.prototype.fatal=void 0,we.prototype.place=void 0,we.prototype.ruleId=void 0,we.prototype.source=void 0;const je={basename:Bg,dirname:qg,extname:zg,join:jg,sep:"/"};function Bg(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');kn(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let o=-1,l=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),l>-1&&(t.codePointAt(i)===e.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=t.length),t.slice(n,r)}a(Bg,"basename");function qg(t){if(kn(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}a(qg,"dirname");function zg(t){kn(t);let e=t.length,n=-1,r=0,i=-1,s=0,o;for(;e--;){const l=t.codePointAt(e);if(l===47){if(o){r=e+1;break}continue}n<0&&(o=!0,n=e+1),l===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}a(zg,"extname");function jg(...t){let e=-1,n;for(;++e<t.length;)kn(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":Ug(n)}a(jg,"join");function Ug(t){kn(t);const e=t.codePointAt(0)===47;let n=Gg(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}a(Ug,"normalize");function Gg(t,e){let n="",r=0,i=-1,s=0,o=-1,l,u;for(;++o<=t.length;){if(o<t.length)l=t.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,o):n=t.slice(i+1,o),r=o-i-1;i=o,s=0}else l===46&&s>-1?s++:s=-1}return n}a(Gg,"normalizeString");function kn(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}a(kn,"assertPath$2");const Vg={cwd:Hg};function Hg(){return"/"}a(Hg,"cwd");function qi(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}a(qi,"isUrl");function Wg(t){if(typeof t=="string")t=new URL(t);else if(!qi(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Kg(t)}a(Wg,"urlToPath");function Kg(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}a(Kg,"getPathFromURLPosix");const zi=["history","path","basename","stem","extname","dirname"];class Yg{static{a(this,"VFile")}constructor(e){let n;e?qi(e)?n={path:e}:typeof e=="string"||Qg(e)?n={value:e}:n=e:n={},this.cwd=Vg.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zi.length;){const s=zi[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)zi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?je.basename(this.path):void 0}set basename(e){Ui(e,"basename"),ji(e,"basename"),this.path=je.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?je.dirname(this.path):void 0}set dirname(e){gl(this.basename,"dirname"),this.path=je.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?je.extname(this.path):void 0}set extname(e){if(ji(e,"extname"),gl(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=je.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){qi(e)&&(e=Wg(e)),Ui(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?je.basename(this.path,this.extname):void 0}set stem(e){Ui(e,"stem"),ji(e,"stem"),this.path=je.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new we(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ji(t,e){if(t&&t.includes(je.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+je.sep+"`")}a(ji,"assertPart");function Ui(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}a(Ui,"assertNonEmpty");function gl(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}a(gl,"assertPath$1");function Qg(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}a(Qg,"isUint8Array$1");const Jg=a(function(t){const r=this.constructor.prototype,i=r[t],s=a(function(){return i.apply(s,arguments)},"apply");Object.setPrototypeOf(s,r);const o=Object.getOwnPropertyNames(i);for(const l of o){const u=Object.getOwnPropertyDescriptor(i,l);u&&Object.defineProperty(s,l,u)}return s},"CallableInstance"),Xg={}.hasOwnProperty;class eo extends Jg{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Mg()}copy(){const e=new eo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(Mi(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(Wi("data",this.frozen),this.namespace[e]=n,this):Xg.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Wi("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=yr(e),r=this.parser||this.Parser;return Vi("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),Vi("process",this.parser||this.Parser),Hi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,o){const l=yr(e),u=r.parse(l);r.run(u,l,function(h,f,p){if(h||!f||!p)return c(h);const d=f,m=r.stringify(d,p);ey(m)?p.value=m:p.result=m,c(h,p)});function c(h,f){h||!f?o(h):s?s(f):n(void 0,f)}a(c,"realDone")}a(i,"executor")}processSync(e){let n=!1,r;return this.freeze(),Vi("processSync",this.parser||this.Parser),Hi("processSync",this.compiler||this.Compiler),this.process(e,i),bl("processSync","process",n),r;function i(s,o){n=!0,ol(s),r=o}a(i,"realDone")}run(e,n,r){yl(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,l){const u=yr(n);i.run(e,u,c);function c(h,f,p){const d=f||e;h?l(h):o?o(d):r(void 0,d,p)}a(c,"realDone")}a(s,"executor")}runSync(e,n){let r=!1,i;return this.run(e,n,s),bl("runSync","run",r),i;function s(o,l){ol(o),i=l,r=!0}a(s,"realDone")}stringify(e,n){this.freeze();const r=yr(n),i=this.compiler||this.Compiler;return Hi("stringify",i),yl(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(Wi("use",this.frozen),e!=null)if(typeof e=="function")u(e,n);else if(typeof e=="object")Array.isArray(e)?l(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...f]=c;u(h,f)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(i.settings=Mi(!0,i.settings,c.settings))}function l(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const f=c[h];s(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...h]);else if(h.length>0){let[d,...m]=h;const g=r[p][1];$i(g)&&$i(d)&&(d=Mi(!0,g,d)),r[p]=[c,d,...m]}}}}const Gi=new eo().freeze();function Vi(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}a(Vi,"assertParser");function Hi(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}a(Hi,"assertCompiler");function Wi(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(Wi,"assertUnfrozen");function yl(t){if(!$i(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}a(yl,"assertNode");function bl(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}a(bl,"assertDone");function yr(t){return Zg(t)?t:new Yg(t)}a(yr,"vfile");function Zg(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}a(Zg,"looksLikeAVFile");function ey(t){return typeof t=="string"||ty(t)}a(ey,"looksLikeAValue");function ty(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}a(ty,"isUint8Array");const Ki=Gi().use(Dg).use(Ed).use(af).use(cd,{themes:{dark:"github-dark",light:"github-light"}}).use(Vm);async function Ut(t,e=void 0,n=!1){if(t===void 0)return"";const r=await Ki.run(t),i=Ki.stringify(r).trim(),s=i.length===0;if(e===void 0||s&&!n)return i;const o=s?cf:r,l=X("root",[X("element",{properties:{className:e.map(c=>pf(c))},tagName:"div"},o.children)]);return Ki.stringify(l).trim()}a(Ut,"mdastToHtml");const ny=Gi().use(lf,{fragment:!0});function ry(t){const e=ny.parse(t);return yd(e)}a(ry,"htmlToPlainText");function Yi(t){return ry(t).split(`
39
+ `).map(n=>n.trim()).find(n=>n.length>0)??""}a(Yi,"getFirstLineOfHtmlAsPlainText");const Qi=[{cardTemplates:[{Back:`{{FrontSide}}
40
+
41
+ <hr id=answer>
42
+
43
+ {{Back}}`,Front:"{{Front}}",YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic"},{cardTemplates:[{Back:`{{FrontSide}}
44
+
45
+ <hr id=answer>
46
+
47
+ {{Back}}`,Front:"{{Front}}",YankiNamespace:"{{YankiNamespace}}"},{Back:`{{FrontSide}}
48
+
49
+ <hr id=answer>
50
+
51
+ {{Front}}`,Front:"{{Back}}",YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic (and reversed card)"},{cardTemplates:[{Back:`{{cloze:Front}}<br>
52
+ {{Back}}`,Front:"{{cloze:Front}}",YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],isCloze:!0,modelName:"Yanki - Cloze"},{cardTemplates:[{Back:`{{Front}}
53
+
54
+ <hr id=answer>
55
+
56
+ {{type:Back}}`,Front:`{{Front}}
57
+
58
+ {{type:Back}}`,YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic (type in the answer)"}],kl=Qi.map(t=>t.modelName);async function wl(t,e,n=!1){if(n)return;const r=e.map(i=>i.noteId).filter(i=>i!==void 0);await t.note.deleteNotes({notes:r})}a(wl,"deleteNotes");async function iy(t,e,n=!1){if(e.noteId===void 0)throw new Error("Note ID is undefined");n||await t.note.deleteNotes({notes:[e.noteId]})}a(iy,"deleteNote");async function br(t,e,n){if(e.noteId!==void 0)throw new Error("Note already has an ID");if(n)return 0;const r=await t.note.addNote({note:{...e,options:{allowDuplicate:!0}}}).catch(async i=>{if(i instanceof Error){if(i.message===`model was not found: ${e.modelName}`){const s=Qi.find(o=>o.modelName===e.modelName);if(s===void 0)throw new Error(`Model not found: ${e.modelName}`);return await t.model.createModel(s),br(t,e,n)}if(i.message===`deck was not found: ${e.deckName}`){if(e.deckName==="")throw new Error("Deck name is empty");return await t.deck.createDeck({deck:e.deckName}),br(t,e,n)}throw i}else throw new TypeError("Unknown error")});if(r===null)throw new Error("Note creation failed");return r}a(br,"addNote");async function sy(t,e,n,r){if(e.noteId===void 0)throw new Error("Local note ID is undefined");if(n.cards===void 0)throw new Error("Remote note cards are undefined");let i=!1;if((!ay(e.tags??[],n.tags??[])||!oy(e.fields,n.fields))&&(r||await t.note.updateNote({note:{...e,id:e.noteId}}),i=!0),e.deckName!==n.deckName){if(e.deckName==="")throw new Error("Local deck name is empty");r||await t.deck.changeDeck({cards:n.cards,deck:e.deckName}),i=!0}return i}a(sy,"updateNote");function oy(t,e){const n=["Front","Back"];for(const r of n)if(t[r]!==e[r])return!1;return!0}a(oy,"areFieldsEqual");function ay(t,e){if(t.length!==e.length)return!1;for(const[n,r]of t.entries())if(r!==e[n])return!1;return!0}a(ay,"areTagsEqual");async function Ji(t,e=cn){const n=await t.note.findNotes({query:`"YankiNamespace:${e}"`});return await Sl(t,n)}a(Ji,"getRemoteNotes");async function Sl(t,e){const n=await t.note.notesInfo({notes:e}),r=[];if(n.every(l=>l.noteId===void 0))return Array.from({length:n.length}).fill(void 0);const i=n.flatMap(l=>l.cards??[]),s=await t.deck.getDecks({cards:i}),o=new Map;for(const[l,u]of Object.entries(s))for(const c of u)o.set(c,l);for(const l of n){if(l.noteId===void 0){r.push(void 0);continue}const u=new Set;for(const c of l.cards){const h=o.get(c);if(h===void 0)throw new Error(`No deck found for card ${c}`);u.add(h)}if(u.size===0)throw new Error(`No decks found for note ${l.noteId}`);if(u.size>1)throw new Error(`Multiple decks found for note ${l.noteId}`);if(!kl.includes(l.modelName))throw new Error(`Unknown model name ${l.modelName} for note ${l.noteId}`);r.push({cards:l.cards,deckName:[...u][0],fields:{Back:l.fields.Back.value??"",Front:l.fields.Front.value??"",YankiNamespace:l.fields.YankiNamespace.value??""},modelName:l.modelName,noteId:l.noteId,tags:l.tags})}return r}a(Sl,"getRemoteNotesById");async function xl(t,e,n,r){const i=[...new Set(e.map(f=>f.deckName))].filter(Boolean),o=[...new Set(n.map(f=>f.deckName))].filter(Boolean).filter(f=>!i.includes(f)),l=[];for(const f of o){const p=f.split("::");if(p.length!==1)for(;p.length>1;){p.pop();const d=p.join("::");if(i.some(m=>d.includes(m)))break;l.push(d)}}const u=[...new Set([...o,...l])],c=await t.deck.getDeckStats({decks:u}),h=Object.values(c).reduce((f,p,d)=>{const m=u[d];if(r){const g=n.filter(k=>k.deckName===m).length,y=e.filter(k=>k.deckName===m).length;p.total_in_deck===g&&y===0&&!f.includes(m)&&f.push(m)}else p.total_in_deck===0&&!f.includes(m)&&f.push(m);return f},[]);return r||await t.deck.deleteDecks({cardsToo:!0,decks:h}),h}a(xl,"deleteOrphanedDecks");async function vl(t,e,n,r){let i;try{const{css:s}=await t.model.modelStyling({modelName:e});i=s}catch(s){if(s instanceof Error){if(s.message===`model was not found: ${e}`){const o=Qi.find(l=>l.modelName===e);if(o===void 0)throw new Error(`Model not found: ${e}`);return r?!1:(await t.model.createModel(o),vl(t,o.modelName,n,r))}throw s}else throw new TypeError("Unknown error")}return i!==void 0&&i===n?!1:(r||await t.model.updateModelStyling({model:{css:n,name:e}}),!0)}a(vl,"updateModelStyle");async function kr(t){try{const{permission:e}=await t.miscellaneous.requestPermission();if(e==="denied")throw new Error('Permission denied, please add this source to the "webCorsOriginList" in the Anki-Connect add-on configuration options.');return"granted"}catch(e){if(e instanceof Error&&(e.message==="fetch failed"||e.message==="net::ERR_CONNECTION_REFUSED"))return"ankiUnreachable";throw e}}a(kr,"requestPermission");const ot={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};ot.defaultMerge;function ly(t,e){return e}a(ly,"defaultMetaDataUpdater");function uy(t,e){return t.filter(n=>n!==void 0)}a(uy,"defaultFilterValues");var Cl;(function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"})(Cl||(Cl={}));function Nl(t){return typeof t!="object"||t===null?0:Array.isArray(t)?2:hy(t)?1:t instanceof Set?3:t instanceof Map?4:5}a(Nl,"getObjectType");function cy(t){const e=new Set;for(const n of t)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(r);return e}a(cy,"getKeys");function fy(t,e){return typeof t=="object"&&Object.prototype.propertyIsEnumerable.call(t,e)}a(fy,"objectHasProperty");function Al(t){return{*[Symbol.iterator](){for(const e of t)for(const n of e)yield n}}}a(Al,"getIterableOfIterables");const El=new Set(["[object Object]","[object Module]"]);function hy(t){if(!El.has(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(e===void 0)return!0;const n=e.prototype;return!(n===null||typeof n!="object"||!El.has(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}a(hy,"isRecord");function py(t,e,n){const r={};for(const i of cy(t)){const s=[];for(const u of t)fy(u,i)&&s.push(u[i]);if(s.length===0)continue;const o=e.metaDataUpdater(n,{key:i,parents:t}),l=_l(s,e,o);l!==ot.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:l,configurable:!0,enumerable:!0,writable:!0}):r[i]=l)}return r}a(py,"mergeRecords$1");function dy(t){return t.flat()}a(dy,"mergeArrays$1");function my(t){return new Set(Al(t))}a(my,"mergeSets$1");function gy(t){return new Map(Al(t))}a(gy,"mergeMaps$1");function yy(t){return t.at(-1)}a(yy,"mergeOthers$1");const wr={mergeRecords:py,mergeArrays:dy,mergeSets:my,mergeMaps:gy,mergeOthers:yy};function wn(...t){return by({})(...t)}a(wn,"deepmerge");function by(t,e){const n=ky(t,r);function r(...i){return _l(i,n,e)}return a(r,"customizedDeepmerge"),r}a(by,"deepmergeCustom");function ky(t,e){return{defaultMergeFunctions:wr,mergeFunctions:{...wr,...Object.fromEntries(Object.entries(t).filter(([n,r])=>Object.hasOwn(wr,n)).map(([n,r])=>r===!1?[n,wr.mergeOthers]:[n,r]))},metaDataUpdater:t.metaDataUpdater??ly,deepmerge:e,useImplicitDefaultMerging:t.enableImplicitDefaultMerging??!1,filterValues:t.filterValues===!1?void 0:t.filterValues??uy,actions:ot}}a(ky,"getUtils");function _l(t,e,n){const r=e.filterValues?.(t,n)??t;if(r.length===0)return;if(r.length===1)return Xi(r,e,n);const i=Nl(r[0]);if(i!==0&&i!==5){for(let s=1;s<r.length;s++)if(Nl(r[s])!==i)return Xi(r,e,n)}switch(i){case 1:return wy(r,e,n);case 2:return Sy(r,e,n);case 3:return xy(r,e,n);case 4:return vy(r,e,n);default:return Xi(r,e,n)}}a(_l,"mergeUnknowns");function wy(t,e,n){const r=e.mergeFunctions.mergeRecords(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords?e.defaultMergeFunctions.mergeRecords(t,e,n):r}a(wy,"mergeRecords");function Sy(t,e,n){const r=e.mergeFunctions.mergeArrays(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays?e.defaultMergeFunctions.mergeArrays(t):r}a(Sy,"mergeArrays");function xy(t,e,n){const r=e.mergeFunctions.mergeSets(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets?e.defaultMergeFunctions.mergeSets(t):r}a(xy,"mergeSets");function vy(t,e,n){const r=e.mergeFunctions.mergeMaps(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps?e.defaultMergeFunctions.mergeMaps(t):r}a(vy,"mergeMaps");function Xi(t,e,n){const r=e.mergeFunctions.mergeOthers(t,e,n);return r===ot.defaultMerge||e.useImplicitDefaultMerging&&r===void 0&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):r}a(Xi,"mergeOthers");var Cy="addenda",Ny="aircraft",Ay="algae",Ey="alumnae",_y="alumni",Ty="alveoli",Iy="amoebae",Ly="analyses",Oy="antennae",Py="antitheses",Ry="apices",Dy="appendices",Fy="automata",My="axes",$y="bacilli",By="bacteria",qy="bacula",zy="barracks",jy="bases",Uy="beaux",Gy="bison",Vy="buffalo",Hy="bureaus",Wy="cacti",Ky="calves",Yy="carcinomata",Qy="carp",Jy="censuses",Xy="chassis",Zy="cherubim",eb="children",tb="cloacae",nb="cod",rb="codices",ib="concerti",sb="consortia",ob="corpora",ab="crises",lb="criteria",ub="curricula",cb="cystomata",fb="data",hb="deer",pb="diagnoses",db="dice",mb="dwarfs",gb="echoes",yb="elves",bb="elk",kb="ellipses",wb="embargoes",Sb="emphases",xb="errata",vb="fezes",Cb="firmware",Nb="fish",Ab="foci",Eb="feet",_b="formulae",Tb="fungi",Ib="gallows",Lb="genera",Ob="glomeruli",Pb="geese",Rb="graffiti",Db="grouse",Fb="halves",Mb="hamuli",$b="heroes",Bb="hippopotami",qb="hooves",zb="hovercraft",jb="hypotheses",Ub="ilia",Gb="incubi",Vb="indices",Hb="interstitia",Wb="kakapo",Kb="knives",Yb="larvae",Qb="leaves",Jb="libretti",Xb="lives",Zb="loaves",ek="loculi",tk="loci",nk="lice",rk="men",ik="matrices",sk="means",ok="measles",ak="media",lk="media",uk="memoranda",ck="millennia",fk="minutiae",hk="moose",pk="mice",dk="nebulae",mk="nemeses",gk="neuroses",yk="news",bk="nucleoli",kk="nuclei",wk="oases",Sk="occipita",xk="offspring",vk="omphaloi",Ck="opera",Nk="ova",Ak="oxen",Ek="paralyses",_k="parentheses",Tk="people",Ik="phenomena",Lk="phyla",Ok="pike",Pk="polyhedra",Rk="potatoes",Dk="primi",Fk="prognoses",Mk="quizzes",$k="radii",Bk="referenda",qk="salmon",zk="scarves",jk="scrota",Uk="selves",Gk="seminomata",Vk="series",Hk="sheep",Wk="shelves",Kk="shrimp",Yk="simulacra",Qk="soliloquies",Jk="spacecraft",Xk="species",Zk="spectra",ew="squid",tw="stimuli",nw="strata",rw="swine",iw="syconia",sw="syllabi",ow="symposia",aw="synopses",lw="syntheses",uw="tableaus",cw="testes",fw="those",hw="theses",pw="thieves",dw="thrombi",mw="tomatoes",gw="teeth",yw="tori",bw="trout",kw="tuna",ww="umbilici",Sw="uteri",xw="vertebrae",vw="vertices",Cw="vetoes",Nw="vitae",Aw="vortices",Ew="watercraft",_w="wharves",Tw="wives",Iw="wolves",Lw="women",Ow={addendum:Cy,aircraft:Ny,alga:Ay,alumna:Ey,alumnus:_y,alveolus:Ty,amoeba:Iy,analysis:Ly,antenna:Oy,antithesis:Py,apex:Ry,appendix:Dy,automaton:Fy,axis:My,bacillus:$y,bacterium:By,baculum:qy,barracks:zy,basis:jy,beau:Uy,bison:Gy,buffalo:Vy,bureau:Hy,cactus:Wy,calf:Ky,carcinoma:Yy,carp:Qy,census:Jy,chassis:Xy,cherub:Zy,child:eb,ch\u00E2teau:"ch\xE2teaus",cloaca:tb,cod:nb,codex:rb,concerto:ib,consortium:sb,corpus:ob,crisis:ab,criterion:lb,curriculum:ub,cystoma:cb,datum:fb,deer:hb,diagnosis:pb,die:db,dwarf:mb,echo:gb,elf:yb,elk:bb,ellipsis:kb,embargo:wb,emphasis:Sb,erratum:xb,"faux pas":"faux pas",fez:vb,firmware:Cb,fish:Nb,focus:Ab,foot:Eb,formula:_b,fungus:Tb,gallows:Ib,genus:Lb,glomerulus:Ob,goose:Pb,graffito:Rb,grouse:Db,half:Fb,hamulus:Mb,hero:$b,hippopotamus:Bb,hoof:qb,hovercraft:zb,hypothesis:jb,iliac:Ub,incubus:Gb,index:Vb,interstitium:Hb,kakapo:Wb,knife:Kb,larva:Yb,leaf:Qb,libretto:Jb,life:Xb,loaf:Zb,loculus:ek,locus:tk,louse:nk,man:rk,matrix:ik,means:sk,measles:ok,media:ak,medium:lk,memorandum:uk,millennium:ck,minutia:fk,moose:hk,mouse:pk,nebula:dk,nemesis:mk,neurosis:gk,news:yk,nucleolus:bk,nucleus:kk,oasis:wk,occiput:Sk,offspring:xk,omphalos:vk,opus:Ck,ovum:Nk,ox:Ak,paralysis:Ek,parenthesis:_k,person:Tk,phenomenon:Ik,phylum:Lk,pike:Ok,polyhedron:Pk,potato:Rk,primus:Dk,prognosis:Fk,quiz:Mk,radius:$k,referendum:Bk,salmon:qk,scarf:zk,scrotum:jk,self:Uk,seminoma:Gk,series:Vk,sheep:Hk,shelf:Wk,shrimp:Kk,simulacrum:Yk,soliloquy:Qk,spacecraft:Jk,species:Xk,spectrum:Zk,squid:ew,stimulus:tw,stratum:nw,swine:rw,syconium:iw,syllabus:sw,symposium:ow,synopsis:aw,synthesis:lw,tableau:uw,testis:cw,that:fw,thesis:hw,thief:pw,this:"these",thrombus:dw,tomato:mw,tooth:gw,torus:yw,trout:bw,tuna:kw,umbilicus:ww,uterus:Sw,vertebra:xw,vertex:vw,veto:Cw,vita:Nw,vortex:Aw,watercraft:Ew,wharf:_w,wife:Tw,wolf:Iw,woman:Lw};const Pw=Ow;var Rw=new Map(Object.entries(Pw)),Tl=Fi(Rw);function Sn(t,e,n){if(typeof e=="number"&&(n=e),Tl.has(t.toLowerCase())){e=Tl.get(t.toLowerCase());const r=t.charAt(0);r===r.toUpperCase()&&(e=r+e.slice(1)),t===t.toUpperCase()&&(e=e.toUpperCase())}else typeof e!="string"&&(e=(t.replace(/(?:s|x|z|ch|sh)$/i,"$&e").replace(/([^aeiou])y$/i,"$1ie")+"s").replace(/i?e?s$/i,r=>t.slice(-1)===t.slice(-1).toLowerCase()?r.toLowerCase():r.toUpperCase()));return Math.abs(n)===1?t:e}a(Sn,"plur");const Il=a(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function Dw(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(Il(t*1e3)%1e3),nanoseconds:Math.trunc(Il(t*1e6)%1e3)}}a(Dw,"parseNumber");function Fw(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}a(Fw,"parseBigint");function Mw(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Dw(t);break}case"bigint":return Fw(t)}throw new TypeError("Expected a finite number or bigint")}a(Mw,"parseMilliseconds");const $w=a(t=>t===0||t===0n,"isZero"),Bw=a((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),qw=1e-7,zw=24n*60n*60n*1000n;function Zi(t,e){const n=typeof t=="bigint";if(!n&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e},e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[];const i=a((c,h)=>{const f=Math.floor(c*10**h+qw);return(Math.round(f)/10**h).toFixed(h)},"floorDecimals"),s=a((c,h,f,p)=>{if(!((r.length===0||!e.colonNotation)&&$w(c)&&!(e.colonNotation&&f==="m"))){if(p=p??String(c),e.colonNotation){const d=p.includes(".")?p.split(".")[0].length:p.length,m=r.length>0?2:1;p="0".repeat(Math.max(0,m-d))+p}else p+=e.verbose?" "+Bw(h,c):f;r.push(p)}},"add"),o=Mw(t),l=BigInt(o.days);if(s(l/365n,"year","y"),s(l%365n,"day","d"),s(Number(o.hours),"hour","h"),s(Number(o.minutes),"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3){const c=Number(o.seconds),h=Number(o.milliseconds),f=Number(o.microseconds),p=Number(o.nanoseconds);if(s(c,"second","s"),e.formatSubMilliseconds)s(h,"millisecond","ms"),s(f,"microsecond","\xB5s"),s(p,"nanosecond","ns");else{const d=h+f/1e3+p/1e6,m=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,g=d>=1?Math.round(d):Math.ceil(d),y=m?d.toFixed(m):g;s(Number.parseFloat(y),"millisecond","ms",y)}}else{const c=(n?Number(t%zw):t)/1e3%60,h=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,f=i(c,h),p=e.keepDecimalsOnWholeSeconds?f:f.replace(/\.0+$/,"");s(Number.parseFloat(p),"second","s",p)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");const u=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(r=r.slice(0,Math.max(e.unitCount,1))),r.join(u)}a(Zi,"prettyMilliseconds");var jw=Object.defineProperty,Ll=a((t,e)=>jw(t,"name",{value:e,configurable:!0}),"a$1");const Sr=typeof window>"u"?typeof process>"u"?"other":"node":"browser",Ol=Sr==="browser"?/windows/i.test(navigator.userAgent)?"windows":/mac/i.test(navigator.userAgent)?"mac":"other":Sr==="node"?process.platform==="win32"?"windows":process.platform==="darwin"?"mac":"other":"other";let es=0;const Uw=5e3;let Pl=0;const Gw=100;async function ts(){if(Ol==="mac"&&Sr==="node"){const{openApp:t}=await import("./index-UHZxbkBe.js");if(Pl>=Gw){console.warn("Too many Anki App launch attempts this session, ignoring");return}(es===0||Date.now()-es>Uw)&&(console.warn("Attempting to launch Anki app"),es=Date.now(),Pl++,await t("/Applications/Anki.app",{background:!0,newInstance:!1,wait:!1}))}else console.warn("Automatic Anki App launch is only supported on Mac OS in Node.js environment")}a(ts,"h$1"),Ll(ts,"launchAnkiApp");const Be={autoLaunch:!1,customFetch:fetch.bind(globalThis),host:"http://127.0.0.1",key:void 0,port:8765,version:6};class xr{static{a(this,"w")}static{Ll(this,"YankiConnect")}autoLaunch;customFetch;host;key;port;version;card={answerCards:this.build("answerCards"),areDue:this.build("areDue"),areSuspended:this.build("areSuspended"),cardsInfo:this.build("cardsInfo"),cardsModTime:this.build("cardsModTime"),cardsToNotes:this.build("cardsToNotes"),findCards:this.build("findCards"),forgetCards:this.build("forgetCards"),getEaseFactors:this.build("getEaseFactors"),getIntervals:this.build("getIntervals"),relearnCards:this.build("relearnCards"),setEaseFactors:this.build("setEaseFactors"),setSpecificValueOfCard:this.build("setSpecificValueOfCard"),suspend:this.build("suspend"),suspended:this.build("suspended"),unsuspend:this.build("unsuspend")};deck={changeDeck:this.build("changeDeck"),cloneDeckConfigId:this.build("cloneDeckConfigId"),createDeck:this.build("createDeck"),deckNames:this.build("deckNames"),deckNamesAndIds:this.build("deckNamesAndIds"),deleteDecks:this.build("deleteDecks"),getDeckConfig:this.build("getDeckConfig"),getDeckStats:this.build("getDeckStats"),getDecks:this.build("getDecks"),removeDeckConfigId:this.build("removeDeckConfigId"),saveDeckConfig:this.build("saveDeckConfig"),setDeckConfigId:this.build("setDeckConfigId")};graphical={guiAddCards:this.build("guiAddCards"),guiAnswerCard:this.build("guiAnswerCard"),guiBrowse:this.build("guiBrowse"),guiCheckDatabase:this.build("guiCheckDatabase"),guiCurrentCard:this.build("guiCurrentCard"),guiDeckBrowser:this.build("guiDeckBrowser"),guiDeckOverview:this.build("guiDeckOverview"),guiDeckReview:this.build("guiDeckReview"),guiEditNote:this.build("guiEditNote"),guiExitAnki:this.build("guiExitAnki"),guiImportFile:this.build("guiImportFile"),guiSelectNote:this.build("guiSelectNote"),guiSelectedNotes:this.build("guiSelectedNotes"),guiShowAnswer:this.build("guiShowAnswer"),guiShowQuestion:this.build("guiShowQuestion"),guiStartCardTimer:this.build("guiStartCardTimer"),guiUndo:this.build("guiUndo")};media={deleteMediaFile:this.build("deleteMediaFile"),getMediaDirPath:this.build("getMediaDirPath"),getMediaFilesNames:this.build("getMediaFilesNames"),retrieveMediaFile:this.build("retrieveMediaFile"),storeMediaFile:this.build("storeMediaFile")};miscellaneous={apiReflect:this.build("apiReflect"),exportPackage:this.build("exportPackage"),getProfiles:this.build("getProfiles"),importPackage:this.build("importPackage"),loadProfile:this.build("loadProfile"),multi:this.build("multi"),reloadCollection:this.build("reloadCollection"),requestPermission:this.build("requestPermission"),sync:this.build("sync"),version:this.build("version")};model={createModel:this.build("createModel"),findAndReplaceInModels:this.build("findAndReplaceInModels"),findModelsById:this.build("findModelsById"),findModelsByName:this.build("findModelsByName"),modelFieldAdd:this.build("modelFieldAdd"),modelFieldDescriptions:this.build("modelFieldDescriptions"),modelFieldFonts:this.build("modelFieldFonts"),modelFieldNames:this.build("modelFieldNames"),modelFieldRemove:this.build("modelFieldRemove"),modelFieldRename:this.build("modelFieldRename"),modelFieldReposition:this.build("modelFieldReposition"),modelFieldSetDescription:this.build("modelFieldSetDescription"),modelFieldSetFont:this.build("modelFieldSetFont"),modelFieldSetFontSize:this.build("modelFieldSetFontSize"),modelFieldsOnTemplates:this.build("modelFieldsOnTemplates"),modelNames:this.build("modelNames"),modelNamesAndIds:this.build("modelNamesAndIds"),modelStyling:this.build("modelStyling"),modelTemplateAdd:this.build("modelTemplateAdd"),modelTemplateRemove:this.build("modelTemplateRemove"),modelTemplateRename:this.build("modelTemplateRename"),modelTemplateReposition:this.build("modelTemplateReposition"),modelTemplates:this.build("modelTemplates"),updateModelStyling:this.build("updateModelStyling"),updateModelTemplates:this.build("updateModelTemplates")};note={addNote:this.build("addNote"),addNotes:this.build("addNotes"),addTags:this.build("addTags"),canAddNotes:this.build("canAddNotes"),canAddNotesWithErrorDetail:this.build("canAddNotesWithErrorDetail"),clearUnusedTags:this.build("clearUnusedTags"),deleteNotes:this.build("deleteNotes"),findNotes:this.build("findNotes"),getNoteTags:this.build("getNoteTags"),getTags:this.build("getTags"),notesInfo:this.build("notesInfo"),removeEmptyNotes:this.build("removeEmptyNotes"),removeTags:this.build("removeTags"),replaceTags:this.build("replaceTags"),replaceTagsInAllNotes:this.build("replaceTagsInAllNotes"),updateNote:this.build("updateNote"),updateNoteFields:this.build("updateNoteFields"),updateNoteModel:this.build("updateNoteModel"),updateNoteTags:this.build("updateNoteTags")};statistic={cardReviews:this.build("cardReviews"),getCollectionStatsHTML:this.build("getCollectionStatsHTML"),getLatestReviewID:this.build("getLatestReviewID"),getNumCardsReviewedByDay:this.build("getNumCardsReviewedByDay"),getNumCardsReviewedToday:this.build("getNumCardsReviewedToday"),getReviewsOfCards:this.build("getReviewsOfCards"),insertReviews:this.build("insertReviews")};constructor(e){if(this.host=e?.host??Be.host,this.port=e?.port??Be.port,this.version=e?.version??Be.version,this.key=e?.key??Be.key,this.autoLaunch=e?.autoLaunch??Be.autoLaunch,Be.customFetch===void 0)throw new Error("A fetch implementation is required");if(this.customFetch=e?.customFetch??Be.customFetch,(Ol!=="mac"||Sr!=="node")&&this.autoLaunch!==!1&&(console.warn("The autoLaunch option is only supported in a Node environment on macOS"),this.autoLaunch=!1),this.version!==6)throw new Error("YankiConnect currently only supports Anki-Connect API version 6");this.autoLaunch==="immediately"&&ts()}build(e){return async n=>{const r=await this.invoke(e,n);if(r.error!==null)throw new Error(String(r.error));return r.result}}async invoke(e,n){let r,i;try{if(r=await this.customFetch(`${this.host}:${this.port}`,{body:JSON.stringify({action:e,...this.key===void 0?{}:{key:this.key},params:n,version:this.version}),headers:{"Access-Control-Allow-Origin":"*","Content-Type":"application/json"},method:"POST",mode:"cors"}),r===void 0)throw new Error("Anki-Connect response is undefined");if(r.status!==200)throw new Error(`Anki-Connect response status is ${r.status}`);if(i=await r.json(),this.autoLaunch!==!1&&i.error==="collection is not available")throw new Error(i.error)}catch(s){if(this.autoLaunch!==!1)return console.warn("Can't connect to Anki app, retrying..."),await ts(),await new Promise(o=>{setTimeout(o,500)}),n===void 0?this.invoke(e):this.invoke(e,n);throw s}if(!("error"in i))throw new Error("response is missing required error field");if(!("result"in i))throw new Error("response is missing required result field");return i}}const Rl={ankiConnectOptions:Be,ankiWeb:!1,dryRun:!1,namespace:cn};async function Vw(t){const e=performance.now(),{ankiConnectOptions:n,ankiWeb:r,dryRun:i,namespace:s}=wn(Rl,t??{}),o=new xr(n);if(await kr(o)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const u=await Ji(o,s);await wl(o,u,i);const c=await xl(o,[],u,i),h=u.length>0||c.length>0;return!i&&r&&(h||Jr)&&await o.miscellaneous.sync(),{ankiWeb:r,decks:c,deleted:u,dryRun:i,duration:performance.now()-e,namespace:s}}a(Vw,"cleanNotes");function Hw(t,e=!1){const n=t.decks.length,r=t.deleted.length;if(n===0&&r===0)return"Nothing to delete";const i=[];if(i.push(`${t.dryRun?"Will":"Successfully"} deleted ${t.deleted.length} ${Sn("note",r)} and ${t.decks.length} ${Sn("deck",n)} from Anki${t.dryRun?"":` in ${Zi(t.duration)}`}.`),e){if(r>0){i.push("",t.dryRun?"Notes to delete:":"Deleted notes:");for(const s of t.deleted){const o=Zr(Yi(s.fields.Front),50);i.push(` Note ID ${s.noteId} ${o}`)}}if(n>0){i.push("",t.dryRun?"Decks to delete:":"Deleted decks:");for(const s of t.decks)i.push(` ${s}`)}}return i.join(`
59
+ `)}a(Hw,"formatCleanReport");const Dl={ankiConnectOptions:Be,namespace:cn};async function Ww(t){const e=performance.now(),{ankiConnectOptions:n,namespace:r}=wn(Dl,t??{}),i=new xr(n);if(await kr(i)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const o=await Ji(i,r);return{duration:performance.now()-e,namespace:r,notes:o}}a(Ww,"listNotes");function Kw(t){if(t.notes.length===0)return"No notes found.";const e=[];for(const n of t.notes){const r=Zr(Yi(n.fields.Front),50);e.push(`Note ID ${n.noteId} ${r}`)}return e.join(`
60
+ `)}a(Kw,"formatListReport");const Fl={ankiConnectOptions:Be,ankiWeb:!1,css:uf,dryRun:!1};async function Yw(t){const e=performance.now(),{ankiConnectOptions:n,ankiWeb:r,css:i,dryRun:s}=wn(Fl,t??{}),o=new xr(n);if(await kr(o)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const u=[];for(const h of kl){const f=await vl(o,h,i,s);u.push({action:f?"updated":"unchanged",name:h})}const c=u.some(h=>h.action!=="unchanged");return!s&&r&&(c||Jr)&&await o.miscellaneous.sync(),{ankiWeb:r,dryRun:s,duration:performance.now()-e,models:u}}a(Yw,"setStyle");function Qw(t,e=!1){const n=[],r=t.models.filter(s=>s.action==="unchanged"),i=t.models.filter(s=>s.action==="updated");if(n.push(`${t.dryRun?"Will":"Successfully"} update ${i.length} ${Sn("model",i.length)} and left ${r.length} ${Sn("model",r.length)} unchanged${t.dryRun?"":` in ${Zi(t.duration)}`}.`),e){if(i.length>0){n.push("",t.dryRun?"Models to update:":"Updated models:");for(const s of i)n.push(` ${s.name}`)}if(r.length>0){n.push("",t.dryRun?"Models unchanged:":"Unchanged models:");for(const s of r)n.push(` ${s.name}`)}}return n.join(`
61
+ `)}a(Qw,"formatStyleReport");const ns=Symbol.for("yaml.alias"),rs=Symbol.for("yaml.document"),at=Symbol.for("yaml.map"),Ml=Symbol.for("yaml.pair"),Xe=Symbol.for("yaml.scalar"),Gt=Symbol.for("yaml.seq"),Ee=Symbol.for("yaml.node.type"),Vt=a(t=>!!t&&typeof t=="object"&&t[Ee]===ns,"isAlias"),vr=a(t=>!!t&&typeof t=="object"&&t[Ee]===rs,"isDocument"),xn=a(t=>!!t&&typeof t=="object"&&t[Ee]===at,"isMap"),ee=a(t=>!!t&&typeof t=="object"&&t[Ee]===Ml,"isPair"),J=a(t=>!!t&&typeof t=="object"&&t[Ee]===Xe,"isScalar"),vn=a(t=>!!t&&typeof t=="object"&&t[Ee]===Gt,"isSeq");function te(t){if(t&&typeof t=="object")switch(t[Ee]){case at:case Gt:return!0}return!1}a(te,"isCollection");function ie(t){if(t&&typeof t=="object")switch(t[Ee]){case ns:case at:case Xe:case Gt:return!0}return!1}a(ie,"isNode");const Jw=a(t=>(J(t)||te(t))&&!!t.anchor,"hasAnchor"),bt=Symbol("break visit"),Xw=Symbol("skip children"),Cn=Symbol("remove node");function kt(t,e){const n=Zw(e);vr(t)?Ht(null,t.contents,n,Object.freeze([t]))===Cn&&(t.contents=null):Ht(null,t,n,Object.freeze([]))}a(kt,"visit"),kt.BREAK=bt,kt.SKIP=Xw,kt.REMOVE=Cn;function Ht(t,e,n,r){const i=e0(t,e,n,r);if(ie(i)||ee(i))return t0(t,r,i),Ht(t,i,n,r);if(typeof i!="symbol"){if(te(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const o=Ht(s,e.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===bt)return bt;o===Cn&&(e.items.splice(s,1),s-=1)}}}else if(ee(e)){r=Object.freeze(r.concat(e));const s=Ht("key",e.key,n,r);if(s===bt)return bt;s===Cn&&(e.key=null);const o=Ht("value",e.value,n,r);if(o===bt)return bt;o===Cn&&(e.value=null)}}return i}a(Ht,"visit_");function Zw(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}a(Zw,"initVisitor");function e0(t,e,n,r){if(typeof n=="function")return n(t,e,r);if(xn(e))return n.Map?.(t,e,r);if(vn(e))return n.Seq?.(t,e,r);if(ee(e))return n.Pair?.(t,e,r);if(J(e))return n.Scalar?.(t,e,r);if(Vt(e))return n.Alias?.(t,e,r)}a(e0,"callVisitor");function t0(t,e,n){const r=e[e.length-1];if(te(r))r.items[t]=n;else if(ee(r))t==="key"?r.key=n:r.value=n;else if(vr(r))r.contents=n;else{const i=Vt(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}a(t0,"replaceNode");const n0={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},r0=a(t=>t.replace(/[!,[\]{}]/g,e=>n0[e]),"escapeTagName");class ke{static{a(this,"Directives")}constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ke.defaultYaml,e),this.tags=Object.assign({},ke.defaultTags,n)}clone(){const e=new ke(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new ke(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ke.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ke.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:ke.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ke.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=e.match(/^(.*!)([^!]*)$/s);i||n(`The ${e} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+r0(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(e&&r.length>0&&ie(e.contents)){const s={};kt(e.contents,(o,l)=>{ie(l)&&l.tag&&(s[l.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(`
62
+ `)}}ke.defaultYaml={explicit:!1,version:"1.2"},ke.defaultTags={"!!":"tag:yaml.org,2002:"};function $l(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(n)}return!0}a($l,"anchorIsValid");function Bl(t){const e=new Set;return kt(t,{Value(n,r){r.anchor&&e.add(r.anchor)}}),e}a(Bl,"anchorNames");function ql(t,e){for(let n=1;;++n){const r=`${t}${n}`;if(!e.has(r))return r}}a(ql,"findNewAnchor");function i0(t,e){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=Bl(t));const o=ql(e,i);return i.add(o),o},setAnchors:()=>{for(const s of n){const o=r.get(s);if(typeof o=="object"&&o.anchor&&(J(o.node)||te(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:r}}a(i0,"createNodeAnchors");function Wt(t,e,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const o=r[i],l=Wt(t,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),o=Wt(t,r,i,s);o===void 0?r.delete(i):o!==s&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const s=Wt(t,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const o=Wt(t,r,i,s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}return t.call(e,n,r)}a(Wt,"applyReviver");function _e(t,e,n){if(Array.isArray(t))return t.map((r,i)=>_e(r,String(i),n));if(t&&typeof t.toJSON=="function"){if(!n||!Jw(t))return t.toJSON(e,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(t,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=t.toJSON(e,n);return n.onCreate&&n.onCreate(i),i}return typeof t=="bigint"&&!n?.keep?Number(t):t}a(_e,"toJS");class is{static{a(this,"NodeBase")}constructor(e){Object.defineProperty(this,Ee,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!vr(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=_e(this,"",o);if(typeof i=="function")for(const{count:u,res:c}of o.anchors.values())i(c,u);return typeof s=="function"?Wt(s,{"":l},"",l):l}}class ss extends is{static{a(this,"Alias")}constructor(e){super(ns),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let n;return kt(e,{Node:(r,i)=>{if(i===this)return kt.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(e,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,o=this.resolve(i);if(!o){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let l=r.get(o);if(l||(_e(o,null,n),l=r.get(o)),!l||l.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Cr(i,o,r)),l.count*l.aliasCount>s)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return l.res}toString(e,n,r){const i=`*${this.source}`;if(e){if($l(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${i} `}return i}}function Cr(t,e,n){if(Vt(e)){const r=e.resolve(t),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(te(e)){let r=0;for(const i of e.items){const s=Cr(t,i,n);s>r&&(r=s)}return r}else if(ee(e)){const r=Cr(t,e.key,n),i=Cr(t,e.value,n);return Math.max(r,i)}return 1}a(Cr,"getAliasCount");const zl=a(t=>!t||typeof t!="function"&&typeof t!="object","isScalarValue");class z extends is{static{a(this,"Scalar")}constructor(e){super(Xe),this.value=e}toJSON(e,n){return n?.keep?this.value:_e(this.value,e,n)}toString(){return String(this.value)}}z.BLOCK_FOLDED="BLOCK_FOLDED",z.BLOCK_LITERAL="BLOCK_LITERAL",z.PLAIN="PLAIN",z.QUOTE_DOUBLE="QUOTE_DOUBLE",z.QUOTE_SINGLE="QUOTE_SINGLE";const s0="tag:yaml.org,2002:";function o0(t,e,n){if(e){const r=n.filter(s=>s.tag===e),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return n.find(r=>r.identify?.(t)&&!r.format)}a(o0,"findTagObject");function Nn(t,e,n){if(vr(t)&&(t=t.contents),ie(t))return t;if(ee(t)){const f=n.schema[at].createNode?.(n.schema,null,n);return f.items.push(t),f}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:o,sourceObjects:l}=n;let u;if(r&&t&&typeof t=="object"){if(u=l.get(t),u)return u.anchor||(u.anchor=i(t)),new ss(u.anchor);u={anchor:null,node:null},l.set(t,u)}e?.startsWith("!!")&&(e=s0+e.slice(2));let c=o0(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const f=new z(t);return u&&(u.node=f),f}c=t instanceof Map?o[at]:Symbol.iterator in Object(t)?o[Gt]:o[at]}s&&(s(c),delete n.onTagObj);const h=c?.createNode?c.createNode(n.schema,t,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,t,n):new z(t);return e?h.tag=e:c.default||(h.tag=c.tag),u&&(u.node=h),h}a(Nn,"createNode");function Nr(t,e,n){let r=n;for(let i=e.length-1;i>=0;--i){const s=e[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return Nn(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}a(Nr,"collectionFromPath");const An=a(t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,"isEmptyPath");class os extends is{static{a(this,"Collection")}constructor(e,n){super(e),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(e){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(n.schema=e),n.items=n.items.map(r=>ie(r)||ee(r)?r.clone(e):r),this.range&&(n.range=this.range.slice()),n}addIn(e,n){if(An(e))this.add(n);else{const[r,...i]=e,s=this.get(r,!0);if(te(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,Nr(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(e){const[n,...r]=e;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(te(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(e,n){const[r,...i]=e,s=this.get(r,!0);return i.length===0?!n&&J(s)?s.value:s:te(s)?s.getIn(i,n):void 0}hasAllNullValues(e){return this.items.every(n=>{if(!ee(n))return!1;const r=n.value;return r==null||e&&J(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[n,...r]=e;if(r.length===0)return this.has(n);const i=this.get(n,!0);return te(i)?i.hasIn(r):!1}setIn(e,n){const[r,...i]=e;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(te(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,Nr(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}os.maxFlowStringSingleLineLength=60;const a0=a(t=>t.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function Ze(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}a(Ze,"indentComment");const wt=a((t,e,n)=>t.endsWith(`
63
+ `)?Ze(n,e):n.includes(`
64
+ `)?`
65
+ `+Ze(n,e):(t.endsWith(" ")?"":" ")+n,"lineComment"),jl="flow",as="block",Ar="quoted";function Er(t,e,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return t;const u=Math.max(1+s,1+i-e.length);if(t.length<=u)return t;const c=[],h={};let f=i-e.length;typeof r=="number"&&(r>i-Math.max(2,s)?c.push(0):f=i-r);let p,d,m=!1,g=-1,y=-1,k=-1;n===as&&(g=Ul(t,g,e.length),g!==-1&&(f=g+u));for(let S;S=t[g+=1];){if(n===Ar&&S==="\\"){switch(y=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}k=g}if(S===`
66
+ `)n===as&&(g=Ul(t,g,e.length)),f=g+e.length+u,p=void 0;else{if(S===" "&&d&&d!==" "&&d!==`
67
+ `&&d!==" "){const N=t[g+1];N&&N!==" "&&N!==`
68
+ `&&N!==" "&&(p=g)}if(g>=f)if(p)c.push(p),f=p+u,p=void 0;else if(n===Ar){for(;d===" "||d===" ";)d=S,S=t[g+=1],m=!0;const N=g>k+1?g-2:y-1;if(h[N])return t;c.push(N),h[N]=!0,f=N+u,p=void 0}else m=!0}d=S}if(m&&l&&l(),c.length===0)return t;o&&o();let b=t.slice(0,c[0]);for(let S=0;S<c.length;++S){const N=c[S],C=c[S+1]||t.length;N===0?b=`
69
+ ${e}${t.slice(0,C)}`:(n===Ar&&h[N]&&(b+=`${t[N]}\\`),b+=`
70
+ ${e}${t.slice(N+1,C)}`)}return b}a(Er,"foldFlowLines");function Ul(t,e,n){let r=e,i=e+1,s=t[i];for(;s===" "||s===" ";)if(e<i+n)s=t[++e];else{do s=t[++e];while(s&&s!==`
71
+ `);r=e,i=e+1,s=t[i]}return r}a(Ul,"consumeMoreIndentedLines");const _r=a((t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),"getFoldOptions"),Tr=a(t=>/^(%|---|\.\.\.)/m.test(t),"containsDocumentMarker");function l0(t,e,n){if(!e||e<0)return!1;const r=e-n,i=t.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if(t[s]===`
72
+ `){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}a(l0,"lineLengthOverLimit");function En(t,e){const n=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=e,i=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(Tr(t)?" ":"");let o="",l=0;for(let u=0,c=n[u];c;c=n[++u])if(c===" "&&n[u+1]==="\\"&&n[u+2]==="n"&&(o+=n.slice(l,u)+"\\ ",u+=1,l=u,c="\\"),c==="\\")switch(n[u+1]){case"u":{o+=n.slice(l,u);const h=n.substr(u+2,4);switch(h){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:h.substr(0,2)==="00"?o+="\\x"+h.substr(2):o+=n.substr(u,6)}u+=5,l=u+1}break;case"n":if(r||n[u+2]==='"'||n.length<i)u+=1;else{for(o+=n.slice(l,u)+`
73
+
74
+ `;n[u+2]==="\\"&&n[u+3]==="n"&&n[u+4]!=='"';)o+=`
75
+ `,u+=2;o+=s,n[u+2]===" "&&(o+="\\"),u+=1,l=u+1}break;default:u+=1}return o=l?o+n.slice(l):n,r?o:Er(o,s,Ar,_r(e,!1))}a(En,"doubleQuotedString");function ls(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
76
+ `)||/[ \t]\n|\n[ \t]/.test(t))return En(t,e);const n=e.indent||(Tr(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
77
+ ${n}`)+"'";return e.implicitKey?r:Er(r,n,jl,_r(e,!1))}a(ls,"singleQuotedString");function Kt(t,e){const{singleQuote:n}=e.options;let r;if(n===!1)r=En;else{const i=t.includes('"'),s=t.includes("'");i&&!s?r=ls:s&&!i?r=En:r=n?ls:En}return r(t,e)}a(Kt,"quotedString");let us;try{us=new RegExp(`(^|(?<!
78
+ ))
79
+ +(?!
80
+ |$)`,"g")}catch{us=/\n+(?!\n|$)/g}function Ir({comment:t,type:e,value:n},r,i,s){const{blockQuote:o,commentString:l,lineWidth:u}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Kt(n,r);const c=r.indent||(r.forceBlockIndent||Tr(n)?" ":""),h=o==="literal"?!0:o==="folded"||e===z.BLOCK_FOLDED?!1:e===z.BLOCK_LITERAL?!0:!l0(n,u,c.length);if(!n)return h?`|
81
+ `:`>
82
+ `;let f,p;for(p=n.length;p>0;--p){const w=n[p-1];if(w!==`
83
+ `&&w!==" "&&w!==" ")break}let d=n.substring(p);const m=d.indexOf(`
84
+ `);m===-1?f="-":n===d||m!==d.length-1?(f="+",s&&s()):f="",d&&(n=n.slice(0,-d.length),d[d.length-1]===`
85
+ `&&(d=d.slice(0,-1)),d=d.replace(us,`$&${c}`));let g=!1,y,k=-1;for(y=0;y<n.length;++y){const w=n[y];if(w===" ")g=!0;else if(w===`
86
+ `)k=y;else break}let b=n.substring(0,k<y?k+1:y);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let N=(h?"|":">")+(g?c?"2":"1":"")+f;if(t&&(N+=" "+l(t.replace(/ ?[\r\n]+/g," ")),i&&i()),h)return n=n.replace(/\n+/g,`$&${c}`),`${N}
87
+ ${c}${b}${n}${d}`;n=n.replace(/\n+/g,`
88
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const C=Er(`${b}${n}${d}`,c,as,_r(r,!0));return`${N}
89
+ ${c}${C}`}a(Ir,"blockString");function u0(t,e,n,r){const{type:i,value:s}=t,{actualString:o,implicitKey:l,indent:u,indentStep:c,inFlow:h}=e;if(l&&s.includes(`
90
+ `)||h&&/[[\]{},]/.test(s))return Kt(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||h||!s.includes(`
91
+ `)?Kt(s,e):Ir(t,e,n,r);if(!l&&!h&&i!==z.PLAIN&&s.includes(`
92
+ `))return Ir(t,e,n,r);if(Tr(s)){if(u==="")return e.forceBlockIndent=!0,Ir(t,e,n,r);if(l&&u===c)return Kt(s,e)}const f=s.replace(/\n+/g,`$&
93
+ ${u}`);if(o){const p=a(g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(f),"test"),{compat:d,tags:m}=e.doc.schema;if(m.some(p)||d?.some(p))return Kt(s,e)}return l?f:Er(f,u,jl,_r(e,!1))}a(u0,"plainString");function cs(t,e,n,r){const{implicitKey:i,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:l}=t;l!==z.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=z.QUOTE_DOUBLE);const u=a(h=>{switch(h){case z.BLOCK_FOLDED:case z.BLOCK_LITERAL:return i||s?Kt(o.value,e):Ir(o,e,n,r);case z.QUOTE_DOUBLE:return En(o.value,e);case z.QUOTE_SINGLE:return ls(o.value,e);case z.PLAIN:return u0(o,e,n,r);default:return null}},"_stringify");let c=u(l);if(c===null){const{defaultKeyType:h,defaultStringType:f}=e.options,p=i&&h||f;if(c=u(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}a(cs,"stringifyString");function Gl(t,e){const n=Object.assign({blockQuote:!0,commentString:a0,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:t,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}a(Gl,"createStringifyContext");function c0(t,e){if(e.tag){const i=t.filter(s=>s.tag===e.tag);if(i.length>0)return i.find(s=>s.format===e.format)??i[0]}let n,r;if(J(e)){r=e.value;const i=t.filter(s=>s.identify?.(r));n=i.find(s=>s.format===e.format)??i.find(s=>!s.format)}else r=e,n=t.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${i} value`)}return n}a(c0,"getTagObject");function f0(t,e,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(J(t)||te(t))&&t.anchor;s&&$l(s)&&(n.add(s),i.push(`&${s}`));const o=t.tag?t.tag:e.default?null:e.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}a(f0,"stringifyProps");function Yt(t,e,n,r){if(ee(t))return t.toString(e,n,r);if(Vt(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let i;const s=ie(t)?t:e.doc.createNode(t,{onTagObj:u=>i=u});i||(i=c0(e.doc.schema.tags,s));const o=f0(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const l=typeof i.stringify=="function"?i.stringify(s,e,n,r):J(s)?cs(s,e,n,r):s.toString(e,n,r);return o?J(s)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
94
+ ${e.indent}${l}`:l}a(Yt,"stringify$1");function h0({key:t,value:e},n,r,i){const{allNullValues:s,doc:o,indent:l,indentStep:u,options:{commentString:c,indentSeq:h,simpleKeys:f}}=n;let p=ie(t)&&t.comment||null;if(f){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(te(t)||!ie(t)&&typeof t=="object"){const A="With simple keys, collection cannot be used as a key value";throw new Error(A)}}let d=!f&&(!t||p&&e==null&&!n.inFlow||te(t)||(J(t)?t.type===z.BLOCK_FOLDED||t.type===z.BLOCK_LITERAL:typeof t=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(f||!s),indent:l+u});let m=!1,g=!1,y=Yt(t,n,()=>m=!0,()=>g=!0);if(!d&&!n.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(s||e==null)return m&&r&&r(),y===""?"?":d?`? ${y}`:y}else if(s&&!f||e==null&&d)return y=`? ${y}`,p&&!m?y+=wt(y,n.indent,c(p)):g&&i&&i(),y;m&&(p=null),d?(p&&(y+=wt(y,n.indent,c(p))),y=`? ${y}
95
+ ${l}:`):(y=`${y}:`,p&&(y+=wt(y,n.indent,c(p))));let k,b,S;ie(e)?(k=!!e.spaceBefore,b=e.commentBefore,S=e.comment):(k=!1,b=null,S=null,e&&typeof e=="object"&&(e=o.createNode(e))),n.implicitKey=!1,!d&&!p&&J(e)&&(n.indentAtStart=y.length+1),g=!1,!h&&u.length>=2&&!n.inFlow&&!d&&vn(e)&&!e.flow&&!e.tag&&!e.anchor&&(n.indent=n.indent.substring(2));let N=!1;const C=Yt(e,n,()=>N=!0,()=>g=!0);let w=" ";if(p||k||b){if(w=k?`
96
+ `:"",b){const A=c(b);w+=`
97
+ ${Ze(A,n.indent)}`}C===""&&!n.inFlow?w===`
98
+ `&&(w=`
99
+
100
+ `):w+=`
101
+ ${n.indent}`}else if(!d&&te(e)){const A=C[0],_=C.indexOf(`
102
+ `),R=_!==-1,E=n.inFlow??e.flow??e.items.length===0;if(R||!E){let P=!1;if(R&&(A==="&"||A==="!")){let O=C.indexOf(" ");A==="&"&&O!==-1&&O<_&&C[O+1]==="!"&&(O=C.indexOf(" ",O+1)),(O===-1||_<O)&&(P=!0)}P||(w=`
103
+ ${n.indent}`)}}else(C===""||C[0]===`
104
+ `)&&(w="");return y+=w+C,n.inFlow?N&&r&&r():S&&!N?y+=wt(y,n.indent,c(S)):g&&i&&i(),y}a(h0,"stringifyPair");function Vl(t,e){(t==="debug"||t==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}a(Vl,"warn");const Hl="<<";function Wl(t,e,{key:n,value:r}){if(t?.doc.schema.merge&&p0(n))if(r=Vt(r)?r.resolve(t.doc):r,vn(r))for(const i of r.items)fs(t,e,i);else if(Array.isArray(r))for(const i of r)fs(t,e,i);else fs(t,e,r);else{const i=_e(n,"",t);if(e instanceof Map)e.set(i,_e(r,i,t));else if(e instanceof Set)e.add(i);else{const s=d0(n,i,t),o=_e(r,s,t);s in e?Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[s]=o}}return e}a(Wl,"addPairToJSMap");const p0=a(t=>t===Hl||J(t)&&t.value===Hl&&(!t.type||t.type===z.PLAIN),"isMergeKey");function fs(t,e,n){const r=t&&Vt(n)?n.resolve(t.doc):n;if(!xn(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,t,Map);for(const[s,o]of i)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}a(fs,"mergeToJSMap");function d0(t,e,n){if(e===null)return"";if(typeof e!="object")return String(e);if(ie(t)&&n?.doc){const r=Gl(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=t.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),Vl(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(e)}a(d0,"stringifyKey");function hs(t,e,n){const r=Nn(t,void 0,n),i=Nn(e,void 0,n);return new ye(r,i)}a(hs,"createPair");class ye{static{a(this,"Pair")}constructor(e,n=null){Object.defineProperty(this,Ee,{value:Ml}),this.key=e,this.value=n}clone(e){let{key:n,value:r}=this;return ie(n)&&(n=n.clone(e)),ie(r)&&(r=r.clone(e)),new ye(n,r)}toJSON(e,n){const r=n?.mapAsMap?new Map:{};return Wl(n,r,this)}toString(e,n,r){return e?.doc?h0(this,e,n,r):JSON.stringify(this)}}function Kl(t,e,n){return(e.inFlow??t.flow?g0:m0)(t,e,n)}a(Kl,"stringifyCollection");function m0({comment:t,items:e},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:l}){const{indent:u,options:{commentString:c}}=n,h=Object.assign({},n,{indent:s,type:null});let f=!1;const p=[];for(let m=0;m<e.length;++m){const g=e[m];let y=null;if(ie(g))!f&&g.spaceBefore&&p.push(""),Lr(n,p,g.commentBefore,f),g.comment&&(y=g.comment);else if(ee(g)){const b=ie(g.key)?g.key:null;b&&(!f&&b.spaceBefore&&p.push(""),Lr(n,p,b.commentBefore,f))}f=!1;let k=Yt(g,h,()=>y=null,()=>f=!0);y&&(k+=wt(k,s,c(y))),f&&y&&(f=!1),p.push(r+k)}let d;if(p.length===0)d=i.start+i.end;else{d=p[0];for(let m=1;m<p.length;++m){const g=p[m];d+=g?`
105
+ ${u}${g}`:`
106
+ `}}return t?(d+=`
107
+ `+Ze(c(t),u),l&&l()):f&&o&&o(),d}a(m0,"stringifyBlockCollection");function g0({items:t},e,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:l}}=e;r+=s;const u=Object.assign({},e,{indent:r,inFlow:!0,type:null});let c=!1,h=0;const f=[];for(let m=0;m<t.length;++m){const g=t[m];let y=null;if(ie(g))g.spaceBefore&&f.push(""),Lr(e,f,g.commentBefore,!1),g.comment&&(y=g.comment);else if(ee(g)){const b=ie(g.key)?g.key:null;b&&(b.spaceBefore&&f.push(""),Lr(e,f,b.commentBefore,!1),b.comment&&(c=!0));const S=ie(g.value)?g.value:null;S?(S.comment&&(y=S.comment),S.commentBefore&&(c=!0)):g.value==null&&b?.comment&&(y=b.comment)}y&&(c=!0);let k=Yt(g,u,()=>y=null);m<t.length-1&&(k+=","),y&&(k+=wt(k,r,l(y))),!c&&(f.length>h||k.includes(`
108
+ `))&&(c=!0),f.push(k),h=f.length}const{start:p,end:d}=n;if(f.length===0)return p+d;if(!c){const m=f.reduce((g,y)=>g+y.length+2,2);c=e.options.lineWidth>0&&m>e.options.lineWidth}if(c){let m=p;for(const g of f)m+=g?`
109
+ ${s}${i}${g}`:`
110
+ `;return`${m}
111
+ ${i}${d}`}else return`${p}${o}${f.join(" ")}${o}${d}`}a(g0,"stringifyFlowCollection");function Lr({indent:t,options:{commentString:e}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=Ze(e(r),t);n.push(s.trimStart())}}a(Lr,"addCommentBefore");function St(t,e){const n=J(e)?e.value:e;for(const r of t)if(ee(r)&&(r.key===e||r.key===n||J(r.key)&&r.key.value===n))return r}a(St,"findPair");class Te extends os{static{a(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(at,e),this.items=[]}static from(e,n,r){const{keepUndefined:i,replacer:s}=r,o=new this(e),l=a((u,c)=>{if(typeof s=="function")c=s.call(n,u,c);else if(Array.isArray(s)&&!s.includes(u))return;(c!==void 0||i)&&o.items.push(hs(u,c,r))},"add");if(n instanceof Map)for(const[u,c]of n)l(u,c);else if(n&&typeof n=="object")for(const u of Object.keys(n))l(u,n[u]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,n){let r;ee(e)?r=e:!e||typeof e!="object"||!("key"in e)?r=new ye(e,e?.value):r=new ye(e.key,e.value);const i=St(this.items,r.key),s=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);J(i.value)&&zl(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const o=this.items.findIndex(l=>s(r,l)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(e){const n=St(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){const i=St(this.items,e)?.value;return(!n&&J(i)?i.value:i)??void 0}has(e){return!!St(this.items,e)}set(e,n){this.add(new ye(e,n),!0)}toJSON(e,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const s of this.items)Wl(n,i,s);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(const i of this.items)if(!ee(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Kl(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:n})}}const Qt={collection:"map",default:!0,nodeClass:Te,tag:"tag:yaml.org,2002:map",resolve(t,e){return xn(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,n)=>Te.from(t,e,n)};class xt extends os{static{a(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Gt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const n=Or(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){const r=Or(e);if(typeof r!="number")return;const i=this.items[r];return!n&&J(i)?i.value:i}has(e){const n=Or(e);return typeof n=="number"&&n<this.items.length}set(e,n){const r=Or(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[r];J(i)&&zl(n)?i.value=n:this.items[r]=n}toJSON(e,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(_e(s,String(i++),n));return r}toString(e,n,r){return e?Kl(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(e,n,r){const{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n)){let o=0;for(let l of n){if(typeof i=="function"){const u=n instanceof Set?l:String(o++);l=i.call(n,u,l)}s.items.push(Nn(l,void 0,r))}}return s}}function Or(t){let e=J(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}a(Or,"asItemIndex");const Jt={collection:"seq",default:!0,nodeClass:xt,tag:"tag:yaml.org,2002:seq",resolve(t,e){return vn(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,n)=>xt.from(t,e,n)},Pr={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,n,r){return e=Object.assign({actualString:!0},e),cs(t,e,n,r)}},Rr={identify:t=>t==null,createNode:()=>new z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new z(null),stringify:({source:t},e)=>typeof t=="string"&&Rr.test.test(t)?t:e.options.nullStr},ps={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new z(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},n){if(t&&ps.test.test(t)){const r=t[0]==="t"||t[0]==="T";if(e===r)return t}return e?n.options.trueStr:n.options.falseStr}};function qe({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let l=e-(s.length-o-1);for(;l-- >0;)s+="0"}return s}a(qe,"stringifyNumber");const Yl={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:qe},Ql={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():qe(t)}},Jl={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new z(parseFloat(t)),n=t.indexOf(".");return n!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-n-1),e},stringify:qe},Dr=a(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify$2"),ds=a((t,e,n,{intAsBigInt:r})=>r?BigInt(t):parseInt(t.substring(e),n),"intResolve$1");function Xl(t,e,n){const{value:r}=t;return Dr(r)&&r>=0?n+r.toString(e):qe(t)}a(Xl,"intStringify$1");const Zl={identify:t=>Dr(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,n)=>ds(t,2,8,n),stringify:t=>Xl(t,8,"0o")},eu={identify:Dr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,n)=>ds(t,0,10,n),stringify:qe},tu={identify:t=>Dr(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,n)=>ds(t,2,16,n),stringify:t=>Xl(t,16,"0x")},y0=[Qt,Jt,Pr,Rr,ps,Zl,eu,tu,Yl,Ql,Jl];function nu(t){return typeof t=="bigint"||Number.isInteger(t)}a(nu,"intIdentify$1");const Fr=a(({value:t})=>JSON.stringify(t),"stringifyJSON"),b0=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:Fr},{identify:t=>t==null,createNode:()=>new z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Fr},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:t=>t==="true",stringify:Fr},{identify:nu,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:n})=>n?BigInt(t):parseInt(t,10),stringify:({value:t})=>nu(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Fr}],k0={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},w0=[Qt,Jt].concat(b0,k0),ms={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof Buffer=="function")return Buffer.from(t,"base64");if(typeof atob=="function"){const n=atob(t.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:n},r,i,s){const o=n;let l;if(typeof Buffer=="function")l=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let u="";for(let c=0;c<o.length;++c)u+=String.fromCharCode(o[c]);l=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=z.BLOCK_LITERAL),e!==z.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(l.length/u),h=new Array(c);for(let f=0,p=0;f<c;++f,p+=u)h[f]=l.substr(p,u);l=h.join(e===z.BLOCK_LITERAL?`
112
+ `:" ")}return cs({comment:t,type:e,value:l},r,i,s)}};function ru(t,e){if(vn(t))for(let n=0;n<t.items.length;++n){let r=t.items[n];if(!ee(r)){if(xn(r)){r.items.length>1&&e("Each pair must have its own sequence indicator");const i=r.items[0]||new ye(new z(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
113
+ ${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
114
+ ${s.comment}`:r.comment}r=i}t.items[n]=ee(r)?r:new ye(r)}}else e("Expected a sequence for this tag");return t}a(ru,"resolvePairs");function iu(t,e,n){const{replacer:r}=n,i=new xt(t);i.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof r=="function"&&(o=r.call(e,String(s++),o));let l,u;if(Array.isArray(o))if(o.length===2)l=o[0],u=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],u=o[l];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else l=o;i.items.push(hs(l,u,n))}return i}a(iu,"createPairs");const gs={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ru,createNode:iu};class sn extends xt{static{a(this,"YAMLOMap")}constructor(){super(),this.add=Te.prototype.add.bind(this),this.delete=Te.prototype.delete.bind(this),this.get=Te.prototype.get.bind(this),this.has=Te.prototype.has.bind(this),this.set=Te.prototype.set.bind(this),this.tag=sn.tag}toJSON(e,n){if(!n)return super.toJSON(e);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let s,o;if(ee(i)?(s=_e(i.key,"",n),o=_e(i.value,s,n)):s=_e(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(e,n,r){const i=iu(e,n,r),s=new this;return s.items=i.items,s}}sn.tag="tag:yaml.org,2002:omap";const ys={collection:"seq",identify:t=>t instanceof Map,nodeClass:sn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const n=ru(t,e),r=[];for(const{key:i}of n.items)J(i)&&(r.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new sn,n)},createNode:(t,e,n)=>sn.from(t,e,n)};function su({value:t,source:e},n){return e&&(t?ou:au).test.test(e)?e:t?n.options.trueStr:n.options.falseStr}a(su,"boolStringify");const ou={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new z(!0),stringify:su},au={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new z(!1),stringify:su},S0={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:qe},x0={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():qe(t)}},v0={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new z(parseFloat(t.replace(/_/g,""))),n=t.indexOf(".");if(n!==-1){const r=t.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(e.minFractionDigits=r.length)}return e},stringify:qe},_n=a(t=>typeof t=="bigint"||Number.isInteger(t),"intIdentify");function Mr(t,e,n,{intAsBigInt:r}){const i=t[0];if((i==="-"||i==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),r){switch(n){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return i==="-"?BigInt(-1)*o:o}const s=parseInt(t,n);return i==="-"?-1*s:s}a(Mr,"intResolve");function bs(t,e,n){const{value:r}=t;if(_n(r)){const i=r.toString(e);return r<0?"-"+n+i.substr(1):n+i}return qe(t)}a(bs,"intStringify");const C0={identify:_n,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,n)=>Mr(t,2,2,n),stringify:t=>bs(t,2,"0b")},N0={identify:_n,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,n)=>Mr(t,1,8,n),stringify:t=>bs(t,8,"0")},A0={identify:_n,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,n)=>Mr(t,0,10,n),stringify:qe},E0={identify:_n,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,n)=>Mr(t,2,16,n),stringify:t=>bs(t,16,"0x")};class on extends Te{static{a(this,"YAMLSet")}constructor(e){super(e),this.tag=on.tag}add(e){let n;ee(e)?n=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?n=new ye(e.key,null):n=new ye(e,null),St(this.items,n.key)||this.items.push(n)}get(e,n){const r=St(this.items,e);return!n&&ee(r)?J(r.key)?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=St(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new ye(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(e,n,r){const{replacer:i}=r,s=new this(e);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),s.items.push(hs(o,null,r));return s}}on.tag="tag:yaml.org,2002:set";const ks={collection:"map",identify:t=>t instanceof Set,nodeClass:on,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,n)=>on.from(t,e,n),resolve(t,e){if(xn(t)){if(t.hasAllNullValues(!0))return Object.assign(new on,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function ws(t,e){const n=t[0],r=n==="-"||n==="+"?t.substring(1):t,i=a(o=>e?BigInt(o):Number(o),"num"),s=r.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return n==="-"?i(-1)*s:s}a(ws,"parseSexagesimal");function lu(t){let{value:e}=t,n=a(o=>o,"num");if(typeof e=="bigint")n=a(o=>BigInt(o),"num");else if(isNaN(e)||!isFinite(e))return qe(t);let r="";e<0&&(r="-",e*=n(-1));const i=n(60),s=[e%i];return e<60?s.unshift(0):(e=(e-s[0])/i,s.unshift(e%i),e>=60&&(e=(e-s[0])/i,s.unshift(e))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}a(lu,"stringifySexagesimal");const uu={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:n})=>ws(t,n),stringify:lu},cu={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>ws(t,!1),stringify:lu},$r={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match($r.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,l]=e.map(Number),u=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,s||0,o||0,l||0,u);const h=e[8];if(h&&h!=="Z"){let f=ws(h,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},fu=[Qt,Jt,Pr,Rr,ou,au,C0,N0,A0,E0,S0,x0,v0,ms,ys,gs,ks,uu,cu,$r],hu=new Map([["core",y0],["failsafe",[Qt,Jt,Pr]],["json",w0],["yaml11",fu],["yaml-1.1",fu]]),pu={binary:ms,bool:ps,float:Jl,floatExp:Ql,floatNaN:Yl,floatTime:cu,int:eu,intHex:tu,intOct:Zl,intTime:uu,map:Qt,null:Rr,omap:ys,pairs:gs,seq:Jt,set:ks,timestamp:$r},_0={"tag:yaml.org,2002:binary":ms,"tag:yaml.org,2002:omap":ys,"tag:yaml.org,2002:pairs":gs,"tag:yaml.org,2002:set":ks,"tag:yaml.org,2002:timestamp":$r};function Ss(t,e){let n=hu.get(e);if(!n)if(Array.isArray(t))n=[];else{const r=Array.from(hu.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(t))for(const r of t)n=n.concat(r);else typeof t=="function"&&(n=t(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=pu[r];if(i)return i;const s=Object.keys(pu).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}a(Ss,"getTags");const T0=a((t,e)=>t.key<e.key?-1:t.key>e.key?1:0,"sortMapEntriesByKey");class to{static{a(this,"Schema")}constructor({compat:e,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(e)?Ss(e,"compat"):e?Ss(null,e):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?_0:{},this.tags=Ss(n,this.name),this.toStringOptions=l??null,Object.defineProperty(this,at,{value:Qt}),Object.defineProperty(this,Xe,{value:Pr}),Object.defineProperty(this,Gt,{value:Jt}),this.sortMapEntries=typeof o=="function"?o:o===!0?T0:null}clone(){const e=Object.create(to.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function I0(t,e){const n=[];let r=e.directives===!0;if(e.directives!==!1&&t.directives){const u=t.directives.toString(t);u?(n.push(u),r=!0):t.directives.docStart&&(r=!0)}r&&n.push("---");const i=Gl(t,e),{commentString:s}=i.options;if(t.commentBefore){n.length!==1&&n.unshift("");const u=s(t.commentBefore);n.unshift(Ze(u,""))}let o=!1,l=null;if(t.contents){if(ie(t.contents)){if(t.contents.spaceBefore&&r&&n.push(""),t.contents.commentBefore){const h=s(t.contents.commentBefore);n.push(Ze(h,""))}i.forceBlockIndent=!!t.comment,l=t.contents.comment}const u=l?void 0:()=>o=!0;let c=Yt(t.contents,i,()=>l=null,u);l&&(c+=wt(c,"",s(l))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(Yt(t.contents,i));if(t.directives?.docEnd)if(t.comment){const u=s(t.comment);u.includes(`
115
+ `)?(n.push("..."),n.push(Ze(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=t.comment;u&&o&&(u=u.replace(/^\n+/,"")),u&&((!o||l)&&n[n.length-1]!==""&&n.push(""),n.push(Ze(s(u),"")))}return n.join(`
116
+ `)+`
117
+ `}a(I0,"stringifyDocument");class Bn{static{a(this,"Document")}constructor(e,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ee,{value:rs});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new ke({version:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,i,r)}clone(){const e=Object.create(Bn.prototype,{[Ee]:{value:rs}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ie(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Xt(this.contents)&&this.contents.add(e)}addIn(e,n){Xt(this.contents)&&this.contents.addIn(e,n)}createAlias(e,n){if(!e.anchor){const r=Bl(this);e.anchor=!n||r.has(n)?ql(n||"a",r):n}return new ss(e.anchor)}createNode(e,n,r){let i;if(typeof n=="function")e=n.call({"":e},"",e),i=n;else if(Array.isArray(n)){const y=a(b=>typeof b=="number"||b instanceof String||b instanceof Number,"keyToStr"),k=n.filter(y).map(String);k.length>0&&(n=n.concat(k)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:l,keepUndefined:u,onTagObj:c,tag:h}=r??{},{onAnchor:f,setAnchors:p,sourceObjects:d}=i0(this,o||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:d},g=Nn(e,h,m);return l&&te(g)&&(g.flow=!0),p(),g}createPair(e,n,r={}){const i=this.createNode(e,null,r),s=this.createNode(n,null,r);return new ye(i,s)}delete(e){return Xt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return An(e)?this.contents==null?!1:(this.contents=null,!0):Xt(this.contents)?this.contents.deleteIn(e):!1}get(e,n){return te(this.contents)?this.contents.get(e,n):void 0}getIn(e,n){return An(e)?!n&&J(this.contents)?this.contents.value:this.contents:te(this.contents)?this.contents.getIn(e,n):void 0}has(e){return te(this.contents)?this.contents.has(e):!1}hasIn(e){return An(e)?this.contents!==void 0:te(this.contents)?this.contents.hasIn(e):!1}set(e,n){this.contents==null?this.contents=Nr(this.schema,[e],n):Xt(this.contents)&&this.contents.set(e,n)}setIn(e,n){An(e)?this.contents=n:this.contents==null?this.contents=Nr(this.schema,Array.from(e),n):Xt(this.contents)&&this.contents.setIn(e,n)}setSchema(e,n={}){typeof e=="number"&&(e=String(e));let r;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ke({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new ke({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new to(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:o}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},u=_e(this.contents,n??"",l);if(typeof s=="function")for(const{count:c,res:h}of l.anchors.values())s(h,c);return typeof o=="function"?Wt(o,{"":u},"",u):u}toJSON(e,n){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:n})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const n=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return I0(this,e)}}function Xt(t){if(te(t))return!0;throw new Error("Expected a YAML collection as document contents")}a(Xt,"assertCollection");class du extends Error{static{a(this,"YAMLError")}constructor(e,n,r,i){super(),this.name=e,this.code=r,this.message=i,this.pos=n}}class Tn extends du{static{a(this,"YAMLParseError")}constructor(e,n,r){super("YAMLParseError",e,n,r)}}class L0 extends du{static{a(this,"YAMLWarning")}constructor(e,n,r){super("YAMLWarning",e,n,r)}}const mu=a((t,e)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>e.linePos(l));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=t.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const l=Math.min(s-39,o.length-79);o="\u2026"+o.substring(l),s-=l-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(o.substring(0,s))){let l=t.substring(e.lineStarts[r-2],e.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`\u2026
118
+ `),o=l+o}if(/[^ ]/.test(o)){let l=1;const u=n.linePos[1];u&&u.line===r&&u.col>i&&(l=Math.max(1,Math.min(u.col-i,80-s)));const c=" ".repeat(s)+"^".repeat(l);n.message+=`:
119
+
120
+ ${o}
121
+ ${c}
122
+ `}},"prettifyError");function Zt(t,{flow:e,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:l}){let u=!1,c=l,h=l,f="",p="",d=!1,m=!1,g=!1,y=null,k=null,b=null,S=null,N=null,C=null;for(const _ of t)switch(g&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&s(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),y&&(c&&_.type!=="comment"&&_.type!=="newline"&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),_.type){case"space":!e&&(n!=="doc-start"||r?.type!=="flow-collection")&&_.source.includes(" ")&&(y=_),h=!0;break;case"comment":{h||s(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const R=_.source.substring(1)||" ";f?f+=p+R:f=R,p="",c=!1;break}case"newline":c?f?f+=_.source:u=!0:p+=_.source,c=!0,d=!0,(k||b)&&(m=!0),h=!0;break;case"anchor":k&&s(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&s(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),k=_,C===null&&(C=_.offset),c=!1,h=!1,g=!0;break;case"tag":{b&&s(_,"MULTIPLE_TAGS","A node can have at most one tag"),b=_,C===null&&(C=_.offset),c=!1,h=!1,g=!0;break}case n:(k||b)&&s(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),N&&s(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${e??"collection"}`),N=_,c=n==="seq-item-ind"||n==="explicit-key-ind",h=!1;break;case"comma":if(e){S&&s(_,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),S=_,c=!1,h=!1;break}default:s(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,h=!1}const w=t[t.length-1],A=w?w.offset+w.source.length:i;return g&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(c&&y.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:S,found:N,spaceBefore:u,comment:f,hasNewline:d,hasNewlineAfterProp:m,anchor:k,tag:b,end:A,start:C??A}}a(Zt,"resolveProps");function In(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
123
+ `))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const n of e.start)if(n.type==="newline")return!0;if(e.sep){for(const n of e.sep)if(n.type==="newline")return!0}if(In(e.key)||In(e.value))return!0}return!1;default:return!0}}a(In,"containsNewline");function xs(t,e,n){if(e?.type==="flow-collection"){const r=e.end[0];r.indent===t&&(r.source==="]"||r.source==="}")&&In(e)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}a(xs,"flowIndentCheck");function gu(t,e,n){const{uniqueKeys:r}=t.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,o)=>s===o||J(s)&&J(o)&&s.value===o.value&&!(s.value==="<<"&&t.schema.merge);return e.some(s=>i(s.key,n))}a(gu,"mapIncludes");const yu="All mapping items must start at the same column";function O0({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=s?.nodeClass??Te,l=new o(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,c=null;for(const h of r.items){const{start:f,key:p,sep:d,value:m}=h,g=Zt(f,{indicator:"explicit-key-ind",next:p??d?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!0}),y=!g.found;if(y){if(p&&(p.type==="block-seq"?i(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&i(u,"BAD_INDENT",yu)),!g.anchor&&!g.tag&&!d){c=g.end,g.comment&&(l.comment?l.comment+=`
124
+ `+g.comment:l.comment=g.comment);continue}(g.hasNewlineAfterProp||In(p))&&i(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==r.indent&&i(u,"BAD_INDENT",yu);const k=g.end,b=p?t(n,p,g,i):e(n,k,f,null,g,i);n.schema.compat&&xs(r.indent,p,i),gu(n,l.items,b)&&i(k,"DUPLICATE_KEY","Map keys must be unique");const S=Zt(d??[],{indicator:"map-value-ind",next:m,offset:b.range[2],onError:i,parentIndent:r.indent,startOnNewline:!p||p.type==="block-scalar"});if(u=S.end,S.found){y&&(m?.type==="block-map"&&!S.hasNewline&&i(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&g.start<S.found.offset-1024&&i(b.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const N=m?t(n,m,S,i):e(n,u,d,null,S,i);n.schema.compat&&xs(r.indent,m,i),u=N.range[2];const C=new ye(b,N);n.options.keepSourceTokens&&(C.srcToken=h),l.items.push(C)}else{y&&i(b.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&(b.comment?b.comment+=`
125
+ `+S.comment:b.comment=S.comment);const N=new ye(b);n.options.keepSourceTokens&&(N.srcToken=h),l.items.push(N)}}return c&&c<u&&i(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,u,c??u],l}a(O0,"resolveBlockMap");function P0({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=s?.nodeClass??xt,l=new o(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,c=null;for(const{start:h,value:f}of r.items){const p=Zt(h,{indicator:"seq-item-ind",next:f,offset:u,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||f)f&&f.type==="block-seq"?i(p.end,"BAD_INDENT","All sequence items must start at the same column"):i(u,"MISSING_CHAR","Sequence item without - indicator");else{c=p.end,p.comment&&(l.comment=p.comment);continue}const d=f?t(n,f,p,i):e(n,p.end,h,null,p,i);n.schema.compat&&xs(r.indent,f,i),u=d.range[2],l.items.push(d)}return l.range=[r.offset,u,c??u],l}a(P0,"resolveBlockSeq");function Ln(t,e,n,r){let i="";if(t){let s=!1,o="";for(const l of t){const{source:u,type:c}=l;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=u.substring(1)||" ";i?i+=o+h:i=h,o="";break}case"newline":i&&(o+=u),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=u.length}}return{comment:i,offset:e}}a(Ln,"resolveEnd");const vs="Block collections are not allowed within flow collections",Cs=a(t=>t&&(t.type==="block-map"||t.type==="block-seq"),"isBlock");function R0({composeNode:t,composeEmptyNode:e},n,r,i,s){const o=r.start.source==="{",l=o?"flow map":"flow sequence",u=s?.nodeClass??(o?Te:xt),c=new u(n.schema);c.flow=!0;const h=n.atRoot;h&&(n.atRoot=!1);let f=r.offset+r.start.source.length;for(let y=0;y<r.items.length;++y){const k=r.items[y],{start:b,key:S,sep:N,value:C}=k,w=Zt(b,{flow:l,indicator:"explicit-key-ind",next:S??N?.[0],offset:f,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!N&&!C){y===0&&w.comma?i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):y<r.items.length-1&&i(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),w.comment&&(c.comment?c.comment+=`
126
+ `+w.comment:c.comment=w.comment),f=w.end;continue}!o&&n.options.strict&&In(S)&&i(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)w.comma&&i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(w.comma||i(w.start,"MISSING_CHAR",`Missing , between ${l} items`),w.comment){let A="";e:for(const _ of b)switch(_.type){case"comma":case"space":break;case"comment":A=_.source.substring(1);break e;default:break e}if(A){let _=c.items[c.items.length-1];ee(_)&&(_=_.value??_.key),_.comment?_.comment+=`
127
+ `+A:_.comment=A,w.comment=w.comment.substring(A.length+1)}}if(!o&&!N&&!w.found){const A=C?t(n,C,w,i):e(n,w.end,N,null,w,i);c.items.push(A),f=A.range[2],Cs(C)&&i(A.range,"BLOCK_IN_FLOW",vs)}else{const A=w.end,_=S?t(n,S,w,i):e(n,A,b,null,w,i);Cs(S)&&i(_.range,"BLOCK_IN_FLOW",vs);const R=Zt(N??[],{flow:l,indicator:"map-value-ind",next:C,offset:_.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(R.found){if(!o&&!w.found&&n.options.strict){if(N)for(const O of N){if(O===R.found)break;if(O.type==="newline"){i(O,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}w.start<R.found.offset-1024&&i(R.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else C&&("source"in C&&C.source&&C.source[0]===":"?i(C,"MISSING_CHAR",`Missing space after : in ${l}`):i(R.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const E=C?t(n,C,R,i):R.found?e(n,R.end,N,null,R,i):null;E?Cs(C)&&i(E.range,"BLOCK_IN_FLOW",vs):R.comment&&(_.comment?_.comment+=`
128
+ `+R.comment:_.comment=R.comment);const P=new ye(_,E);if(n.options.keepSourceTokens&&(P.srcToken=k),o){const O=c;gu(n,O.items,_)&&i(A,"DUPLICATE_KEY","Map keys must be unique"),O.items.push(P)}else{const O=new Te(n.schema);O.flow=!0,O.items.push(P),c.items.push(O)}f=E?E.range[2]:R.end}}const p=o?"}":"]",[d,...m]=r.end;let g=f;if(d&&d.source===p)g=d.offset+d.source.length;else{const y=l[0].toUpperCase()+l.substring(1),k=h?`${y} must end with a ${p}`:`${y} in block collection must be sufficiently indented and end with a ${p}`;i(f,h?"MISSING_CHAR":"BAD_INDENT",k),d&&d.source.length!==1&&m.unshift(d)}if(m.length>0){const y=Ln(m,g,n.options.strict,i);y.comment&&(c.comment?c.comment+=`
129
+ `+y.comment:c.comment=y.comment),c.range=[r.offset,g,y.offset]}else c.range=[r.offset,g,g];return c}a(R0,"resolveFlowCollection");function Ns(t,e,n,r,i,s){const o=n.type==="block-map"?O0(t,e,n,r,s):n.type==="block-seq"?P0(t,e,n,r,s):R0(t,e,n,r,s),l=o.constructor;return i==="!"||i===l.tagName?(o.tag=l.tagName,o):(i&&(o.tag=i),o)}a(Ns,"resolveCollection");function D0(t,e,n,r,i){const s=r?e.directives.tagName(r.source,f=>i(r,"TAG_RESOLVE_FAILED",f)):null,o=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Te.tagName&&o==="map"||s===xt.tagName&&o==="seq"||!o)return Ns(t,e,n,i,s);let l=e.schema.tags.find(f=>f.tag===s&&f.collection===o);if(!l){const f=e.schema.knownTags[s];if(f&&f.collection===o)e.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else return f?.collection?i(r,"BAD_COLLECTION_TYPE",`${f.tag} used for ${o} collection, but expects ${f.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),Ns(t,e,n,i,s)}const u=Ns(t,e,n,i,s,l),c=l.resolve?.(u,f=>i(r,"TAG_RESOLVE_FAILED",f),e.options)??u,h=ie(c)?c:new z(c);return h.range=u.range,h.tag=s,l?.format&&(h.format=l.format),h}a(D0,"composeCollection");function F0(t,e,n){const r=e.offset,i=M0(e,t.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?z.BLOCK_FOLDED:z.BLOCK_LITERAL,o=e.source?$0(e.source):[];let l=o.length;for(let g=o.length-1;g>=0;--g){const y=o[g][1];if(y===""||y==="\r")l=g;else break}if(l===0){const g=i.chomp==="+"&&o.length>0?`
130
+ `.repeat(Math.max(1,o.length-1)):"";let y=r+i.length;return e.source&&(y+=e.source.length),{value:g,type:s,comment:i.comment,range:[r,y,y]}}let u=e.indent+i.indent,c=e.offset+i.length,h=0;for(let g=0;g<l;++g){const[y,k]=o[g];if(k===""||k==="\r")i.indent===0&&y.length>u&&(u=y.length);else{y.length<u&&n(c+y.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(u=y.length),h=g,u===0&&!t.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=y.length+k.length+1}for(let g=o.length-1;g>=l;--g)o[g][0].length>u&&(l=g+1);let f="",p="",d=!1;for(let g=0;g<h;++g)f+=o[g][0].slice(u)+`
131
+ `;for(let g=h;g<l;++g){let[y,k]=o[g];c+=y.length+k.length+1;const b=k[k.length-1]==="\r";if(b&&(k=k.slice(0,-1)),k&&y.length<u){const N=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-k.length-(b?2:1),"BAD_INDENT",N),y=""}s===z.BLOCK_LITERAL?(f+=p+y.slice(u)+k,p=`
132
+ `):y.length>u||k[0]===" "?(p===" "?p=`
133
+ `:!d&&p===`
134
+ `&&(p=`
135
+
136
+ `),f+=p+y.slice(u)+k,p=`
137
+ `,d=!0):k===""?p===`
138
+ `?f+=`
139
+ `:p=`
140
+ `:(f+=p+k,p=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let g=l;g<o.length;++g)f+=`
141
+ `+o[g][0].slice(u);f[f.length-1]!==`
142
+ `&&(f+=`
143
+ `);break;default:f+=`
144
+ `}const m=r+i.length+e.source.length;return{value:f,type:s,comment:i.comment,range:[r,m,m]}}a(F0,"resolveBlockScalar");function M0({offset:t,props:e},n,r){if(e[0].type!=="block-scalar-header")return r(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=e[0],s=i[0];let o=0,l="",u=-1;for(let p=1;p<i.length;++p){const d=i[p];if(!l&&(d==="-"||d==="+"))l=d;else{const m=Number(d);!o&&m?o=m:u===-1&&(u=t+p)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,h="",f=i.length;for(let p=1;p<e.length;++p){const d=e[p];switch(d.type){case"space":c=!0;case"newline":f+=d.source.length;break;case"comment":n&&!c&&r(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=d.source.length,h=d.source.substring(1);break;case"error":r(d,"UNEXPECTED_TOKEN",d.message),f+=d.source.length;break;default:{const m=`Unexpected token in block scalar header: ${d.type}`;r(d,"UNEXPECTED_TOKEN",m);const g=d.source;g&&typeof g=="string"&&(f+=g.length)}}}return{mode:s,indent:o,chomp:l,comment:h,length:f}}a(M0,"parseBlockScalarHeader");function $0(t){const e=t.split(/\n( *)/),n=e[0],r=n.match(/^( *)/),s=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<e.length;o+=2)s.push([e[o],e[o+1]]);return s}a($0,"splitLines");function B0(t,e,n){const{offset:r,type:i,source:s,end:o}=t;let l,u;const c=a((p,d,m)=>n(r+p,d,m),"_onError");switch(i){case"scalar":l=z.PLAIN,u=q0(s,c);break;case"single-quoted-scalar":l=z.QUOTE_SINGLE,u=z0(s,c);break;case"double-quoted-scalar":l=z.QUOTE_DOUBLE,u=j0(s,c);break;default:return n(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const h=r+s.length,f=Ln(o,h,e,n);return{value:u,type:l,comment:f.comment,range:[r,h,f.offset]}}a(B0,"resolveFlowScalar");function q0(t,e){let n="";switch(t[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${t[0]}`;break}case"@":case"`":{n=`reserved character ${t[0]}`;break}}return n&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),bu(t)}a(q0,"plainValue");function z0(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),bu(t.slice(1,-1)).replace(/''/g,"'")}a(z0,"singleQuotedValue");function bu(t){let e,n;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
145
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
146
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=e.exec(t);if(!r)return t;let i=r[1],s=" ",o=e.lastIndex;for(n.lastIndex=o;r=n.exec(t);)r[1]===""?s===`
147
+ `?i+=s:s=`
148
+ `:(i+=s+r[1],s=" "),o=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,r=l.exec(t),i+s+(r?.[1]??"")}a(bu,"foldLines");function j0(t,e){let n="";for(let r=1;r<t.length-1;++r){const i=t[r];if(!(i==="\r"&&t[r+1]===`
149
+ `))if(i===`
150
+ `){const{fold:s,offset:o}=U0(t,r);n+=s,r=o}else if(i==="\\"){let s=t[++r];const o=G0[s];if(o)n+=o;else if(s===`
151
+ `)for(s=t[r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="\r"&&t[r+1]===`
152
+ `)for(s=t[++r+1];s===" "||s===" ";)s=t[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=V0(t,r+1,l,e),r+=l}else{const l=t.substr(r-1,2);e(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(i===" "||i===" "){const s=r;let o=t[r+1];for(;o===" "||o===" ";)o=t[++r+1];o!==`
153
+ `&&!(o==="\r"&&t[r+2]===`
154
+ `)&&(n+=r>s?t.slice(s,r+1):i)}else n+=i}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),n}a(j0,"doubleQuotedValue");function U0(t,e){let n="",r=t[e+1];for(;(r===" "||r===" "||r===`
155
+ `||r==="\r")&&!(r==="\r"&&t[e+2]!==`
156
+ `);)r===`
157
+ `&&(n+=`
158
+ `),e+=1,r=t[e+1];return n||(n=" "),{fold:n,offset:e}}a(U0,"foldNewline");const G0={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
159
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function V0(t,e,n,r){const i=t.substr(e,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const l=t.substr(e-2,n+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(o)}a(V0,"parseCharCode");function ku(t,e,n,r){const{value:i,type:s,comment:o,range:l}=e.type==="block-scalar"?F0(t,e,r):B0(e,t.options.strict,r),u=n?t.directives.tagName(n.source,f=>r(n,"TAG_RESOLVE_FAILED",f)):null,c=n&&u?H0(t.schema,i,u,n,r):e.type==="scalar"?W0(t,i,e,r):t.schema[Xe];let h;try{const f=c.resolve(i,p=>r(n??e,"TAG_RESOLVE_FAILED",p),t.options);h=J(f)?f:new z(f)}catch(f){const p=f instanceof Error?f.message:String(f);r(n??e,"TAG_RESOLVE_FAILED",p),h=new z(i)}return h.range=l,h.source=i,s&&(h.type=s),u&&(h.tag=u),c.format&&(h.format=c.format),o&&(h.comment=o),h}a(ku,"composeScalar");function H0(t,e,n,r,i){if(n==="!")return t[Xe];const s=[];for(const l of t.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)s.push(l);else return l;for(const l of s)if(l.test?.test(e))return l;const o=t.knownTags[n];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),t[Xe])}a(H0,"findScalarTagByName");function W0({directives:t,schema:e},n,r,i){const s=e.tags.find(o=>o.default&&o.test?.test(n))||e[Xe];if(e.compat){const o=e.compat.find(l=>l.default&&l.test?.test(n))??e[Xe];if(s.tag!==o.tag){const l=t.tagString(s.tag),u=t.tagString(o.tag),c=`Value may be parsed as either ${l} or ${u}`;i(r,"TAG_RESOLVE_FAILED",c,!0)}}return s}a(W0,"findScalarTagByTest");function K0(t,e,n){if(e){n===null&&(n=e.length);for(let r=n-1;r>=0;--r){let i=e[r];switch(i.type){case"space":case"comment":case"newline":t-=i.source.length;continue}for(i=e[++r];i?.type==="space";)t+=i.source.length,i=e[++r];break}}return t}a(K0,"emptyScalarPosition");const Y0={composeNode:wu,composeEmptyNode:As};function wu(t,e,n,r){const{spaceBefore:i,comment:s,anchor:o,tag:l}=n;let u,c=!0;switch(e.type){case"alias":u=Q0(t,e,r),(o||l)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=ku(t,e,l,r),o&&(u.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=D0(Y0,t,e,l,r),o&&(u.anchor=o.source.substring(1));break;default:{const h=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",h),u=As(t,e.offset,void 0,null,n,r),c=!1}}return o&&u.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(u.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?u.comment=s:u.commentBefore=s),t.options.keepSourceTokens&&c&&(u.srcToken=e),u}a(wu,"composeNode");function As(t,e,n,r,{spaceBefore:i,comment:s,anchor:o,tag:l,end:u},c){const h={type:"scalar",offset:K0(e,n,r),indent:-1,source:""},f=ku(t,h,l,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),s&&(f.comment=s,f.range[2]=u),f}a(As,"composeEmptyNode");function Q0({options:t},{offset:e,source:n,end:r},i){const s=new ss(n.substring(1));s.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(e+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+n.length,l=Ln(r,o,t.strict,i);return s.range=[e,o,l.offset],l.comment&&(s.comment=l.comment),s}a(Q0,"composeAlias");function J0(t,e,{offset:n,start:r,value:i,end:s},o){const l=Object.assign({_directives:e},t),u=new Bn(void 0,l),c={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},h=Zt(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});h.found&&(u.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!h.hasNewline&&o(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=i?wu(c,i,h,o):As(c,h.end,r,null,h,o);const f=u.contents.range[2],p=Ln(s,f,!1,o);return p.comment&&(u.comment=p.comment),u.range=[n,f,p.offset],u}a(J0,"composeDoc");function On(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:n}=t;return[e,e+(typeof n=="string"?n.length:1)]}a(On,"getErrorPos");function Su(t){let e="",n=!1,r=!1;for(let i=0;i<t.length;++i){const s=t[i];switch(s[0]){case"#":e+=(e===""?"":r?`
160
+
161
+ `:`
162
+ `)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":t[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:e,afterEmptyLine:r}}a(Su,"parsePrelude");class X0{static{a(this,"Composer")}constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const o=On(n);s?this.warnings.push(new L0(o,r,i)):this.errors.push(new Tn(o,r,i))},this.directives=new ke({version:e.version||"1.2"}),this.options=e}decorate(e,n){const{comment:r,afterEmptyLine:i}=Su(this.prelude);if(r){const s=e.contents;if(n)e.comment=e.comment?`${e.comment}
163
+ ${r}`:r;else if(i||e.directives.docStart||!s)e.commentBefore=r;else if(te(s)&&!s.flow&&s.items.length>0){let o=s.items[0];ee(o)&&(o=o.key);const l=o.commentBefore;o.commentBefore=l?`${r}
164
+ ${l}`:r}else{const o=s.commentBefore;s.commentBefore=o?`${r}
165
+ ${o}`:r}}n?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Su(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,n=!1,r=-1){for(const i of e)yield*this.next(i);yield*this.end(n,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(n,r,i)=>{const s=On(e);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const n=J0(this.options,this.directives,e,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const n=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new Tn(On(e),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Tn(On(e),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Ln(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
166
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Tn(On(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const r=Object.assign({_directives:this.directives},this.options),i=new Bn(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const xu="\uFEFF",vu="",Cu="",Es="";function Z0(t){switch(t){case xu:return"byte-order-mark";case vu:return"doc-mode";case Cu:return"flow-error-end";case Es:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
167
+ `:case`\r
168
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}a(Z0,"tokenType");function Ie(t){switch(t){case void 0:case" ":case`
169
+ `:case"\r":case" ":return!0;default:return!1}}a(Ie,"isEmpty");const Nu=new Set("0123456789ABCDEFabcdef"),e1=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Br=new Set(",[]{}"),t1=new Set(` ,[]{}
170
+ \r `),_s=a(t=>!t||t1.has(t),"isNotAnchorChar");class n1{static{a(this,"Lexer")}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,n=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,n=this.buffer[e];for(;n===" "||n===" ";)n=this.buffer[++e];return!n||n==="#"||n===`
171
+ `?!0:n==="\r"?this.buffer[e+1]===`
172
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let n=this.buffer[e];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+e];if(n==="\r"){const i=this.buffer[r+e+1];if(i===`
173
+ `||!i&&!this.atEnd)return e+r+1}return n===`
174
+ `||r>=this.indentNext||!n&&!this.atEnd?e+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(e,3);if((r==="---"||r==="...")&&Ie(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
175
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===xu&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let n=e.length,r=e.indexOf("#");for(;r!==-1;){const s=e[r-1];if(s===" "||s===" "){n=r-1;break}else r=e.indexOf("#",r+1)}for(;;){const s=e[n-1];if(s===" "||s===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-n),yield*this.pushNewline(),"stream"}return yield vu,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Ie(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Ie(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ie(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Ie(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(e[n]){case"#":yield*this.pushCount(e.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(_s),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,n,r=-1;do e=yield*this.pushNewline(),e>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(e+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Ie(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Cu,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(_s),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Ie(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let n=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
176
+ `,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(`
177
+ `,s)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const n=this.buffer[++e];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ie(n)||n==="#")}*parseBlockScalar(){let e=this.pos-1,n=0,r;e:for(let s=this.pos;r=this.buffer[s];++s)switch(r){case" ":n+=1;break;case`
178
+ `:e=s,n=0;break;case"\r":{const o=this.buffer[s+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
179
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const s=this.continueScalar(e+1);if(s===-1)break;e=this.buffer.indexOf(`
180
+ `,s)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
181
+ `;)r=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let s=e-1,o=this.buffer[s];o==="\r"&&(o=this.buffer[--s]);const l=s;for(;o===" ";)o=this.buffer[--s];if(o===`
182
+ `&&s>=this.pos&&s+1+n>l)e=s;else break}while(!0);return yield Es,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(Ie(s)||e&&Br.has(s))break;n=r}else if(Ie(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
183
+ `?(r+=1,i=`
184
+ `,s=this.buffer[r+1]):n=r),s==="#"||e&&Br.has(s))break;if(i===`
185
+ `){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(e&&Br.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Es,yield*this.pushToIndex(n+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,n){const r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(_s))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,n=this.charAt(1);if(Ie(n)||e&&Br.has(n))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,n=this.buffer[e];for(;!Ie(n)&&n!==">";)n=this.buffer[++e];return yield*this.pushToIndex(n===">"?e+1:e,!1)}else{let e=this.pos+1,n=this.buffer[e];for(;n;)if(e1.has(n))n=this.buffer[++e];else if(n==="%"&&Nu.has(this.buffer[e+1])&&Nu.has(this.buffer[e+2]))n=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
186
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
187
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||e&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(e){let n=this.pos,r=this.buffer[n];for(;!e(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class r1{static{a(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<e?n=s+1:r=s}if(this.lineStarts[n]===e)return{line:n+1,col:1};if(n===0)return{line:0,col:e};const i=this.lineStarts[n-1];return{line:n,col:e-i+1}}}}function vt(t,e){for(let n=0;n<t.length;++n)if(t[n].type===e)return!0;return!1}a(vt,"includesToken");function Au(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}a(Au,"findNonEmptyIndex");function Eu(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}a(Eu,"isFlowToken");function qr(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}a(qr,"getPrevProps");function en(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}a(en,"getFirstKeyStartProps");function _u(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!vt(e.start,"explicit-key-ind")&&!vt(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Eu(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}a(_u,"fixFlowSeqItems");class i1{static{a(this,"Parser")}constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new n1,this.onNewLine=e}*parse(e,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(e,n))yield*this.next(r);n||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const n=Z0(e);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const r=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const n=e??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&_u(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Au(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Au(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const n=qr(this.peek(2)),r=en(n);let i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
188
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
189
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(i&&n.sep&&!n.value){const o=[];for(let l=0;l<n.sep.length;++l){const u=n.sep[l];switch(u.type){case"newline":o.push(l);break;case"space":break;case"comment":u.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(s.push(this.sourceToken),e.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(vt(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(Eu(n.key)&&!vt(n.sep,"newline")){const o=en(n.start),l=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:l,sep:u}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(vt(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=en(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?e.items.push({start:s,key:null,sep:[this.sourceToken]}):vt(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||n.value?(e.items.push({start:s,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){r&&o.type!=="block-seq"&&e.items.push({start:s}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||vt(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=qr(r),s=en(i);_u(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
190
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
191
+ `,n)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=qr(e),r=en(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=qr(e),r=en(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function s1(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new r1||null,prettyErrors:e}}a(s1,"parseOptions");function o1(t,e={}){const{lineCounter:n,prettyErrors:r}=s1(e),i=new i1(n?.addNewLine),s=new X0(e);let o=null;for(const l of s.compose(i.parse(t),!0,t.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new Tn(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(mu(t,n)),o.warnings.forEach(mu(t,n))),o}a(o1,"parseDocument");function Tu(t,e,n){let r;const i=o1(t,n);if(!i)return null;if(i.warnings.forEach(s=>Vl(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}a(Tu,"parse$1");function Iu(t,e,n){let r=null;if(Array.isArray(e)&&(r=e),t===void 0){const{keepUndefined:i}={};if(!i)return}return new Bn(t,r,n).toString(n)}a(Iu,"stringify");async function a1(t,e){const[n,r]=l1(t),i=t.split(`
192
+ `);if(n===void 0||r===void 0)return e===void 0?t:["---",Iu({noteId:e}).trim(),`---
193
+ `,...i].join(`
194
+ `);const s=i.slice(n+1,r).join(`
195
+ `),o=await Tu(s)??{};e===void 0?delete o.noteId:o.noteId=e;const l=Iu(o).trim();return[...i.slice(0,n+1),l,...i.slice(r)].join(`
196
+ `)}a(a1,"setNoteIdInFrontmatter");function l1(t){const e=t.split(`
197
+ `);if(!e.join("").trim().startsWith("---"))return[void 0,void 0];const n=e.findIndex(i=>i.startsWith("---")),r=e.findIndex((i,s)=>s>n&&i.startsWith("---"));return n===-1||r===-1?[void 0,void 0]:[n,r]}a(l1,"getFrontmatterRange");var Ts={d:(t,e)=>{for(var n in e)Ts.o(e,n)&&!Ts.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},Is={};Ts.d(Is,{Z:()=>h1,$:()=>Ru});var tn={horizontalTab:-2,virtualSpace:-1,nul:0,eof:null,space:32};function Lu(t){return t<tn.nul||t===tn.space}a(Lu,"n");function Ls(t){return t<tn.horizontalTab}a(Ls,"i");var u1={553:t=>{t.exports=function(e){var n,r;return e._compiled||(n=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(n="[\\r\\n][\\t ]*"+n),e._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g")),e._compiled}},112:t=>{function e(n,r,i){var s;if(!r)return i;for(typeof r=="string"&&(r=[r]),s=-1;++s<r.length;)if(n.indexOf(r[s])!==-1)return!0;return!1}a(e,"t"),t.exports=function(n,r){return e(n,r.inConstruct,!0)&&!e(n,r.notInConstruct)}},113:(t,e,n)=>{t.exports=function(l,u,c){for(var h,f,p,d,m,g,y,k,b=(c.before||"")+(u||"")+(c.after||""),S=[],N=[],C={},w=-1;++w<l.unsafe.length;)if(d=l.unsafe[w],i(l.stack,d))for(m=r(d);g=m.exec(b);)h="before"in d||d.atBreak,f="after"in d,p=g.index+(h?g[1].length:0),S.indexOf(p)===-1?(S.push(p),C[p]={before:h,after:f}):(C[p].before&&!h&&(C[p].before=!1),C[p].after&&!f&&(C[p].after=!1));for(S.sort(s),y=c.before?c.before.length:0,k=b.length-(c.after?c.after.length:0),w=-1;++w<S.length;)(p=S[w])<y||p>=k||p+1<k&&S[w+1]===p+1&&C[p].after&&!C[p+1].before&&!C[p+1].after||(y!==p&&N.push(o(b.slice(y,p),"\\")),y=p,!/[!-/:-@[-`{-~]/.test(b.charAt(p))||c.encode&&c.encode.indexOf(b.charAt(p))!==-1?(N.push("&#x"+b.charCodeAt(p).toString(16).toUpperCase()+";"),y++):N.push("\\"));return N.push(o(b.slice(y,k),c.after)),N.join("")};var r=n(553),i=n(112);function s(l,u){return l-u}a(s,"a");function o(l,u){for(var c,h=/\\(?=[!-/:-@[-`{-~])/g,f=[],p=[],d=-1,m=0,g=l+u;c=h.exec(g);)f.push(c.index);for(;++d<f.length;)m!==f[d]&&p.push(l.slice(m,f[d])),p.push("\\"),m=f[d];return p.push(l.slice(m)),p.join("")}a(o,"o")}},Ou={};function Ue(t){var e=Ou[t];if(e!==void 0)return e.exports;var n=Ou[t]={exports:{}};return u1[t](n,n.exports,Ue),n.exports}a(Ue,"s"),Ue.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Ue.d(e,{a:e}),e},Ue.d=(t,e)=>{for(var n in e)Ue.o(e,n)&&!Ue.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Ue.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Os={};(()=>{function t(i={}){const s=i.permalinks||[],o=i.pageResolver||(p=>[p.replace(/ /g,"_").toLowerCase()]),l=i.newClassName||"new",u=i.wikiLinkClassName||"internal",c=i.hrefTemplate||(p=>`#/page/${p}`);let h;function f(p){return p[p.length-1]}return a(f,"s"),{enter:{wikiLink:function(p){h={type:"wikiLink",value:null,data:{alias:null,permalink:null,exists:null}},this.enter(h,p)}},exit:{wikiLinkTarget:function(p){const d=this.sliceSerialize(p);f(this.stack).value=d},wikiLinkAlias:function(p){const d=this.sliceSerialize(p);f(this.stack).data.alias=d},wikiLink:function(p){this.exit(p);const d=h,m=o(d.value),g=m.find(N=>s.indexOf(N)!==-1),y=g!==void 0;let k;k=y?g:m[0]||"";let b=d.value;d.data.alias&&(b=d.data.alias);let S=u;y||(S+=" "+l),d.data.alias=b,d.data.permalink=k,d.data.exists=y,d.data.hName="a",d.data.hProperties={className:S,href:c(k)},d.data.hChildren=[{type:"text",value:b}]}}}}a(t,"e"),Ue.d(Os,{V:()=>t,x:()=>r});var e=Ue(113),n=Ue.n(e);function r(i={}){const s=i.aliasDivider||":";return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]},{character:"]",inConstruct:["label","reference"]}],handlers:{wikiLink:function(o,l,u){const c=u.enter("wikiLink"),h=n()(u,o.value,{before:"[",after:"]"}),f=n()(u,o.data.alias,{before:"[",after:"]"});let p;return p=f!==h?`[[${h}${s}${f}]]`:`[[${h}]]`,c(),p}}}}a(r,"n")})();var c1=Os.V,f1=Os.x;let Pu=!1;function Ru(t={}){const e=this.data();function n(r,i){e[r]?e[r].push(i):e[r]=[i]}a(n,"a"),!Pu&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(Pu=!0,console.warn("[remark-wiki-link] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",function(){var r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).aliasDivider||":",i="]]";return{text:{91:{tokenize:function(s,o,l){var u,c,h=0,f=0,p=0;return function(b){return b!=="[[".charCodeAt(f)?l(b):(s.enter("wikiLink"),s.enter("wikiLinkMarker"),d(b))};function d(b){return f===2?(s.exit("wikiLinkMarker"),function(S){return Ls(S)||S===tn.eof?l(S):(s.enter("wikiLinkData"),s.enter("wikiLinkTarget"),m(S))}(b)):b!=="[[".charCodeAt(f)?l(b):(s.consume(b),f++,d)}function m(b){return b===r.charCodeAt(h)?u?(s.exit("wikiLinkTarget"),s.enter("wikiLinkAliasMarker"),g(b)):l(b):b===i.charCodeAt(p)?u?(s.exit("wikiLinkTarget"),s.exit("wikiLinkData"),s.enter("wikiLinkMarker"),k(b)):l(b):Ls(b)||b===tn.eof?l(b):(Lu(b)||(u=!0),s.consume(b),m)}function g(b){return h===r.length?(s.exit("wikiLinkAliasMarker"),s.enter("wikiLinkAlias"),y(b)):b!==r.charCodeAt(h)?l(b):(s.consume(b),h++,g)}function y(b){return b===i.charCodeAt(p)?c?(s.exit("wikiLinkAlias"),s.exit("wikiLinkData"),s.enter("wikiLinkMarker"),k(b)):l(b):Ls(b)||b===tn.eof?l(b):(Lu(b)||(c=!0),s.consume(b),y)}function k(b){return p===2?(s.exit("wikiLinkMarker"),s.exit("wikiLink"),o(b)):b!==i.charCodeAt(p)?l(b):(s.consume(b),p++,k)}}}}}}(t)),n("fromMarkdownExtensions",c1(t)),n("toMarkdownExtensions",f1(t))}a(Ru,"k");const h1=Ru;var p1=Is.Z;Is.$;const d1=a(function(t){const e=t?.toLink??(({alias:n,value:r})=>n??r);return this.use(p1,{aliasDivider:"|"}),function(n){oe(n,"wikiLink",(r,i,s)=>{if(s===void 0||i===void 0)return it;const o=r.value,l=r.data.alias,u={alias:l===o?void 0:l.trim(),value:o.trim()},c=e(u),h=typeof c=="string"?X("text",c):X("link",{title:c.title,url:c.uri},[X("text",c.value)]);return s.children.splice(i,1,h),[ir,i]})}},"remarkObsidianLink"),m1=a(function(t,e,n,r,i){const s=rt(r),o=[];if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for start")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index for start");if(typeof n=="number"){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for end")}else if(n=t.children.indexOf(n),n<0)throw new Error("Expected child node or index for end");for(;++e<n;)s(t.children[e],e,t)&&o.push(t.children[e]);return o},"findAllBetween"),g1=a(function(t,e,n){const r=rt(n),i=[];let s=-1;if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(e>t.children.length&&(e=t.children.length);++s<e;)r(t.children[s],s,t)&&i.push(t.children[s]);return i},"findAllBefore"),y1=a(function(t,e,n){const r=rt(n),i=[];if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)r(t.children[e],e,t)&&i.push(t.children[e]);return i},"findAllAfter"),Du={a:"amber",b:"blue",c:"cyan",d:"brown",e:"espresso",f:"fuchsia",g:"green",h:"hotpink",i:"indigo",j:"jade",k:"kiwi",l:"lime",m:"magenta",n:"navyblue",o:"orange",p:"purple",q:"pink",r:"red",s:"silver",t:"teal",u:"umber",v:"violet",w:"white",x:"gray",y:"yellow",z:"black"},b1={dictionary:Du,markerTagName:"mark",markerClassName:"flexible-marker",actionForEmptyContent:"mark"},k1=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/,w1=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/g,S1=/=([a-z]?)=(?![\s]|=+\s)/,x1=/=([a-z]?)=(?![\s]|=+\s)/g,v1=/(?<!\s|\s=|\s==|\s===|\s====)==/,C1=/(?<!\s|\s=|\s==|\s===|\s====)==/g,N1=/=([a-z]?)=\s*==/,Fu=/=([a-z]?)=\s*==/g;function A1(t){return t.filter(e=>!!e)}a(A1,"clsx");const E1=a(t=>{const e=Object.assign({},b1,t);t?.dictionary&&Object.keys(t.dictionary).length&&(e.dictionary=Object.assign({},Du,t.dictionary));const n=a((l,u)=>{let c;const h=l?e.dictionary[l]:void 0,f=typeof e.markerTagName=="string"?e.markerTagName:e.markerTagName(h),p=typeof e.markerClassName=="function"?e.markerClassName(h):A1([e.markerClassName,!l&&`${e.markerClassName}-default`,h&&`${e.markerClassName}-${h}`,!u.length&&`${e.markerClassName}-empty`]);return e.markerProperties&&(c=e.markerProperties(h),Object.entries(c).forEach(([d,m])=>{(typeof m=="string"&&m===""||Array.isArray(m)&&m.length===0)&&c&&(c[d]=void 0),d==="className"&&delete c?.className})),{type:"mark",children:u,data:{hName:f,hProperties:{className:p,...c&&{...c}}}}},"constructMarkNode"),r=a(function(l,u,c){if(!c||typeof u>"u"||!k1.test(l.value))return;const h=[],f=l.value;let p="",d=0,m=0;const g=Array.from(f.matchAll(w1));for(let y=0;y<g.length;y++){const k=g[y],[b,S,N]=k,C=k.index,w=b.length,A=d+m;if(d=C,m=w,C>A){const R=f.substring(A,C),E=X("text",R);h.push(E)}const _=n(S,[{type:"text",value:N.trim()}]);h.push(_),p=f.slice(C+w)}if(p){const y=X("text",p);h.push(y)}h.length&&c.children.splice(u,1,...h)},"visitorFirst"),i=a(function(l,u,c){if(!c||typeof u>"u"||!S1.test(l.value))return;const h=l,f=bi(c,h,function(P){return P.type==="text"&&v1.test(P.value)});if(!f)return;const p=g1(c,h),d=m1(c,h,f),m=y1(c,f),g=h.value,y=Array.from(g.matchAll(x1))[0],[k,b]=y,S=k.length,N=y.index;if(N>0){const P=g.substring(0,N),O=X("text",P);p.push(O)}if(g.length>N+S){const P=g.slice(N+S),O=X("text",P);d.unshift(O)}const C=f.value,w=Array.from(C.matchAll(C1))[0],[A]=w,_=A.length,R=w.index;if(R>0){const P=C.substring(0,R),O=X("text",P);d.push(O)}if(C.length>R+_){const P=C.slice(R+_),O=X("text",P);m.unshift(O)}const E=n(b,d);return c.children=[...p,E,...m],u},"visitorSecond"),s=a(function(l,u,c){if(!c||typeof u>"u"||!N1.test(l.value))return;if(e.actionForEmptyContent==="remove")return l.value=l.value.replaceAll(Fu,""),l.value.trim()===""?[ir,u]:it;const h=[],f=l.value;let p="",d=0,m=0;const g=Array.from(f.matchAll(Fu));for(let y=0;y<g.length;y++){const k=g[y],[b,S]=k,N=k.index,C=b.length,w=d+m;if(d=N,m=C,N>w){const _=f.substring(w,N),R=X("text",_);h.push(R)}const A=n(S,[]);h.push(A),p=f.slice(N+C)}if(p){const y=X("text",p);h.push(y)}h.length&&c.children.splice(u,1,...h)},"visitorThird");return a(l=>{if(oe(l,"text",r),oe(l,"text",i),e.actionForEmptyContent!=="keep"&&oe(l,"text",s),e.equalityOperator){const u=new RegExp(e.equalityOperator,"gi");oe(l,"text",c=>{c.value=c.value.replaceAll(u,"==")})}},"transformer")},"plugin$1");var Mu={exports:{}};(function(t){(function(){var e;e=t.exports=i,e.format=i,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}a(n,"printf");function r(s,o){return i.apply(null,[s].concat(o))}a(r,"vsprintf");function i(s){for(var o=1,l=[].slice.call(arguments),u=0,c=s.length,h="",f,p=!1,d,m,g=!1,y,k=a(function(){return l[o++]},"nextArg"),b=a(function(){for(var S="";/\d/.test(s[u]);)S+=s[u++],f=s[u];return S.length>0?parseInt(S):null},"slurpNumber");u<c;++u)if(f=s[u],p)switch(p=!1,f=="."?(g=!1,f=s[++u]):f=="0"&&s[u+1]=="."?(g=!0,u+=2,f=s[u]):g=!0,y=b(),f){case"b":h+=parseInt(k(),10).toString(2);break;case"c":d=k(),typeof d=="string"||d instanceof String?h+=d:h+=String.fromCharCode(parseInt(d,10));break;case"d":h+=parseInt(k(),10);break;case"f":m=String(parseFloat(k()).toFixed(y||6)),h+=g?m:m.replace(/^0/,"");break;case"j":h+=JSON.stringify(k());break;case"o":h+="0"+parseInt(k(),10).toString(8);break;case"s":h+=k();break;case"x":h+="0x"+parseInt(k(),10).toString(16);break;case"X":h+="0x"+parseInt(k(),10).toString(16).toUpperCase();break;default:h+=f;break}else f==="%"?p=!0:h+=f;return h}a(i,"format")})()})(Mu);var _1=Mu.exports,T1=Fi(_1);const zr=Object.assign(Ct(Error),{eval:Ct(EvalError),range:Ct(RangeError),reference:Ct(ReferenceError),syntax:Ct(SyntaxError),type:Ct(TypeError),uri:Ct(URIError)});function Ct(t){return e.displayName=t.displayName||t.name,e;function e(n,...r){const i=n&&T1(n,...r);return new t(i)}a(e,"FormattedError")}a(Ct,"create");const jr={}.hasOwnProperty,$u={yaml:"-",toml:"+"};function Ps(t){const e=[];let n=-1;const r=Array.isArray(t)?t:t?[t]:["yaml"];for(;++n<r.length;)e[n]=I1(r[n]);return e}a(Ps,"toMatters");function I1(t){let e=t;if(typeof e=="string"){if(!jr.call($u,e))throw zr("Missing matter definition for `%s`",e);e={type:e,marker:$u[e]}}else if(typeof e!="object")throw zr("Expected matter to be an object, not `%j`",e);if(!jr.call(e,"type"))throw zr("Missing `type` in matter `%j`",e);if(!jr.call(e,"fence")&&!jr.call(e,"marker"))throw zr("Missing `marker` or `fence` in matter `%j`",e);return e}a(I1,"matter");function L1(t){const e=Ps(t),n={};let r=-1;for(;++r<e.length;){const i=e[r],s=Rs(i,"open").charCodeAt(0),o=O1(i),l=n[s];Array.isArray(l)?l.push(o):n[s]=[o]}return{flow:n}}a(L1,"frontmatter");function O1(t){const e=t.anywhere,n=t.type,r=n+"Fence",i=r+"Sequence",s=n+"Value",o={tokenize:h,partial:!0};let l,u=0;return{tokenize:c,concrete:!0};function c(f,p,d){const m=this;return g;function g(A){const _=m.now();return _.column===1&&(_.line===1||e)&&(l=Rs(t,"open"),u=0,A===l.charCodeAt(u))?(f.enter(n),f.enter(r),f.enter(i),y(A)):d(A)}function y(A){return u===l.length?(f.exit(i),q(A)?(f.enter("whitespace"),k(A)):b(A)):A===l.charCodeAt(u++)?(f.consume(A),y):d(A)}function k(A){return q(A)?(f.consume(A),k):(f.exit("whitespace"),b(A))}function b(A){return F(A)?(f.exit(r),f.enter("lineEnding"),f.consume(A),f.exit("lineEnding"),l=Rs(t,"close"),u=0,f.attempt(o,w,S)):d(A)}function S(A){return A===null||F(A)?C(A):(f.enter(s),N(A))}function N(A){return A===null||F(A)?(f.exit(s),C(A)):(f.consume(A),N)}function C(A){return A===null?d(A):(f.enter("lineEnding"),f.consume(A),f.exit("lineEnding"),f.attempt(o,w,S))}function w(A){return f.exit(n),p(A)}}function h(f,p,d){let m=0;return g;function g(S){return S===l.charCodeAt(m)?(f.enter(r),f.enter(i),y(S)):d(S)}function y(S){return m===l.length?(f.exit(i),q(S)?(f.enter("whitespace"),k(S)):b(S)):S===l.charCodeAt(m++)?(f.consume(S),y):d(S)}function k(S){return q(S)?(f.consume(S),k):(f.exit("whitespace"),b(S))}function b(S){return S===null||F(S)?(f.exit(r),p(S)):d(S)}}}a(O1,"createConstruct");function Rs(t,e){return t.marker?Bu(t.marker,e).repeat(3):Bu(t.fence,e)}a(Rs,"fence$1");function Bu(t,e){return typeof t=="string"?t:t[e]}a(Bu,"pick$1");function qu(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}a(qu,"escapeStringRegexp");function P1(t){const e=Ps(t),n={},r={};let i=-1;for(;++i<e.length;){const s=e[i];n[s.type]=R1(s),r[s.type]=D1,r[s.type+"Value"]=F1}return{enter:n,exit:r}}a(P1,"frontmatterFromMarkdown");function R1(t){return e;function e(n){this.enter({type:t.type,value:""},n),this.buffer()}}a(R1,"opener");function D1(t){const e=this.resume(),n=this.stack[this.stack.length-1];this.exit(t),n.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}a(D1,"close");function F1(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}a(F1,"value");function M1(t){const e=[],n={},r=Ps(t);let i=-1;for(;++i<r.length;){const s=r[i];n[s.type]=$1(s);const o=Ds(s,"open");e.push({atBreak:!0,character:o.charAt(0),after:qu(o.charAt(1))})}return{unsafe:e,handlers:n}}a(M1,"frontmatterToMarkdown");function $1(t){const e=Ds(t,"open"),n=Ds(t,"close");return r;function r(i){return e+(i.value?`
198
+ `+i.value:"")+`
199
+ `+n}}a($1,"handler");function Ds(t,e){return t.marker?zu(t.marker,e).repeat(3):zu(t.fence,e)}a(Ds,"fence");function zu(t,e){return typeof t=="string"?t:t[e]}a(zu,"pick");const B1="yaml";function q1(t){const e=this,n=t||B1,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(L1(n)),s.push(P1(n)),o.push(M1(n))}a(q1,"remarkFrontmatter");function z1(t,e,n){const i=rt((n||{}).ignore||[]),s=j1(e);let o=-1;for(;++o<s.length;)da(t,"text",l);function l(c,h){let f=-1,p;for(;++f<h.length;){const d=h[f],m=p?p.children:void 0;if(i(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return u(c,h)}a(l,"visitor");function u(c,h){const f=h[h.length-1],p=s[o][0],d=s[o][1];let m=0;const y=f.children.indexOf(c);let k=!1,b=[];p.lastIndex=0;let S=p.exec(c.value);for(;S;){const N=S.index,C={index:S.index,input:S.input,stack:[...h,c]};let w=d(...S,C);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=N+1:(m!==N&&b.push({type:"text",value:c.value.slice(m,N)}),Array.isArray(w)?b.push(...w):w&&b.push(w),m=N+S[0].length,k=!0),!p.global)break;S=p.exec(c.value)}return k?(m<c.value.length&&b.push({type:"text",value:c.value.slice(m)}),f.children.splice(y,1,...b)):b=[c],y+b.length}a(u,"handler")}a(z1,"findAndReplace");function j1(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([U1(i[0]),G1(i[1])])}return e}a(j1,"toPairs");function U1(t){return typeof t=="string"?new RegExp(qu(t),"g"):t}a(U1,"toExpression");function G1(t){return typeof t=="function"?t:function(){return t}}a(G1,"toFunction");const Fs="phrasing",Ms=["autolink","link","image","label"];function V1(){return{transforms:[X1],enter:{literalAutolink:W1,literalAutolinkEmail:$s,literalAutolinkHttp:$s,literalAutolinkWww:$s},exit:{literalAutolink:J1,literalAutolinkEmail:Q1,literalAutolinkHttp:K1,literalAutolinkWww:Y1}}}a(V1,"gfmAutolinkLiteralFromMarkdown");function H1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fs,notInConstruct:Ms},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fs,notInConstruct:Ms},{character:":",before:"[ps]",after:"\\/",inConstruct:Fs,notInConstruct:Ms}]}}a(H1,"gfmAutolinkLiteralToMarkdown");function W1(t){this.enter({type:"link",title:null,url:"",children:[]},t)}a(W1,"enterLiteralAutolink");function $s(t){this.config.enter.autolinkProtocol.call(this,t)}a($s,"enterLiteralAutolinkValue");function K1(t){this.config.exit.autolinkProtocol.call(this,t)}a(K1,"exitLiteralAutolinkHttp");function Y1(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}a(Y1,"exitLiteralAutolinkWww");function Q1(t){this.config.exit.autolinkEmail.call(this,t)}a(Q1,"exitLiteralAutolinkEmail");function J1(t){this.exit(t)}a(J1,"exitLiteralAutolink");function X1(t){z1(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Z1],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,eS]],{ignore:["link","linkReference"]})}a(X1,"transformGfmAutolinkLiterals");function Z1(t,e,n,r,i){let s="";if(!ju(i)||(/^w/i.test(e)&&(n=e+n,e="",s="http://"),!tS(n)))return!1;const o=nS(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:s+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}a(Z1,"findUrl");function eS(t,e,n,r){return!ju(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}a(eS,"findEmail");function tS(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}a(tS,"isCorrectDomain");function nS(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const i=or(t,"(");let s=or(t,")");for(;r!==-1&&i>s;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[t,n]}a(nS,"splitUrl");function ju(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||yt(n)||ur(n))&&(!e||n!==47)}a(ju,"previous$2");function ze(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}a(ze,"normalizeIdentifier"),Uu.peek=pS;function rS(){return{enter:{gfmFootnoteDefinition:sS,gfmFootnoteDefinitionLabelString:oS,gfmFootnoteCall:uS,gfmFootnoteCallString:cS},exit:{gfmFootnoteDefinition:lS,gfmFootnoteDefinitionLabelString:aS,gfmFootnoteCall:hS,gfmFootnoteCallString:fS}}}a(rS,"gfmFootnoteFromMarkdown");function iS(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:dS,footnoteReference:Uu}}}a(iS,"gfmFootnoteToMarkdown");function sS(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}a(sS,"enterFootnoteDefinition");function oS(){this.buffer()}a(oS,"enterFootnoteDefinitionLabelString");function aS(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=e,n.identifier=ze(this.sliceSerialize(t)).toLowerCase()}a(aS,"exitFootnoteDefinitionLabelString");function lS(t){this.exit(t)}a(lS,"exitFootnoteDefinition");function uS(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}a(uS,"enterFootnoteCall");function cS(){this.buffer()}a(cS,"enterFootnoteCallString");function fS(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=e,n.identifier=ze(this.sliceSerialize(t)).toLowerCase()}a(fS,"exitFootnoteCallString");function hS(t){this.exit(t)}a(hS,"exitFootnoteCall");function Uu(t,e,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=i.move(n.safe(n.associationId(t),{...i.current(),before:s,after:"]"})),l(),o(),s+=i.move("]"),s}a(Uu,"footnoteReference");function pS(){return"["}a(pS,"footnoteReferencePeek");function dS(t,e,n,r){const i=n.createTracker(r);let s=i.move("[^");const o=n.enter("footnoteDefinition"),l=n.enter("label");return s+=i.move(n.safe(n.associationId(t),{...i.current(),before:s,after:"]"})),l(),s+=i.move("]:"+(t.children&&t.children.length>0?" ":"")),i.shift(4),s+=i.move(n.indentLines(n.containerFlow(t,i.current()),mS)),o(),s}a(dS,"footnoteDefinition");function mS(t,e,n){return e===0?t:(n?"":" ")+t}a(mS,"map$2");const gS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gu.peek=SS;function yS(){return{canContainEols:["delete"],enter:{strikethrough:kS},exit:{strikethrough:wS}}}a(yS,"gfmStrikethroughFromMarkdown");function bS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gS}],handlers:{delete:Gu}}}a(bS,"gfmStrikethroughToMarkdown");function kS(t){this.enter({type:"delete",children:[]},t)}a(kS,"enterStrikethrough");function wS(t){this.exit(t)}a(wS,"exitStrikethrough");function Gu(t,e,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(t,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),s(),o}a(Gu,"handleDelete");function SS(){return"~"}a(SS,"peekDelete");function xS(t,e={}){const n=(e.align||[]).concat(),r=e.stringLength||CS,i=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<t.length;){const m=[],g=[];let y=-1;for(t[c].length>u&&(u=t[c].length);++y<t[c].length;){const k=vS(t[c][y]);if(e.alignDelimiters!==!1){const b=r(k);g[y]=b,(l[y]===void 0||b>l[y])&&(l[y]=b)}m.push(k)}s[c]=m,o[c]=g}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<u;)i[h]=Vu(n[h]);else{const m=Vu(n);for(;++h<u;)i[h]=m}h=-1;const f=[],p=[];for(;++h<u;){const m=i[h];let g="",y="";m===99?(g=":",y=":"):m===108?g=":":m===114&&(y=":");let k=e.alignDelimiters===!1?1:Math.max(1,l[h]-g.length-y.length);const b=g+"-".repeat(k)+y;e.alignDelimiters!==!1&&(k=g.length+k+y.length,k>l[h]&&(l[h]=k),p[h]=k),f[h]=b}s.splice(1,0,f),o.splice(1,0,p),c=-1;const d=[];for(;++c<s.length;){const m=s[c],g=o[c];h=-1;const y=[];for(;++h<u;){const k=m[h]||"";let b="",S="";if(e.alignDelimiters!==!1){const N=l[h]-(g[h]||0),C=i[h];C===114?b=" ".repeat(N):C===99?N%2?(b=" ".repeat(N/2+.5),S=" ".repeat(N/2-.5)):(b=" ".repeat(N/2),S=b):S=" ".repeat(N)}e.delimiterStart!==!1&&!h&&y.push("|"),e.padding!==!1&&!(e.alignDelimiters===!1&&k==="")&&(e.delimiterStart!==!1||h)&&y.push(" "),e.alignDelimiters!==!1&&y.push(b),y.push(k),e.alignDelimiters!==!1&&y.push(S),e.padding!==!1&&y.push(" "),(e.delimiterEnd!==!1||h!==u-1)&&y.push("|")}d.push(e.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return d.join(`
200
+ `)}a(xS,"markdownTable");function vS(t){return t==null?"":String(t)}a(vS,"serialize");function CS(t){return t.length}a(CS,"defaultStringLength");function Vu(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}a(Vu,"toAlignment");function NS(t,e,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(t,s.current()),AS);return i(),o}a(NS,"blockquote");function AS(t,e,n){return">"+(n?"":" ")+t}a(AS,"map$1");function ES(t,e){return Hu(t,e.inConstruct,!0)&&!Hu(t,e.notInConstruct,!1)}a(ES,"patternInScope");function Hu(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}a(Hu,"listInScope");function Wu(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
201
+ `&&ES(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
202
+ `}a(Wu,"hardBreak");function Ku(t,e){const n=String(t);let r=n.indexOf(e),i=r,s=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+e.length,r=n.indexOf(e,i);return o}a(Ku,"longestStreak");function _S(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}a(_S,"formatCodeAsIndented");function TS(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}a(TS,"checkFence");function IS(t,e,n,r){const i=TS(n),s=t.value||"",o=i==="`"?"GraveAccent":"Tilde";if(_S(t,n)){const f=n.enter("codeIndented"),p=n.indentLines(s,LS);return f(),p}const l=n.createTracker(r),u=i.repeat(Math.max(Ku(s,i)+1,3)),c=n.enter("codeFenced");let h=l.move(u);if(t.lang){const f=n.enter(`codeFencedLang${o}`);h+=l.move(n.safe(t.lang,{before:h,after:" ",encode:["`"],...l.current()})),f()}if(t.lang&&t.meta){const f=n.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(n.safe(t.meta,{before:h,after:`
203
+ `,encode:["`"],...l.current()})),f()}return h+=l.move(`
204
+ `),s&&(h+=l.move(s+`
205
+ `)),h+=l.move(u),c(),h}a(IS,"code$1");function LS(t,e,n){return(n?"":" ")+t}a(LS,"map");function Bs(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}a(Bs,"checkQuote");function OS(t,e,n,r){const i=Bs(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(t),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(t.url,{before:c,after:t.title?" ":`
206
+ `,...u.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(t.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),o(),c}a(OS,"definition$1");function PS(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}a(PS,"checkEmphasis"),Yu.peek=RS;function Yu(t,e,n,r){const i=PS(n),s=n.enter("emphasis"),o=n.createTracker(r);let l=o.move(i);return l+=o.move(n.containerPhrasing(t,{before:l,after:i,...o.current()})),l+=o.move(i),s(),l}a(Yu,"emphasis");function RS(t,e,n){return n.options.emphasis||"*"}a(RS,"emphasisPeek");const DS={};function qs(t,e){const n=DS,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Qu(t,r,i)}a(qs,"toString");function Qu(t,e,n){if(FS(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Ju(t.children,e,n)}return Array.isArray(t)?Ju(t,e,n):""}a(Qu,"one");function Ju(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=Qu(t[i],e,n);return r.join("")}a(Ju,"all");function FS(t){return!!(t&&typeof t=="object")}a(FS,"node");function MS(t,e){let n=!1;return oe(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Je}),!!((!t.depth||t.depth<3)&&qs(t)&&(e.options.setext||n))}a(MS,"formatHeadingAsSetext");function $S(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(r);if(MS(t,n)){const h=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(t,{...s.current(),before:`
207
+ `,after:`
208
+ `});return f(),h(),p+`
209
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
210
+ `))+1))}const o="#".repeat(i),l=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(t,{before:"# ",after:`
211
+ `,...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),l(),c}a($S,"heading"),Xu.peek=BS;function Xu(t){return t.value||""}a(Xu,"html");function BS(){return"<"}a(BS,"htmlPeek"),Zu.peek=qS;function Zu(t,e,n,r){const i=Bs(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(t.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(t.url,{before:c,after:t.title?" ":")",...u.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(t.title,{before:c,after:i,...u.current()})),c+=u.move(i),l()),c+=u.move(")"),o(),c}a(Zu,"image");function qS(){return"!"}a(qS,"imagePeek"),ec.peek=zS;function ec(t,e,n,r){const i=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const c=n.safe(t.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(t),{before:u,after:"]",...l.current()});return o(),n.stack=h,s(),i==="full"||!c||c!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}a(ec,"imageReference");function zS(){return"!"}a(zS,"imageReferencePeek"),tc.peek=jS;function tc(t,e,n){let r=t.value||"",i="`",s=-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+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let u;if(o.atBreak)for(;u=l.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}a(tc,"inlineCode");function jS(){return"`"}a(jS,"inlineCodePeek");function nc(t,e){const n=qs(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}a(nc,"formatLinkAsAutolink"),rc.peek=US;function rc(t,e,n,r){const i=Bs(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,u;if(nc(t,n)){const h=n.stack;n.stack=[],l=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(t,{before:f,after:">",...o.current()})),f+=o.move(">"),l(),n.stack=h,f}l=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(t,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(t.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(t.url,{before:c,after:t.title?" ":")",...o.current()}))),u(),t.title&&(u=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(t.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),l(),c}a(rc,"link");function US(t,e,n){return nc(t,n)?"<":"["}a(US,"linkPeek"),ic.peek=GS;function ic(t,e,n,r){const i=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const c=n.containerPhrasing(t,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),o();const h=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(t),{before:u,after:"]",...l.current()});return o(),n.stack=h,s(),i==="full"||!c||c!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}a(ic,"linkReference");function GS(){return"["}a(GS,"linkReferencePeek");function zs(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}a(zs,"checkBullet");function VS(t){const e=zs(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}a(VS,"checkBulletOther");function HS(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}a(HS,"checkBulletOrdered");function sc(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}a(sc,"checkRule");function WS(t,e,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?HS(n):zs(n);const l=t.ordered?o==="."?")":".":VS(n);let u=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const h=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.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),sc(n)===o&&h){let f=-1;for(;++f<t.children.length;){const p=t.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=l),n.bulletCurrent=o;const c=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}a(WS,"list$1");function KS(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}a(KS,"checkListItemIndent");function YS(t,e,n,r){const i=KS(n);let s=n.bulletCurrent||zs(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(s+" ".repeat(o-s.length)),l.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,l.current()),h);return u(),c;function h(f,p,d){return p?(d?"":" ".repeat(o))+f:(d?s:s+" ".repeat(o-s.length))+f}a(h,"map")}a(YS,"listItem");function QS(t,e,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,r);return s(),i(),o}a(QS,"paragraph");const JS=rt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function XS(t,e,n,r){return(t.children.some(function(o){return JS(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}a(XS,"root");function ZS(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}a(ZS,"checkStrong"),oc.peek=ex;function oc(t,e,n,r){const i=ZS(n),s=n.enter("strong"),o=n.createTracker(r);let l=o.move(i+i);return l+=o.move(n.containerPhrasing(t,{before:l,after:i,...o.current()})),l+=o.move(i+i),s(),l}a(oc,"strong");function ex(t,e,n){return n.options.strong||"*"}a(ex,"strongPeek");function tx(t,e,n,r){return n.safe(t.value,r)}a(tx,"text$3");function nx(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}a(nx,"checkRuleRepetition");function rx(t,e,n){const r=(sc(n)+(n.options.ruleSpaces?" ":"")).repeat(nx(n));return n.options.ruleSpaces?r.slice(0,-1):r}a(rx,"thematicBreak$1");const ac={blockquote:NS,break:Wu,code:IS,definition:OS,emphasis:Yu,hardBreak:Wu,heading:$S,html:Xu,image:Zu,imageReference:ec,inlineCode:tc,link:rc,linkReference:ic,list:WS,listItem:YS,paragraph:QS,root:XS,strong:oc,text:tx,thematicBreak:rx},lc={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
212
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},ix={}.hasOwnProperty;function js(t){return ix.call(lc,t)?lc[t]:!1}a(js,"decodeNamedCharacterReference");function uc(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}a(uc,"decodeNumericCharacterReference");const sx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ox(t){return t.replace(sx,ax)}a(ox,"decodeString");function ax(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return uc(n.slice(s?2:1),s?16:10)}return js(n)||t}a(ax,"decode");function lx(){return{enter:{table:ux,tableData:cc,tableHeader:cc,tableRow:fx},exit:{codeText:hx,table:cx,tableData:Us,tableHeader:Us,tableRow:Us}}}a(lx,"gfmTableFromMarkdown");function ux(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}a(ux,"enterTable");function cx(t){this.exit(t),this.data.inTable=void 0}a(cx,"exitTable");function fx(t){this.enter({type:"tableRow",children:[]},t)}a(fx,"enterRow");function Us(t){this.exit(t)}a(Us,"exit$1");function cc(t){this.enter({type:"tableCell",children:[]},t)}a(cc,"enterCell");function hx(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,px));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}a(hx,"exitCodeText");function px(t,e){return e==="|"?e:t}a(px,"replace");function dx(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
213
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:u,tableRow:l}};function o(d,m,g,y){return c(h(d,g,y),d.align)}function l(d,m,g,y){const k=f(d,g,y),b=c([k]);return b.slice(0,b.indexOf(`
214
+ `))}function u(d,m,g,y){const k=g.enter("tableCell"),b=g.enter("phrasing"),S=g.containerPhrasing(d,{...y,before:s,after:s});return b(),k(),S}function c(d,m){return xS(d,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(d,m,g){const y=d.children;let k=-1;const b=[],S=m.enter("table");for(;++k<y.length;)b[k]=f(y[k],m,g);return S(),b}function f(d,m,g){const y=d.children;let k=-1;const b=[],S=m.enter("tableRow");for(;++k<y.length;)b[k]=u(y[k],d,m,g);return S(),b}function p(d,m,g){let y=ac.inlineCode(d,m,g);return g.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}a(dx,"gfmTableToMarkdown");function mx(){return{exit:{taskListCheckValueChecked:fc,taskListCheckValueUnchecked:fc,paragraph:yx}}}a(mx,"gfmTaskListItemFromMarkdown");function gx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bx}}}a(gx,"gfmTaskListItemToMarkdown");function fc(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}a(fc,"exitCheck");function yx(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const l=i[s];if(l.type==="paragraph"){o=l;break}}o===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(t)}a(yx,"exitParagraphWithTaskListItem");function bx(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",l=n.createTracker(r);s&&l.move(o);let u=ac.listItem(t,e,n,{...r,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+o}a(c,"check")}a(bx,"listItemWithTaskListItem");function kx(){return[V1(),rS(),yS(),lx(),mx()]}a(kx,"gfmFromMarkdown");function wx(t){return{extensions:[H1(),iS(),bS(),dx(t),gx()]}}a(wx,"gfmToMarkdown");function Le(t,e,n,r){const i=t.length;let s=0,o;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}a(Le,"splice");function Oe(t,e){return t.length>0?(Le(t,t.length,0,e),t):e}a(Oe,"push");const hc={}.hasOwnProperty;function pc(t){const e={};let n=-1;for(;++n<t.length;)Sx(e,t[n]);return e}a(pc,"combineExtensions");function Sx(t,e){let n;for(n in e){const i=(hc.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){hc.call(i,o)||(i[o]=[]);const l=s[o];xx(i[o],Array.isArray(l)?l:l?[l]:[])}}}a(Sx,"syntaxExtension");function xx(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Le(t,0,0,r)}a(xx,"constructs");const vx={tokenize:Tx,partial:!0},dc={tokenize:Ix,partial:!0},mc={tokenize:Lx,partial:!0},gc={tokenize:Ox,partial:!0},Cx={tokenize:Px,partial:!0},yc={tokenize:Ex,previous:kc},bc={tokenize:_x,previous:wc},et={tokenize:Ax,previous:Sc},Ge={};function Nx(){return{text:Ge}}a(Nx,"gfmAutolinkLiteral");let Nt=48;for(;Nt<123;)Ge[Nt]=et,Nt++,Nt===58?Nt=65:Nt===91&&(Nt=97);Ge[43]=et,Ge[45]=et,Ge[46]=et,Ge[95]=et,Ge[72]=[et,bc],Ge[104]=[et,bc],Ge[87]=[et,yc],Ge[119]=[et,yc];function Ax(t,e,n){const r=this;let i,s;return o;function o(f){return!Gs(f)||!Sc.call(r,r.previous)||Vs(r.events)?n(f):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(f))}function l(f){return Gs(f)?(t.consume(f),l):f===64?(t.consume(f),u):n(f)}function u(f){return f===46?t.check(Cx,h,c)(f):f===45||f===95||me(f)?(s=!0,t.consume(f),u):h(f)}function c(f){return t.consume(f),i=!0,u}function h(f){return s&&i&&ge(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(f)):n(f)}}a(Ax,"tokenizeEmailAutolink");function Ex(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!kc.call(r,r.previous)||Vs(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(vx,t.attempt(dc,t.attempt(mc,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}a(Ex,"tokenizeWwwAutolink");function _x(t,e,n){const r=this;let i="",s=!1;return o;function o(f){return(f===72||f===104)&&wc.call(r,r.previous)&&!Vs(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),t.consume(f),l):n(f)}function l(f){if(ge(f)&&i.length<5)return i+=String.fromCodePoint(f),t.consume(f),l;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return t.consume(f),u}return n(f)}function u(f){return f===47?(t.consume(f),s?c:(s=!0,u)):n(f)}function c(f){return f===null||lr(f)||W(f)||yt(f)||ur(f)?n(f):t.attempt(dc,t.attempt(mc,h),n)(f)}function h(f){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(f)}}a(_x,"tokenizeProtocolAutolink");function Tx(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}a(Tx,"tokenizeWwwPrefix");function Ix(t,e,n){let r,i,s;return o;function o(c){return c===46||c===95?t.check(gc,u,l)(c):c===null||W(c)||yt(c)||c!==45&&ur(c)?u(c):(s=!0,t.consume(c),o)}function l(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function u(c){return i||r||!s?n(c):e(c)}}a(Ix,"tokenizeDomain");function Lx(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(gc,e,s)(o):o===null||W(o)||yt(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}a(Lx,"tokenizePath");function Ox(t,e,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),r):l===38?(t.consume(l),s):l===93?(t.consume(l),i):l===60||l===null||W(l)||yt(l)?e(l):n(l)}function i(l){return l===null||l===40||l===91||W(l)||yt(l)?e(l):r(l)}function s(l){return ge(l)?o(l):n(l)}function o(l){return l===59?(t.consume(l),r):ge(l)?(t.consume(l),o):n(l)}}a(Ox,"tokenizeTrail");function Px(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return me(s)?n(s):e(s)}}a(Px,"tokenizeEmailDomainDotTrail");function kc(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||W(t)}a(kc,"previousWww");function wc(t){return!ge(t)}a(wc,"previousProtocol");function Sc(t){return!(t===47||Gs(t))}a(Sc,"previousEmail");function Gs(t){return t===43||t===45||t===46||t===95||me(t)}a(Gs,"gfmAtext");function Vs(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}a(Vs,"previousUnbalanced");function Ur(t){if(t===null||W(t)||yt(t))return 1;if(ur(t))return 2}a(Ur,"classifyCharacter");function Gr(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}a(Gr,"resolveAll");const Hs={name:"attention",tokenize:Dx,resolveAll:Rx};function Rx(t,e){let n=-1,r,i,s,o,l,u,c,h;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;u=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const f=Object.assign({},t[r][1].end),p=Object.assign({},t[n][1].start);xc(f,-u),xc(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},t[r][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[n][1].start),end:p},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},t[r][1].end=Object.assign({},o.start),t[n][1].start=Object.assign({},l.end),c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=Oe(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=Oe(c,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",s,e]]),c=Oe(c,Gr(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=Oe(c,[["exit",s,e],["enter",l,e],["exit",l,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(h=2,c=Oe(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):h=0,Le(t,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}a(Rx,"resolveAllAttention");function Dx(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ur(r);let s;return o;function o(u){return s=u,t.enter("attentionSequence"),l(u)}function l(u){if(u===s)return t.consume(u),l;const c=t.exit("attentionSequence"),h=Ur(u),f=!h||h===2&&i||n.includes(u),p=!i||i===2&&h||n.includes(r);return c._open=!!(s===42?f:f&&(i||!p)),c._close=!!(s===42?p:p&&(h||!f)),e(u)}}a(Dx,"tokenizeAttention");function xc(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}a(xc,"movePoint");const Fx={name:"autolink",tokenize:Mx};function Mx(t,e,n){let r=0;return i;function i(d){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(d){return ge(d)?(t.consume(d),o):d===64?n(d):c(d)}function o(d){return d===43||d===45||d===46||me(d)?(r=1,l(d)):c(d)}function l(d){return d===58?(t.consume(d),r=0,u):(d===43||d===45||d===46||me(d))&&r++<32?(t.consume(d),l):(r=0,c(d))}function u(d){return d===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):d===null||d===32||d===60||lr(d)?n(d):(t.consume(d),u)}function c(d){return d===64?(t.consume(d),h):Jm(d)?(t.consume(d),c):n(d)}function h(d){return me(d)?f(d):n(d)}function f(d){return d===46?(t.consume(d),r=0,h):d===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):p(d)}function p(d){if((d===45||me(d))&&r++<63){const m=d===45?p:f;return t.consume(d),m}return n(d)}}a(Mx,"tokenizeAutolink");function j(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return q(u)?(t.enter(n),l(u)):e(u)}function l(u){return q(u)&&s++<i?(t.consume(u),l):(t.exit(n),e(u))}}a(j,"factorySpace");const Pn={tokenize:$x,partial:!0};function $x(t,e,n){return r;function r(s){return q(s)?j(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||F(s)?e(s):n(s)}}a($x,"tokenizeBlankLine");const vc={name:"blockQuote",tokenize:Bx,continuation:{tokenize:qx},exit:zx};function Bx(t,e,n){const r=this;return i;function i(o){if(o===62){const l=r.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return q(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}a(Bx,"tokenizeBlockQuoteStart");function qx(t,e,n){const r=this;return i;function i(o){return q(o)?j(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(vc,e,n)(o)}}a(qx,"tokenizeBlockQuoteContinuation");function zx(t){t.exit("blockQuote")}a(zx,"exit");const Cc={name:"characterEscape",tokenize:jx};function jx(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return Zm(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}a(jx,"tokenizeCharacterEscape");const Nc={name:"characterReference",tokenize:Ux};function Ux(t,e,n){const r=this;let i=0,s,o;return l;function l(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),u}function u(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,o=me,h(f))}function c(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=Xm,h):(t.enter("characterReferenceValue"),s=7,o=Ii,h(f))}function h(f){if(f===59&&i){const p=t.exit("characterReferenceValue");return o===me&&!js(r.sliceSerialize(p))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(f)&&i++<s?(t.consume(f),h):n(f)}}a(Ux,"tokenizeCharacterReference");const Ac={tokenize:Vx,partial:!0},Ec={name:"codeFenced",tokenize:Gx,concrete:!0};function Gx(t,e,n){const r=this,i={tokenize:C,partial:!0};let s=0,o=0,l;return u;function u(w){return c(w)}function c(w){const A=r.events[r.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=w,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h(w)}function h(w){return w===l?(o++,t.consume(w),h):o<3?n(w):(t.exit("codeFencedFenceSequence"),q(w)?j(t,f,"whitespace")(w):f(w))}function f(w){return w===null||F(w)?(t.exit("codeFencedFence"),r.interrupt?e(w):t.check(Ac,g,N)(w)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||F(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(w)):q(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),j(t,d,"whitespace")(w)):w===96&&w===l?n(w):(t.consume(w),p)}function d(w){return w===null||F(w)?f(w):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||F(w)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(w)):w===96&&w===l?n(w):(t.consume(w),m)}function g(w){return t.attempt(i,N,y)(w)}function y(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),k}function k(w){return s>0&&q(w)?j(t,b,"linePrefix",s+1)(w):b(w)}function b(w){return w===null||F(w)?t.check(Ac,g,N)(w):(t.enter("codeFlowValue"),S(w))}function S(w){return w===null||F(w)?(t.exit("codeFlowValue"),b(w)):(t.consume(w),S)}function N(w){return t.exit("codeFenced"),e(w)}function C(w,A,_){let R=0;return E;function E(G){return w.enter("lineEnding"),w.consume(G),w.exit("lineEnding"),P}function P(G){return w.enter("codeFencedFence"),q(G)?j(w,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):O(G)}function O(G){return G===l?(w.enter("codeFencedFenceSequence"),V(G)):_(G)}function V(G){return G===l?(R++,w.consume(G),V):R>=o?(w.exit("codeFencedFenceSequence"),q(G)?j(w,K,"whitespace")(G):K(G)):_(G)}function K(G){return G===null||F(G)?(w.exit("codeFencedFence"),A(G)):_(G)}}}a(Gx,"tokenizeCodeFenced");function Vx(t,e,n){const r=this;return i;function i(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(Vx,"tokenizeNonLazyContinuation$1");const Ws={name:"codeIndented",tokenize:Wx},Hx={tokenize:Kx,partial:!0};function Wx(t,e,n){const r=this;return i;function i(c){return t.enter("codeIndented"),j(t,s,"linePrefix",5)(c)}function s(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):F(c)?t.attempt(Hx,o,u)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||F(c)?(t.exit("codeFlowValue"),o(c)):(t.consume(c),l)}function u(c){return t.exit("codeIndented"),e(c)}}a(Wx,"tokenizeCodeIndented");function Kx(t,e,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):F(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):j(t,s,"linePrefix",5)(o)}function s(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):F(o)?i(o):n(o)}}a(Kx,"tokenizeFurtherStart");const Yx={name:"codeText",tokenize:Xx,resolve:Qx,previous:Jx};function Qx(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}a(Qx,"resolveCodeText");function Jx(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}a(Jx,"previous$1");function Xx(t,e,n){let r=0,i,s;return o;function o(f){return t.enter("codeText"),t.enter("codeTextSequence"),l(f)}function l(f){return f===96?(t.consume(f),r++,l):(t.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),u):f===96?(s=t.enter("codeTextSequence"),i=0,h(f)):F(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):(t.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||F(f)?(t.exit("codeTextData"),u(f)):(t.consume(f),c)}function h(f){return f===96?(t.consume(f),i++,h):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(s.type="codeTextData",c(f))}}a(Xx,"tokenizeCodeText");class Zx{static{a(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rn(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Rn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Rn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Rn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Rn(this.left,n.reverse())}}}function Rn(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}a(Rn,"chunkedPush");function _c(t){const e={};let n=-1,r,i,s,o,l,u,c;const h=new Zx(t);for(;++n<h.length;){for(;n in e;)n=e[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,ev(h,n)),n=e[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--&&(o=h.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},h.get(i)[1].start),l=h.slice(i,n),l.unshift(r),h.splice(i,n-i+1,l))}}return Le(t,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}a(_c,"subtokenize");function ev(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[],o=n._tokenizer||r.parser[n.contentType](n.start),l=o.events,u=[],c={};let h,f,p=-1,d=n,m=0,g=0;const y=[g];for(;d;){for(;t.get(++i)[1]!==d;);s.push(i),d._tokenizer||(h=r.sliceStream(d),d.next||h.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(g=p+1,y.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){const k=l.slice(y[p],y[p+1]),b=s.pop();u.push([b,b+k.length-1]),t.splice(b,2,k)}for(u.reverse(),p=-1;++p<u.length;)c[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return c}a(ev,"subcontent");const tv={tokenize:iv,resolve:rv},nv={tokenize:sv,partial:!0};function rv(t){return _c(t),t}a(rv,"resolveContent");function iv(t,e){let n;return r;function r(l){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?s(l):F(l)?t.check(nv,o,s)(l):(t.consume(l),i)}function s(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function o(l){return t.consume(l),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}a(iv,"tokenizeContent");function sv(t,e,n){const r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),j(t,s,"linePrefix")}function s(o){if(o===null||F(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):t.interrupt(r.parser.constructs.flow,n,e)(o)}}a(sv,"tokenizeContinuation");function Tc(t,e,n,r,i,s,o,l,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return f;function f(k){return k===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(k),t.exit(s),p):k===null||k===32||k===41||lr(k)?n(k):(t.enter(r),t.enter(o),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(k))}function p(k){return k===62?(t.enter(s),t.consume(k),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===62?(t.exit("chunkString"),t.exit(l),p(k)):k===null||k===60||F(k)?n(k):(t.consume(k),k===92?m:d)}function m(k){return k===60||k===62||k===92?(t.consume(k),d):d(k)}function g(k){return!h&&(k===null||k===41||W(k))?(t.exit("chunkString"),t.exit(l),t.exit(o),t.exit(r),e(k)):h<c&&k===40?(t.consume(k),h++,g):k===41?(t.consume(k),h--,g):k===null||k===32||k===40||lr(k)?n(k):(t.consume(k),k===92?y:g)}function y(k){return k===40||k===41||k===92?(t.consume(k),g):g(k)}}a(Tc,"factoryDestination");function Ic(t,e,n,r,i,s){const o=this;let l=0,u;return c;function c(d){return t.enter(r),t.enter(i),t.consume(d),t.exit(i),t.enter(s),h}function h(d){return l>999||d===null||d===91||d===93&&!u||d===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(t.exit(s),t.enter(i),t.consume(d),t.exit(i),t.exit(r),e):F(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),h):(t.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||F(d)||l++>999?(t.exit("chunkString"),h(d)):(t.consume(d),u||(u=!q(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(t.consume(d),l++,f):f(d)}}a(Ic,"factoryLabel");function Lc(t,e,n,r,i,s){let o;return l;function l(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),o=p===40?41:p,u):n(p)}function u(p){return p===o?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(s),c(p))}function c(p){return p===o?(t.exit(s),u(o)):p===null?n(p):F(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),j(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||F(p)?(t.exit("chunkString"),c(p)):(t.consume(p),p===92?f:h)}function f(p){return p===o||p===92?(t.consume(p),h):h(p)}}a(Lc,"factoryTitle");function Dn(t,e){let n;return r;function r(i){return F(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):q(i)?j(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}a(Dn,"factoryWhitespace");const ov={name:"definition",tokenize:lv},av={tokenize:uv,partial:!0};function lv(t,e,n){const r=this;let i;return s;function s(d){return t.enter("definition"),o(d)}function o(d){return Ic.call(r,t,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function l(d){return i=ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),u):n(d)}function u(d){return W(d)?Dn(t,c)(d):c(d)}function c(d){return Tc(t,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function h(d){return t.attempt(av,f,f)(d)}function f(d){return q(d)?j(t,p,"whitespace")(d):p(d)}function p(d){return d===null||F(d)?(t.exit("definition"),r.parser.defined.push(i),e(d)):n(d)}}a(lv,"tokenizeDefinition");function uv(t,e,n){return r;function r(l){return W(l)?Dn(t,i)(l):n(l)}function i(l){return Lc(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return q(l)?j(t,o,"whitespace")(l):o(l)}function o(l){return l===null||F(l)?e(l):n(l)}}a(uv,"tokenizeTitleBefore");const cv={name:"hardBreakEscape",tokenize:fv};function fv(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return F(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}a(fv,"tokenizeHardBreakEscape");const hv={name:"headingAtx",tokenize:dv,resolve:pv};function pv(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Le(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}a(pv,"resolveHeadingAtx");function dv(t,e,n){let r=0;return i;function i(h){return t.enter("atxHeading"),s(h)}function s(h){return t.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(t.consume(h),o):h===null||W(h)?(t.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(t.enter("atxHeadingSequence"),u(h)):h===null||F(h)?(t.exit("atxHeading"),e(h)):q(h)?j(t,l,"whitespace")(h):(t.enter("atxHeadingText"),c(h))}function u(h){return h===35?(t.consume(h),u):(t.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||W(h)?(t.exit("atxHeadingText"),l(h)):(t.consume(h),c)}}a(dv,"tokenizeHeadingAtx");const mv=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Oc=["pre","script","style","textarea"],gv={name:"htmlFlow",tokenize:wv,resolveTo:kv,concrete:!0},yv={tokenize:xv,partial:!0},bv={tokenize:Sv,partial:!0};function kv(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}a(kv,"resolveToHtmlFlow");function wv(t,e,n){const r=this;let i,s,o,l,u;return c;function c(v){return h(v)}function h(v){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(v),f}function f(v){return v===33?(t.consume(v),p):v===47?(t.consume(v),s=!0,g):v===63?(t.consume(v),i=3,r.interrupt?e:x):ge(v)?(t.consume(v),o=String.fromCharCode(v),y):n(v)}function p(v){return v===45?(t.consume(v),i=2,d):v===91?(t.consume(v),i=5,l=0,m):ge(v)?(t.consume(v),i=4,r.interrupt?e:x):n(v)}function d(v){return v===45?(t.consume(v),r.interrupt?e:x):n(v)}function m(v){const Fe="CDATA[";return v===Fe.charCodeAt(l++)?(t.consume(v),l===Fe.length?r.interrupt?e:O:m):n(v)}function g(v){return ge(v)?(t.consume(v),o=String.fromCharCode(v),y):n(v)}function y(v){if(v===null||v===47||v===62||W(v)){const Fe=v===47,ct=o.toLowerCase();return!Fe&&!s&&Oc.includes(ct)?(i=1,r.interrupt?e(v):O(v)):mv.includes(o.toLowerCase())?(i=6,Fe?(t.consume(v),k):r.interrupt?e(v):O(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):s?b(v):S(v))}return v===45||me(v)?(t.consume(v),o+=String.fromCharCode(v),y):n(v)}function k(v){return v===62?(t.consume(v),r.interrupt?e:O):n(v)}function b(v){return q(v)?(t.consume(v),b):E(v)}function S(v){return v===47?(t.consume(v),E):v===58||v===95||ge(v)?(t.consume(v),N):q(v)?(t.consume(v),S):E(v)}function N(v){return v===45||v===46||v===58||v===95||me(v)?(t.consume(v),N):C(v)}function C(v){return v===61?(t.consume(v),w):q(v)?(t.consume(v),C):S(v)}function w(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(t.consume(v),u=v,A):q(v)?(t.consume(v),w):_(v)}function A(v){return v===u?(t.consume(v),u=null,R):v===null||F(v)?n(v):(t.consume(v),A)}function _(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||W(v)?C(v):(t.consume(v),_)}function R(v){return v===47||v===62||q(v)?S(v):n(v)}function E(v){return v===62?(t.consume(v),P):n(v)}function P(v){return v===null||F(v)?O(v):q(v)?(t.consume(v),P):n(v)}function O(v){return v===45&&i===2?(t.consume(v),de):v===60&&i===1?(t.consume(v),ce):v===62&&i===4?(t.consume(v),De):v===63&&i===3?(t.consume(v),x):v===93&&i===5?(t.consume(v),We):F(v)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(yv,Ke,V)(v)):v===null||F(v)?(t.exit("htmlFlowData"),V(v)):(t.consume(v),O)}function V(v){return t.check(bv,K,Ke)(v)}function K(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),G}function G(v){return v===null||F(v)?V(v):(t.enter("htmlFlowData"),O(v))}function de(v){return v===45?(t.consume(v),x):O(v)}function ce(v){return v===47?(t.consume(v),o="",Re):O(v)}function Re(v){if(v===62){const Fe=o.toLowerCase();return Oc.includes(Fe)?(t.consume(v),De):O(v)}return ge(v)&&o.length<8?(t.consume(v),o+=String.fromCharCode(v),Re):O(v)}function We(v){return v===93?(t.consume(v),x):O(v)}function x(v){return v===62?(t.consume(v),De):v===45&&i===2?(t.consume(v),x):O(v)}function De(v){return v===null||F(v)?(t.exit("htmlFlowData"),Ke(v)):(t.consume(v),De)}function Ke(v){return t.exit("htmlFlow"),e(v)}}a(wv,"tokenizeHtmlFlow");function Sv(t,e,n){const r=this;return i;function i(o){return F(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(Sv,"tokenizeNonLazyContinuationStart");function xv(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Pn,e,n)}}a(xv,"tokenizeBlankLineBefore");const vv={name:"htmlText",tokenize:Cv};function Cv(t,e,n){const r=this;let i,s,o;return l;function l(x){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(x),u}function u(x){return x===33?(t.consume(x),c):x===47?(t.consume(x),C):x===63?(t.consume(x),S):ge(x)?(t.consume(x),_):n(x)}function c(x){return x===45?(t.consume(x),h):x===91?(t.consume(x),s=0,m):ge(x)?(t.consume(x),b):n(x)}function h(x){return x===45?(t.consume(x),d):n(x)}function f(x){return x===null?n(x):x===45?(t.consume(x),p):F(x)?(o=f,ce(x)):(t.consume(x),f)}function p(x){return x===45?(t.consume(x),d):f(x)}function d(x){return x===62?de(x):x===45?p(x):f(x)}function m(x){const De="CDATA[";return x===De.charCodeAt(s++)?(t.consume(x),s===De.length?g:m):n(x)}function g(x){return x===null?n(x):x===93?(t.consume(x),y):F(x)?(o=g,ce(x)):(t.consume(x),g)}function y(x){return x===93?(t.consume(x),k):g(x)}function k(x){return x===62?de(x):x===93?(t.consume(x),k):g(x)}function b(x){return x===null||x===62?de(x):F(x)?(o=b,ce(x)):(t.consume(x),b)}function S(x){return x===null?n(x):x===63?(t.consume(x),N):F(x)?(o=S,ce(x)):(t.consume(x),S)}function N(x){return x===62?de(x):S(x)}function C(x){return ge(x)?(t.consume(x),w):n(x)}function w(x){return x===45||me(x)?(t.consume(x),w):A(x)}function A(x){return F(x)?(o=A,ce(x)):q(x)?(t.consume(x),A):de(x)}function _(x){return x===45||me(x)?(t.consume(x),_):x===47||x===62||W(x)?R(x):n(x)}function R(x){return x===47?(t.consume(x),de):x===58||x===95||ge(x)?(t.consume(x),E):F(x)?(o=R,ce(x)):q(x)?(t.consume(x),R):de(x)}function E(x){return x===45||x===46||x===58||x===95||me(x)?(t.consume(x),E):P(x)}function P(x){return x===61?(t.consume(x),O):F(x)?(o=P,ce(x)):q(x)?(t.consume(x),P):R(x)}function O(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),i=x,V):F(x)?(o=O,ce(x)):q(x)?(t.consume(x),O):(t.consume(x),K)}function V(x){return x===i?(t.consume(x),i=void 0,G):x===null?n(x):F(x)?(o=V,ce(x)):(t.consume(x),V)}function K(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||W(x)?R(x):(t.consume(x),K)}function G(x){return x===47||x===62||W(x)?R(x):n(x)}function de(x){return x===62?(t.consume(x),t.exit("htmlTextData"),t.exit("htmlText"),e):n(x)}function ce(x){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Re}function Re(x){return q(x)?j(t,We,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):We(x)}function We(x){return t.enter("htmlTextData"),o(x)}}a(Cv,"tokenizeHtmlText");const Ks={name:"labelEnd",tokenize:Iv,resolveTo:Tv,resolveAll:_v},Nv={tokenize:Lv},Av={tokenize:Ov},Ev={tokenize:Pv};function _v(t){let e=-1;for(;++e<t.length;){const n=t[e][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(t.splice(e+1,n.type==="labelImage"?4:2),n.type="data",e++)}return t}a(_v,"resolveAllLabelEnd");function Tv(t,e){let n=t.length,r=0,i,s,o,l;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:t[s][1].type==="labelLink"?"link":"image",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)},c={type:"label",start:Object.assign({},t[s][1].start),end:Object.assign({},t[o][1].end)},h={type:"labelText",start:Object.assign({},t[s+r+2][1].end),end:Object.assign({},t[o-2][1].start)};return l=[["enter",u,e],["enter",c,e]],l=Oe(l,t.slice(s+1,s+r+3)),l=Oe(l,[["enter",h,e]]),l=Oe(l,Gr(e.parser.constructs.insideSpan.null,t.slice(s+r+4,o-3),e)),l=Oe(l,[["exit",h,e],t[o-2],t[o-1],["exit",c,e]]),l=Oe(l,t.slice(o+1)),l=Oe(l,[["exit",u,e]]),Le(t,s,t.length,l),t}a(Tv,"resolveToLabelEnd");function Iv(t,e,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return l;function l(p){return s?s._inactive?f(p):(o=r.parser.defined.includes(ze(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),u):n(p)}function u(p){return p===40?t.attempt(Nv,h,o?h:f)(p):p===91?t.attempt(Av,h,o?c:f)(p):o?h(p):f(p)}function c(p){return t.attempt(Ev,h,f)(p)}function h(p){return e(p)}function f(p){return s._balanced=!0,n(p)}}a(Iv,"tokenizeLabelEnd");function Lv(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return W(f)?Dn(t,s)(f):s(f)}function s(f){return f===41?h(f):Tc(t,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return W(f)?Dn(t,u)(f):h(f)}function l(f){return n(f)}function u(f){return f===34||f===39||f===40?Lc(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function c(f){return W(f)?Dn(t,h)(f):h(f)}function h(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}a(Lv,"tokenizeResource");function Ov(t,e,n){const r=this;return i;function i(l){return Ic.call(r,t,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return r.parser.defined.includes(ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(l):n(l)}function o(l){return n(l)}}a(Ov,"tokenizeReferenceFull");function Pv(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}a(Pv,"tokenizeReferenceCollapsed");const Rv={name:"labelStartImage",tokenize:Dv,resolveAll:Ks.resolveAll};function Dv(t,e,n){const r=this;return i;function i(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),s}function s(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):e(l)}}a(Dv,"tokenizeLabelStartImage");const Fv={name:"labelStartLink",tokenize:Mv,resolveAll:Ks.resolveAll};function Mv(t,e,n){const r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}a(Mv,"tokenizeLabelStartLink");const Ys={name:"lineEnding",tokenize:$v};function $v(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),j(t,e,"linePrefix")}}a($v,"tokenizeLineEnding");const Vr={name:"thematicBreak",tokenize:Bv};function Bv(t,e,n){let r=0,i;return s;function s(c){return t.enter("thematicBreak"),o(c)}function o(c){return i=c,l(c)}function l(c){return c===i?(t.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||F(c))?(t.exit("thematicBreak"),e(c)):n(c)}function u(c){return c===i?(t.consume(c),r++,u):(t.exit("thematicBreakSequence"),q(c)?j(t,l,"whitespace")(c):l(c))}}a(Bv,"tokenizeThematicBreak");const Se={name:"list",tokenize:jv,continuation:{tokenize:Uv},exit:Vv},qv={tokenize:Hv,partial:!0},zv={tokenize:Gv,partial:!0};function jv(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Ii(d)){if(r.containerState.type||(r.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),d===42||d===45?t.check(Vr,n,c)(d):c(d);if(!r.interrupt||d===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(d)}return n(d)}function u(d){return Ii(d)&&++o<10?(t.consume(d),u):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(t.exit("listItemValue"),c(d)):n(d)}function c(d){return t.enter("listItemMarker"),t.consume(d),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,t.check(Pn,r.interrupt?n:h,t.attempt(qv,p,f))}function h(d){return r.containerState.initialBlankLine=!0,s++,p(d)}function f(d){return q(d)?(t.enter("listItemPrefixWhitespace"),t.consume(d),t.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(d)}}a(jv,"tokenizeListStart");function Uv(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Pn,i,s);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(t,e,"listItemIndent",r.containerState.size+1)(l)}a(i,"onBlank");function s(l){return r.containerState.furtherBlankLines||!q(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(zv,e,o)(l))}a(s,"notBlank");function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(t,t.attempt(Se,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}a(o,"notInCurrentItem")}a(Uv,"tokenizeListContinuation");function Gv(t,e,n){const r=this;return j(t,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(s):n(s)}}a(Gv,"tokenizeIndent$1");function Vv(t){t.exit(this.containerState.type)}a(Vv,"tokenizeListEnd");function Hv(t,e,n){const r=this;return j(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!q(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}a(Hv,"tokenizeListItemPrefixWhitespace");const Pc={name:"setextUnderline",tokenize:Kv,resolveTo:Wv};function Wv(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",o,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end=Object.assign({},t[s][1].end)):t[r][1]=o,t.push(["exit",o,e]),t}a(Wv,"resolveToSetextUnderline");function Kv(t,e,n){const r=this;let i;return s;function s(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return t.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===i?(t.consume(c),l):(t.exit("setextHeadingLineSequence"),q(c)?j(t,u,"lineSuffix")(c):u(c))}function u(c){return c===null||F(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}a(Kv,"tokenizeSetextUnderline");const Yv={tokenize:rC,partial:!0};function Qv(){return{document:{91:{tokenize:eC,continuation:{tokenize:tC},exit:nC}},text:{91:{tokenize:Zv},93:{add:"after",tokenize:Jv,resolveTo:Xv}}}}a(Qv,"gfmFootnote");function Jv(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!o||!o._balanced)return n(u);const c=ze(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}a(Jv,"tokenizePotentialGfmFootnoteCall");function Xv(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...l),t}a(Xv,"resolveToPotentialGfmFootnoteCall");function Zv(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return l;function l(f){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(t.enter("gfmFootnoteCallMarker"),t.consume(f),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(f){if(s>999||f===93&&!o||f===null||f===91||W(f))return n(f);if(f===93){t.exit("chunkString");const p=t.exit("gfmFootnoteCallString");return i.includes(ze(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(f)}return W(f)||(o=!0),s++,t.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(t.consume(f),s++,c):c(f)}}a(Zv,"tokenizeGfmFootnoteCall");function eC(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,l;return u;function u(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",h):n(m)}function h(m){if(o>999||m===93&&!l||m===null||m===91||W(m))return n(m);if(m===93){t.exit("chunkString");const g=t.exit("gfmFootnoteDefinitionLabelString");return s=ze(r.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return W(m)||(l=!0),o++,t.consume(m),m===92?f:h}function f(m){return m===91||m===92||m===93?(t.consume(m),o++,h):h(m)}function p(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),i.includes(s)||i.push(s),j(t,d,"gfmFootnoteDefinitionWhitespace")):n(m)}function d(m){return e(m)}}a(eC,"tokenizeDefinitionStart");function tC(t,e,n){return t.check(Pn,e,t.attempt(Yv,e,n))}a(tC,"tokenizeDefinitionContinuation");function nC(t){t.exit("gfmFootnoteDefinition")}a(nC,"gfmFootnoteDefinitionEnd");function rC(t,e,n){const r=this;return j(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}a(rC,"tokenizeIndent");function iC(t){let n=(t||{}).singleTilde;const r={tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,l){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let c=u;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[u][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[u][1].end)},f={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[u][1].start)},p=[["enter",h,l],["enter",o[c][1],l],["exit",o[c][1],l],["enter",f,l]],d=l.parser.constructs.insideSpan.null;d&&Le(p,p.length,0,Gr(d,o.slice(c+1,u),l)),Le(p,p.length,0,[["exit",f,l],["enter",o[u][1],l],["exit",o[u][1],l],["exit",h,l]]),Le(o,c-1,u-c+3,p),u=c+p.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}a(i,"resolveAllStrikethrough");function s(o,l,u){const c=this.previous,h=this.events;let f=0;return p;function p(m){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(m):(o.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const g=Ur(c);if(m===126)return f>1?u(m):(o.consume(m),f++,d);if(f<2&&!n)return u(m);const y=o.exit("strikethroughSequenceTemporary"),k=Ur(m);return y._open=!k||k===2&&!!g,y._close=!g||g===2&&!!k,l(m)}}a(s,"tokenizeStrikethrough")}a(iC,"gfmStrikethrough");class sC{static{a(this,"EditMap")}constructor(){this.map=[]}add(e,n,r){oC(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let i=r.pop();for(;i;)e.push(...i),i=r.pop();this.map.length=0}}function oC(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}a(oC,"addImpl");function aC(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}a(aC,"gfmTableAlign");function lC(){return{flow:{null:{tokenize:uC,resolveAll:cC}}}}a(lC,"gfmTable");function uC(t,e,n){const r=this;let i=0,s=0,o;return l;function l(E){let P=r.events.length-1;for(;P>-1;){const K=r.events[P][1].type;if(K==="lineEnding"||K==="linePrefix")P--;else break}const O=P>-1?r.events[P][1].type:null,V=O==="tableHead"||O==="tableRow"?w:u;return V===w&&r.parser.lazy[r.now().line]?n(E):V(E)}function u(E){return t.enter("tableHead"),t.enter("tableRow"),c(E)}function c(E){return E===124||(o=!0,s+=1),h(E)}function h(E){return E===null?n(E):F(E)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),d):n(E):q(E)?j(t,h,"whitespace")(E):(s+=1,o&&(o=!1,i+=1),E===124?(t.enter("tableCellDivider"),t.consume(E),t.exit("tableCellDivider"),o=!0,h):(t.enter("data"),f(E)))}function f(E){return E===null||E===124||W(E)?(t.exit("data"),h(E)):(t.consume(E),E===92?p:f)}function p(E){return E===92||E===124?(t.consume(E),f):f(E)}function d(E){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(E):(t.enter("tableDelimiterRow"),o=!1,q(E)?j(t,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):m(E))}function m(E){return E===45||E===58?y(E):E===124?(o=!0,t.enter("tableCellDivider"),t.consume(E),t.exit("tableCellDivider"),g):C(E)}function g(E){return q(E)?j(t,y,"whitespace")(E):y(E)}function y(E){return E===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(E),t.exit("tableDelimiterMarker"),k):E===45?(s+=1,k(E)):E===null||F(E)?N(E):C(E)}function k(E){return E===45?(t.enter("tableDelimiterFiller"),b(E)):C(E)}function b(E){return E===45?(t.consume(E),b):E===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(E),t.exit("tableDelimiterMarker"),S):(t.exit("tableDelimiterFiller"),S(E))}function S(E){return q(E)?j(t,N,"whitespace")(E):N(E)}function N(E){return E===124?m(E):E===null||F(E)?!o||i!==s?C(E):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(E)):C(E)}function C(E){return n(E)}function w(E){return t.enter("tableRow"),A(E)}function A(E){return E===124?(t.enter("tableCellDivider"),t.consume(E),t.exit("tableCellDivider"),A):E===null||F(E)?(t.exit("tableRow"),e(E)):q(E)?j(t,A,"whitespace")(E):(t.enter("data"),_(E))}function _(E){return E===null||E===124||W(E)?(t.exit("data"),A(E)):(t.consume(E),E===92?R:_)}function R(E){return E===92||E===124?(t.consume(E),_):_(E)}}a(uC,"tokenizeTable");function cC(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,u=0,c,h,f;const p=new sC;for(;++n<t.length;){const d=t[n],m=d[1];d[0]==="enter"?m.type==="tableHead"?(l=!1,u!==0&&(Rc(p,e,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",c,e]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",h,e]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=Hr(p,e,s,i,void 0,f),s=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],f=Hr(p,e,s,i,void 0,f)),s=o,o=[s[1],n,0,0])):m.type==="tableHead"?(l=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,s[1]!==0?(o[0]=o[1],f=Hr(p,e,s,i,n,f)):o[1]!==0&&(f=Hr(p,e,o,i,n,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&Rc(p,e,u,c,h),p.consume(e.events),n=-1;++n<e.events.length;){const d=e.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=aC(e.events,n))}return t}a(cC,"resolveTable");function Hr(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},nn(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const u=nn(e.events,n[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const c=nn(e.events,n[2]),h=nn(e.events,n[3]),f={type:l,start:Object.assign({},c),end:Object.assign({},h)};if(t.add(n[2],0,[["enter",f,e]]),r!==2){const p=e.events[n[2]],d=e.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;t.add(m,g,[])}}t.add(n[3]+1,0,[["exit",f,e]])}return i!==void 0&&(s.end=Object.assign({},nn(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}a(Hr,"flushCell");function Rc(t,e,n,r,i){const s=[],o=nn(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}a(Rc,"flushTableEnd");function nn(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}a(nn,"getPoint");const fC={tokenize:pC};function hC(){return{text:{91:fC}}}a(hC,"gfmTaskListItem");function pC(t,e,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),s)}function s(u){return W(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):n(u)}function l(u){return F(u)?e(u):q(u)?t.check({tokenize:dC},e,n)(u):n(u)}}a(pC,"tokenizeTasklistCheck");function dC(t,e,n){return j(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}a(dC,"spaceThenNonSpace");function mC(t){return pc([Nx(),Qv(),iC(t),lC(),hC()])}a(mC,"gfm");const gC={};function yC(t){const e=this,n=t||gC,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(mC(n)),s.push(kx()),o.push(wx(n))}a(yC,"remarkGfm");const Qs={classNameMaps:{block:"admonition",title:"admonition-title"},titleFilter:["[!NOTE]","[!IMPORTANT]","[!WARNING]","[!TIP]","[!CAUTION]"],titleTextMap:t=>({displayTitle:t.substring(2,t.length-1),checkedTitle:t.substring(2,t.length-1)}),dataMaps:{block:t=>t,title:t=>t},titleKeepTrailingWhitespaces:!1,legacyTitle:!1},bC={...Qs,titleFilter:["Note","Warning"],titleTextMap:t=>({displayTitle:t,checkedTitle:t}),legacyTitle:!1,titleLift:!1,titleLiftWhitespaces:()=>"",titleUnwrap:!1};function Fn(t){return e=>{const n=typeof t=="function"?t(e):t;return typeof n=="object"?n.join(" "):n}}a(Fn,"classNameMap");function Js(t){return e=>typeof t=="function"?t(e):t.includes(e)}a(Js,"nameFilter");const kC=a(t=>e=>{if(e.type!="blockquote")return;const n=e;if(n.children.length<=0||n.children[0].type!="paragraph")return;const r=n.children[0];if(r.children.length<=0||r.children[0].type!="strong")return;const i=r.children[0];if(i.children.length!=1||i.children[0].type!="text")return;const s=i.children[0],o=s.value;if(!Js(t.titleFilter)(o))return;const{displayTitle:l,checkedTitle:u}=t.titleTextMap(o);if(s.value=l,n.data=t.dataMaps.block({...n.data,hProperties:{className:Fn(t.classNameMaps.block)(u)}}),i.data=t.dataMaps.title({...i.data,hProperties:{className:Fn(t.classNameMaps.title)(u)}}),t.titleLift){const c=r.children.splice(0,1)[0];let h;t.titleUnwrap?h={type:"paragraph",children:[{type:"text",value:l}],data:t.dataMaps.title({hProperties:{className:Fn(t.classNameMaps.title)(u)}})}:h={type:"paragraph",children:[c]},n.children.unshift(h);const f=r;if(f.children.length>0&&f.children[0].type=="text"){const p=f.children[0],m=/^[ \t\n\v\f\r]*/.exec(p.value),g=m?m[0]:"";p.value=t.titleLiftWhitespaces(g)+p.value.slice(g.length)}}},"handleNode$1"),wC=a(function(...t){const e=t.reduce((r,i)=>({...r,...i}),{}),n=e?.legacyTitle??Qs.legacyTitle;return r=>{oe(r,n?kC({...bC,...e}):SC({...Qs,...e}))}},"plugin"),SC=a(t=>e=>{if(e.type!="blockquote")return;const n=e;if(n.children[0]?.type!="paragraph")return;const r=n.children[0];if(r.children[0]?.type!="text")return;const i=r.children[0];let s;const o=i.value.indexOf(`
215
+ `);if(o<0){if(r.children.length>1)if(r.children.at(1)?.type=="break")r.children.splice(1,1);else return;if(s=i.value,!Js(t.titleFilter)(s))return;r.children.shift()}else{const f=i.value.substring(o+1);s=i.value.substring(0,o);const p=/[ \t\v\f\r]+$/.exec(s);if(p&&!t.titleKeepTrailingWhitespaces&&(s=s.substring(0,s.length-p[0].length)),!Js(t.titleFilter)(s))return;i.value=f}const{displayTitle:l,checkedTitle:u}=t.titleTextMap(s),h={type:"paragraph",children:[{type:"text",value:l}],data:t.dataMaps.title({hProperties:{className:Fn(t.classNameMaps.title)(u)}})};n.children.unshift(h),n.data=t.dataMaps.block({...n.data,hProperties:{className:Fn(t.classNameMaps.block)(u)},hName:"div"})},"handleNode");function xC(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:s},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:l,mathText:o,mathTextData:l}};function t(u){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},u)}function e(){this.buffer()}function n(){const u=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=c;const f=h.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function s(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function o(u){const c=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(u),h.value=c,h.data.hChildren.push({type:"text",value:c})}function l(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}a(xC,"mathFromMarkdown");function vC(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
216
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(s,o,l,u){const c=s.value||"",h=l.createTracker(u),f="$".repeat(Math.max(Ku(c,"$")+1,2)),p=l.enter("mathFlow");let d=h.move(f);if(s.meta){const m=l.enter("mathFlowMeta");d+=h.move(l.safe(s.meta,{after:`
217
+ `,before:d,encode:["$"],...h.current()})),m()}return d+=h.move(`
218
+ `),c&&(d+=h.move(c+`
219
+ `)),d+=h.move(f),p(),d}a(n,"math");function r(s,o,l){let u=s.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(u);)c++;const h="$".repeat(c);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let f=-1;for(;++f<l.unsafe.length;){const p=l.unsafe[f];if(!p.atBreak)continue;const d=l.compilePattern(p);let m;for(;m=d.exec(u);){let g=m.index;u.codePointAt(g)===10&&u.codePointAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(m.index+1)}}return h+u+h}a(r,"inlineMath");function i(){return"$"}a(i,"inlineMathPeek")}a(vC,"mathToMarkdown");const CC={tokenize:NC,concrete:!0},Dc={tokenize:AC,partial:!0};function NC(t,e,n){const r=this,i=r.events[r.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return l;function l(b){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),u(b)}function u(b){return b===36?(t.consume(b),o++,u):o<2?n(b):(t.exit("mathFlowFenceSequence"),j(t,c,"whitespace")(b))}function c(b){return b===null||F(b)?f(b):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||F(b)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),f(b)):b===36?n(b):(t.consume(b),h)}function f(b){return t.exit("mathFlowFence"),r.interrupt?e(b):t.attempt(Dc,p,y)(b)}function p(b){return t.attempt({tokenize:k,partial:!0},y,d)(b)}function d(b){return(s?j(t,m,"linePrefix",s+1):m)(b)}function m(b){return b===null?y(b):F(b)?t.attempt(Dc,p,y)(b):(t.enter("mathFlowValue"),g(b))}function g(b){return b===null||F(b)?(t.exit("mathFlowValue"),m(b)):(t.consume(b),g)}function y(b){return t.exit("mathFlow"),e(b)}function k(b,S,N){let C=0;return j(b,w,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function w(R){return b.enter("mathFlowFence"),b.enter("mathFlowFenceSequence"),A(R)}function A(R){return R===36?(C++,b.consume(R),A):C<o?N(R):(b.exit("mathFlowFenceSequence"),j(b,_,"whitespace")(R))}function _(R){return R===null||F(R)?(b.exit("mathFlowFence"),S(R)):N(R)}}}a(NC,"tokenizeMathFenced");function AC(t,e,n){const r=this;return i;function i(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):e(o)}}a(AC,"tokenizeNonLazyContinuation");function EC(t){let n=(t||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:_C,previous:TC};function r(i,s,o){let l=0,u,c;return h;function h(g){return i.enter("mathText"),i.enter("mathTextSequence"),f(g)}function f(g){return g===36?(i.consume(g),l++,f):l<2&&!n?o(g):(i.exit("mathTextSequence"),p(g))}function p(g){return g===null?o(g):g===36?(c=i.enter("mathTextSequence"),u=0,m(g)):g===32?(i.enter("space"),i.consume(g),i.exit("space"),p):F(g)?(i.enter("lineEnding"),i.consume(g),i.exit("lineEnding"),p):(i.enter("mathTextData"),d(g))}function d(g){return g===null||g===32||g===36||F(g)?(i.exit("mathTextData"),p(g)):(i.consume(g),d)}function m(g){return g===36?(i.consume(g),u++,m):u===l?(i.exit("mathTextSequence"),i.exit("mathText"),s(g)):(c.type="mathTextData",d(g))}}a(r,"tokenizeMathText")}a(EC,"mathText");function _C(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[n][1].type="mathTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="mathTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}a(_C,"resolveMathText");function TC(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}a(TC,"previous");function IC(t){return{flow:{36:CC},text:{36:EC(t)}}}a(IC,"math");const LC={};function OC(t){const e=this,n=t||LC,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(IC(n)),s.push(xC()),o.push(vC(n))}a(OC,"remarkMath");const PC={tokenize:RC};function RC(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),j(t,e,"linePrefix")}function i(l){return t.enter("paragraph"),s(l)}function s(l){const u=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(l)}function o(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return F(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),o)}}a(RC,"initializeContent");const DC={tokenize:FC},Fc={tokenize:MC};function FC(t){const e=this,n=[];let r=0,i,s,o;return l;function l(S){if(r<n.length){const N=n[r];return e.containerState=N[1],t.attempt(N[0].continuation,u,c)(S)}return c(S)}function u(S){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&b();const N=e.events.length;let C=N,w;for(;C--;)if(e.events[C][0]==="exit"&&e.events[C][1].type==="chunkFlow"){w=e.events[C][1].end;break}k(r);let A=N;for(;A<e.events.length;)e.events[A][1].end=Object.assign({},w),A++;return Le(e.events,C+1,0,e.events.slice(N)),e.events.length=A,c(S)}return l(S)}function c(S){if(r===n.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return m(S);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Fc,h,f)(S)}function h(S){return i&&b(),k(r),p(S)}function f(S){return e.parser.lazy[e.now().line]=r!==n.length,o=e.now().offset,m(S)}function p(S){return e.containerState={},t.attempt(Fc,d,m)(S)}function d(S){return r++,n.push([e.currentConstruct,e.containerState]),p(S)}function m(S){if(S===null){i&&b(),k(0),t.consume(S);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),g(S)}function g(S){if(S===null){y(t.exit("chunkFlow"),!0),k(0),t.consume(S);return}return F(S)?(t.consume(S),y(t.exit("chunkFlow")),r=0,e.interrupt=void 0,l):(t.consume(S),g)}function y(S,N){const C=e.sliceStream(S);if(N&&C.push(null),S.previous=s,s&&(s.next=S),s=S,i.defineSkip(S.start),i.write(C),e.parser.lazy[S.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const A=e.events.length;let _=A,R,E;for(;_--;)if(e.events[_][0]==="exit"&&e.events[_][1].type==="chunkFlow"){if(R){E=e.events[_][1].end;break}R=!0}for(k(r),w=A;w<e.events.length;)e.events[w][1].end=Object.assign({},E),w++;Le(e.events,_+1,0,e.events.slice(A)),e.events.length=w}}function k(S){let N=n.length;for(;N-- >S;){const C=n[N];e.containerState=C[1],C[0].exit.call(e,t)}n.length=S}function b(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}a(FC,"initializeDocument");function MC(t,e,n){return j(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}a(MC,"tokenizeContainer");const $C={tokenize:BC};function BC(t){const e=this,n=t.attempt(Pn,r,t.attempt(this.parser.constructs.flowInitial,i,j(t,t.attempt(this.parser.constructs.flow,i,t.attempt(tv,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}a(BC,"initializeFlow");const qC={resolveAll:$c()},zC=Mc("string"),jC=Mc("text");function Mc(t){return{tokenize:e,resolveAll:$c(t==="text"?UC:void 0)};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,o,l);return o;function o(h){return c(h)?s(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),u}function u(h){return c(h)?(n.exit("data"),s(h)):(n.consume(h),u)}function c(h){if(h===null)return!0;const f=i[h];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}a(Mc,"initializeFactory");function $c(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}a($c,"createResolver");function UC(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,o=-1,l=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(l){const c={type:n===t.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+s,_bufferIndex:s?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}a(UC,"resolveAllLineSuffixes");function GC(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let o=[],l=[];const u={consume:b,enter:S,exit:N,attempt:A(C),check:A(w),interrupt:A(w,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:d,sliceSerialize:p,now:m,defineSkip:g,write:f};let h=e.tokenize.call(c,u);return e.resolveAll&&s.push(e),c;function f(P){return o=Oe(o,P),y(),o[o.length-1]!==null?[]:(_(e,0),c.events=Gr(s,c.events,c),c.events)}a(f,"write");function p(P,O){return HC(d(P),O)}a(p,"sliceSerialize");function d(P){return VC(o,P)}a(d,"sliceStream");function m(){const{line:P,column:O,offset:V,_index:K,_bufferIndex:G}=r;return{line:P,column:O,offset:V,_index:K,_bufferIndex:G}}a(m,"now");function g(P){i[P.line]=P.column,E()}a(g,"defineSkip");function y(){let P;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<O.length;)k(O.charCodeAt(r._bufferIndex));else k(O)}}a(y,"main");function k(P){h=h(P)}a(k,"go");function b(P){F(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,E()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=P}a(b,"consume");function S(P,O){const V=O||{};return V.type=P,V.start=m(),c.events.push(["enter",V,c]),l.push(V),V}a(S,"enter");function N(P){const O=l.pop();return O.end=m(),c.events.push(["exit",O,c]),O}a(N,"exit");function C(P,O){_(P,O.from)}a(C,"onsuccessfulconstruct");function w(P,O){O.restore()}a(w,"onsuccessfulcheck");function A(P,O){return V;function V(K,G,de){let ce,Re,We,x;return Array.isArray(K)?Ke(K):"tokenize"in K?Ke([K]):De(K);function De(fe){return an;function an(nt){const Tt=nt!==null&&fe[nt],It=nt!==null&&fe.null,qn=[...Array.isArray(Tt)?Tt:Tt?[Tt]:[],...Array.isArray(It)?It:It?[It]:[]];return Ke(qn)(nt)}}function Ke(fe){return ce=fe,Re=0,fe.length===0?de:v(fe[Re])}function v(fe){return an;function an(nt){return x=R(),We=fe,fe.partial||(c.currentConstruct=fe),fe.name&&c.parser.constructs.disable.null.includes(fe.name)?ct():fe.tokenize.call(O?Object.assign(Object.create(c),O):c,u,Fe,ct)(nt)}}function Fe(fe){return P(We,x),G}function ct(fe){return x.restore(),++Re<ce.length?v(ce[Re]):de}}}a(A,"constructFactory");function _(P,O){P.resolveAll&&!s.includes(P)&&s.push(P),P.resolve&&Le(c.events,O,c.events.length-O,P.resolve(c.events.slice(O),c)),P.resolveTo&&(c.events=P.resolveTo(c.events,c))}a(_,"addResult");function R(){const P=m(),O=c.previous,V=c.currentConstruct,K=c.events.length,G=Array.from(l);return{restore:de,from:K};function de(){r=P,c.previous=O,c.currentConstruct=V,c.events.length=K,l=G,E()}}a(R,"store");function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}a(E,"accountForPotentialSkip")}a(GC,"createTokenizer");function VC(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let o;if(n===i)o=[t[n].slice(r,s)];else{if(o=t.slice(n,i),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}s>0&&o.push(t[i].slice(0,s))}return o}a(VC,"sliceChunks");function HC(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
220
+ `;break}case-3:{o=`\r
221
+ `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}a(HC,"serializeChunks");const WC={42:Se,43:Se,45:Se,48:Se,49:Se,50:Se,51:Se,52:Se,53:Se,54:Se,55:Se,56:Se,57:Se,62:vc},KC={91:ov},YC={[-2]:Ws,[-1]:Ws,32:Ws},QC={35:hv,42:Vr,45:[Pc,Vr],60:gv,61:Pc,95:Vr,96:Ec,126:Ec},JC={38:Nc,92:Cc},XC={[-5]:Ys,[-4]:Ys,[-3]:Ys,33:Rv,38:Nc,42:Hs,60:[Fx,vv],91:Fv,92:[cv,Cc],93:Ks,95:Hs,96:Yx},ZC={null:[Hs,qC]},eN={null:[42,95]},tN={null:[]};var nN=Object.freeze({__proto__:null,attentionMarkers:eN,contentInitial:KC,disable:tN,document:WC,flow:QC,flowInitial:YC,insideSpan:ZC,string:JC,text:XC});function rN(t){const n=pc([nN,...(t||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(PC),document:i(DC),flow:i($C),string:i(zC),text:i(jC)};return r;function i(s){return o;function o(l){return GC(r,s,l)}}}a(rN,"parse");function iN(t){for(;!_c(t););return t}a(iN,"postprocess");const Bc=/[\0\t\n\r]/g;function sN(){let t=1,e="",n=!0,r;return i;function i(s,o,l){const u=[];let c,h,f,p,d;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,e="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Bc.lastIndex=f,c=Bc.exec(s),p=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(p),!c){e=s.slice(f);break}if(d===10&&f===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<p&&(u.push(s.slice(f,p)),t+=p-f),d){case 0:{u.push(65533),t++;break}case 9:{for(h=Math.ceil(t/4)*4,u.push(-2);t++<h;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:r=!0,t=1}f=p+1}return l&&(r&&u.push(-5),e&&u.push(e),u.push(null)),u}}a(sN,"preprocess");const qc={}.hasOwnProperty;function oN(t,e,n){return typeof e!="string"&&(n=e,e=void 0),aN(n)(iN(rN(n).document().write(sN()(t,e,!0))))}a(oN,"fromMarkdown");function aN(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(so),autolinkProtocol:R,autolinkEmail:R,atxHeading:s(no),blockQuote:s(It),characterEscape:R,characterReference:R,codeFenced:s(qn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(qn,o),codeText:s(Qc,o),codeTextData:R,data:R,codeFlowValue:R,definition:s(Jc),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Xc),hardBreakEscape:s(ro),hardBreakTrailing:s(ro),htmlFlow:s(io,o),htmlFlowData:R,htmlText:s(io,o),htmlTextData:R,image:s(Zc),label:o,link:s(so),listItem:s(ef),listItemValue:p,listOrdered:s(oo,f),listUnordered:s(oo),paragraph:s(tf),reference:v,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(no),strong:s(nf),thematicBreak:s(sf)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:Tt,autolinkProtocol:nt,blockQuote:u(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ct,characterReferenceMarkerNumeric:ct,characterReferenceValue:fe,characterReference:an,codeFenced:u(y),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:u(k),codeText:u(G),codeTextData:E,data:E,definition:u(),definitionDestinationString:N,definitionLabelString:b,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(O),hardBreakTrailing:u(O),htmlFlow:u(V),htmlFlowData:E,htmlText:u(K),htmlTextData:E,image:u(ce),label:We,labelText:Re,lineEnding:P,link:u(de),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Fe,resourceDestinationString:x,resourceTitleString:De,resource:Ke,setextHeading:u(_),setextHeadingLineSequence:A,setextHeadingText:w,strong:u(),thematicBreak:u()}};zc(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(T){let D={type:"root",children:[]};const M={stack:[D],tokenStack:[],config:e,enter:l,exit:c,buffer:o,resume:h,data:n},U=[];let H=-1;for(;++H<T.length;)if(T[H][1].type==="listOrdered"||T[H][1].type==="listUnordered")if(T[H][0]==="enter")U.push(H);else{const Me=U.pop();H=i(T,Me,H)}for(H=-1;++H<T.length;){const Me=e[T[H][0]];qc.call(Me,T[H][1].type)&&Me[T[H][1].type].call(Object.assign({sliceSerialize:T[H][2].sliceSerialize},M),T[H][1])}if(M.tokenStack.length>0){const Me=M.tokenStack[M.tokenStack.length-1];(Me[1]||jc).call(M,void 0,Me[0])}for(D.position={start:lt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:lt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<e.transforms.length;)D=e.transforms[H](D)||D;return D}function i(T,D,M){let U=D-1,H=-1,Me=!1,ft,Ye,ln,un;for(;++U<=M;){const xe=T[U];switch(xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xe[0]==="enter"?H++:H--,un=void 0;break}case"lineEndingBlank":{xe[0]==="enter"&&(ft&&!un&&!H&&!ln&&(ln=U),un=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:un=void 0}if(!H&&xe[0]==="enter"&&xe[1].type==="listItemPrefix"||H===-1&&xe[0]==="exit"&&(xe[1].type==="listUnordered"||xe[1].type==="listOrdered")){if(ft){let Lt=U;for(Ye=void 0;Lt--;){const Qe=T[Lt];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;Ye&&(T[Ye][1].type="lineEndingBlank",Me=!0),Qe[1].type="lineEnding",Ye=Lt}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}ln&&(!Ye||ln<Ye)&&(ft._spread=!0),ft.end=Object.assign({},Ye?T[Ye][1].start:xe[1].end),T.splice(Ye||U,0,["exit",ft,xe[2]]),U++,M++}if(xe[1].type==="listItemPrefix"){const Lt={type:"listItem",_spread:!1,start:Object.assign({},xe[1].start),end:void 0};ft=Lt,T.splice(U,0,["enter",Lt,xe[2]]),U++,M++,ln=void 0,un=!0}}}return T[D][1]._spread=Me,M}function s(T,D){return M;function M(U){l.call(this,T(U),U),D&&D.call(this,U)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(T,D,M){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([D,M]),T.position={start:lt(D.start),end:void 0}}function u(T){return D;function D(M){T&&T.call(this,M),c.call(this,M)}}function c(T,D){const M=this.stack.pop(),U=this.tokenStack.pop();if(U)U[0].type!==T.type&&(D?D.call(this,T,U[0]):(U[1]||jc).call(this,T,U[0]));else throw new Error("Cannot close `"+T.type+"` ("+bn({start:T.start,end:T.end})+"): it\u2019s not open");M.position.end=lt(T.end)}function h(){return qs(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(T){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),D=this.stack[this.stack.length-1];D.lang=T}function m(){const T=this.resume(),D=this.stack[this.stack.length-1];D.meta=T}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T.replace(/(\r?\n|\r)$/g,"")}function b(T){const D=this.resume(),M=this.stack[this.stack.length-1];M.label=D,M.identifier=ze(this.sliceSerialize(T)).toLowerCase()}function S(){const T=this.resume(),D=this.stack[this.stack.length-1];D.title=T}function N(){const T=this.resume(),D=this.stack[this.stack.length-1];D.url=T}function C(T){const D=this.stack[this.stack.length-1];if(!D.depth){const M=this.sliceSerialize(T).length;D.depth=M}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function A(T){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function R(T){const M=this.stack[this.stack.length-1].children;let U=M[M.length-1];(!U||U.type!=="text")&&(U=rf(),U.position={start:lt(T.start),end:void 0},M.push(U)),this.stack.push(U)}function E(T){const D=this.stack.pop();D.value+=this.sliceSerialize(T),D.position.end=lt(T.end)}function P(T){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const M=D.children[D.children.length-1];M.position.end=lt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(D.type)&&(R.call(this,T),E.call(this,T))}function O(){this.data.atHardBreak=!0}function V(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function K(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function G(){const T=this.resume(),D=this.stack[this.stack.length-1];D.value=T}function de(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=D,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function ce(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=D,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Re(T){const D=this.sliceSerialize(T),M=this.stack[this.stack.length-2];M.label=ox(D),M.identifier=ze(D).toLowerCase()}function We(){const T=this.stack[this.stack.length-1],D=this.resume(),M=this.stack[this.stack.length-1];if(this.data.inReference=!0,M.type==="link"){const U=T.children;M.children=U}else M.alt=D}function x(){const T=this.resume(),D=this.stack[this.stack.length-1];D.url=T}function De(){const T=this.resume(),D=this.stack[this.stack.length-1];D.title=T}function Ke(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function Fe(T){const D=this.resume(),M=this.stack[this.stack.length-1];M.label=D,M.identifier=ze(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ct(T){this.data.characterReferenceType=T.type}function fe(T){const D=this.sliceSerialize(T),M=this.data.characterReferenceType;let U;M?(U=uc(D,M==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):U=js(D);const H=this.stack[this.stack.length-1];H.value+=U}function an(T){const D=this.stack.pop();D.position.end=lt(T.end)}function nt(T){E.call(this,T);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(T)}function Tt(T){E.call(this,T);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(T)}function It(){return{type:"blockquote",children:[]}}function qn(){return{type:"code",lang:null,meta:null,value:""}}function Qc(){return{type:"inlineCode",value:""}}function Jc(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xc(){return{type:"emphasis",children:[]}}function no(){return{type:"heading",depth:0,children:[]}}function ro(){return{type:"break"}}function io(){return{type:"html",value:""}}function Zc(){return{type:"image",title:null,url:"",alt:null}}function so(){return{type:"link",title:null,url:"",children:[]}}function oo(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function ef(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function tf(){return{type:"paragraph",children:[]}}function nf(){return{type:"strong",children:[]}}function rf(){return{type:"text",value:""}}function sf(){return{type:"thematicBreak"}}}a(aN,"compiler");function lt(t){return{line:t.line,column:t.column,offset:t.offset}}a(lt,"point");function zc(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?zc(t,r):lN(t,r)}}a(zc,"configure");function lN(t,e){let n;for(n in e)if(qc.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}a(lN,"extension");function jc(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+bn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+bn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+bn({start:e.start,end:e.end})+") is still open")}a(jc,"defaultOnError");function uN(t){const e=this;e.parser=n;function n(r){return oN(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}a(n,"parser")}a(uN,"remarkParse");async function cN(t,e){const{obsidianVault:n}=e??{},r=Gi().use(uN).use(q1,[{anywhere:!1,marker:"-",type:"yaml"}]).use(yC,{singleTilde:!1}).use(OC).use(wC).use(d1,{toLink(i){return{title:i.alias??i.value,uri:n?`obsidian://open?vault=Vault&file=${encodeURIComponent(i.value)}.md`:i.value,value:i.alias??i.value}}}).use(E1);return r.run(r.parse(t))}a(cN,"getAstFromMarkdown");function fN(t,e){return oe(t,e,(n,r,i)=>{if(i&&r!==void 0)return i.children.splice(r,1),Je}),t}a(fN,"deleteFirstNodeOfType");function hN(t){let e=1;return oe(t,"delete",(n,r,i)=>{if(i===void 0||r===void 0||!("children"in n))return it;const s=n.children.at(-1),o=n.children.length>1&&s?.type==="emphasis"?[X("text",`{{c${e}::`),...n.children.slice(0,-1),X("text","::"),...n.children.slice(-1),X("text","}}")]:[X("text",`{{c${e}::`),...n.children,X("text","}}")];i.children.splice(r,1,...o),e+=1}),t}a(hN,"replaceDeleteNodesWithClozeMarkup");function Uc(t){let e,n=!1;if(oe(t,"thematicBreak",(s,o,l)=>o===void 0||l===void 0?it:(e=o,l.children[o+1]?.type==="thematicBreak"&&(n=!0),Je)),e===void 0)return[t,void 0];const r={children:t.children.slice(0,e),type:"root"},i={children:t.children.slice(e+(n?2:1)),type:"root"};return[r,i]}a(Uc,"splitTreeAtThematicBreak");function pN(t){let e;if(oe(t,r=>{if(r.type==="thematicBreak")return e=void 0,Je;if(r.type==="delete")return e="Yanki - Cloze",Je}),e!==void 0)return e;if(!mN(t)&&gN(t))return"Yanki - Basic (type in the answer)";let n;return oe(t,"thematicBreak",(r,i,s)=>{if(s===null||i===null)return it;e=n?.type==="thematicBreak"&&r.type==="thematicBreak"?"Yanki - Basic (and reversed card)":"Yanki - Basic",n=r}),e??"Yanki - Basic"}a(pN,"getYankiModelNameFromTree");function dN(t){let e;if(oe(t,"yaml",r=>"value"in r?(e=r.value,Je):it),!e)return{};const n=Tu(e);if(!n)throw new Error("Could not parse frontmatter");return n}a(dN,"getFrontmatterFromTree");function mN(t){let e=!1;return oe(t,"thematicBreak",()=>(e=!0,Je)),e}a(mN,"hasThematicBreak");function gN(t){let e,n=0;return oe(t,r=>{if(r.type==="text"&&r.value.trim()!=="")e=r,n++;else if(r.type==="emphasis"&&r.children.some(i=>i.type==="text"&&i.value.trim()!==""))return e=r,n++,ir}),e!==void 0&&e.type==="emphasis"&&n>1}a(gN,"isLastVisibleNodeEmphasisWithOthers");function yN(t){let e,n,r;if(oe(t,"emphasis",(i,s,o)=>{if(o===void 0||s===void 0||i.type!=="emphasis")return it;e=i,n=o,r=s}),n&&e&&typeof r=="number")return n.children.splice(r,1),e}a(yN,"removeLastEmphasis");async function Gc(t,e){const{namespace:n,obsidianVault:r}=e;let i=await cN(t,{obsidianVault:r});const s=pN(i),o=dN(i);i=fN(i,"yaml");let l="",u="";switch(s){case"Yanki - Basic":case"Yanki - Basic (and reversed card)":{const[h,f]=Uc(i);l=await Ut(h,[Ot,`namespace-${n}`,"front",`model-${s}`],!0),u=await Ut(f,[Ot,`namespace-${n}`,"back",`model-${s}`],!0);break}case"Yanki - Cloze":{i=hN(i);const[h,f]=Uc(i);l=await Ut(h,[Ot,`namespace-${n}`,"front",`model-${s}`],!0),u=await Ut(f,[Ot,`namespace-${n}`,"back",`model-${s}`],!1);break}case"Yanki - Basic (type in the answer)":{const h=yN(i);if(h===void 0)throw new Error("Could not find emphasis in Basic (type in the answer) note AST.");const f=i,p=X("root",X("paragraph",h.children));l=await Ut(f,[Ot,`namespace-${n}`,"front",`model-${s}`],!0),u=await Ut(p,[Ot,`namespace-${n}`,"back",`model-${s}`],!1);break}}return{deckName:"",fields:{Back:u,Front:l,YankiNamespace:n},modelName:s,noteId:o.noteId??void 0,tags:o.tags??[]}}a(Gc,"getNoteFromMarkdown");function Vc(){return/[<>:"/\\|?*\u0000-\u001F]/g}a(Vc,"filenameReservedRegex");function bN(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}a(bN,"windowsReservedNameRegex");const kN=100,wN=/^\.+(\\|\/)|^\.+$/,SN=/\.+$/;function xN(t,e={}){const n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof t!="string")throw new TypeError("Expected a string");const i=e.replacement===void 0?"!":e.replacement;if(Vc().test(i)&&n.test(i))throw new Error("Replacement string cannot contain reserved filename characters");i.length>0&&(t=t.replace(r,"$1")),t=t.normalize("NFD"),t=t.replace(wN,i),t=t.replace(Vc(),i),t=t.replace(n,i),t=t.replace(SN,""),i.length>0&&(!(t[0]===".")&&t[0]==="."&&(t=i+t),t[t.length-1]==="."&&(t+=i)),t=bN().test(t)?t+i:t;const s=typeof e.maxLength=="number"?e.maxLength:kN;if(t.length>s){const o=t.lastIndexOf(".");if(o===-1)t=t.slice(0,s);else{const l=t.slice(0,o),u=t.slice(o);t=l.slice(0,Math.max(1,s-u.length))+u}}return t}a(xN,"filenamify");const vN="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",CN=128;let At,rn;function NN(t){!At||At.length<t?(At=Buffer.allocUnsafe(t*CN),ao.getRandomValues(At),rn=0):rn+t>At.length&&(ao.getRandomValues(At),rn=0),rn+=t}a(NN,"fillPool");function AN(t=21){NN(t-=0);let e="";for(let n=rn-t;n<rn;n++)e+=vN[At[n]&63];return e}a(AN,"nanoid");function Ve(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}a(Ve,"assertPath");function Hc(t,e){for(var n="",r=0,i=-1,s=0,o,l=0;l<=t.length;++l){if(l<t.length)o=t.charCodeAt(l);else{if(o===47)break;o=47}if(o===47){if(!(i===l-1||s===1))if(i!==l-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,s=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,l):n=t.slice(i+1,l),r=l-i-1;i=l,s=0}else o===46&&s!==-1?++s:s=-1}return n}a(Hc,"normalizeStringPosix");function EN(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}a(EN,"_format");var Z={process_cwd:"",setCWD:a(function(e){Z.process_cwd=e},"setCWD"),resolve:a(function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=Z.process_cwd),s=r),Ve(s),s.length!==0&&s+"/"!==e&&(e=s+"/"+e,n=s.charCodeAt(0)===47)}return e=Hc(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},"resolve"),normalize:a(function(e){if(Ve(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Hc(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},"normalize"),isAbsolute:a(function(e){return Ve(e),e.length>0&&e.charCodeAt(0)===47},"isAbsolute"),join:a(function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];Ve(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Z.normalize(e)},"join"),relative:a(function(e,n){if(Ve(e),Ve(n),e===n||(e=Z.resolve(e),n=Z.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,s=i-r,o=1;o<n.length&&n.charCodeAt(o)===47;++o);for(var l=n.length,u=l-o,c=s<u?s:u,h=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(n.charCodeAt(o+f)===47)return n.slice(o+f+1);if(f===0)return n.slice(o+f)}else s>c&&(e.charCodeAt(r+f)===47?h=f:f===0&&(h=0));break}var p=e.charCodeAt(r+f),d=n.charCodeAt(o+f);if(p!==d)break;p===47&&(h=f)}var m="";for(f=r+h+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+n.slice(o+h):(o+=h,n.charCodeAt(o)===47&&++o,n.slice(o))},"relative"),_makeLong:a(function(e){return e},"_makeLong"),dirname:a(function(e){if(Ve(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,s=!0,o=e.length-1;o>=1;--o)if(n=e.charCodeAt(o),n===47){if(!s){i=o;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},"dirname"),basename:a(function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ve(e);var r=0,i=-1,s=!0,o;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var l=n.length-1,u=-1;for(o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(c===47){if(!s){r=o+1;break}}else u===-1&&(s=!1,u=o+1),l>=0&&(c===n.charCodeAt(l)?--l===-1&&(i=o):(l=-1,i=u))}return r===i?i=u:i===-1&&(i=e.length),e.slice(r,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){r=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":e.slice(r,i)}},"basename"),extname:a(function(e){Ve(e);for(var n=-1,r=0,i=-1,s=!0,o=0,l=e.length-1;l>=0;--l){var u=e.charCodeAt(l);if(u===47){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),u===46?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":e.slice(n,i)},"extname"),format:a(function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return EN("/",e)},"format"),parse:a(function(e){Ve(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var o=-1,l=0,u=-1,c=!0,h=e.length-1,f=0;h>=s;--h){if(r=e.charCodeAt(h),r===47){if(!c){l=h+1;break}continue}u===-1&&(c=!1,u=h+1),r===46?o===-1?o=h:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||u===-1||f===0||f===1&&o===u-1&&o===l+1?u!==-1&&(l===0&&i?n.base=n.name=e.slice(1,u):n.base=n.name=e.slice(l,u)):(l===0&&i?(n.name=e.slice(1,o),n.base=e.slice(1,u)):(n.name=e.slice(l,o),n.base=e.slice(l,u)),n.ext=e.slice(o,u)),l>0?n.dir=e.slice(0,l-1):i&&(n.dir="/"),n},"parse"),sep:"/",delimiter:":",win32:null,posix:null};Z.posix=Z;const Wr="Untitled";function _N(t,e,n){switch(t.modelName){case"Yanki - Basic":case"Yanki - Basic (and reversed card)":case"Yanki - Basic (type in the answer)":{const r=Pt(ut(t.fields.Front).replace(zn,"").replace(Wr,"")),i=Pt(ut(t.fields.Back).replace(zn,"").replace(Wr,""));switch(e){case"prompt":return ut(r??i??"",n);case"response":return ut(i??r??"",n)}}case"Yanki - Cloze":{const r=Pt(ut(t.fields.Front).replace(zn,"").replace(Wr,""));if(r===void 0)return ut("",n);const i=Pt(r.split("{{")[0]),s=Pt(/{{\w\d*::([^:}]+)/.exec(r)?.at(0)),o=Pt(r.split("}}")[1].split("{{")[0]);switch(e){case"prompt":return ut(i??o??s??"",n);case"response":return ut(s??i??o??"",n)}}}}a(_N,"getSafeTitleForNote");function ut(t,e){let n=xN(Yi(t).trim(),{maxLength:Number.MAX_SAFE_INTEGER,replacement:" "}).replaceAll(/\s+/g," ").trim();if(n.length===0&&(n=Wr),e===void 0)return n;const r=Math.min(e,238);return Zr(n,r)}a(ut,"getSafeFilename");function TN(t,e){let n=Xs(t,1),r=2;for(;e.includes(n.toLowerCase());)n=Xs(t,r),r++;return n}a(TN,"getUniqueFilePath");function IN(t,e){const n=Xs(t,2);return e.includes(n.toLowerCase())?t:Wc(t)}a(IN,"auditUniqueFilePath");function Wc(t){const e=Z.extname(t),n=Z.basename(t,e).replace(/\s\(\d+\)$/,"");return Z.join(Z.dirname(t),`${n}${e}`)}a(Wc,"stripFilenameIncrement");function Xs(t,e){const n=Z.extname(t),r=Z.basename(t,n),i=`${Wc(r)} (${e})`;return Z.join(Z.dirname(t),`${i}${n}`)}a(Xs,"appendFilenameIncrement");function LN(t){return`${t}-${AN(8)}`}a(LN,"getTemporarilyUniqueFilePath");const Kr=typeof window>"u"?typeof process>"u"?"other":"node":"browser";Kr==="browser"?/windows/i.test(navigator.userAgent)||/mac/i.test(navigator.userAgent):Kr==="node"&&(process.platform==="win32"||process.platform);const Zs={ankiConnectOptions:Be,ankiWeb:!1,defaultDeckName:"Yanki",dryRun:!1,manageFilenames:"off",maxFilenameLength:60,namespace:cn,obsidianVault:void 0};async function Kc(t,e){const n=performance.now(),{ankiConnectOptions:r,ankiWeb:i,defaultDeckName:s,dryRun:o,namespace:l}=wn(Zs,e??{}),u=l.trim();if(u==="")throw new Error("Namespace must not be empty");if(u.includes("*")||u.includes(":"))throw new Error("Namespace for sync may not contain the characters '*' or ':'");const c=[],h=new xr(r);if(await kr(h)==="ankiUnreachable")return{ankiWeb:i,deletedDecks:[],dryRun:o,duration:performance.now()-n,namespace:l,synced:t.map(N=>({action:"ankiUnreachable",filePath:void 0,filePathOriginal:void 0,note:N}))};const p=await Ji(h,l),d=p.filter(N=>!t.some(C=>C.noteId===N?.noteId));await wl(h,d,o);for(const N of d)c.push({action:"deleted",note:N});for(const N of t)N.deckName===""&&(N.deckName=s);for(const N of t){if(N.noteId===void 0)continue;const C=RN(t,N.noteId);if(C.length<=1)continue;const w=p.find(_=>_?.noteId===N.noteId),A=DN(C,w);for(const _ of C)_!==A&&(_.noteId=void 0)}const m=t.map(N=>N.noteId).map(N=>N??-1),g=await Sl(h,m);for(const[N,C]of g.entries()){const w=t[N];if(C===void 0||w.fields.YankiNamespace!==C.fields.YankiNamespace){const A=await br(h,{...w,noteId:void 0},o);c.push({action:"created",note:{...w,noteId:A}})}else if(w.modelName===C.modelName){const A=await sy(h,w,C,o);c.push({action:A?"updated":"unchanged",note:w})}else{if(C.noteId===void 0)throw new Error("Remote note ID is undefined");c.push({action:"deleted",note:C}),await iy(h,C,o);const A=await br(h,{...w,noteId:void 0},o);c.push({action:"recreated",note:{...w,noteId:A}})}}const y=[],k=[];for(const N of c)N.action==="deleted"?k.push(N.note):y.push(N.note);const b=await xl(h,y,p,o),S=b.length>0||c.some(N=>N.action!=="unchanged");return!o&&i&&(S||Jr)&&await h.miscellaneous.sync(),{ankiWeb:i,deletedDecks:b,dryRun:o,duration:performance.now()-n,namespace:l,synced:c}}a(Kc,"syncNotes");async function ON(t,e,n,r,i){const s=performance.now();if(n===void 0||r===void 0||i===void 0)if(Kr==="node"){const C=await import("node:fs/promises");n=a(async w=>C.readFile(w,"utf8"),"readFile"),r=a(async(w,A)=>C.writeFile(w,A,"utf8"),"writeFile"),i=a(async(w,A)=>C.rename(w,A),"rename")}else throw new Error('The "readFile", "writeFile", and "rename" file function implementations must be provided to the syncFiles function when running in the browser');const o=wn(Zs,e??{}),{manageFilenames:l,maxFilenameLength:u,namespace:c,obsidianVault:h}=o,f=[],p=[],d=Yc(t);for(const[C,w]of t.entries()){const A=await n(w);f.push(A);const _=await Gc(A,{namespace:c,obsidianVault:h});_.deckName===""&&(_.deckName=d[C]),p.push(_)}const{ankiWeb:m,deletedDecks:g,dryRun:y,synced:k}=await Kc(p,o),b=k.filter(C=>C.action!=="deleted");for(const[C,w]of p.entries()){const A=b[C],_=A.note.noteId;if((w.noteId===void 0||w.noteId!==_)&&(w.noteId=_,A.action!=="ankiUnreachable")){if(w.noteId===void 0)throw new Error("Note ID is still undefined");const R=await a1(f[C],w.noteId);await r(t[C],R)}}const S=p.map((C,w)=>({action:b[w].action,filePath:t[w],filePathOriginal:t[w],note:C})).sort((C,w)=>C.filePath.localeCompare(w.filePath));if(l!=="off"){const C=[];for(const A of S){const{filePathOriginal:_,note:R}=A;if(_===void 0)throw new Error("File path is undefined");const E=_N(R,l,u),P=Z.join(Z.dirname(_),`${E}${Z.extname(_)}`),O=TN(P,C);A.filePath=O,C.push(O.toLowerCase())}for(const A of S){const{filePath:_}=A;if(_===void 0)throw new Error("File path is undefined");A.filePath=IN(_,C)}const w=new Map;for(const A of S){const{filePath:_,filePathOriginal:R}=A;if(R===void 0)throw new Error("Original file path is undefined.");if(_===void 0)throw new Error("File path is undefined.");if(_===R)continue;let E=_;S.some(P=>P!==A&&P.filePathOriginal?.toLowerCase()===_.toLowerCase())&&(E=LN(_),w.set(E,_)),await i(R,E)}for(const[A,_]of w)await i(A,_)}const N=k.filter(C=>C.action==="deleted").map(C=>({action:"deleted",note:C.note}));return{ankiWeb:m,deletedDecks:g,dryRun:y,duration:performance.now()-s,namespace:c,synced:[...N,...S]}}a(ON,"syncFiles");function Yc(t,e="common-root"){Kr==="node"&&Z.setCWD(process.cwd());const n=t.map(l=>Z.dirname(Z.resolve(l)).split(Z.sep)),r=n.reduce((l,u)=>l.filter((h,f)=>h===u[f])),i=n.some(l=>l.at(-1)===r.at(-1)),s=e==="common-parent"||i?1:0;return n.map(l=>l.slice(r.length-s).join("::"))}a(Yc,"getDeckNamesFromFilePaths");function PN(t,e=!1){const n=[],{synced:r}=t,i=r.reduce((u,c)=>(u[c.action]=(u[c.action]||0)+1,u),{}),s=r.filter(u=>u.action!=="deleted").length,o=r.filter(u=>u.filePath!==u.filePathOriginal).length,l=i.ankiUnreachable>0;if(n.push(`${t.dryRun?"Will sync":l?"Failed to sync":"Successfully synced"} synced ${s} ${Sn("note",s)} to Anki${t.dryRun?"":` in ${Zi(t.duration)}`}.`),e){n.push("",t.dryRun?"Sync Plan Summary:":"Sync Summary:");for(const[u,c]of Object.entries(i))n.push(` ${Xr(u)}: ${c}`);o>0&&n.push("",`Local notes renamed: ${o}`),t.deletedDecks.length>0&&n.push("",`Decks pruned: ${t.deletedDecks.length}`),n.push("",t.dryRun?"Sync Plan Details:":"Sync Details:");for(const{action:u,filePath:c,note:h}of r)c===void 0?n.push(` Note ID ${h.noteId} ${Xr(u)} (From Anki)`):n.push(` Note ID ${h.noteId} ${Xr(u)} ${c}`)}return n.join(`
222
+ `)}a(PN,"formatSyncReport");function RN(t,e){return t.filter(n=>n.noteId===void 0?!1:n.noteId===e)}a(RN,"findNotesWithDuplicateIds");function DN(t,e){return t.find(n=>n.fields.Front===e?.fields.Front&&n.fields.Back===e?.fields.Back)??t[0]}a(DN,"selectNoteToKeep");export{Dl as a,Kw as b,Vw as c,Rl as d,Fl as e,Hw as f,Qw as g,Zs as h,PN as i,Yc as j,ON as k,Ww as l,Kc as m,Gc as n,hf as o,Yw as s,ff as u,cn as y};