conductor-oss 0.26.13 → 0.27.1
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.
- package/package.json +5 -5
- package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/packages/web/.next/app-path-routes-manifest.json +2 -2
- package/web/.next/standalone/packages/web/.next/build-manifest.json +3 -3
- package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/packages/web/.next/react-loadable-manifest.json +12 -12
- package/web/.next/standalone/packages/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page.js +2 -2
- package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app-paths-manifest.json +2 -2
- package/web/.next/standalone/packages/web/.next/server/chunks/4927.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/5164.js +3 -3
- package/web/.next/standalone/packages/web/.next/server/chunks/{6956.js → 5694.js} +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/6489.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/7164.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/803.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/8063.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/9283.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/9455.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/middleware-build-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/pages/500.html +1 -1
- package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/1225.9d15e31cceff2b32.js +3 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/{1265.efa993f06117029d.js → 1265.8810821534494daa.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/2228.b0b1fb8614172586.js +138 -0
- package/web/.next/{static/chunks/2452-c6e8306f50b6f426.js → standalone/packages/web/.next/static/chunks/2452-70f8a3ac1c83e765.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/3954-9bc13b5c99af6c4e.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/4443.7c70896480f111a5.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/59-48224ccdd537d501.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/6453.47df1a9e8c002a48.js +1 -0
- package/web/.next/{static/chunks/7220-0f3715e27cdde61f.js → standalone/packages/web/.next/static/chunks/7220-9c98fecb9b1d6ff2.js} +1 -1
- package/web/.next/{static/chunks/9702-ea857cb6bcac0247.js → standalone/packages/web/.next/static/chunks/7720-9889fefac5c50678.js} +2 -2
- package/web/.next/standalone/packages/web/.next/static/chunks/9045.706f9a511b570e37.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/9175.be23247671365d31.js +1 -0
- package/web/.next/{static/chunks/app/bridge/connect/page-46a3ad20e3c8e755.js → standalone/packages/web/.next/static/chunks/app/bridge/connect/page-35a183e67b9430a7.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-0f9cf9a045b7024d.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/app/page-12c36f63a2bc9ad4.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/app/sessions/[id]/page-e8435c9903296038.js +1 -0
- package/web/.next/{static/chunks/webpack-b4460421d078e5aa.js → standalone/packages/web/.next/static/chunks/webpack-334d73e96d5beb55.js} +1 -1
- package/web/.next/static/chunks/1225.9d15e31cceff2b32.js +3 -0
- package/web/.next/static/chunks/{1265.efa993f06117029d.js → 1265.8810821534494daa.js} +1 -1
- package/web/.next/static/chunks/2228.b0b1fb8614172586.js +138 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/2452-c6e8306f50b6f426.js → static/chunks/2452-70f8a3ac1c83e765.js} +1 -1
- package/web/.next/static/chunks/3954-9bc13b5c99af6c4e.js +1 -0
- package/web/.next/static/chunks/4443.7c70896480f111a5.js +1 -0
- package/web/.next/static/chunks/59-48224ccdd537d501.js +1 -0
- package/web/.next/static/chunks/6453.47df1a9e8c002a48.js +1 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/7220-0f3715e27cdde61f.js → static/chunks/7220-9c98fecb9b1d6ff2.js} +1 -1
- package/web/.next/{standalone/packages/web/.next/static/chunks/9702-ea857cb6bcac0247.js → static/chunks/7720-9889fefac5c50678.js} +2 -2
- package/web/.next/static/chunks/9045.706f9a511b570e37.js +1 -0
- package/web/.next/static/chunks/9175.be23247671365d31.js +1 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/app/bridge/connect/page-46a3ad20e3c8e755.js → static/chunks/app/bridge/connect/page-35a183e67b9430a7.js} +1 -1
- package/web/.next/static/chunks/app/layout-0f9cf9a045b7024d.js +1 -0
- package/web/.next/static/chunks/app/page-12c36f63a2bc9ad4.js +1 -0
- package/web/.next/static/chunks/app/sessions/[id]/page-e8435c9903296038.js +1 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/webpack-b4460421d078e5aa.js → static/chunks/webpack-334d73e96d5beb55.js} +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/3947.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/4299.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/5782.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/1679-53e3e1cfd3946974.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/2228.810adbeee03b4a23.js +0 -138
- package/web/.next/standalone/packages/web/.next/static/chunks/3954-8737ba0845209eda.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/4443.d88cedc4121d7b54.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/4953.6dca52908750af8c.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/6453.dca52781e2d97623.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/8191.1700cccd2f013926.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/9175.9790d827e86e77dd.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-eb0ab3874443f170.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/page-369d1dec5d800a96.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/sessions/[id]/page-29a31a33d7781f11.js +0 -1
- package/web/.next/static/chunks/1679-53e3e1cfd3946974.js +0 -1
- package/web/.next/static/chunks/2228.810adbeee03b4a23.js +0 -138
- package/web/.next/static/chunks/3954-8737ba0845209eda.js +0 -1
- package/web/.next/static/chunks/4443.d88cedc4121d7b54.js +0 -1
- package/web/.next/static/chunks/4953.6dca52908750af8c.js +0 -1
- package/web/.next/static/chunks/6453.dca52781e2d97623.js +0 -1
- package/web/.next/static/chunks/8191.1700cccd2f013926.js +0 -1
- package/web/.next/static/chunks/9175.9790d827e86e77dd.js +0 -1
- package/web/.next/static/chunks/app/layout-eb0ab3874443f170.js +0 -1
- package/web/.next/static/chunks/app/page-369d1dec5d800a96.js +0 -1
- package/web/.next/static/chunks/app/sessions/[id]/page-29a31a33d7781f11.js +0 -1
- /package/web/.next/standalone/packages/web/.next/static/{DA2cUC5YhaQ0LVErrFDb1 → 0RwAaJ52wG1TU4bbpe5A0}/_buildManifest.js +0 -0
- /package/web/.next/standalone/packages/web/.next/static/{DA2cUC5YhaQ0LVErrFDb1 → 0RwAaJ52wG1TU4bbpe5A0}/_ssgManifest.js +0 -0
- /package/web/.next/static/{DA2cUC5YhaQ0LVErrFDb1 → 0RwAaJ52wG1TU4bbpe5A0}/_buildManifest.js +0 -0
- /package/web/.next/static/{DA2cUC5YhaQ0LVErrFDb1 → 0RwAaJ52wG1TU4bbpe5A0}/_ssgManifest.js +0 -0
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2228],{42228:(e,t,n)=>{"use strict";let r,i,a,o,s,l;n.d(t,{codeToHtml:()=>nX});var u,c,h,p={};n.r(p),n.d(p,{createOnigurumaEngine:()=>j,getDefaultWasmLoader:()=>F,loadWasm:()=>U,setDefaultWasmLoader:()=>G});var d={};n.r(d),n.d(d,{boolean:()=>t_,booleanish:()=>tS,commaOrSpaceSeparated:()=>tP,commaSeparated:()=>tN,number:()=>tA,overloadedBoolean:()=>tx,spaceSeparated:()=>tE});var f=Object.defineProperty,g=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,b=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=m(t),o=0,s=a.length;o<s;o++)i=a[o],y.call(e,i)||i===n||f(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=g(t,i))||r.enumerable});return e},k=(e,t,n)=>(w(e,t,"default"),n&&w(n,t,"default"));let C=[{id:"abap",name:"ABAP",import:()=>n.e(66).then(n.bind(n,90066))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(695).then(n.bind(n,10695))},{id:"ada",name:"Ada",import:()=>n.e(7082).then(n.bind(n,67082))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(3736)]).then(n.bind(n,93736))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(9223),n.e(3849),n.e(5387),n.e(9115),n.e(8392),n.e(7582)]).then(n.bind(n,18960))},{id:"apache",name:"Apache Conf",import:()=>n.e(9602).then(n.bind(n,9602))},{id:"apex",name:"Apex",import:()=>n.e(8048).then(n.bind(n,68048))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(8115)]).then(n.bind(n,78115))},{id:"applescript",name:"AppleScript",import:()=>n.e(195).then(n.bind(n,70195))},{id:"ara",name:"Ara",import:()=>n.e(2944).then(n.bind(n,32944))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(5361).then(n.bind(n,65361))},{id:"asm",name:"Assembly",import:()=>n.e(9355).then(n.bind(n,39355))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(5387),n.e(3583)]).then(n.bind(n,63583))},{id:"awk",name:"AWK",import:()=>n.e(705).then(n.bind(n,60705))},{id:"ballerina",name:"Ballerina",import:()=>n.e(9650).then(n.bind(n,99650))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(9203).then(n.bind(n,29203))},{id:"beancount",name:"Beancount",import:()=>n.e(5937).then(n.bind(n,95937))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(7302).then(n.bind(n,77302))},{id:"bibtex",name:"BibTeX",import:()=>n.e(9982).then(n.bind(n,69982))},{id:"bicep",name:"Bicep",import:()=>n.e(6267).then(n.bind(n,16267))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(2968).then(n.bind(n,10587))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(9344)]).then(n.bind(n,59344))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(6453).then(n.bind(n,56453))},{id:"c",name:"C",import:()=>n.e(5965).then(n.bind(n,75965))},{id:"c3",name:"C3",import:()=>n.e(9506).then(n.bind(n,59506))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(143).then(n.bind(n,40143))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(4910),n.e(7578)]).then(n.bind(n,15197))},{id:"clarity",name:"Clarity",import:()=>n.e(8678).then(n.bind(n,88678))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(7538).then(n.bind(n,47538))},{id:"cmake",name:"CMake",import:()=>n.e(6227).then(n.bind(n,26227))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(39)]).then(n.bind(n,20039))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(8043).then(n.bind(n,8043))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(520).then(n.bind(n,20520))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(9223),n.e(8e3)]).then(n.bind(n,98e3))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(2118).then(n.bind(n,2118))},{id:"coq",name:"Coq",import:()=>n.e(8093).then(n.bind(n,48093))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(4762),n.e(9430),n.e(614),n.e(5965),n.e(8894)]).then(n.bind(n,96109))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(614),n.e(5965),n.e(4849),n.e(3048)]).then(n.bind(n,53048))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(8733).then(n.bind(n,8733))},{id:"css",name:"CSS",import:()=>n.e(5387).then(n.bind(n,5387))},{id:"csv",name:"CSV",import:()=>n.e(5910).then(n.bind(n,45910))},{id:"cue",name:"CUE",import:()=>n.e(4715).then(n.bind(n,64715))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(9381).then(n.bind(n,19381))},{id:"d",name:"D",import:()=>n.e(8706).then(n.bind(n,8706))},{id:"dart",name:"Dart",import:()=>n.e(3843).then(n.bind(n,3843))},{id:"dax",name:"DAX",import:()=>n.e(5541).then(n.bind(n,65541))},{id:"desktop",name:"Desktop",import:()=>n.e(5794).then(n.bind(n,85794))},{id:"diff",name:"Diff",import:()=>n.e(21).then(n.bind(n,90021))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(8132).then(n.bind(n,38132))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4582).then(n.bind(n,74582))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(920).then(n.bind(n,10920))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(9439)]).then(n.bind(n,99439))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(997)]).then(n.bind(n,997))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(5965),n.e(8090)]).then(n.bind(n,28090))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(9992).then(n.bind(n,13746))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(5559),n.e(1343)]).then(n.bind(n,1343))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(5503),n.e(8645)]).then(n.bind(n,28645))},{id:"fennel",name:"Fennel",import:()=>n.e(2136).then(n.bind(n,82136))},{id:"fish",name:"Fish",import:()=>n.e(6498).then(n.bind(n,6498))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(8218).then(n.bind(n,28218))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(338),n.e(6750)]).then(n.bind(n,96750))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(338).then(n.bind(n,10338))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(5503),n.e(1890)]).then(n.bind(n,1890))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(49).then(n.bind(n,20049))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(5644).then(n.bind(n,15644))},{id:"gdshader",name:"GDShader",import:()=>n.e(566).then(n.bind(n,50566))},{id:"genie",name:"Genie",import:()=>n.e(6226).then(n.bind(n,86226))},{id:"gherkin",name:"Gherkin",import:()=>n.e(6660).then(n.bind(n,66660))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(7078).then(n.bind(n,97078))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(4849),n.e(7565)]).then(n.bind(n,17565))},{id:"gleam",name:"Gleam",import:()=>n.e(9054).then(n.bind(n,99054))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(4107)]).then(n.bind(n,44107))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(4293)]).then(n.bind(n,74293))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(5965),n.e(736)]).then(n.bind(n,20736))},{id:"gn",name:"GN",import:()=>n.e(5811).then(n.bind(n,35811))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(3971).then(n.bind(n,63971))},{id:"go",name:"Go",import:()=>n.e(2394).then(n.bind(n,42394))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9781)]).then(n.bind(n,49781))},{id:"groovy",name:"Groovy",import:()=>n.e(8198).then(n.bind(n,88198))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(614),n.e(643)]).then(n.bind(n,80643))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(3826)]).then(n.bind(n,43826))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(3348)]).then(n.bind(n,23348))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(638).then(n.bind(n,20638))},{id:"haxe",name:"Haxe",import:()=>n.e(6944).then(n.bind(n,56944))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(347).then(n.bind(n,347))},{id:"hjson",name:"Hjson",import:()=>n.e(7452).then(n.bind(n,67452))},{id:"hlsl",name:"HLSL",import:()=>n.e(1745).then(n.bind(n,51745))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115)]).then(n.bind(n,89115))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(6097)]).then(n.bind(n,86097))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9388),n.e(4849),n.e(9781),n.e(8716)]).then(n.bind(n,58716))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(9388),n.e(9781),n.e(3035)]).then(n.bind(n,33035))},{id:"hxml",name:"HXML",import:()=>n.e(7383).then(n.bind(n,37383))},{id:"hy",name:"Hy",import:()=>n.e(949).then(n.bind(n,90949))},{id:"imba",name:"Imba",import:()=>n.e(4305).then(n.bind(n,14305))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(1356).then(n.bind(n,31356))},{id:"java",name:"Java",import:()=>n.e(9388).then(n.bind(n,19388))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(9223).then(n.bind(n,16133))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(2643)]).then(n.bind(n,2643))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(9223),n.e(803)]).then(n.bind(n,30803))},{id:"json",name:"JSON",import:()=>n.e(6114).then(n.bind(n,56114))},{id:"json5",name:"JSON5",import:()=>n.e(9085).then(n.bind(n,29085))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(667).then(n.bind(n,60667))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(6884).then(n.bind(n,76884))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(2505).then(n.bind(n,92505))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(7245).then(n.bind(n,97245))},{id:"jsx",name:"JSX",import:()=>n.e(3543).then(n.bind(n,2345))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(9223),n.e(4762),n.e(9430),n.e(614),n.e(5965),n.e(4910),n.e(2716)]).then(n.bind(n,90789))},{id:"just",name:"Just",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(4163),n.e(4742)]).then(n.bind(n,74742))},{id:"kdl",name:"KDL",import:()=>n.e(1485).then(n.bind(n,91485))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(8959).then(n.bind(n,18959))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(137).then(n.bind(n,62518))},{id:"latex",name:"LaTeX",import:()=>n.e(5482).then(n.bind(n,45482))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(1604).then(n.bind(n,71604))},{id:"less",name:"Less",import:()=>n.e(5171).then(n.bind(n,55171))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(7604)]).then(n.bind(n,27604))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9327).then(n.bind(n,9327))},{id:"log",name:"Log file",import:()=>n.e(9120).then(n.bind(n,29120))},{id:"logo",name:"Logo",import:()=>n.e(5013).then(n.bind(n,75013))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(5965),n.e(5488)]).then(n.bind(n,95488))},{id:"luau",name:"Luau",import:()=>n.e(4063).then(n.bind(n,24063))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(918).then(n.bind(n,20918))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(5503).then(n.bind(n,25503))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(1917),n.e(5387),n.e(8392),n.e(5171),n.e(6772)]).then(n.bind(n,56772))},{id:"matlab",name:"MATLAB",import:()=>n.e(9647).then(n.bind(n,39647))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(5503),n.e(5372)]).then(n.bind(n,5372))},{id:"mdx",name:"MDX",import:()=>n.e(6439).then(n.bind(n,26439))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(4891).then(n.bind(n,24891))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1516).then(n.bind(n,81516))},{id:"mojo",name:"Mojo",import:()=>n.e(3462).then(n.bind(n,51081))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(6858).then(n.bind(n,6858))},{id:"move",name:"Move",import:()=>n.e(8791).then(n.bind(n,58791))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6056).then(n.bind(n,76056))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(9643).then(n.bind(n,89643))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>n.e(7388).then(n.bind(n,7388))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(5965),n.e(2582)]).then(n.bind(n,72582))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(5965),n.e(5503),n.e(4486)]).then(n.bind(n,44486))},{id:"nix",name:"Nix",import:()=>n.e(8672).then(n.bind(n,68672))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(7921).then(n.bind(n,47921))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(7799).then(n.bind(n,57799))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(8561).then(n.bind(n,60903))},{id:"ocaml",name:"OCaml",import:()=>n.e(8194).then(n.bind(n,18194))},{id:"odin",name:"Odin",import:()=>n.e(9136).then(n.bind(n,99136))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(205).then(n.bind(n,40205))},{id:"pascal",name:"Pascal",import:()=>n.e(6092).then(n.bind(n,96092))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(4163),n.e(4921)]).then(n.bind(n,64163))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5350),n.e(9683)]).then(n.bind(n,15350))},{id:"pkl",name:"Pkl",import:()=>n.e(491).then(n.bind(n,80491))},{id:"plsql",name:"PL/SQL",import:()=>n.e(2002).then(n.bind(n,62002))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(9003).then(n.bind(n,89003))},{id:"polar",name:"Polar",import:()=>n.e(2094).then(n.bind(n,22094))},{id:"postcss",name:"PostCSS",import:()=>n.e(901).then(n.bind(n,50901))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(7077).then(n.bind(n,67077))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(8179).then(n.bind(n,8179))},{id:"prisma",name:"Prisma",import:()=>n.e(9336).then(n.bind(n,9336))},{id:"prolog",name:"Prolog",import:()=>n.e(3445).then(n.bind(n,83445))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(7504).then(n.bind(n,37504))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(9354)]).then(n.bind(n,39354))},{id:"puppet",name:"Puppet",import:()=>n.e(4982).then(n.bind(n,2601))},{id:"purescript",name:"PureScript",import:()=>n.e(7511).then(n.bind(n,97511))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(4910).then(n.bind(n,74910))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(9223),n.e(6836)]).then(n.bind(n,6836))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6543).then(n.bind(n,66543))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(2725).then(n.bind(n,52725))},{id:"r",name:"R",import:()=>n.e(6300).then(n.bind(n,96300))},{id:"racket",name:"Racket",import:()=>n.e(6674).then(n.bind(n,76674))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(3531).then(n.bind(n,23531))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(8733),n.e(6934)]).then(n.bind(n,76934))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5436).then(n.bind(n,15436))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(931).then(n.bind(n,60931))},{id:"rel",name:"Rel",import:()=>n.e(3111).then(n.bind(n,23111))},{id:"riscv",name:"RISC-V",import:()=>n.e(8735).then(n.bind(n,48735))},{id:"ron",name:"RON",import:()=>n.e(7915).then(n.bind(n,7915))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(7403).then(n.bind(n,7403))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(6637)]).then(n.bind(n,76637))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(5559)]).then(n.bind(n,1060))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(6558).then(n.bind(n,56558))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(614),n.e(1569)]).then(n.bind(n,31569))},{id:"sass",name:"Sass",import:()=>n.e(6318).then(n.bind(n,56318))},{id:"scala",name:"Scala",import:()=>n.e(4404).then(n.bind(n,94404))},{id:"scheme",name:"Scheme",import:()=>n.e(941).then(n.bind(n,30941))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(5387),n.e(8392)]).then(n.bind(n,28392))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9175).then(n.bind(n,9175))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(5990).then(n.bind(n,5990))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(4849).then(n.bind(n,34849))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(4849),n.e(6546)]).then(n.bind(n,96546))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(2213).then(n.bind(n,62213))},{id:"solidity",name:"Solidity",import:()=>n.e(3211).then(n.bind(n,53211))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(9223),n.e(5387),n.e(9115),n.e(7813)]).then(n.bind(n,97813))},{id:"sparql",name:"SPARQL",import:()=>n.e(4651).then(n.bind(n,94651))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(4605).then(n.bind(n,34605))},{id:"sql",name:"SQL",import:()=>n.e(614).then(n.bind(n,614))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(1613).then(n.bind(n,71613))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(614),n.e(4429)]).then(n.bind(n,24429))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(3750).then(n.bind(n,33750))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(9223),n.e(659)]).then(n.bind(n,10659))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(4733)]).then(n.bind(n,54733))},{id:"swift",name:"Swift",import:()=>n.e(5299).then(n.bind(n,45299))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3502).then(n.bind(n,13502))},{id:"systemd",name:"Systemd Units",import:()=>n.e(3219).then(n.bind(n,3219))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(6347).then(n.bind(n,96347))},{id:"tasl",name:"Tasl",import:()=>n.e(8539).then(n.bind(n,70920))},{id:"tcl",name:"Tcl",import:()=>n.e(4743).then(n.bind(n,34743))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(9223),n.e(5387),n.e(2394),n.e(5968)]).then(n.bind(n,55968))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(2766).then(n.bind(n,2766))},{id:"tex",name:"TeX",import:()=>n.e(6721).then(n.bind(n,26721))},{id:"toml",name:"TOML",import:()=>n.e(7052).then(n.bind(n,97052))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4314)]).then(n.bind(n,74314))},{id:"tsv",name:"TSV",import:()=>n.e(7805).then(n.bind(n,87805))},{id:"tsx",name:"TSX",import:()=>n.e(260).then(n.bind(n,947))},{id:"turtle",name:"Turtle",import:()=>n.e(6294).then(n.bind(n,6294))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(260),n.e(3543),n.e(4762),n.e(9430),n.e(5387),n.e(9115),n.e(9388),n.e(614),n.e(5965),n.e(4849),n.e(9781),n.e(4910),n.e(5559),n.e(8392),n.e(5350),n.e(4947)]).then(n.bind(n,14947))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(1917).then(n.bind(n,58461))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(8745).then(n.bind(n,58745))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(8564).then(n.bind(n,8564))},{id:"v",name:"V",import:()=>n.e(4280).then(n.bind(n,64280))},{id:"vala",name:"Vala",import:()=>n.e(8414).then(n.bind(n,8414))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2672).then(n.bind(n,22672))},{id:"verilog",name:"Verilog",import:()=>n.e(1924).then(n.bind(n,51924))},{id:"vhdl",name:"VHDL",import:()=>n.e(2618).then(n.bind(n,22618))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(7952).then(n.bind(n,67952))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(9223),n.e(1917),n.e(5387),n.e(9115),n.e(5406)]).then(n.bind(n,25406))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(9223),n.e(1006)]).then(n.bind(n,31006))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(9223),n.e(4177),n.e(5387),n.e(8392),n.e(5171),n.e(8130)]).then(n.bind(n,37749))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(6702).then(n.bind(n,56702))},{id:"wasm",name:"WebAssembly",import:()=>n.e(7111).then(n.bind(n,79492))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(6258).then(n.bind(n,16258))},{id:"wgsl",name:"WGSL",import:()=>n.e(8967).then(n.bind(n,78967))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(3309).then(n.bind(n,43309))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(6202).then(n.bind(n,46202))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(1659).then(n.bind(n,71326))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(9388),n.e(2064)]).then(n.bind(n,84921))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(9388),n.e(5403)]).then(n.bind(n,65403))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(3025).then(n.bind(n,63025))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2248).then(n.bind(n,2248))},{id:"zig",name:"Zig",import:()=>n.e(8432).then(n.bind(n,98432))}],v=Object.fromEntries(C.map(e=>[e.id,e.import])),_=Object.fromEntries(C.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),S={...v,..._},x=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2009).then(n.bind(n,62009))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(3609).then(n.bind(n,83609))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7885).then(n.bind(n,97885))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(1949).then(n.bind(n,11949))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(2008).then(n.bind(n,82008))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(7268).then(n.bind(n,67268))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(2194).then(n.bind(n,32194))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(2029).then(n.bind(n,52029))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(3518).then(n.bind(n,43518))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(6976).then(n.bind(n,36976))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(763).then(n.bind(n,60763))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(9914).then(n.bind(n,39914))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(4185).then(n.bind(n,24185))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9121).then(n.bind(n,29121))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(2288).then(n.bind(n,59907))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(4611).then(n.bind(n,6992))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(9710).then(n.bind(n,19710))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(723).then(n.bind(n,30723))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3027).then(n.bind(n,63027))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(8707).then(n.bind(n,98707))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(1251).then(n.bind(n,11251))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(7605).then(n.bind(n,97605))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(9707).then(n.bind(n,29707))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(3714).then(n.bind(n,13714))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(4021).then(n.bind(n,24021))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(251).then(n.bind(n,60251))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(8658).then(n.bind(n,78658))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(1220).then(n.bind(n,1220))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>n.e(6639).then(n.bind(n,6639))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(6675).then(n.bind(n,16675))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(1052).then(n.bind(n,91052))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(4388).then(n.bind(n,84388))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(850).then(n.bind(n,70850))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(2187).then(n.bind(n,52187))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(9752).then(n.bind(n,79752))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1046).then(n.bind(n,71046))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(7540).then(n.bind(n,7540))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(8724).then(n.bind(n,68724))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(7559).then(n.bind(n,27559))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(9531).then(n.bind(n,9531))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(4352).then(n.bind(n,14352))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(3922).then(n.bind(n,3922))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(9291).then(n.bind(n,89291))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(6982).then(n.bind(n,76982))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(1973).then(n.bind(n,31973))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(7654).then(n.bind(n,57654))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(6778).then(n.bind(n,46778))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7966).then(n.bind(n,37966))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(4889).then(n.bind(n,74889))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8599).then(n.bind(n,18599))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(1256).then(n.bind(n,91256))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(6153).then(n.bind(n,66153))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(634).then(n.bind(n,60634))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(8495).then(n.bind(n,18495))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(6820).then(n.bind(n,66820))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(401).then(n.bind(n,401))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(1087).then(n.bind(n,1087))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(6143).then(n.bind(n,66143))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1159).then(n.bind(n,41159))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(759).then(n.bind(n,50759))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(3446).then(n.bind(n,63446))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(6446).then(n.bind(n,76446))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(5034).then(n.bind(n,95034))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(4695).then(n.bind(n,24695))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(4319).then(n.bind(n,54319))}],A=Object.fromEntries(x.map(e=>[e.id,e.import]));var E=n(64792).Buffer,N=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function P(){return"u">typeof performance?performance.now():Date.now()}let L=(e,t)=>e+(t-e%t)%t;async function I(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:P,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,L(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var T=Object.defineProperty,R=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?T(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let M=null;class ${constructor(e){R(this,"utf16Length"),R(this,"utf8Length"),R(this,"utf16Value"),R(this,"utf8Value"),R(this,"utf16OffsetToUtf8"),R(this,"utf8OffsetToUtf16");const t=e.length,n=$._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const o=new Uint8Array(n);let s=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(i[n]=s,c&&(i[n+1]=s),u<=127?a[s+0]=n:u<=2047?(a[s+0]=n,a[s+1]=n):u<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let O=class e{constructor(t){if(R(this,"id",++e.LAST_ID),R(this,"_onigBinding"),R(this,"content"),R(this,"utf16Length"),R(this,"utf8Length"),R(this,"utf16OffsetToUtf8"),R(this,"utf8OffsetToUtf16"),R(this,"ptr"),!M)throw new N("Must invoke loadWasm first.");this._onigBinding=M,this.content=t;const n=new $(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=M.omalloc(1e4)),e._sharedPtrInUse=!0,M.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(M)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};R(O,"LAST_ID",0),R(O,"_sharedPtr",0),R(O,"_sharedPtrInUse",!1);class B{constructor(e){if(R(this,"_onigBinding"),R(this,"_ptr"),!M)throw new N("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new $(e[r]);t[r]=i.createString(M),n[r]=i.utf8Length}const r=M.omalloc(4*e.length);M.HEAPU32.set(t,r/4);const i=M.omalloc(4*e.length);M.HEAPU32.set(n,i/4);const a=M.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)M.ofree(t[n]);M.ofree(i),M.ofree(r),0===a&&function(e){throw new N(e.UTF8ToString(e.getLastOnigError()))}(M),this._onigBinding=M,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new O(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],u=o[s++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function U(e){return r||(r=async function(){M=await I(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o;if(void 0!==n.data&&(n=n.data),r=n,"u">typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==E&&E.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await D(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await D(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function D(e){return t=>WebAssembly.instantiate(e,t)}function G(e){i=e}function F(){return i}async function j(e){return e&&await U(e),{createScanner:e=>new B(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new O(e)}}var W=b({});k(W,p);var H=class extends Error{constructor(e){super(e),this.name="ShikiError"}},z=n(63680);function q(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var V=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,X=class{static hasCaptures(e){return null!==e&&(V.lastIndex=0,V.test(e))}static replaceCaptures(e,t,n){return e.replace(V,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function Q(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function K(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function J(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Y=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Z=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&K(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&K(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),u=a[a.length-1],c=null;a.length>1&&(c=a.slice(0,a.length-1)).reverse(),n[r++]=new en(u,c,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=Q(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new ei(t),o=new et(n,a.getId(r),a.getId(i)),s=new es(new eo(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Z(a,o,s)}(e,t)}_cachedMatchRoot=new Y(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new et(n.fontStyle,n.foreground,n.background):null}},ee=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},et=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},en=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},er=((u=er||{})[u.NotSet=-1]="NotSet",u[u.None=0]="None",u[u.Italic=1]="Italic",u[u.Bold=2]="Bold",u[u.Underline=4]="Underline",u[u.Strikethrough=8]="Strikethrough",u),ei=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ea=Object.freeze([]),eo=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ea,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},es=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,u;if(""===n)return void this._doInsertHere(t,r,i,a,o);let c=n.indexOf(".");-1===c?(s=n,l=""):(s=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),eo.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===Q(o.parentScopes,t))return void o.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new eo(e,t,n,r,i))}},el=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==i&&(c=+!!i),-1!==a&&(h=a),0!==o&&(p=o),0!==s&&(d=s),(l|u<<8|c<<10|h<<11|p<<15|d<<24)>>>0}};function eu(e,t){var n;let r,i,a=[],o=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s);t=u()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(ec(s)){let e=[];do e.push(s),s=o.next();while(ec(s));return n=>t(e,n)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function ec(e){return!!e&&!!e.match(/[\w\.:]+/)}var eh=((c=eh||{})[c.None=0]="None",c[c.NotBeginString=1]="NotBeginString",c[c.NotEndString=2]="NotEndString",c[c.NotBeginPosition=4]="NotBeginPosition",c[c.DebugCall=8]="DebugCall",c);function ep(e){"function"==typeof e.dispose&&e.dispose()}var ed=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ef=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},eg=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},em=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ed(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new eg;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof ed?eb({baseGrammar:a,selfGrammar:i},r):ey(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new ed(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ed){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function ey(e,t,n){t.repository&&t.repository[e]&&ew([t.repository[e]],t,n)}function eb(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ew(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ew(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ew(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?q({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ew(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=ex(i);switch(a.kind){case 0:eb({...t,selfGrammar:t.baseGrammar},n);break;case 1:eb(t,n);break;case 2:ey(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?ey(a.ruleName,r,n):eb(r,n)}else 4===a.kind?n.add(new ef(a.scopeName,a.ruleName)):n.add(new ed(a.scopeName))}}}var ek=class{kind=0},eC=class{kind=1},ev=class{constructor(e){this.ruleName=e}kind=2},e_=class{constructor(e){this.scopeName=e}kind=3},eS=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ex(e){if("$base"===e)return new ek;if("$self"===e)return new eC;let t=e.indexOf("#");return -1===t?new e_(e):0===t?new ev(e.substring(1)):new eS(e.substring(0,t),e.substring(t+1))}var eA=/\\(\d+)/,eE=/\\(\d+)/g;Symbol("RuleId");var eN=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=X.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=X.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?X.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?X.replaceCaptures(this._contentName,e,t):this._contentName}},eP=class extends eN{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},eL=class extends eN{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new e$(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eO,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eI=class extends eN{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eO,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eT=class extends eN{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,l,u){super(e,t,n,r),this._begin=new e$(i,this.id),this.beginCaptures=a,this._end=new e$(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new eO,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},eR=class extends eN{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),this._begin=new e$(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new e$(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new eO,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new eO,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},eM=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new eP(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new eL(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=q({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new eI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new eR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new eT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=ex(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(a,r);if(u)if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof eI||e instanceof eT||e instanceof eR)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},e$=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=eA.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return eE.lastIndex=0,this.source.replace(eE,(e,t)=>J(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",o[e+1]="",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},eO=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new eB(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new eB(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},eB=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},eU=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eD=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new eU(e,8),this._embeddedLanguagesMatcher=new eG(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new eU(0,0);_getBasicScopeAttributes=new Y(e=>new eU(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eG=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>J(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==z&&z.env.VSCODE_TEXTMATE_DEBUG;var eF=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ej(e,t,n,r,i,a,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof eR&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,u,c,h,p;let{ruleScanner:s,findOptions:f}=(l=d.rule,u=e,c=d.stack.endRule,h=n,p=r===o,{ruleScanner:l.compileWhileAG(u,c,h,p),findOptions:0}),g=s.findNextMatchSync(t,r,f);if(g){if(-2!==g.ruleId){i=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(d.stack,g.captureIndices[0].start),eH(e,t,n,d.stack,a,d.rule.whileCaptures,g.captureIndices),a.produce(d.stack,g.captureIndices[0].end),o=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let h=Date.now();for(;!u;){if(0!==s&&Date.now()-h>s)return new eF(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=eW(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,u=null,c=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:f}=eW(t.getRule(p.ruleId),t,null,r,i===o),g=d.findNextMatchSync(n,i,f);if(!g)continue;let m=g.captureIndices[0].start;if(!(m>=l)&&(l=m,u=g.captureIndices,s=g.ruleId,c=p.priority,l===i))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:o}(e,t,n,r,i,c);if(!o){a.produce(i,l),u=!0;return}let s=o.captureIndices,h=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),eH(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let h=i;if(i=i.parent,c=h.getAnchorPos(),!p&&h.getEnterPos()===r){i=h,a.produce(i,l),u=!0;return}}else{let o=e.getRule(h);a.produce(i,s[0].start);let d=i,f=o.getName(t.content,s),g=i.contentNameScopesList.pushAttributed(f,e);if(i=i.push(h,r,c,s[0].end===l,null,g,g),o instanceof eT){eH(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(o instanceof eR){eH(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),u=!0;return}}else if(eH(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new eF(i,!1)}function eW(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eH(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),u=[],c=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=a.pushAttributed(u,e),p=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,c),d=e.createOnigString(s.substring(0,h.end));ej(e,d,n&&0===h.start,h.start,p,i,!1,0),ep(d);continue}let p=l.getName(s,o);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new ez(t,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ez=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eq(e,t,n,r,i){let a=eu(t,eV),o=eM.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function eV(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var eX=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new eD(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=eQ(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of eu(e,eV))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)eq(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eq(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=eQ(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=eM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eJ.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=el.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?eK.createRootAndLookUpScopeName(o,a,this):eK.createRoot("unknown",a),t=new eJ(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new eZ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ej(this,a,i,0,t,s,!0,r);return ep(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eQ(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eK=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)r=new e(r,i=ee.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new ee(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new ee(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),el.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},eJ=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eK.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=eK.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eK.fromExtension(r,n.contentNameScopesList))}},eY=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):eu(e,eV).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>eu(e,eV).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eZ=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=el.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=el.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},e0=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new eX(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},e1=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new e0(Z.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Z.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eY(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new em(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},e2=eJ.NULL;function e5(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function e3(e,t){return e&&t?.[e?.toLowerCase()]||e}async function e8(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function e6(e){return!e||["plaintext","txt","text","plain"].includes(e)}function e9(e){return"ansi"===e||e6(e)}function e4(e){return"none"===e}function e7(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let te="__shiki_resolved";function tt(e){if(e?.[te])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,te,{enumerable:!1,writable:!1,value:!0}),t}async function tn(e){return Array.from(new Set((await Promise.all(e.filter(e=>!e9(e)).map(async e=>await e8(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function tr(e){return(await Promise.all(e.map(async e=>e4(e)?null:tt(await e8(e))))).filter(e=>!!e)}function ti(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new H(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}var ta=class extends e1{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Z.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=ti(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new H(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},to=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let ts=0;async function tl(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([tr(e.themes||[]),tn(e.langs||[]),e.engine]);return function(e){let t;ts+=1,!1!==e.warnings&&ts>=10&&ts%10==0&&console.warn(`[Shiki] ${ts} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new H("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(tt),a=new ta(new to(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=a.getTheme(e);if(!t)throw new H(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))a.loadTheme(t)}function u(){if(n)throw new H("Shiki instance has been disposed")}function c(){n||(n=!0,a.dispose(),ts-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new H(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},resolveLangAlias:function(t){return ti(t,e.langAlias)},loadLanguage:async function(...e){return s(await tn(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await tr(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}let tu=new WeakMap;function tc(e,t){tu.set(e,t)}function th(e){return tu.get(e)}var tp=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,e2])),t)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function td(e,t,n={}){var r,i;let a,o,{theme:s=e.getLoadedThemes()[0]}=n;if(e6(e.resolveLangAlias(n.lang||"text"))||e4(s))return e7(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:l,colorMap:u}=e.setTheme(s),c=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==c.name)throw new H(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(l.name))throw new H(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return o=new tp((a=tf(t,r=c,i=l,u,n)).stateStack,r.name,i.name),tc(a.tokens,o),a.tokens}function tf(e,t,n,r,i){let a=e5(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=e7(e),u=i.grammarState?function(e,t){if(!(e instanceof tp))throw new H("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??e2:null!=i.grammarContextCode?tf(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:e2,c=[],h=[];for(let e=0,p=l.length;e<p;e++){let p,d,[f,g]=l[e];if(""===f){c=[],h.push([]);continue}if(o>0&&f.length>=o){c=[],h.push([{content:f,offset:g,color:"",fontStyle:0}]);continue}i.includeExplanation&&(p=t.tokenizeLine(f,u,s).tokens,d=0);let m=t.tokenizeLine2(f,u,s),y=m.tokens.length/2;for(let e=0;e<y;e++){let t=m.tokens[2*e],o=e+1<y?m.tokens[2*e+2]:f.length;if(t===o)continue;let s=m.tokens[2*e+1],l=e3(r[el.getForeground(s)],a),u=el.getFontStyle(s),h={content:f.substring(t,o),offset:g+t,color:l,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}h.explanation=[];let r=0;for(;t+r<o;){let t=p[d],n=f.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tg(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tg(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),d+=1}}c.push(h)}h.push(c),c=[],u=m.ruleStack}return{tokens:h,stateStack:u}}function tg(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tm(e,t,n,r=td){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:th(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),o=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:l,...u}=e[t][r];a.variants[i[n].color]=u}),a})),l=a[0].state?new tp(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return l&&tc(s,l),s}let ty=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class tb{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tw(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tb(n,r,t)}function tk(e){return e.toLowerCase()}tb.prototype.normal={},tb.prototype.property={},tb.prototype.space=void 0;class tC{constructor(e,t){this.attribute=t,this.property=e}}tC.prototype.attribute="",tC.prototype.booleanish=!1,tC.prototype.boolean=!1,tC.prototype.commaOrSpaceSeparated=!1,tC.prototype.commaSeparated=!1,tC.prototype.defined=!1,tC.prototype.mustUseProperty=!1,tC.prototype.number=!1,tC.prototype.overloadedBoolean=!1,tC.prototype.property="",tC.prototype.spaceSeparated=!1,tC.prototype.space=void 0;let tv=0,t_=tL(),tS=tL(),tx=tL(),tA=tL(),tE=tL(),tN=tL(),tP=tL();function tL(){return 2**++tv}let tI=Object.keys(d);class tT extends tC{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<tI.length;){const e=tI[i];!function(e,t,n){n&&(e[t]=n)}(this,tI[i],(n&d[e])===d[e])}}}function tR(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[tk(r)]=r,n[tk(a.attribute)]=r}return new tb(t,n,e.space)}tT.prototype.defined=!0;let tM=tR({properties:{ariaActiveDescendant:null,ariaAtomic:tS,ariaAutoComplete:null,ariaBusy:tS,ariaChecked:tS,ariaColCount:tA,ariaColIndex:tA,ariaColSpan:tA,ariaControls:tE,ariaCurrent:null,ariaDescribedBy:tE,ariaDetails:null,ariaDisabled:tS,ariaDropEffect:tE,ariaErrorMessage:null,ariaExpanded:tS,ariaFlowTo:tE,ariaGrabbed:tS,ariaHasPopup:null,ariaHidden:tS,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tE,ariaLevel:tA,ariaLive:null,ariaModal:tS,ariaMultiLine:tS,ariaMultiSelectable:tS,ariaOrientation:null,ariaOwns:tE,ariaPlaceholder:null,ariaPosInSet:tA,ariaPressed:tS,ariaReadOnly:tS,ariaRelevant:null,ariaRequired:tS,ariaRoleDescription:tE,ariaRowCount:tA,ariaRowIndex:tA,ariaRowSpan:tA,ariaSelected:tS,ariaSetSize:tA,ariaSort:null,ariaValueMax:tA,ariaValueMin:tA,ariaValueNow:tA,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function t$(e,t){return t in e?e[t]:t}function tO(e,t){return t$(e,t.toLowerCase())}let tB=tR({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tN,acceptCharset:tE,accessKey:tE,action:null,allow:null,allowFullScreen:t_,allowPaymentRequest:t_,allowUserMedia:t_,alt:null,as:null,async:t_,autoCapitalize:null,autoComplete:tE,autoFocus:t_,autoPlay:t_,blocking:tE,capture:null,charSet:null,checked:t_,cite:null,className:tE,cols:tA,colSpan:null,content:null,contentEditable:tS,controls:t_,controlsList:tE,coords:tA|tN,crossOrigin:null,data:null,dateTime:null,decoding:null,default:t_,defer:t_,dir:null,dirName:null,disabled:t_,download:tx,draggable:tS,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:t_,formTarget:null,headers:tE,height:tA,hidden:tx,high:tA,href:null,hrefLang:null,htmlFor:tE,httpEquiv:tE,id:null,imageSizes:null,imageSrcSet:null,inert:t_,inputMode:null,integrity:null,is:null,isMap:t_,itemId:null,itemProp:tE,itemRef:tE,itemScope:t_,itemType:tE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:t_,low:tA,manifest:null,max:null,maxLength:tA,media:null,method:null,min:null,minLength:tA,multiple:t_,muted:t_,name:null,nonce:null,noModule:t_,noValidate:t_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:t_,optimum:tA,pattern:null,ping:tE,placeholder:null,playsInline:t_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:t_,referrerPolicy:null,rel:tE,required:t_,reversed:t_,rows:tA,rowSpan:tA,sandbox:tE,scope:null,scoped:t_,seamless:t_,selected:t_,shadowRootClonable:t_,shadowRootDelegatesFocus:t_,shadowRootMode:null,shape:null,size:tA,sizes:null,slot:null,span:tA,spellCheck:tS,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tA,step:null,style:null,tabIndex:tA,target:null,title:null,translate:null,type:null,typeMustMatch:t_,useMap:null,value:tS,width:tA,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tE,axis:null,background:null,bgColor:null,border:tA,borderColor:null,bottomMargin:tA,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:t_,declare:t_,event:null,face:null,frame:null,frameBorder:null,hSpace:tA,leftMargin:tA,link:null,longDesc:null,lowSrc:null,marginHeight:tA,marginWidth:tA,noResize:t_,noHref:t_,noShade:t_,noWrap:t_,object:null,profile:null,prompt:null,rev:null,rightMargin:tA,rules:null,scheme:null,scrolling:tS,standby:null,summary:null,text:null,topMargin:tA,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tA,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:t_,disableRemotePlayback:t_,prefix:null,property:null,results:tA,security:null,unselectable:null},space:"html",transform:tO}),tU=tR({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tP,accentHeight:tA,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tA,amplitude:tA,arabicForm:null,ascent:tA,attributeName:null,attributeType:null,azimuth:tA,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tA,by:null,calcMode:null,capHeight:tA,className:tE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tA,diffuseConstant:tA,direction:null,display:null,dur:null,divisor:tA,dominantBaseline:null,download:t_,dx:null,dy:null,edgeMode:null,editable:null,elevation:tA,enableBackground:null,end:null,event:null,exponent:tA,externalResourcesRequired:null,fill:null,fillOpacity:tA,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tN,g2:tN,glyphName:tN,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tA,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tA,horizOriginX:tA,horizOriginY:tA,id:null,ideographic:tA,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tA,k:tA,k1:tA,k2:tA,k3:tA,k4:tA,kernelMatrix:tP,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tA,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tA,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tA,overlineThickness:tA,paintOrder:null,panose1:null,path:null,pathLength:tA,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tA,pointsAtY:tA,pointsAtZ:tA,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tP,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tP,rev:tP,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tP,requiredFeatures:tP,requiredFonts:tP,requiredFormats:tP,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tA,specularExponent:tA,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tA,strikethroughThickness:tA,string:null,stroke:null,strokeDashArray:tP,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tA,strokeOpacity:tA,strokeWidth:null,style:null,surfaceScale:tA,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tP,tabIndex:tA,tableValues:null,target:null,targetX:tA,targetY:tA,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tP,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tA,underlineThickness:tA,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tA,values:null,vAlphabetic:tA,vMathematical:tA,vectorEffect:null,vHanging:tA,vIdeographic:tA,version:null,vertAdvY:tA,vertOriginX:tA,vertOriginY:tA,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tA,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:t$}),tD=tR({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tG=tR({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tO}),tF=tR({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tj=tw([tM,tB,tD,tG,tF],"html"),tW=tw([tM,tU,tD,tG,tF],"svg"),tH={}.hasOwnProperty,tz=/["&'<>`]/g,tq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tV=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tX=/[|\\{}()[\]^$+*?.]/g,tQ=new WeakMap,tK=/[\dA-Fa-f]/,tJ=/\d/,tY=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tZ={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},t0=["cent","copy","divide","gt","lt","not","para","times"],t1={}.hasOwnProperty,t2={};for(a in tZ)t1.call(tZ,a)&&(t2[tZ[a]]=a);let t5=/[^\dA-Za-z]/;function t3(e,t,n){var r,i;let a,o,s=(r=n.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),r&&t&&!tK.test(String.fromCharCode(t))?a:a+";");if((n.useNamedReferences||n.useShortestReferences)&&(o=function(e,t,n,r){let i=String.fromCharCode(e);if(t1.call(t2,i)){let e=t2[i],a="&"+e;return n&&tY.includes(e)&&!t0.includes(e)&&(!r||t&&61!==t&&t5.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){let r,a=(i=n.omitOptionalSemicolons,r="&#"+String(e),i&&t&&!tJ.test(String.fromCharCode(t))?r:r+";");a.length<s.length&&(s=a)}return o&&(!n.useShortestReferences||o.length<s.length)?o:s}function t8(e,t){let n;var r,i=e,a=Object.assign({format:t3},t);if(i=i.replace(a.subset?(r=a.subset,(n=tQ.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(tX,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),tQ.set(r,n)),n):tz,o),a.subset||a.escapeOnly)return i;return i.replace(tq,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(tV,o);function o(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let t6=/^>|^->|<!--|-->|--!>|<!-$/g,t9=[">"],t4=["<",">"];function t7(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let ne=/[A-Z]/g,nt=/-[a-z]/g,nn=/^data[-\w.:]+$/i;function nr(e){return"-"+e.toLowerCase()}function ni(e){return e.charAt(1).toUpperCase()}let na=/[ \t\n\f\r]/g;function no(e){return"object"==typeof e?"text"===e.type&&ns(e.value):ns(e)}function ns(e){return""===e.replace(na,"")}let nl=nh(1),nu=nh(-1),nc=[];function nh(e){return function(t,n,r){let i=t?t.children:nc,a=(n||0)+e,o=i[a];if(!r)for(;o&&no(o);)a+=e,o=i[a];return o}}let np={}.hasOwnProperty;function nd(e){return function(t,n,r){return np.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let nf=nd({body:function(e,t,n){let r=nl(n,t);return!r||"comment"!==r.type},caption:ng,colgroup:ng,dd:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=nl(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:ng,html:function(e,t,n){let r=nl(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=nl(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:nm,rt:nm,tbody:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:ny,tfoot:function(e,t,n){return!nl(n,t)},th:ny,thead:function(e,t,n){let r=nl(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function ng(e,t,n){let r=nl(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&no(r.value.charAt(0)))}function nm(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function ny(e,t,n){let r=nl(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let nb=nd({body:function(e){let t=nl(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&no(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=nu(n,t),i=nl(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&nf(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=nl(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=nu(n,t),i=nl(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&nf(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),nw={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},nk=["<","&"];function nC(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:t8(e.value,Object.assign({},r.settings.characterReferences,{subset:nk}))}let nv=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&tH.call(t,e)){let n=String(t[e]);i=tH.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+t8(e.value,Object.assign({},r.settings.characterReferences,{subset:t9}))+">":"\x3c!--"+e.value.replace(t6,function(e){return t8(e,Object.assign({},r.settings.characterReferences,{subset:t4}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=tW);let u=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=function(e,t){let n=tk(t),r=t,i=tC;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nn.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(nt,ni);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!nt.test(e)){let n=e.replace(ne,nr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tT}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=t8(i.attribute,Object.assign({},e.settings.characterReferences,{subset:nw.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?function(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=t8(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:nw.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&t7(n,s)>t7(n,e.alternative)&&(s=e.alternative),r=s+t8(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?nw.single:nw.double)[a][o],attribute:!0}))+s),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,c&&(s=!1),!u&&o&&nb(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&nf(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:nC(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:nC}}),n_={},nS={},nx=[];function nA(e,t,n){return nv(e,t,n,this)}function nE(e){let t=[],n=e&&e.children||nx,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function nN(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}let nP="light-dark()",nL=["color","background-color"];function nI(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&er.Italic&&(t["font-style"]="italic"),e.fontStyle&er.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&er.Underline&&n.push("underline"),e.fontStyle&er.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function nT(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let nR=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let i,a={lines:i=e7(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,r=0;for(let e of i){if(t<e.length)break;t-=e.length,r++}return{line:r,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=i[t].length;return n+t}};function r(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new H(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...a.indexToPos(e),offset:e}}{let t=a.lines[e.line];if(void 0===t)throw new H(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${a.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new H(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:a.posToIndex(e.line,n)}}}let o=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new H(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new H(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(o),e.set(t.meta,{decorations:o,converter:a,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var n;let r;return(r=Array.from((n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))instanceof Set?n:new Set(n)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,i=[];for(let r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i})):e}},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new H(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let o=r[e],s="",l=-1,u=-1;if(0===t&&(l=0),0===n&&(u=0),n===1/0&&(u=o.children.length),-1===l||-1===u)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===u&&s.length===n&&(u=e+1);if(-1===l)throw new H(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===u)throw new H(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let c=o.children.slice(l,u);if(i.alwaysWrap||c.length!==o.children.length)if(i.alwaysWrap||1!==c.length||"element"!==c[0].type){let e={type:"element",tagName:"span",properties:{},children:c};a(e,i,"wrapper"),o.children.splice(l,c.length,e)}else a(c[0],i,"token");else a(o,i,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&nN(e,t.properties.class),e=i(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)o.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function nM(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...nR]}var n$=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],nO={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nB(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var nU={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let nD={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function nG(e,t,n={}){let r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!e6(r)&&!e4(i)&&"ansi"===r){let r,a,o,s,l,u,c,{theme:h}=e.setTheme(i);return r=e5(h,n),a=e7(t),o=function(e=nU){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<n$.length;n++)t.push(e[n$[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(n$.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,h.colors?.[t]||nD[e]]}))),s=null,l=null,u=new Set,c={parse(e){let t=[],n=0;do{let r=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),i=r.sequence?e.substring(n,r.startPosition):e.substring(n);if(i.length>0&&t.push({value:i,foreground:s,background:l,decorations:new Set(u)}),r.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)nO[r]&&t.push({type:"setDecoration",value:nO[r]});else if(r<=29){let e=nO[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:n$[r-30]}});else if(38===r){let n=nB(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:n$[r-40]}});else if(48===r){let n=nB(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:n$[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:n$[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(s=null,l=null,u.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?l=null:"resetDecoration"===t.type&&u.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?l=t.value:"setDecoration"===t.type&&u.add(t.value)}n=r.position}while(n<e.length);return t}},a.map(e=>c.parse(e[0]).map(t=>{let n,i;t.decorations.has("reverse")?(n=t.background?o.value(t.background):h.bg,i=t.foreground?o.value(t.foreground):h.fg):(n=t.foreground?o.value(t.foreground):h.fg,i=t.background?o.value(t.background):void 0),n=e3(n,r),i=e3(i,r),t.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let a=er.None;return t.decorations.has("bold")&&(a|=er.Bold),t.decorations.has("italic")&&(a|=er.Italic),t.decorations.has("underline")&&(a|=er.Underline),t.decorations.has("strikethrough")&&(a|=er.Strikethrough),{content:t.value,offset:e[1],color:n,bgColor:i,fontStyle:a}}))}return td(e,t,n)}function nF(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===p.length)throw new H("`themes` option must not be empty");let d=tm(e,t,n,nG);if(l=th(d),u&&nP!==u&&!p.find(e=>e.color===u))throw new H(`\`themes\` option must contain the defaultColor key \`${u}\``);let f=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);a=d.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>nI(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},u=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&nL.includes(a))if(r===nP&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new H('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]=`light-dark(${o[e][a]||"inherit"}, ${o[r][a]||"inherit"})`,"css-vars"===i&&(l[u(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[u(n,a)]=s)}}),a.htmlStyle=l,a})(e,g,c,u,h))),l&&tc(a,l);let m=p.map(e=>e5(e.theme,n));i=nj(p,f,m,c,u,"fg",h),r=nj(p,f,m,c,u,"bg",h),o=`shiki-themes ${f.map(e=>e.name).join(" ")}`,s=u?void 0:[i,r].join(";")}else if("theme"in n){let s=e5(n.theme,n);a=nG(e,t,n);let u=e.getTheme(n.theme);r=e3(u.bg,s),i=e3(u.fg,s),o=u.name,l=th(a)}else throw new H("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function nj(e,t,n,r,i,a,o){return e.map((s,l)=>{let u=e3(t[l][a],n[l])||"inherit",c=`${r+s.color}${"bg"===a?"-bg":""}:${u}`;if(0===l&&i){if(i===nP&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new H('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${e3(t[r][a],n[r])||"inherit"}, ${e3(t[i][a],n[i])||"inherit"});${c}`}return u}return"css-vars"===o?c:null}).filter(e=>!!e).join(";")}function nW(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>nW(e,t,n),codeToTokens:(t,n)=>nF(e,t,n)}){let i=t;for(let e of nM(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=nF(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;!0===h?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&er.Underline||i.fontStyle&er.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===h&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),p&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=nT(e.htmlStyle||nI(e)),i=nT(n.htmlStyle||nI(n)),a=e.fontStyle&&(e.fontStyle&er.Underline||e.fontStyle&er.Strikethrough),o=n.fontStyle&&(n.fontStyle&er.Underline||n.fontStyle&er.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let d={...r,get source(){return i}};for(let e of nM(n))a=e.tokens?.call(d,a)||a;return function(e,t,n,r=th(e)){let i=nM(t),a=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(u.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(u[e]=n);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:a},p=[],d={...n,structure:s,addClassToHast:nN,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return c},get code(){return h},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=nT(a.htmlStyle||nI(a));for(let o of(l&&(e.properties.style=l),i))e=o?.span?.call(d,e,t+1,r,n,a)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=a.content.length}if("classic"===s){for(let e of i)n=e?.line?.call(d,n,t+1)||n;p.push(n),a.push(n)}else"inline"===s&&p.push(n)}),"classic"===s){for(let e of i)h=e?.code?.call(d,h)||h;for(let e of(c.children.push(h),i))c=e?.pre?.call(d,c)||c;o.children.push(c)}else if("inline"===s){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of o.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(d,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&o.children.push(...t.children)}}let f=o;for(let e of i)f=e?.root?.call(d,f)||f;return r&&tc(f,r),f}(a,{...n,fg:o,bg:s,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??u)},d,c)}let nH=function(e,t){let n=t||n_,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:nA,all:nE,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ty,characterReferences:n.characterReferences||nS,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?tW:tj,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function nz(e){let t=await tl(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return th(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(e6(i)||e4(a))throw new H("Plain language does not have grammar state");if("ansi"===i)throw new H("ANSI language does not have grammar state");let{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new tp(tf(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>nG(t,e,n),codeToTokensWithThemes:(e,n)=>tm(t,e,n),codeToTokens:(e,n)=>nF(t,e,n),codeToHast:(e,n)=>nW(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>nW(e,t,n),codeToTokens:(t,n)=>nF(e,t,n)},i=nH(nW(e,t,n,r));for(let e of nM(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var nq=b({bundledLanguages:()=>S,bundledLanguagesAlias:()=>_,bundledLanguagesBase:()=>v,bundledLanguagesInfo:()=>C,bundledThemes:()=>A,bundledThemesInfo:()=>x,codeToHast:()=>nQ,codeToHtml:()=>nX,codeToTokens:()=>nK,codeToTokensBase:()=>nJ,codeToTokensWithThemes:()=>nY,createHighlighter:()=>nV,getLastGrammarState:()=>n0,getSingletonHighlighter:()=>nZ});let nV=(o=(h={langs:S,themes:A,engine:()=>(0,W.createOnigurumaEngine)(Promise.all([n.e(3616),n.e(1227)]).then(n.bind(n,71227)))}).langs,s=h.themes,l=h.engine,async function(e){function t(t){if("string"==typeof t){if(e9(t=e.langAlias?.[t]||t))return[];let n=o[t];if(!n)throw new H(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(e4(e))return"none";if("string"==typeof e){let t=s[e];if(!t)throw new H(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let r=(e.themes??[]).map(e=>n(e)),i=(e.langs??[]).map(e=>t(e)),a=await nz({engine:e.engine??l(),...e,themes:r,langs:i});return{...a,loadLanguage:(...e)=>a.loadLanguage(...e.map(t)),loadTheme:(...e)=>a.loadTheme(...e.map(n)),getBundledLanguages:()=>o,getBundledThemes:()=>s}}),{codeToHtml:nX,codeToHast:nQ,codeToTokens:nK,codeToTokensBase:nJ,codeToTokensWithThemes:nY,getSingletonHighlighter:nZ,getLastGrammarState:n0}=function(e,t){let n,r=async function(t={}){if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let r=await n;return await Promise.all([r.loadTheme(...t.themes||[]),r.loadLanguage(...t.langs||[])]),r}};async function i(e,n){let i=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(nV,{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}});var n1=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function n2(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let n5=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),n3=String.raw;function n8(e,t){if(null==e)throw Error(t??"Value expected");return e}let n6=n3`\[\^?`,n9=`c.? | C(?:-.?)?|${n3`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${n3`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${n3`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${n3`o\{[^\}]*\}?`}|${n3`\d{1,3}`}`,n4=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,n7=RegExp(n3`
|
|
2
|
-
\\ (?:
|
|
3
|
-
${n9}
|
|
4
|
-
| [gk]<[^>]*>?
|
|
5
|
-
| [gk]'[^']*'?
|
|
6
|
-
| .
|
|
7
|
-
)
|
|
8
|
-
| \( (?:
|
|
9
|
-
\? (?:
|
|
10
|
-
[:=!>({]
|
|
11
|
-
| <[=!]
|
|
12
|
-
| <[^>]*>
|
|
13
|
-
| '[^']*'
|
|
14
|
-
| ~\|?
|
|
15
|
-
| #(?:[^)\\]|\\.?)*
|
|
16
|
-
| [^:)]*[:)]
|
|
17
|
-
)?
|
|
18
|
-
| \*[^\)]*\)?
|
|
19
|
-
)?
|
|
20
|
-
| (?:${n4.source})+
|
|
21
|
-
| ${n6}
|
|
22
|
-
| .
|
|
23
|
-
`.replace(/\s+/g,""),"gsu"),re=RegExp(n3`
|
|
24
|
-
\\ (?:
|
|
25
|
-
${n9}
|
|
26
|
-
| .
|
|
27
|
-
)
|
|
28
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
29
|
-
| ${n6}
|
|
30
|
-
| &&
|
|
31
|
-
| .
|
|
32
|
-
`.replace(/\s+/g,""),"gsu");function rt(e,{inCharClass:t}){let n=e[1];if("c"===n||"C"===n){var r,i=e;let t="c"===i[1]?i[2]:i[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${i}"`);return ri(n2(t.toUpperCase())-64,i)}if("dDhHsSwW".includes(n)){let t;return ro({d:"digit",h:"hex",s:"space",w:"word"}[t=(r=e)[1].toLowerCase()],r,{negate:r[1]!==t})}if(e.startsWith(n3`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ro("property",e,{value:r,negate:"P"===t&&!n||"p"===t&&!!n})}(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return ri(n2(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===n||"x"===n)return ri(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(rc.has(n))return ri(rc.get(n),e);if(/\d/.test(n))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(n3`Incomplete escape "\"`);if("M"===n)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return ri(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function rn(e,t){return{type:"Assertion",kind:e,raw:t}}function rr(e){return{type:"Backreference",raw:e}}function ri(e,t){return{type:"Character",value:e,raw:t}}function ra(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ro(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function rs(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:n8(n.flags),raw:t}}function rl(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}let ru=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),rc=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function rh(e){let t=null,n,r;if("{"===e[0]){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups;if(+i>1e5||a&&+a>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((n=+i)>(r=void 0===a?+i:""===a?1/0:+a)&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=+("+"===e[0]),r="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:n,max:r,raw:e}}function rp(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function rd(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}let rf=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function rg(e,t={}){var n;let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},i=function(e,t={}){let n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let r=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!"imxDPSWy".includes(r))throw Error(`Invalid flag "${r}"`);if("y"===r){if(!/^y{[gw]}/.test(e.slice(n)))throw Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[n+2]?"grapheme":"word",n+=3;continue}t[({i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"})[r]]=!0}return t}(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(n7.lastIndex=0;s=n7.exec(e);){let t=function(e,t,n,r){let[i,a]=n;if("["===n||"[^"===n){let e=function(e,t,n){let r=[ra("^"===t[1],t)],i=1,a;for(re.lastIndex=n;a=re.exec(e);){let e=a[0];if("["===e[0]&&":"!==e[1])i++,r.push(ra("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===r.at(-1).type)r.push(ri(93,e));else if(i--,r.push({type:"CharacterClassClose",raw:e}),!i)break}else{let t=function(e){if("\\"===e[0])return rt(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!n5.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return ro("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:ri(n2(e),e)}(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:re.lastIndex||e.length}}(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:rn(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:{type:"Subroutine",raw:n}}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:rr(n)}}if("K"===a)return{token:rs("keep",n)};if("N"===a||"R"===a)return{token:ro("newline",n,{negate:"N"===a})};if("O"===a)return{token:ro("any",n)};if("X"===a)return{token:ro("text_segment",n)};let e=rt(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:function(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(""===r)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,l]=a,u=ru.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if("string"==typeof o)throw Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(2===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(3!==a.length)throw Error(`Named callout must have three arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if("number"==typeof s||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return{type:"NamedCallout",kind:u,tag:r??null,arguments:i?.split(",")??null,raw:e}}(n)};if("(?{"===n)throw Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(")"!==t[r])throw Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:function(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";let i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=rp(n),o=rp(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(")"))return t.replaceCurrentModX(i),rs("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,rl("group",e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:rl("group",n)};if("(?>"===n)return{token:rl("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:rl("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:rl("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw Error(`Unsupported absence function kind "${n}"`);return{token:rl("absence_repeater",n)}}throw"(?("===n?Error(`Unsupported conditional "${n}"`):Error(`Invalid or unsupported group option "${n}"`)}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:n}}}if(e.getCurrentModX()){if("#"===n){let e=t.indexOf(`
|
|
33
|
-
`,r);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return"."===n?{token:ro("dot",n)}:"^"===n||"$"===n?{token:rn(e.singleline?({"^":n3`\A`,$:n3`\Z`})[n]:n,n)}:"|"===n?{token:{type:"Alternator",raw:n}}:n4.test(n)?{tokens:function(e){let t,n=[],r=RegExp(n4,"gy");for(;t=r.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(t){let{min:i,max:a}=t.groups;if(+i>+a&&e.endsWith("?")){r.lastIndex--,n.push(rh(e.slice(0,-1)));continue}}}n.push(rh(e))}return n}(n)}:{token:ri(n2(n),n)}}(a,e,s[0],n7.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),void 0!==t.lastIndex&&(n7.lastIndex=t.lastIndex)}let l=[],u=0;o.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++u:"("===e.raw&&l.push(e)}),u||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let c=u||l.length;return{tokens:o.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[rr(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t,r=o[e];if(0===e&&"8"!==r&&"9"!==r){if((t=parseInt(r,8))>127)throw Error(n3`Octal encoded byte above 177 unsupported "${n}"`)}else t=n2(r);a.push(ri(t,(0===e?"\\":"")+r))}return a}(e,c):e).flat(),flags:r}}(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(e,t)=>{let n=i.tokens[o.nextIndex];switch(o.parent=e,o.nextIndex++,n.type){case"Alternator":return rm();case"Assertion":return function({kind:e}){return ry(n8({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===n3`\B`||e===n3`\Y`})}(n);case"Backreference":return function({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,rb(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return rb(r)}return i(+r)}(n,o);case"Character":return rk(n.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t){let{tokens:n,walk:r}=e,i=e.parent,a=i.body.at(-1),o=n[e.nextIndex];if(!t.isCheckingRangeEnd&&a&&"CharacterClass"!==a.type&&"CharacterClassRange"!==a.type&&o&&"CharacterClassOpen"!==o.type&&"CharacterClassClose"!==o.type&&"CharacterClassIntersector"!==o.type){let e=r(i,{...t,isCheckingRangeEnd:!0});if("Character"===a.type&&"Character"===e.type)return i.body.pop(),function(e,t){if(t.value<e.value)throw Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}(a,e);throw Error("Invalid character class range")}return rk(n2("-"))}(o,t);case"CharacterClassOpen":return function({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[rC()],s=rR(a);for(;"CharacterClassClose"!==s.type;){if("CharacterClassIntersector"===s.type)o.push(rC()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,n))}s=rR(r[t.nextIndex],a)}let l=rC({negate:e});return 1===o.length?l.body=o[0].body:(l.kind="intersection",l.body=o.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(n,o,t);case"CharacterSet":return function({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if("property"===e){let r=rT(n);if(!n5.has(r)||o?.has(r))return rE(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o});e="posix",n=r}return"posix"===e?function(e,t){let n=!!t?.negate;if(!n5.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}(n,{negate:t}):rv(e,{negate:t})}(n,o);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:n8(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(n.kind,{flags:n.flags});case"GroupOpen":return function(e,t,n){var r,i;let{tokens:a,capturingGroups:o,namedGroupsByName:s,skipLookbehindValidation:l,walk:u}=t,c=function({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":var a="repeater";!1;return{type:"AbsenceFunction",kind:a,body:rN(void 0)};case"atomic":return r_({atomic:!0});case"capturing":return rw(i,{name:n});case"group":return r_({flags:e});case"lookahead":case"lookbehind":return rS({behind:"lookbehind"===t,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}(e),h="AbsenceFunction"===c.type,p=rI(c),d=p&&c.negate;if("CapturingGroup"===c.type&&(o.push(c),c.name&&(r=c.name,i=[],s.has(r)||s.set(r,i),s.get(r)).push(c)),h&&n.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let f=rM(a[t.nextIndex]);for(;"GroupClose"!==f.type;){if("Alternator"===f.type)c.body.push(rm()),t.nextIndex++;else{let e=c.body.at(-1),t=u(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||h,isInLookbehind:n.isInLookbehind||p,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(p||n.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(rL(t)||"CapturingGroup"===t.type)throw Error(e)}else if(rL(t)||rI(t)&&t.negate)throw Error(e)}}f=rM(a[t.nextIndex])}return t.nextIndex++,c}(n,o,t);case"NamedCallout":var r,a;return r=n.kind,a=n.tag,{type:"NamedCallout",kind:r,tag:a,arguments:n.arguments};case"Quantifier":return function({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!rf.has(a.type))throw Error("Quantifier requires a repeatable token");let o=rx(e,t,n,a);return i.body.pop(),o}(n,o);case"Subroutine":return function({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,(i=({"":e,"+":r+e,"-":r+1-e})[a.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===i&&(i=0);let o=rA(i);return r.push(o),o}(n,o);default:throw Error(`Unexpected token type "${n.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},s=(n={type:"Flags",...i.flags},{type:"Regex",body:rN(void 0),flags:n}),l=s.body[0];for(;o.nextIndex<i.tokens.length;){let e=a(l,{});"Alternative"===e.type?(s.body.push(e),l=e):l.body.push(e)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:h,subroutines:p}=o;if(c&&h.size&&!r.rules.captureGroup)throw Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:e}of p)if("number"==typeof e){if(e>u.length)throw Error("Subroutine uses a group number that's not defined");e&&(u[e-1].isSubroutined=!0)}else if(h.has(e)){if(h.get(e).length>1)throw Error(n3`Subroutine uses a duplicate group name "\g<${e}>"`);h.get(e)[0].isSubroutined=!0}else throw Error(n3`Subroutine uses a group name that's not defined "\g<${e}>"`);return s}function rm(e){return{type:"Alternative",body:rP(e?.body)}}function ry(e,t){let n={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(n.negate=!!t?.negate),n}function rb(e,t){let n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function rw(e,t){var n;let r={name:void 0,isSubroutined:!1,...t};if(void 0!==r.name&&(n=r.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(n)))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:rN(t?.body)}}function rk(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function rC(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:rP(e?.body)}}function rv(e,t){let n=!!t?.negate,r={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(r.negate=n),"text_segment"!==e&&("newline"!==e||n)||(r.variableLength=!0),r}function r_(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:rN(e?.body)}}function rS(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:rN(e?.body)}}function rx(e,t,n,r){if(t>n)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function rA(e){return{type:"Subroutine",ref:e}}function rE(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(rT(e));if(!r){if(n.normalizeUnknownPropertyNames)r=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(n3`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function rN(e){if(void 0===e)e=[rm()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function rP(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function rL(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function rI(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function rT(e){return e.replace(/[- _]+/g,"").toLowerCase()}function rR(e,t){return n8(e,`${t?.type==="Character"&&93===t.value?"Empty":"Unclosed"} character class`)}function rM(e){return n8(e,"Unclosed group")}function r$(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,l=null){let u=0,c=!1,h={node:a,parent:o,key:s,container:l,root:e,remove(){rO(l).splice(Math.max(0,rB(s)+u),1),u--,c=!0},removeAllNextSiblings:()=>rO(l).splice(rB(s)+1),removeAllPrevSiblings(){let e=rB(s)+u;return u-=e,rO(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;l?l[Math.max(0,rB(s)+u)]=e:n8(o,"Can't replace root node")[s]=e,n&&i(e,o,s,l),c=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(rO(l).splice(Math.max(0,rB(s)+u),1,...e),u+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,rB(s)+n+t,l)}c=!0},skip(){c=!0}},{type:p}=a,d=t["*"],f=t[p],g="function"==typeof d?d:d?.enter,m="function"==typeof f?f:f?.enter;if(g?.(h,n),m?.(h,n),!c)switch(p){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":r(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":r(a.body,a),i(a.flags,a,"flags");break;default:throw Error(`Unexpected node type "${p}"`)}return f?.exit?.(h,n),d?.exit?.(h,n),u}return i(e),e}function rO(e){if(!Array.isArray(e))throw Error("Container expected");return e}function rB(e){if("number"!=typeof e)throw Error("Numeric key expected");return e}let rU=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`,rD=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function rG(e,t,n,r){let i=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1],o=0,s="";for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===rD.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?rD.CHAR_CLASS:rD.DEFAULT,negated:a[a.length-1]}):s+=n;continue}"["===e[0]?(o++,a.push("^"===e[1])):"]"===e&&o&&(o--,a.pop()),s+=e}return s}function rF(e,t,n){return!!function(e,t,n=0,r){let i;if(!RegExp(t,"su").test(e))return null;let a=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let o=0;for(;i=a.exec(e);){let{0:e,groups:{$skip:t}}=i;if(!t&&(!r||r===rD.DEFAULT==!o))return i;"["===e?o++:"]"===e&&o&&o--,a.lastIndex==i.index&&a.lastIndex++}return null}(e,t,0,n)}let rj=RegExp(String.raw`(?<noncapturingStart>${rU})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),rW=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,rH=RegExp(String.raw`
|
|
34
|
-
\\(?: \d+
|
|
35
|
-
| c[A-Za-z]
|
|
36
|
-
| [gk]<[^>]+>
|
|
37
|
-
| [pPu]\{[^\}]+\}
|
|
38
|
-
| u[A-Fa-f\d]{4}
|
|
39
|
-
| x[A-Fa-f\d]{2}
|
|
40
|
-
)
|
|
41
|
-
| \((?: \? (?: [:=!>]
|
|
42
|
-
| <(?:[=!]|[^>]+>)
|
|
43
|
-
| [A-Za-z\-]+:
|
|
44
|
-
| \(DEFINE\)
|
|
45
|
-
))?
|
|
46
|
-
| (?<qBase>${rW})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
47
|
-
| \\?.
|
|
48
|
-
`.replace(/\s+/g,""),"gsu"),rz=String.raw,rq=rz`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,rV=rz`\(\?R=(?<rDepth>[^\)]+)\)|${rq}`,rX=rz`\(\?<(?![=!])(?<captureName>[^>]+)>`,rQ=rz`${rX}|(?<unnamed>\()(?!\?)`,rK=RegExp(rz`${rX}|${rV}|\(\?|\\?.`,"gsu"),rJ="Cannot use multiple overlapping recursions";function rY(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function rZ(e,t,n,r,i,a,o){let s=new Set;r&&rG(e+t,rX,({groups:{captureName:e}})=>{s.add(e)},rD.DEFAULT);let l=[n,r?s:null,i,a,o];return`${e}${r0(`(?:${e}`,"forward",...l)}(?:)${r0(`${t})`,"backward",...l)}${t}`}function r0(e,t,n,r,i,a,o){let s=e=>"forward"===t?e+2:n-e+2-1,l="";for(let t=0;t<n;t++){let n=s(t);l+=rG(e,rz`${rQ}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:l}})=>{if(l&&r&&!r.has(l))return e;let u=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),function(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}(i,n),s?e:`(?<${t}${u}>`}return rz`\k<${l}${u}>`},rD.DEFAULT)}return l}function r1(e,t,n,r,i,a){if(e.size&&r){let o=0;rG(t,rQ,()=>o++,rD.DEFAULT);let s=a-o+i,l=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,u=t>s+o?t+r:t,c=[];for(let t of e)if(t<=s)c.push(t);else if(t>s+o+i)c.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)c.push(t+o*e);else for(let e=0;e<=n;e++)c.push(t+a+i*e);l.set(u,c)}),l}return e}var r2=String.fromCodePoint,r5=String.raw,r3={flagGroups:(()=>{try{RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{RegExp("[[]]","v")}catch{return!1}return!0})()};function r8(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function r6(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}r3.bugFlagVLiteralHyphenIsRange=!!r3.unicodeSets&&(()=>{try{RegExp(r5`[\d\-a]`,"v")}catch{return!0}return!1})(),r3.bugNestedClassIgnoresNegation=r3.unicodeSets&&RegExp("[[^a]]","v").test("a");var r9={ES2025:2025,ES2024:2024,ES2018:2018},r4={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function r7(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");if(void 0!==e.target&&!r4[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=r3.flagGroups?"ES2025":r3.unicodeSets?"ES2024":"ES2018"),t}var ie=new Set([r2(304),r2(305)]),it=r5`[\p{L}\p{M}\p{N}\p{Pc}]`;function ir(e){if(ie.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=is.get(n),a=ia.get(n),o=io.get(n);return 1==[...r].length&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var ii=new Map(`C Other
|
|
49
|
-
Cc Control cntrl
|
|
50
|
-
Cf Format
|
|
51
|
-
Cn Unassigned
|
|
52
|
-
Co Private_Use
|
|
53
|
-
Cs Surrogate
|
|
54
|
-
L Letter
|
|
55
|
-
LC Cased_Letter
|
|
56
|
-
Ll Lowercase_Letter
|
|
57
|
-
Lm Modifier_Letter
|
|
58
|
-
Lo Other_Letter
|
|
59
|
-
Lt Titlecase_Letter
|
|
60
|
-
Lu Uppercase_Letter
|
|
61
|
-
M Mark Combining_Mark
|
|
62
|
-
Mc Spacing_Mark
|
|
63
|
-
Me Enclosing_Mark
|
|
64
|
-
Mn Nonspacing_Mark
|
|
65
|
-
N Number
|
|
66
|
-
Nd Decimal_Number digit
|
|
67
|
-
Nl Letter_Number
|
|
68
|
-
No Other_Number
|
|
69
|
-
P Punctuation punct
|
|
70
|
-
Pc Connector_Punctuation
|
|
71
|
-
Pd Dash_Punctuation
|
|
72
|
-
Pe Close_Punctuation
|
|
73
|
-
Pf Final_Punctuation
|
|
74
|
-
Pi Initial_Punctuation
|
|
75
|
-
Po Other_Punctuation
|
|
76
|
-
Ps Open_Punctuation
|
|
77
|
-
S Symbol
|
|
78
|
-
Sc Currency_Symbol
|
|
79
|
-
Sk Modifier_Symbol
|
|
80
|
-
Sm Math_Symbol
|
|
81
|
-
So Other_Symbol
|
|
82
|
-
Z Separator
|
|
83
|
-
Zl Line_Separator
|
|
84
|
-
Zp Paragraph_Separator
|
|
85
|
-
Zs Space_Separator
|
|
86
|
-
ASCII
|
|
87
|
-
ASCII_Hex_Digit AHex
|
|
88
|
-
Alphabetic Alpha
|
|
89
|
-
Any
|
|
90
|
-
Assigned
|
|
91
|
-
Bidi_Control Bidi_C
|
|
92
|
-
Bidi_Mirrored Bidi_M
|
|
93
|
-
Case_Ignorable CI
|
|
94
|
-
Cased
|
|
95
|
-
Changes_When_Casefolded CWCF
|
|
96
|
-
Changes_When_Casemapped CWCM
|
|
97
|
-
Changes_When_Lowercased CWL
|
|
98
|
-
Changes_When_NFKC_Casefolded CWKCF
|
|
99
|
-
Changes_When_Titlecased CWT
|
|
100
|
-
Changes_When_Uppercased CWU
|
|
101
|
-
Dash
|
|
102
|
-
Default_Ignorable_Code_Point DI
|
|
103
|
-
Deprecated Dep
|
|
104
|
-
Diacritic Dia
|
|
105
|
-
Emoji
|
|
106
|
-
Emoji_Component EComp
|
|
107
|
-
Emoji_Modifier EMod
|
|
108
|
-
Emoji_Modifier_Base EBase
|
|
109
|
-
Emoji_Presentation EPres
|
|
110
|
-
Extended_Pictographic ExtPict
|
|
111
|
-
Extender Ext
|
|
112
|
-
Grapheme_Base Gr_Base
|
|
113
|
-
Grapheme_Extend Gr_Ext
|
|
114
|
-
Hex_Digit Hex
|
|
115
|
-
IDS_Binary_Operator IDSB
|
|
116
|
-
IDS_Trinary_Operator IDST
|
|
117
|
-
ID_Continue IDC
|
|
118
|
-
ID_Start IDS
|
|
119
|
-
Ideographic Ideo
|
|
120
|
-
Join_Control Join_C
|
|
121
|
-
Logical_Order_Exception LOE
|
|
122
|
-
Lowercase Lower
|
|
123
|
-
Math
|
|
124
|
-
Noncharacter_Code_Point NChar
|
|
125
|
-
Pattern_Syntax Pat_Syn
|
|
126
|
-
Pattern_White_Space Pat_WS
|
|
127
|
-
Quotation_Mark QMark
|
|
128
|
-
Radical
|
|
129
|
-
Regional_Indicator RI
|
|
130
|
-
Sentence_Terminal STerm
|
|
131
|
-
Soft_Dotted SD
|
|
132
|
-
Terminal_Punctuation Term
|
|
133
|
-
Unified_Ideograph UIdeo
|
|
134
|
-
Uppercase Upper
|
|
135
|
-
Variation_Selector VS
|
|
136
|
-
White_Space space
|
|
137
|
-
XID_Continue XIDC
|
|
138
|
-
XID_Start XIDS`.split(/\s/).map(e=>[rT(e),e])),ia=new Map([["s",r2(383)],[r2(383),"s"]]),io=new Map([[r2(223),r2(7838)],[r2(107),r2(8490)],[r2(229),r2(8491)],[r2(969),r2(8486)]]),is=new Map([iu(453),iu(456),iu(459),iu(498),...ic(8072,8079),...ic(8088,8095),...ic(8104,8111),iu(8124),iu(8140),iu(8188)]),il=new Map([["alnum",r5`[\p{Alpha}\p{Nd}]`],["alpha",r5`\p{Alpha}`],["ascii",r5`\p{ASCII}`],["blank",r5`[\p{Zs}\t]`],["cntrl",r5`\p{Cc}`],["digit",r5`\p{Nd}`],["graph",r5`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",r5`\p{Lower}`],["print",r5`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",r5`[\p{P}\p{S}]`],["space",r5`\p{space}`],["upper",r5`\p{Upper}`],["word",r5`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",r5`\p{AHex}`]]);function iu(e){let t=r2(e);return[t.toLowerCase(),t]}function ic(e,t){return(function(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n})(e,t).map(e=>iu(e))}var ih=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),ip={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if("repeater"===i){let e=r_();e.body[0].body.push(rS({negate:!0,body:r}),rE("Any"));let i=r_();i.body[0].body.push(rx("greedy",0,1/0,e)),n(ix(i,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++)r6(r,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=iw(t.get(e));if(n){let t=r_({flags:n});t.body[0].body=e.body,e.body=[ix(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:h,supportedGNodes:p,wordIsAscii:d}=s;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===l)o(ix(rS({body:[rm({body:[ry("string_end")]}),rm({body:[rk(10)]})]}),t));else if("line_start"===l)o(ix(iv(r5`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(p.has(e))i.flags.sticky=!0,a();else{var f;let e,i=r[n-1];if(i&&((e=["Character","CharacterClass","CharacterSet"]).includes((f=i).type)||"Quantifier"===f.type&&f.min&&e.includes(f.body.type)))o(ix(rS({negate:!0}),t));else if(h)throw Error(r5`Uses "\G" in a way that requires a subclass`);else o(iS(ry("string_start"),t)),s.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)o(ix(iv(r5`(?=\n?\z)`),t));else if("word_boundary"===l){if(!d&&!c){let e=`(?:(?<=${it})(?!${it})|(?<!${it})(?=${it}))`,n=`(?:(?<=${it})(?=${it})|(?<!${it})(?!${it}))`;o(ix(iv(u?n:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||iC(n)||(e.ref=n=ib(n,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!iC(r)&&(e.name=r=ib(r,t)),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(ix(rC({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:l,negate:u,value:c}=e;if(a&&("digit"===l||"digit"===c))return void n(iS(rv("digit",{negate:u}),t));if(o&&("space"===l||"space"===c))return void n(ix(i_(iv("[ -\r ]"),u),t));if(s&&("word"===l||"word"===c))return void n(iS(rv("word",{negate:u}),t));if("any"===l)n(iS(rE("Any"),t));else if("digit"===l)n(iS(rE("Nd",{negate:u}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===r)throw Error(r5`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",a=r5`\p{RI}{2}|${e}(?:\u200D${e})*`;n(ix(iv(r5`(?>\r\n|${i?r5`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)n(iS(rE("AHex",{negate:u}),t));else if("newline"===l)n(ix(iv(u?"[^\n]":"(?>\r\n?|[\n\v\f\x85\u2028\u2029])"),t));else if("posix"===l)if(i||"graph"!==c&&"print"!==c)n(ix(i_(iv(il.get(c)),u),t));else{if("strict"===r)throw Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[c];u&&(e=`\0-${r2(e.codePointAt(0)-1)}${r2(e.codePointAt(2)+1)}-\u{10FFFF}`),n(ix(iv(`[${e}]`),t))}else if("property"===l)ii.has(rT(c))||(e.key="sc");else if("space"===l)n(iS(rE("space",{negate:u}),t));else if("word"===l)n(ix(i_(iv(it),u),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:l}=e;if("flags"===s)if(l.enable||l.disable){let e=r_({flags:l});e.body[0].body=o(),i(ix(e,t),{traverse:!0})}else r();else if("keep"===s){let e=n.body[0],r=1===n.body.length&&rd(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(r5`Uses "\K" in a way that's unsupported`);let o=rS({behind:!0});o.body[0].body=a(),i(ix(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if("fail"===r)n(ix(rS({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=r_();t.body[0].body.push(e.body),e.body=ix(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let n=t.find(e=>"search_start"===e.kind||function(e,t){let n={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&rd(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!n)return null;if("search_start"===n.kind)return n;if("LookaroundAssertion"===n.type)return n.body[0].body[0];if("CapturingGroup"===n.type||"Group"===n.type){let t=[];for(let r of n.body){let n=e(r.body);if(!n)return null;Array.isArray(n)?t.push(...n):t.push(n)}return t}return null}(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if("strict"===t&&n&&r)throw Error(r5`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"!=typeof n||iC(n)||(e.ref=n=ib(n,t))}},id={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:l}){let u=i.get(e);if(u&&s.has(e.number)){let r=iS(iy(e.number),t);l.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&r6(o,e.name,[]);let c=o.get(e.name??e.number);for(let t=0;t<c.length;t++){let n=c[t];if(u===n.node||u&&u===n.origin||e===n.origin){c.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:u}),e.name&&o.get(e.name).push({node:e,origin:u}),e.name){let t=r6(a,e.name,new Map),n=!1;if(u)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=r8(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=0===a,l=s?iy(0):function e(t,n,r,i){let a=Array.isArray(t)?[]:{};for(let[o,s]of Object.entries(t))"parent"===o?a.parent=Array.isArray(r)?i:r:s&&"object"==typeof s?a[o]=e(s,n,a,r):("type"===o&&"CapturingGroup"===s&&n.set(a,n.get(t)??t),a[o]=s);return a}(o,r.groupOriginByCopy,null),u=l;if(!s){var c,h;let e=iw(function(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}(o,e=>"Group"===e.type&&!!e.flags)),t=e?r8(r.globalFlags,e):r.globalFlags;c=t,h=r.currentFlags,(c.dotAll!==h.dotAll||c.ignoreCase!==h.ignoreCase)&&(u=r_({flags:function({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),e&&t||(n.disable={},e||(n.disable.dotAll=!0),t||(n.disable.ignoreCase=!0)),n}(t)})).body[0].body.push(l)}n(ix(u,t),{traverse:!s})}},ig={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;for(let t of ik(n.parent)){if(t===n)break;if(t===e||function e(t,n){for(let r of ik(t)??[])if(r===n||e(r,n))return!0;return!1}(t,e))return!0}}while(n=n.parent);throw Error("Unexpected path")})(t,e));i.length?i.length>1?n(ix(r_({atomic:!0,body:i.reverse().map(e=>rm({body:[rb(e.number)]}))}),t)):e.ref=i[0].number:n(ix(rS({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=rw();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function im(e){r$(e,{"*"({node:e,parent:t}){e.parent=t}})}function iy(e){let t=rA(e);return t.isRecursive=!0,t}function ib(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function iw(e){let t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable)?n:null}function ik(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function iC(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function iv(e,t){let n=rg(e,{...t,unicodePropertyMap:ii}).body;return n.length>1||n[0].body.length>1?r_({body:n}):n[0].body[0]}function i_(e,t){return e.negate=t,e}function iS(e,t){return e.parent=t,e}function ix(e,t){return im(e),e.parent=t,e}var iA={"*":{enter({node:e},t){if(iO(e)){let n=t.getCurrentModI();t.pushModI(e.flags?r8({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){iO(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){iR(r2(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),iM(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&ih.has(e.value)&&t.setHasCasedChar()}},iE={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?r5`\B`:r5`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){let n=r2(e),r=i$(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&iR(n)){let e=ir(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if("intersection"===r&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");r3.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(iB)&&(o=[rk(45),...o.filter(e=>!iB(e))]);let s=()=>`[${i?"^":""}${o.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||r3.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let r=r_(),i=r.body[0];return r.parent=a,i.parent=r,e.body=o=o.filter(e=>!t.includes(e)),o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=rm({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let l=o[0];if("union"===r&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&!(r3.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===o.length&&"CharacterClassRange"!==l.type))return o.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=i$(n,i),o=i$(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n})(iM(e)).forEach(e=>{s.add(Array.isArray(e)?`${i$(e[0],i)}-${i$(e[1],i)}`:i$(e,i))}),`${a}-${o}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if("dot"===e)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":r5`[^\n]`;if("digit"===e)return t?r5`\D`:r5`\d`;if("property"===e){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&ih.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?r5`\P`:r5`\p`}{${r?`${r}=`:""}${n}}`}if("word"===e)return t?r5`\W`:r5`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=r8(o,n));let s=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===r.type||e||i.useFlagMods&&n?`(?${function(e,t,n){if(e)return">";let r="";if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(n?"-":"")+(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")}return`${r}:`}(e,n,i.useFlagMods)}${s})`:s;return i.currentFlags=o,l},LookaroundAssertion({body:e,kind:t,negate:n},r,i){let a=`${"lookahead"===t?"":"<"}${n?"!":"="}`;return`(?${a}${e.map(i).join("|")})`},Quantifier:(e,t,n)=>n(e.body)+function({kind:e,max:t,min:n}){return(n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return 0===t?`(?R=${r})`:r5`\g<${t}&R=${r}>`}},iN=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),iP=new Set(["-","\\","]","^","["]),iL=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),iI=new Map([[9,r5`\t`],[10,r5`\n`],[11,r5`\v`],[12,r5`\f`],[13,r5`\r`],[8232,r5`\u2028`],[8233,r5`\u2029`],[65279,r5`\uFEFF`]]),iT=/^\p{Cased}$/u;function iR(e){return iT.test(e)}function iM(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){let t=r2(e);if(!iR(t))continue;let o=ir(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function i$(e,{escDigit:t,inCharClass:n,useFlagV:r}){var i;if(iI.has(e))return iI.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=r2(e);return((n?r?iL:iP:iN).has(a)?"\\":"")+a}function iO({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function iB({type:e,value:t}){return"Character"===e&&45===t}var iU=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){const i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error("Cannot provide options when copying a regexp");super(t,n),this.#n=t.source,t instanceof e&&(this.#e=t.#e,this.#r=t.#r,this.#i=t.#i,this.rawOptions=t.rawOptions)}else{const e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":t,n),this.#n=t,this.#e=function(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)r6(n,t,{}).transferTo=e;return n}(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if("clip_search"===this.#i&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(function(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){let t;this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;let r=[...n];n.length=1,this.hasIndices&&(t=[...n.indices],n.indices.length=1);let i=[0];for(let e=1;e<r.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(n.length),n.push(r[e]),this.hasIndices&&n.indices.push(t[e])),o&&void 0!==r[e]){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(n[a]=r[e],this.hasIndices&&(n.indices[a]=t[e]),n.groups){this.#r||(this.#r=function(e){let t,n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,i=0,a=0;for(;t=n.exec(e);){let{0:e,groups:{capture:n,name:o}}=t;"["===e?i++:i?"]"===e&&i--:n&&(a++,o&&r.set(a,o))}return r}(this.source));let i=this.#r.get(o);i&&(n.groups[i]=r[e],this.hasIndices&&(n.indices.groups[i]=t[e]))}}}return n}};function iD(e,t){let n;return(n=function(e,t){var n;let r,i,a,o,s=r7(t),l=(n=rg(e,{flags:s.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:s.rules.captureGroup,singleline:s.rules.singleline},skipBackrefValidation:s.rules.allowOrphanBackrefs,unicodePropertyMap:ii}),r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...{accuracy:s.accuracy,asciiWordBoundaries:s.rules.asciiWordBoundaries,avoidSubclass:s.avoidSubclass,bestEffortTarget:s.target}},im(n),i={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:r9[r.bestEffortTarget]>=r9.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:n.flags.digitIsAscii,spaceIsAscii:n.flags.spaceIsAscii,wordIsAscii:n.flags.wordIsAscii},r$(n,ip,i),o={currentFlags:a={dotAll:n.flags.dotAll,ignoreCase:n.flags.ignoreCase},prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:i.subroutineRefMap},r$(n,id,o),r$(n,ig,{groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer}),n._originMap=o.groupOriginByCopy,n._strategy=i.strategy,n),u=function(e,t){let n=r7(t),r=r9[n.target]>=r9.ES2024,i=r9[n.target]>=r9.ES2025,a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error("Invalid recursionLimit; use 2-20");let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];r$(e,iA,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},u=e,c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function h(e){return c.lastNode=u,u=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(iE[e.type],`Unexpected node type "${e.type}"`)(e,c,h)}let p={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],c.captureMap.forEach((e,t)=>{e.hidden&&p._hiddenCaptures.push(t),e.transferTo&&r6(p._captureTransfers,e.transferTo,[]).push(t)}),p}(l,s),c=function(e,t){let n,{hiddenCaptures:r,mode:i}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!RegExp(rV,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if("plugin"===i&&rF(e,rz`\(\?\(DEFINE\)`,rD.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let o=[],s=rF(e,rz`\\[1-9]`,rD.DEFAULT),l=new Map,u=[],c=!1,h=0,p=0;for(rK.lastIndex=0;n=rK.exec(e);){let{0:t,groups:{captureName:d,rDepth:f,gRNameOrNum:g,gRDepth:m}}=n;if("["===t)h++;else if(h)"]"===t&&h--;else if(f){if(rY(f),c)throw Error(rJ);if(s)throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,n.index),l=e.slice(rK.lastIndex);if(rF(l,rV,rD.DEFAULT))throw Error(rJ);let u=f-1;e=rZ(t,l,u,!1,r,o,p),a=r1(a,t,u,o.length,0,p);break}else if(g){rY(m);let h=!1;for(let e of u)if(e.name===g||e.num===+g){if(h=!0,e.hasRecursedWithin)throw Error(rJ);break}if(!h)throw Error(rz`Recursive \g cannot be used outside the referenced group "${"external"===i?g:rz`\g<${g}&R=${m}>`}"`);let d=l.get(g),f=function(e,t){let n,r=/\\?./gsu;r.lastIndex=t;let i=e.length,a=0,o=1;for(;n=r.exec(e);){let[e]=n;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)o++;else if(")"===e&&!--o){i=n.index;break}}return e.slice(t,i)}(e,d);if(s&&rF(f,rz`${rX}|\((?!\?)`,rD.DEFAULT))throw Error(`${"external"===i?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(d,n.index),b=f.slice(y.length+t.length),w=o.length,k=m-1,C=rZ(y,b,k,!0,r,o,p);a=r1(a,y,k,o.length-w,w,p);let v=e.slice(0,d),_=e.slice(d+f.length);e=`${v}${C}${_}`,rK.lastIndex+=C.length-t.length-y.length-b.length,u.forEach(e=>e.hasRecursedWithin=!0),c=!0}else if(d)p++,l.set(String(p),rK.lastIndex),l.set(d,rK.lastIndex),u.push({num:p,name:d});else if("("===t[0]){let e="("===t;e&&(p++,l.set(String(p),rK.lastIndex)),u.push(e?{num:p}:{})}else")"===t&&u.pop()}return r.push(...o),{pattern:e,captureTransfers:a,hiddenCaptures:r}}(u.pattern,{captureTransfers:u._captureTransfers,hiddenCaptures:u._hiddenCaptures,mode:"external"}),h=function(e,t){let n,r=t?.hiddenCaptures??[],i=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};let a="(?:(?=(",o=[0],s=[],l=0,u=0,c=NaN;do{let t;n=!1;let h=0,p=0,d=!1;for(rj.lastIndex=Number.isNaN(c)?0:c+a.length;t=rj.exec(e);){let{0:f,index:g,groups:{capturingStart:m,noncapturingStart:y}}=t;if("["===f)h++;else if(h)"]"===f&&h--;else if("(?>"!==f||d){if(d&&y)p++;else if(m)d?p++:(l++,o.push(l+u));else if(")"===f&&d){if(!p){let t=l+ ++u;e=`${e.slice(0,c)}${a}${e.slice(c+3,g)}))<$$${t}>)${e.slice(g+1)}`,n=!0,s.push(t);for(let e=0;e<r.length;e++)r[e]>=t&&r[e]++;if(i.size){let e=new Map;i.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),i=e}break}p--}}else c=g,d=!0}}while(n);return r.push(...s),{pattern:e=rG(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>o.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${o[n]}`}return`\\${n}`},rD.DEFAULT),captureTransfers:i,hiddenCaptures:r}}(function(e){let t;if(!RegExp(`${rW}\\+`).test(e))return{pattern:e};let n=[],r=null,i=null,a="",o=0;for(rH.lastIndex=0;t=rH.exec(e);){let{0:u,index:c,groups:{qBase:h,qMod:p,invalidQ:d}}=t;if("["===u)o||(i=c),o++;else if("]"===u)o?o--:i=null;else if(!o)if("+"===p&&a&&!a.startsWith("(")){if(d)throw Error(`Invalid quantifier "${u}"`);let t=-1;if(/^\{\d+\}$/.test(h)){var s,l;s=e,l=c+h.length,e=s.slice(0,l)+""+s.slice(l+p.length)}else{if(")"===a||"]"===a){let t=")"===a?r:i;if(null===t)throw Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${h})${e.slice(c+u.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${h})${e.slice(c+u.length)}`;t+=4}rH.lastIndex+=t}else"("===u[0]?n.push(c):")"===u&&(r=n.length?n.pop():null);a=u}return{pattern:e}}(c.pattern).pattern,{captureTransfers:c.captureTransfers,hiddenCaptures:c.hiddenCaptures}),p={pattern:h.pattern,flags:`${s.hasIndices?"d":""}${s.global?"g":""}${u.flags}${u.options.disable.v?"u":"v"}`};if(s.avoidSubclass){if(s.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=h.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(h.captureTransfers),n=l._strategy,r=p.pattern.length>=s.lazyCompileLength;(e.length||t.length||n||r)&&(p.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...n&&{strategy:n},...r&&{lazyCompile:r}})}return p}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})).options?new iU(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function iG(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>iD(e,{target:t.target}),{createScanner:e=>new n1(e,t),createString:e=>({content:e})}}k(b({bundledLanguages:()=>S,bundledLanguagesAlias:()=>_,bundledLanguagesBase:()=>v,bundledLanguagesInfo:()=>C,bundledThemes:()=>A,bundledThemesInfo:()=>x,codeToHast:()=>nQ,codeToHtml:()=>nX,codeToTokens:()=>nK,codeToTokensBase:()=>nJ,codeToTokensWithThemes:()=>nY,createHighlighter:()=>nV,createJavaScriptRegexEngine:()=>iG,createOnigurumaEngine:()=>j,defaultJavaScriptRegexConstructor:()=>iD,getLastGrammarState:()=>n0,getSingletonHighlighter:()=>nZ,loadWasm:()=>U}),nq)},64792:e=>{var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|d(r,i),l=o(a),u=l.write(r,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,n);var f=function(e){if(s.isBuffer(e)){var t=0|p(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(f)return f;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|p(e))}function h(e){for(var t=e.length<0?0:0|p(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return E(e).length;default:if(i)return r?-1:x(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=L[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,a=t,o=n,0===a&&o===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,p=0;p<l;p++)if(u(e,a+p)!==u(t,p)){h=!1;break}if(h)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(P(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(P(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),h=0;h<l;++h)if(u[h]!==c[h]){a=u[h],o=c[h];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,u=e[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}var p=r,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var f="",g=0;g<d;)f+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return f}function w(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function C(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function v(e,t,n,r,a){return t*=1,n>>>=0,a||C(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function _(e,t,n,r,a){return t*=1,n>>>=0,a||C(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,h,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var d=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[n+o]=l}return o}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,N(x(e,this.length-i),this,i,a);case"ascii":return o=t,s=n,N(A(e),this,o,s);case"latin1":case"binary":return function(e,t,n,r){return N(A(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,N(E(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,h=n,N(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,h);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;k(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;k(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||k(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return v(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return v(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function x(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function A(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function E(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var L=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,p=n?-1:1,d=e[t+h];for(h+=p,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=256*a+e[t+h],h+=p,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+h],h+=p,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=u}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,p=5960464477539062e-23*(23===i),d=r?0:a-1,f=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+h>=1?t+=p/l:t+=p*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+d]=255&o,d+=f,o/=256,u-=8);e[n+d-f]|=128*g}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//",e.exports=r(72)}}]);
|