@visulima/vite-overlay 2.0.20 → 2.0.21

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/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## @visulima/vite-overlay [2.0.21](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@2.0.20...@visulima/vite-overlay@2.0.21) (2026-09-07)
2
+
1
3
  ## @visulima/vite-overlay [2.0.20](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@2.0.19...@visulima/vite-overlay@2.0.20) (2026-09-06)
2
4
 
3
5
  ## @visulima/vite-overlay [2.0.19](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@2.0.18...@visulima/vite-overlay@2.0.19) (2026-09-03)
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import{createRequire as vn}from"node:module";import{codeToANSI as _n}from"@shikijs/cli";import{getErrorCauses as xn,renderError as kn}from"@visulima/error/error";import{errorHintFinder as En,ruleBasedFinder as Sn}from"@visulima/error/solution";import Cn from"./packem_shared/createViteSolutionFinder-D-CU4Sux.js";import{parseStacktrace as K,formatStacktrace as Nt,codeFrame as nt}from"@visulima/error";import Le from"@visulima/error/solution/ai/prompt";let wn;const bn=e=>(wn??=vn(import.meta.url))(e),oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ht=e=>{if(typeof oe<"u"&&oe.versions&&oe.versions.node){const[t,n]=oe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return oe.getBuiltinModule(e)}return bn(e)},{stripVTControlCharacters:yn,styleText:tt}=Ht("node:util"),{readFile:Ot}=Ht("node:fs/promises"),Tn=new Set(["cjs","mjs"]),Rn=new Set(["cts","mts"]),Ln=new Set(["mdoc"]),J=e=>{const n=(e.split("?")[0]??e).split(".").pop()?.toLowerCase();if(!n)return"text";if(Tn.has(n))return"javascript";if(Rn.has(n))return"typescript";if(Ln.has(n))return"markdown";switch(n){case"js":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";case"yaml":case"yml":return"yaml";case"toml":return"toml";case"py":return"python";case"go":return"go";case"rs":return"rust";case"rb":return"ruby";case"php":return"php";case"graphql":case"gql":return"graphql";case"dockerfile":return"dockerfile";case"sh":case"bash":return"bash";case"txt":return"text";default:return"text"}},ot=500,jt="visulima:vite-overlay:error",$n="visulima-vite-overlay",qt="Error",An="Runtime error",Pn=8,rt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-left%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m15%2018-6-6%206-6%22%20%2F%3E%20%3C%2Fsvg%3E",me="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-right%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%20%2F%3E%20%3C%2Fsvg%3E",st="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clock%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%206v6l4%202%22%20%2F%3E%20%3C%2Fsvg%3E",it="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",at="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",lt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",ct="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",be="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var Ae=(e=>(e.appcode="AppCode",e["android-studio"]="Android Studio",e.atom="Atom",e["atom-beta"]="Atom Beta",e.brackets="Brackets",e.clion="CLion",e.code="Visual Studio Code",e["code-insiders"]="Visual Studio Code Insiders",e.codium="VSCodium",e.cursor="Cursor",e.emacs="GNU Emacs",e.emacsforosx="GNU Emacs for Mac OS X",e.fleet="JetBrains Fleet",e.helix="Helix",e.intellij="IntelliJ IDEA",e.idea="IntelliJ IDEA",e.kiro="Kiro",e.nano="GNU nano",e.neovim="NeoVim",e["notepad++"]="Notepad++",e.phpstorm="PhpStorm",e.pycharm="PyCharm",e.rider="Rider",e.rubymine="RubyMine",e.sublime="SublimeText",e.textmate="TextMate",e.vim="Vim",e.visualstudio="Visual Studio",e.vscode="Visual Studio Code",e.vscodium="VSCodium",e.webstorm="WebStorm",e.windsurf="Windsurf",e.xcode="Xcode",e.zed="Zed",e))(Ae||{}),In=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-outline-style:solid;--num:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body,:host{color:var(--ono-v-text);font-feature-settings:"kern" 1;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;box-sizing:border-box;background-color:#0000;font-family:Space Grotesk,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5}pre,code{font-feature-settings:"kern" 1, "zero" 1;font-family:Space Mono,ui-monospace,Cascadia Code,monospace}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-primary)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-v-primary) 15%, transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border:1px solid var(--ono-v-border);border-radius:0;padding:.125rem .375rem;font-family:inherit;font-size:.75rem}hr{border-color:var(--ono-v-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([type=radio]):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);outline:2px solid #0000}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([type=checkbox]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){input:where([type=checkbox]):checked{appearance:auto}}input:where([type=radio]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([type=checkbox]):indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([type=file]):focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.top-4{top:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.left-1\\/2{left:50%}.-z-1{z-index:calc(1 * -1)}.z-1{z-index:1}.z-10{z-index:10}.z-2147483646,.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin:var(--spacing)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing) * -3)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-0{margin-bottom:0}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-1{margin-left:var(--spacing)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.h-5{height:calc(var(--spacing) * 5)}.h-10{height:calc(var(--spacing) * 10)}.h-\\[40vmin\\]{height:40vmin}.max-h-50{max-height:calc(var(--spacing) * 50)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[160px\\]{max-height:160px}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-screen{min-height:100vh}.w-7{width:calc(var(--spacing) * 7)}.w-44{width:calc(var(--spacing) * 44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-full{width:100%}.max-w-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.bg-black\\/65{background-color:#000000a6}@supports (color:color-mix(in lab, red, red)){.bg-black\\/65{background-color:color-mix(in oklab, var(--color-black) 65%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pe-6{padding-inline-end:calc(var(--spacing) * 6)}.pt-\\[8vh\\]{padding-top:8vh}.pr-1{padding-right:var(--spacing)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-red-orange\\)\\]{color:var(--ono-v-red-orange)}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-\\[var\\(--ono-v-text-muted\\)\\]{color:var(--ono-v-text-muted)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\(--ono-v-hover-overlay\\):hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\(--ono-v-primary\\):focus{--tw-ring-color:var(--ono-v-primary)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\(--ono-v-text\\):focus-visible{outline-color:var(--ono-v-text)}.active\\:opacity-80:active{opacity:.8}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--brand-accent:#d71921;--brand-white:#fff;--brand-bg:#f5f5f5;--brand-border-visible:#ccc;--brand-text-secondary:#666;--brand-surface-dark:#111;--brand-black:#000;--color-background:#f5f5f5;--color-foreground:#1a1a1a;--color-card:#fff;--color-accent:#f0f0f0;--color-muted:#e8e8e8;--color-muted-foreground:#666;--color-primary:#d71921;--color-primary-foreground:#fff;--color-border:#e8e8e8;--color-ring:#ccc;--color-destructive:#d71921;--color-destructive-foreground:#fff;--color-success:#4a9e5c;--color-success-foreground:#4a9e5c;--color-warning:#d4a843;--color-info:#666;--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-foreground);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-hover-overlay:color-mix(in srgb, var(--color-foreground) 4%, transparent)}}:host{--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}.dark{--color-background:#000;--color-foreground:#e8e8e8;--color-card:#111;--color-accent:#1a1a1a;--color-muted:#222;--color-muted-foreground:#999;--color-primary:#d71921;--color-primary-foreground:#fff;--color-border:#222;--color-ring:#333;--color-destructive:#d71921;--color-destructive-foreground:#fff;--color-success:#4a9e5c;--color-success-foreground:#4a9e5c;--color-warning:#d4a843;--color-info:#999;--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-foreground);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:#ffffff0d;--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){.dark{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}:host{--ono-v-dialog-max-width:960px}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:1px solid var(--ono-v-text);outline-offset:2px}.v-o-label{text-transform:uppercase;letter-spacing:.08em;font-family:Space Mono,ui-monospace,monospace;font-weight:700}.v-o-loading-text{text-transform:uppercase;letter-spacing:.06em;color:var(--ono-v-text-muted);font-family:Space Mono,ui-monospace,monospace;font-size:12px}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;flex-shrink:0;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing) * 4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab, var(--color-green-500) 15%, transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab, var(--color-red-500) 15%, transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing) * 3);margin-top:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing) * 3);margin-top:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab, var(--color-green-500) 20%, transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab, var(--color-red-500) 20%, transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}select#editor-selector{background-color:var(--ono-v-surface);color:var(--ono-v-text);border-color:var(--ono-v-border);color-scheme:light}.dark select#editor-selector{color-scheme:dark;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")}#__v_o__stacktrace summary .dui{transition:transform .15s ease-out}#__v_o__stacktrace[open] summary .dui{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root:not(.hidden)[data-error-type=server]~#__v_o__balloon_group{display:none!important}.devtools-content-scroll{scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}.devtools-content-scroll::-webkit-scrollbar{width:5px;height:5px}.devtools-content-scroll::-webkit-scrollbar-track{background:0 0}.devtools-content-scroll::-webkit-scrollbar-thumb{background:var(--color-border)}.devtools-content-scroll::-webkit-scrollbar-thumb:hover{background:var(--color-muted-foreground)}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --num{syntax:"<integer>";inherits:false;initial-value:0}#__v_o__balloon_count{counter-reset:num var(--num);font-variant-numeric:tabular-nums;color:#fff;font-size:13px;font-weight:700;line-height:1}#__v_o__balloon_count:after{content:counter(num)}#__v_o__balloon_count.animate-count-up{animation:.2s ease-out forwards counter-animate}@keyframes counter-animate{0%{--num:var(--num-start)}to{--num:var(--num-end)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}`;const dt=`/* eslint-disable no-bitwise */
1
+ import{createRequire as wn}from"node:module";import{codeToANSI as kn}from"@shikijs/cli";import{getErrorCauses as xn,renderError as En}from"@visulima/error/error";import{errorHintFinder as Sn,ruleBasedFinder as Cn}from"@visulima/error/solution";import Tn from"./packem_shared/createViteSolutionFinder-D-CU4Sux.js";import{parseStacktrace as K,formatStacktrace as jt,codeFrame as ot}from"@visulima/error";import $e from"@visulima/error/solution/ai/prompt";let bn;const yn=e=>(bn??=wn(import.meta.url))(e),oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ht=e=>{if(typeof oe<"u"&&oe.versions&&oe.versions.node){const[t,n]=oe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return oe.getBuiltinModule(e)}return yn(e)},{stripVTControlCharacters:_n,styleText:nt}=Ht("node:util"),{readFile:Nt}=Ht("node:fs/promises"),Rn=new Set(["cjs","mjs"]),Ln=new Set(["cts","mts"]),$n=new Set(["mdoc"]),J=e=>{const n=(e.split("?")[0]??e).split(".").pop()?.toLowerCase();if(!n)return"text";if(Rn.has(n))return"javascript";if(Ln.has(n))return"typescript";if($n.has(n))return"markdown";switch(n){case"js":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";case"yaml":case"yml":return"yaml";case"toml":return"toml";case"py":return"python";case"go":return"go";case"rs":return"rust";case"rb":return"ruby";case"php":return"php";case"graphql":case"gql":return"graphql";case"dockerfile":return"dockerfile";case"sh":case"bash":return"bash";case"txt":return"text";default:return"text"}},rt=500,qt="visulima:vite-overlay:error",An="visulima-vite-overlay",Ut="Error",Pn="Runtime error",In=8,it="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-left%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m15%2018-6-6%206-6%22%20%2F%3E%20%3C%2Fsvg%3E",ge="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-right%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%20%2F%3E%20%3C%2Fsvg%3E",st="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clock%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%206v6l4%202%22%20%2F%3E%20%3C%2Fsvg%3E",at="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",lt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",ct="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",dt="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",ye="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var Pe=(e=>(e.appcode="AppCode",e["android-studio"]="Android Studio",e.atom="Atom",e["atom-beta"]="Atom Beta",e.brackets="Brackets",e.clion="CLion",e.code="Visual Studio Code",e["code-insiders"]="Visual Studio Code Insiders",e.codium="VSCodium",e.cursor="Cursor",e.emacs="GNU Emacs",e.emacsforosx="GNU Emacs for Mac OS X",e.fleet="JetBrains Fleet",e.helix="Helix",e.intellij="IntelliJ IDEA",e.idea="IntelliJ IDEA",e.kiro="Kiro",e.nano="GNU nano",e.neovim="NeoVim",e["notepad++"]="Notepad++",e.phpstorm="PhpStorm",e.pycharm="PyCharm",e.rider="Rider",e.rubymine="RubyMine",e.sublime="SublimeText",e.textmate="TextMate",e.vim="Vim",e.visualstudio="Visual Studio",e.vscode="Visual Studio Code",e.vscodium="VSCodium",e.webstorm="WebStorm",e.windsurf="Windsurf",e.xcode="Xcode",e.zed="Zed",e))(Pe||{}),Fn=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-outline-style:solid;--num:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body,:host{color:var(--ono-v-text);font-feature-settings:"kern" 1;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;box-sizing:border-box;background-color:#0000;font-family:Space Grotesk,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5}pre,code{font-feature-settings:"kern" 1, "zero" 1;font-family:Space Mono,ui-monospace,Cascadia Code,monospace}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-primary)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-v-primary) 15%, transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border:1px solid var(--ono-v-border);border-radius:0;padding:.125rem .375rem;font-family:inherit;font-size:.75rem}hr{border-color:var(--ono-v-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([type=radio]):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);outline:2px solid #0000}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([type=checkbox]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){input:where([type=checkbox]):checked{appearance:auto}}input:where([type=radio]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([type=checkbox]):indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([type=file]):focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.top-4{top:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.left-1\\/2{left:50%}.-z-1{z-index:calc(1 * -1)}.z-1{z-index:1}.z-10{z-index:10}.z-2147483646,.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin:var(--spacing)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing) * -3)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-0{margin-bottom:0}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-1{margin-left:var(--spacing)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.h-5{height:calc(var(--spacing) * 5)}.h-10{height:calc(var(--spacing) * 10)}.h-\\[40vmin\\]{height:40vmin}.max-h-50{max-height:calc(var(--spacing) * 50)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[160px\\]{max-height:160px}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-screen{min-height:100vh}.w-7{width:calc(var(--spacing) * 7)}.w-44{width:calc(var(--spacing) * 44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-full{width:100%}.max-w-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.bg-black\\/65{background-color:#000000a6}@supports (color:color-mix(in lab, red, red)){.bg-black\\/65{background-color:color-mix(in oklab, var(--color-black) 65%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.pe-6{padding-inline-end:calc(var(--spacing) * 6)}.pt-\\[8vh\\]{padding-top:8vh}.pr-1{padding-right:var(--spacing)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-red-orange\\)\\]{color:var(--ono-v-red-orange)}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-\\[var\\(--ono-v-text-muted\\)\\]{color:var(--ono-v-text-muted)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\(--ono-v-hover-overlay\\):hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\\:ring-\\(--ono-v-primary\\):focus{--tw-ring-color:var(--ono-v-primary)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\(--ono-v-text\\):focus-visible{outline-color:var(--ono-v-text)}.active\\:opacity-80:active{opacity:.8}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--brand-accent:#d71921;--brand-white:#fff;--brand-bg:#f5f5f5;--brand-border-visible:#ccc;--brand-text-secondary:#666;--brand-surface-dark:#111;--brand-black:#000;--color-background:#f5f5f5;--color-foreground:#1a1a1a;--color-card:#fff;--color-accent:#f0f0f0;--color-muted:#e8e8e8;--color-muted-foreground:#666;--color-primary:#d71921;--color-primary-foreground:#fff;--color-border:#e8e8e8;--color-ring:#ccc;--color-destructive:#d71921;--color-destructive-foreground:#fff;--color-success:#4a9e5c;--color-success-foreground:#4a9e5c;--color-warning:#d4a843;--color-info:#666;--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-foreground);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-hover-overlay:color-mix(in srgb, var(--color-foreground) 4%, transparent)}}:host{--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}.dark{--color-background:#000;--color-foreground:#e8e8e8;--color-card:#111;--color-accent:#1a1a1a;--color-muted:#222;--color-muted-foreground:#999;--color-primary:#d71921;--color-primary-foreground:#fff;--color-border:#222;--color-ring:#333;--color-destructive:#d71921;--color-destructive-foreground:#fff;--color-success:#4a9e5c;--color-success-foreground:#4a9e5c;--color-warning:#d4a843;--color-info:#999;--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-foreground);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:#ffffff0d;--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){.dark{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}:host{--ono-v-dialog-max-width:960px}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:1px solid var(--ono-v-text);outline-offset:2px}.v-o-label{text-transform:uppercase;letter-spacing:.08em;font-family:Space Mono,ui-monospace,monospace;font-weight:700}.v-o-loading-text{text-transform:uppercase;letter-spacing:.06em;color:var(--ono-v-text-muted);font-family:Space Mono,ui-monospace,monospace;font-size:12px}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;flex-shrink:0;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing) * 4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab, var(--color-green-500) 15%, transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab, var(--color-red-500) 15%, transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing) * 3);margin-top:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing) * 3);margin-top:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab, var(--color-green-500) 20%, transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab, var(--color-red-500) 20%, transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}select#editor-selector{background-color:var(--ono-v-surface);color:var(--ono-v-text);border-color:var(--ono-v-border);color-scheme:light}.dark select#editor-selector{color-scheme:dark;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")}#__v_o__stacktrace summary .dui{transition:transform .15s ease-out}#__v_o__stacktrace[open] summary .dui{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root:not(.hidden)[data-error-type=server]~#__v_o__balloon_group{display:none!important}.devtools-content-scroll{scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}.devtools-content-scroll::-webkit-scrollbar{width:5px;height:5px}.devtools-content-scroll::-webkit-scrollbar-track{background:0 0}.devtools-content-scroll::-webkit-scrollbar-thumb{background:var(--color-border)}.devtools-content-scroll::-webkit-scrollbar-thumb:hover{background:var(--color-muted-foreground)}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --num{syntax:"<integer>";inherits:false;initial-value:0}#__v_o__balloon_count{counter-reset:num var(--num);font-variant-numeric:tabular-nums;color:#fff;font-size:13px;font-weight:700;line-height:1}#__v_o__balloon_count:after{content:counter(num)}#__v_o__balloon_count.animate-count-up{animation:.2s ease-out forwards counter-animate}@keyframes counter-animate{0%{--num:var(--num-start)}to{--num:var(--num-end)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}`;const pt=`/* eslint-disable no-bitwise */
3
3
  /* eslint-disable class-methods-use-this */
4
4
  /* eslint-disable sonarjs/cognitive-complexity */
5
5
  /* eslint-disable no-param-reassign */
@@ -1664,7 +1664,7 @@ class ErrorOverlay extends HTMLElement {
1664
1664
  this._updateHistoryToggleVisibility();
1665
1665
  }
1666
1666
  }
1667
- `,Fn=/([A-Z])/g,pt='<option value="">Auto-detected Editor</option>',Dn="class ErrorOverlay",zn="var ErrorOverlay = ",Mn="window.ErrorOverlay = ErrorOverlay;",Bn=()=>{try{const e=Object.keys(Ae);return[pt,...e.map(n=>`<option value="${String(n)}">${String(Ae[n])}</option>`)].join("")}catch{return pt}},Hn=(e,t,n=!1)=>`<div id="${e}" class="fixed inset-0 z-[2147483646] flex flex-col items-center pt-[8vh] px-4 pb-4 hidden">
1667
+ `,Dn=/([A-Z])/g,ht='<option value="">Auto-detected Editor</option>',zn="class ErrorOverlay",Bn="var ErrorOverlay = ",Mn="window.ErrorOverlay = ErrorOverlay;",On=()=>{try{const e=Object.keys(Pe);return[ht,...e.map(n=>`<option value="${String(n)}">${String(Pe[n])}</option>`)].join("")}catch{return ht}},Hn=(e,t,n=!1)=>`<div id="${e}" class="fixed inset-0 z-[2147483646] flex flex-col items-center pt-[8vh] px-4 pb-4 hidden">
1668
1668
  <div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/65 pointer-events-auto"></div>
1669
1669
  <div class="relative z-1 w-full max-w-(--ono-v-dialog-max-width) mx-auto flex flex-col">
1670
1670
 
@@ -1683,7 +1683,7 @@ class ErrorOverlay extends HTMLElement {
1683
1683
  <nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex items-center gap-1 ml-1">
1684
1684
  <button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true"
1685
1685
  class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-text)" disabled>
1686
- <span class="dui size-4" style="-webkit-mask-image: url('${rt}'); mask-image: url('${rt}')" aria-label="previous"></span>
1686
+ <span class="dui size-4" style="-webkit-mask-image: url('${it}'); mask-image: url('${it}')" aria-label="previous"></span>
1687
1687
  </button>
1688
1688
  <div id="__v_o__error-overlay_pagination_count"
1689
1689
  class="inline-flex justify-center items-center min-w-8 gap-1 text-(--ono-v-text-muted) text-center text-xs font-medium px-1">
@@ -1693,7 +1693,7 @@ class ErrorOverlay extends HTMLElement {
1693
1693
  </div>
1694
1694
  <button id="__v_o__error-overlay-pagination-next" type="button" aria-disabled="true"
1695
1695
  class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-text)" disabled>
1696
- <span class="dui size-4" style="-webkit-mask-image: url('${me}'); mask-image: url('${me}')" aria-label="next"></span>
1696
+ <span class="dui size-4" style="-webkit-mask-image: url('${ge}'); mask-image: url('${ge}')" aria-label="next"></span>
1697
1697
  </button>
1698
1698
  <button id="__v_o__history_toggle" type="button" title="Toggle Error History" aria-label="Toggle Error History"
1699
1699
  class="error-overlay-history-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 focus-visible:outline-1 focus-visible:outline-(--ono-v-text)">
@@ -1724,23 +1724,23 @@ class ErrorOverlay extends HTMLElement {
1724
1724
  <button type="button" title="Switch to dark mode" aria-label="Switch to dark mode"
1725
1725
  class="hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)" data-v-o-theme-click-value="dark">
1726
1726
  <span class="inline-flex items-center justify-center size-8">
1727
- <span class="dui size-4" style="-webkit-mask-image: url('${lt}'); mask-image: url('${lt}')"></span>
1727
+ <span class="dui size-4" style="-webkit-mask-image: url('${ct}'); mask-image: url('${ct}')"></span>
1728
1728
  </span>
1729
1729
  </button>
1730
1730
  <button type="button" title="Switch to light mode" aria-label="Switch to light mode"
1731
1731
  class="hidden hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)" data-v-o-theme-click-value="light">
1732
1732
  <span class="inline-flex items-center justify-center size-8">
1733
- <span class="dui size-4" style="-webkit-mask-image: url('${ct}'); mask-image: url('${ct}')"></span>
1733
+ <span class="dui size-4" style="-webkit-mask-image: url('${dt}'); mask-image: url('${dt}')"></span>
1734
1734
  </span>
1735
1735
  </button>
1736
1736
  </div>
1737
1737
  <button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info"
1738
1738
  class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)">
1739
- <span class="dui size-4" style="-webkit-mask-image: url('${it}'); mask-image: url('${it}')"></span>
1739
+ <span class="dui size-4" style="-webkit-mask-image: url('${at}'); mask-image: url('${at}')"></span>
1740
1740
  </button>
1741
1741
  <button type="button" id="__v_o__close" aria-label="Close error overlay"
1742
1742
  class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:opacity-80 transition-opacity duration-150 text-(--ono-v-text)">
1743
- <span class="dui size-4" style="-webkit-mask-image: url('${be}'); mask-image: url('${be}')"></span>
1743
+ <span class="dui size-4" style="-webkit-mask-image: url('${ye}'); mask-image: url('${ye}')"></span>
1744
1744
  </button>
1745
1745
  </div>`}
1746
1746
  </div>
@@ -1771,7 +1771,7 @@ class ErrorOverlay extends HTMLElement {
1771
1771
 
1772
1772
  <div id="__v_o__solutions" class="relative hidden">
1773
1773
  <div title="Possible Solution" class="absolute top-4 right-6 z-10 size-6 flex items-center justify-center" style="background-color: var(--ono-v-success);">
1774
- <span class="dui size-4" style="-webkit-mask-image: url('${at}'); mask-image: url('${at}')"></span>
1774
+ <span class="dui size-4" style="-webkit-mask-image: url('${lt}'); mask-image: url('${lt}')"></span>
1775
1775
  </div>
1776
1776
  <div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-(--ono-v-success-bg) m-1 mb-0 prose prose-sm max-w-full dark:prose-invert"></div>
1777
1777
  </div>
@@ -1787,7 +1787,7 @@ class ErrorOverlay extends HTMLElement {
1787
1787
  <!-- ── Stack trace footer (collapsible) ──────────────────────────────── -->
1788
1788
  <details id="__v_o__stacktrace" class="shrink-0 border-t border-(--ono-v-border) bg-(--ono-v-surface-muted)">
1789
1789
  <summary class="cursor-pointer px-4 py-3 list-none flex items-center gap-2 v-o-label text-xs text-(--ono-v-text-muted) hover:text-(--ono-v-text) transition-colors duration-150">
1790
- <span class="dui size-3" style="-webkit-mask-image: url('${me}'); mask-image: url('${me}')"></span>
1790
+ <span class="dui size-3" style="-webkit-mask-image: url('${ge}'); mask-image: url('${ge}')"></span>
1791
1791
  STACK TRACE
1792
1792
  </summary>
1793
1793
  <!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
@@ -1802,7 +1802,7 @@ class ErrorOverlay extends HTMLElement {
1802
1802
  <div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] h-5 bg-(--ono-v-surface-muted) border border-(--ono-v-border) border-t-0 -mt-3 -z-1"></div>
1803
1803
  </div>
1804
1804
  </div>
1805
- </div>`,On=(e="bottom-right")=>({"bottom-left":"bottom: 8px; left: 8px;","bottom-right":"bottom: 8px; right: 8px;","top-left":"top: 8px; left: 8px;","top-right":"top: 8px; right: 8px;"})[e],Ut=e=>{const t=[];return Object.entries(e).forEach(([n,o])=>{if(o!=null){const r=n.replaceAll(Fn,"-$1").toLowerCase();t.push(`${r}: ${String(o)};`)}}),t.join(" ")},Nn=e=>e?typeof e=="string"?e:Ut(e):"",jn=e=>{if(e?.enabled===!1)return"";const t=e?.position||"bottom-right",n=Nn(e?.style),o=On(t);return`<div id="__v_o__balloon_group" class="fixed z-2147483646 inline-flex" data-balloon-position="${t}" style="${n} ${o}">
1805
+ </div>`,Nn=(e="bottom-right")=>({"bottom-left":"bottom: 8px; left: 8px;","bottom-right":"bottom: 8px; right: 8px;","top-left":"top: 8px; left: 8px;","top-right":"top: 8px; right: 8px;"})[e],Gt=e=>{const t=[];return Object.entries(e).forEach(([n,o])=>{if(o!=null){const r=n.replaceAll(Dn,"-$1").toLowerCase();t.push(`${r}: ${String(o)};`)}}),t.join(" ")},jn=e=>e?typeof e=="string"?e:Gt(e):"",qn=e=>{if(e?.enabled===!1)return"";const t=e?.position||"bottom-right",n=jn(e?.style),o=Nn(t);return`<div id="__v_o__balloon_group" class="fixed z-2147483646 inline-flex" data-balloon-position="${t}" style="${n} ${o}">
1806
1806
  <!-- Toggle button: count + label -->
1807
1807
  <button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay"
1808
1808
  class="flex items-center gap-1.5 px-3 py-2 text-white cursor-pointer hover:opacity-90 active:opacity-80 transition-opacity duration-150" style="background: var(--ono-v-red-orange);">
@@ -1813,42 +1813,42 @@ class ErrorOverlay extends HTMLElement {
1813
1813
  <!-- Dismiss button -->
1814
1814
  <button type="button" id="__v_o__balloon_close" title="Dismiss balloon" aria-label="Dismiss balloon"
1815
1815
  class="flex items-center justify-center w-7 shrink-0 text-white cursor-pointer hover:opacity-90 active:opacity-80 transition-opacity duration-150" style="background: var(--ono-v-red-orange); border-left: 1px solid rgba(255,255,255,0.15);">
1816
- <span class="dui size-3" style="-webkit-mask-image: url('${be}'); mask-image: url('${be}')"></span>
1816
+ <span class="dui size-3" style="-webkit-mask-image: url('${ye}'); mask-image: url('${ye}')"></span>
1817
1817
  </button>
1818
- </div>`},qn=e=>e?typeof e=="string"?e:Ut(e):"",Un=(e,t,n)=>{const o=Bn(),r=qn(n),s=r?`<style>${r}</style>`:"";return`<style>${In}</style>
1819
- ${s}
1818
+ </div>`},Un=e=>e?typeof e=="string"?e:Gt(e):"",Gn=(e,t,n)=>{const o=On(),r=Un(n),i=r?`<style>${r}</style>`:"";return`<style>${Fn}</style>
1819
+ ${i}
1820
1820
  ${Hn("__v_o__root",o)}
1821
1821
 
1822
- ${e?jn(t):""}`},Gn=(e,t,n,o)=>{const r=Un(t,n,o),s=`const overlayTemplate = ${JSON.stringify(r)};`;let a=e.replace(Dn,`${s}
1823
- ${dt}
1824
- class ViteErrorOverlay`);return a=a.replace(zn,`${s}
1825
- ${dt}
1822
+ ${e?qn(t):""}`},Wn=(e,t,n,o)=>{const r=Gn(t,n,o),i=`const overlayTemplate = ${JSON.stringify(r)};`;let a=e.replace(zn,`${i}
1823
+ ${pt}
1824
+ class ViteErrorOverlay`);return a=a.replace(Bn,`${i}
1825
+ ${pt}
1826
1826
  var ViteErrorOverlay = `),a=`${a}
1827
1827
 
1828
- ${Mn};`,a},Wn=/\.mdx$/i,Vn=1,Xn=/syntax error/i,Zn=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Yn=/glob:\s*"(.+)"\s*\(/i,Qn=e=>e instanceof Error?e:new Error(String(e)),Kn=(e,t)=>{try{e.ssrFixStacktrace(t)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},Jn=e=>{try{const n=K(e,{frameLimit:Vn})?.[0];return String(n?.file||e.loc?.file||e.id||"")}catch(t){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",t);return}},eo=async e=>{try{return await Ot(e,"utf8")}catch(t){console.warn(`[visulima:vite-overlay:server] Failed to read file ${e}:`,t);return}},to=(e,t)=>{const n=e.id||e.loc?.file||t;n&&Wn.test(String(n))&&Xn.test(e.message)&&(e.hint=e.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},Gt=(e,t)=>{const n=e.split(`
1829
- `),o=n.findIndex(a=>a.includes(t));if(o===-1)return;const r=n[o]||"";return{column:Math.max(0,r.indexOf(t))+1,line:o+1}},no=async(e,t,n)=>{const r=Zn.exec(e.message)?.[1];if(r&&(e.title="Failed to Load Module (SSR)",e.name="FailedToLoadModuleSSR",e.message=`Failed to load module: ${r}`,e.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&t)){const s=Gt(n,r);s&&(e.loc={...s,file:t})}},oo=async(e,t,n)=>{const r=Yn.exec(e.message)?.[1];if(r&&(e.name="InvalidGlob",e.title="Invalid Glob Pattern",e.message=`Invalid glob pattern: ${r}`,e.hint=e.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&t)){const s=Gt(n,r);s&&(e.loc={...s,file:t})}},ro=async(e,t)=>{const n=Qn(e);Kn(t,n);const o=Jn(n),r=o&&!o.includes("://")&&!o.startsWith("\0")?await eo(o):void 0;return await no(n,o,r),to(n,o),await oo(n,o,r),n},so={javascript:()=>import("@shikijs/langs/javascript"),typescript:()=>import("@shikijs/langs/typescript"),jsx:()=>import("@shikijs/langs/jsx"),tsx:()=>import("@shikijs/langs/tsx"),json:()=>import("@shikijs/langs/json"),json5:()=>import("@shikijs/langs/json5"),jsonc:()=>import("@shikijs/langs/jsonc"),xml:()=>import("@shikijs/langs/xml"),sql:()=>import("@shikijs/langs/sql"),markdown:()=>import("@shikijs/langs/markdown"),mdx:()=>import("@shikijs/langs/mdx"),html:()=>import("@shikijs/langs/html"),css:()=>import("@shikijs/langs/css"),scss:()=>import("@shikijs/langs/scss"),less:()=>import("@shikijs/langs/less"),sass:()=>import("@shikijs/langs/sass"),stylus:()=>import("@shikijs/langs/stylus"),styl:()=>import("@shikijs/langs/styl"),svelte:()=>import("@shikijs/langs/svelte"),vue:()=>import("@shikijs/langs/vue"),bash:()=>import("@shikijs/langs/bash"),shell:()=>import("@shikijs/langs/shell"),yaml:()=>import("@shikijs/langs/yaml"),toml:()=>import("@shikijs/langs/toml"),python:()=>import("@shikijs/langs/python"),go:()=>import("@shikijs/langs/go"),rust:()=>import("@shikijs/langs/rust"),ruby:()=>import("@shikijs/langs/ruby"),php:()=>import("@shikijs/langs/php"),graphql:()=>import("@shikijs/langs/graphql"),dockerfile:()=>import("@shikijs/langs/dockerfile"),text:()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text",repository:{}})};let ge;const io=async()=>{const[e,t]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=e,{createJavaScriptRegexEngine:o}=t;return await n({themes:[import("./packem_chunks/min-dark.js"),import("./packem_chunks/min-light.js")],langs:[],engine:o()})},ao=async(e,t)=>{if(t==="text")return;const n=t.toLowerCase();if(!(e.getLoadedLanguages?.()??e.getLanguages?.()??[]).includes(n)){const r=so[n];r&&await e.loadLanguage?.(await r())}},Wt=async(e=[])=>{ge||(ge=io().catch(r=>{throw ge=void 0,r}));const t=await ge,n=[],o=[];for(const r of e)typeof r=="string"?n.push(r.toLowerCase()):o.push(r);return await Promise.all([...n.map(r=>ao(t,r)),...o.map(r=>t.loadLanguage?.(r))]),t},ht=(e=[])=>({name:"@shikijs/transformers:compact-line-options",line(t,n){const o=e.find(r=>r.line===n);return o?.classes&&this.addClassToHast(t,o.classes),t}}),lo=e=>!Array.isArray(e)||e.length===0?!1:e.some(t=>t&&typeof t=="object"&&("location"in t||"pluginName"in t||"text"in t)),co=e=>e.map((t,n)=>{const{location:o,pluginName:r,text:s}=t,a={message:s||`ESBuild error #${n+1}`,name:t.name||"Error",stack:t.stack||""};return o&&(a.file=o.file,a.line=o.line,a.column=o.column),r&&(a.plugin=r),a}),po=/^\/@fs\//,ho=/^[./]*/,uo=(e,t)=>{for(const[n,o]of e.moduleGraph.idToModuleMap){if(!o)continue;const r=o,s=[String(r.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(r.url||"").replaceAll("\\","/")];for(const a of t)if(s.some(i=>i===a||i.includes(a)||a.includes(i)))return o}},ce=(e,t)=>{const n=[...t,...t.map(a=>a.replace(po,"")),...t.map(a=>a.replace(ho,""))];let o,r=0;for(const a of n)try{const i=e.moduleGraph.getModuleById(a);if(i){const c=Object.keys(i).length>0,d=!!i.transformResult;let p=0;if(c&&d?p=2:c&&(p=1),c&&(p>r&&(o=i,r=p),d))return i}const l=e.moduleGraph.getModuleByUrl?.(a);if(l){const c=Object.keys(l).length>0,d=!!l.transformResult;let p=0;if(c&&d?p=2:c&&(p=1),c&&(p>r&&(o=l,r=p),d))return l}}catch{}return o||uo(e,t)||void 0},mo=/^https?:\/\//,go=/^\/@fs\//,fo=e=>{const t=new URL(e),{pathname:n}=t,o=t.search||"",r=[n+o,n,n.replace(go,""),decodeURIComponent(n+o),decodeURIComponent(n)];return[...new Set(r)].filter(Boolean)},Vt=e=>mo.test(e),U=e=>{if(!e)return[];try{if(Vt(e))return fo(e);const t=[e];if(e.startsWith("/")&&t.push(e.slice(1)),e.includes("?")){const n=e.split("?")[0];n&&t.push(n)}return[...new Set(t)].filter(Boolean)}catch(t){return console.warn(`Failed to normalize path "${e}":`,t),[]}},vo=64,ut=16,wo=3,bo=4,Xt=/\n/,yo=/\s+/g,_o=/[A-Z_$][\w$]{2,}/i,xo=/\s/,ko=(e,t)=>e.split(Xt)[t-1]??"",mt=e=>e.replaceAll(yo,""),Eo=(e,t)=>{if(t<=0||t>e.length)return"";const n=Math.max(0,t-1),o=e.slice(n,n+vo),r=_o.exec(o);if(r?.[0])return r[0];let s=o.trim();return s.length<bo&&(s=e.slice(Math.max(0,n-ut),n+ut).trim()),s},So=(e,t)=>{let n=0;for(const[o,r]of[...e].entries())if(typeof r=="string"){if(n===t)return o+1;xo.test(r)||(n+=1)}return-1},Co=(e,t)=>{if(!(!e||e.length<wo))for(const[n,o]of t.entries()){if(!o)continue;const r=o.indexOf(e);if(r!==-1)return{column:r+1,line:n+1}}},To=(e,t)=>{if(e)for(const[n,o]of t.entries()){if(!o)continue;const r=o.indexOf(e);if(r!==-1)return{column:r+1,line:n+1}}},Ro=(e,t)=>{if(!e)return;const n=mt(e);if(n)for(const[o,r]of t.entries()){if(!r)continue;const a=mt(r).indexOf(n);if(a!==-1){const i=So(r,a);if(i!==-1)return{column:i,line:o+1}}}},Lo=(e,t,n,o)=>{const r=ko(e,t);if(!r)return;const s=o.split(Xt),a=Eo(r,n);return Co(a,s)||To(r.trim(),s)||Ro(r.trim(),s)};var $o=44,gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ao=new Uint8Array(64),Zt=new Uint8Array(128);for(let e=0;e<gt.length;e++){const t=gt.charCodeAt(e);Ao[e]=t,Zt[t]=e}function re(e,t){let n=0,o=0,r=0;do{const a=e.next();r=Zt[a],n|=(r&31)<<o,o+=5}while(r&32);const s=n&1;return n>>>=1,s&&(n=-2147483648|-n),t+n}function ft(e,t){return e.pos>=t?!1:e.peek()!==$o}var Po=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,o=t.indexOf(e,n);return o===-1?t.length:o}};function Io(e){const{length:t}=e,n=new Po(e),o=[];let r=0,s=0,a=0,i=0,l=0;do{const c=n.indexOf(";"),d=[];let p=!0,v=0;for(r=0;n.pos<c;){let w;r=re(n,r),r<v&&(p=!1),v=r,ft(n,c)?(s=re(n,s),a=re(n,a),i=re(n,i),ft(n,c)?(l=re(n,l),w=[r,s,a,i,l]):w=[r,s,a,i]):w=[r],d.push(w),n.pos++}p||Fo(d),o.push(d),n.pos=c+1}while(n.pos<=t);return o}function Fo(e){e.sort(Do)}function Do(e,t){return e[0]-t[0]}function zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var we={exports:{}},Mo=we.exports,vt;function Bo(){return vt||(vt=1,(function(e,t){(function(n,o){e.exports=o()})(Mo,(function(){const n=/^[\w+.-]+:\/\//,o=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(h){return n.test(h)}function a(h){return h.startsWith("//")}function i(h){return h.startsWith("/")}function l(h){return h.startsWith("file:")}function c(h){return/^[.?#]/.test(h)}function d(h){const g=o.exec(h);return v(g[1],g[2]||"",g[3],g[4]||"",g[5]||"/",g[6]||"",g[7]||"")}function p(h){const g=r.exec(h),b=g[2];return v("file:","",g[1]||"","",i(b)?b:"/"+b,g[3]||"",g[4]||"")}function v(h,g,b,_,k,E,T){return{scheme:h,user:g,host:b,port:_,path:k,query:E,hash:T,type:7}}function w(h){if(a(h)){const b=d("http:"+h);return b.scheme="",b.type=6,b}if(i(h)){const b=d("http://foo.com"+h);return b.scheme="",b.host="",b.type=5,b}if(l(h))return p(h);if(s(h))return d(h);const g=d("http://foo.com/"+h);return g.scheme="",g.host="",g.type=h?h.startsWith("?")?3:h.startsWith("#")?2:4:1,g}function f(h){if(h.endsWith("/.."))return h;const g=h.lastIndexOf("/");return h.slice(0,g+1)}function m(h,g){u(g,g.type),h.path==="/"?h.path=g.path:h.path=f(g.path)+h.path}function u(h,g){const b=g<=4,_=h.path.split("/");let k=1,E=0,T=!1;for(let M=1;M<_.length;M++){const j=_[M];if(!j){T=!0;continue}if(T=!1,j!=="."){if(j===".."){E?(T=!0,E--,k--):b&&(_[k++]=j);continue}_[k++]=j,E++}}let L="";for(let M=1;M<k;M++)L+="/"+_[M];(!L||T&&!L.endsWith("/.."))&&(L+="/"),h.path=L}function y(h,g){if(!h&&!g)return"";const b=w(h);let _=b.type;if(g&&_!==7){const E=w(g),T=E.type;switch(_){case 1:b.hash=E.hash;case 2:b.query=E.query;case 3:case 4:m(b,E);case 5:b.user=E.user,b.host=E.host,b.port=E.port;case 6:b.scheme=E.scheme}T>_&&(_=T)}u(b,_);const k=b.query+b.hash;switch(_){case 2:case 3:return k;case 4:{const E=b.path.slice(1);return E?c(g||h)&&!c(E)?"./"+E+k:E+k:k||"."}case 5:return b.path+k;default:return b.scheme+"//"+b.user+b.host+b.port+b.path+k}}return y}))})(we)),we.exports}var Ho=Bo();const Oo=zo(Ho);function No(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function jo(e,t){const n=No(e),o=t?t+"/":"";return r=>Oo(o+(r||""),n)}var N=0,qo=1,Uo=2,Go=3,Wo=4;function Vo(e,t){const n=wt(e,0);if(n===e.length)return e;t||(e=e.slice());for(let o=n;o<e.length;o=wt(e,o+1))e[o]=Zo(e[o],t);return e}function wt(e,t){for(let n=t;n<e.length;n++)if(!Xo(e[n]))return n;return e.length}function Xo(e){for(let t=1;t<e.length;t++)if(e[t][N]<e[t-1][N])return!1;return!0}function Zo(e,t){return t||(e=e.slice()),e.sort(Yo)}function Yo(e,t){return e[N]-t[N]}var ye=!1;function Qo(e,t,n,o){for(;n<=o;){const r=n+(o-n>>1),s=e[r][N]-t;if(s===0)return ye=!0,r;s<0?n=r+1:o=r-1}return ye=!1,n-1}function Ko(e,t,n){for(let o=n+1;o<e.length&&e[o][N]===t;n=o++);return n}function Jo(e,t,n){for(let o=n-1;o>=0&&e[o][N]===t;n=o--);return n}function er(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function tr(e,t,n,o){const{lastKey:r,lastNeedle:s,lastIndex:a}=n;let i=0,l=e.length-1;if(o===r){if(t===s)return ye=a!==-1&&e[a][N]===t,a;t>=s?i=a===-1?0:a:l=a}return n.lastKey=o,n.lastNeedle=t,n.lastIndex=Qo(e,t,i,l)}function nr(e){return typeof e=="string"?JSON.parse(e):e}var or="`line` must be greater than 0 (lines start at line 1)",rr="`column` must be greater than or equal to 0 (columns start at column 0)",bt=-1,sr=1,ir=class{constructor(e,t){const n=typeof e=="string";if(!n&&e._decodedMemo)return e;const o=nr(e),{version:r,file:s,names:a,sourceRoot:i,sources:l,sourcesContent:c}=o;this.version=r,this.file=s,this.names=a||[],this.sourceRoot=i,this.sources=l,this.sourcesContent=c,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const d=jo(t,i);this.resolvedSources=l.map(d);const{mappings:p}=o;if(typeof p=="string")this._encoded=p,this._decoded=void 0;else if(Array.isArray(p))this._encoded=void 0,this._decoded=Vo(p,n);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=er(),this._bySources=void 0,this._bySourceMemos=void 0}};function ar(e){var t;return(t=e)._decoded||(t._decoded=Io(e._encoded))}function lr(e,t){let{line:n,column:o,bias:r}=t;if(n--,n<0)throw new Error(or);if(o<0)throw new Error(rr);const s=ar(e);if(n>=s.length)return fe(null,null,null,null);const a=s[n],i=cr(a,e._decodedMemo,n,o,r||sr);if(i===-1)return fe(null,null,null,null);const l=a[i];if(l.length===1)return fe(null,null,null,null);const{names:c,resolvedSources:d}=e;return fe(d[l[qo]],l[Uo]+1,l[Go],l.length===5?c[l[Wo]]:null)}function fe(e,t,n,o){return{source:e,line:t,column:n,name:o}}function cr(e,t,n,o,r){let s=tr(e,o,t,n);return ye?s=(r===bt?Ko:Jo)(e,o,s):r===bt&&s++,s===-1||s===e.length?-1:s}const dr=/`((?:[^`$]|\$\{[^}]+\})*)`/g,yt=/\$\{[^}]+\}/g,pr=/[.*+?^${}()|[\]\\]/g,Yt=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],G=e=>e.replaceAll(pr,String.raw`\$&`),hr=e=>{const t=G(e);return[e,`new Error("${t}")`,`new Error('${t}')`,`new Error(\`${G(e)}\`)`,`throw new Error("${t}")`,`throw new Error('${t}')`,`throw new Error(\`${G(e)}\`)`,`Error("${t}")`,`Error('${t}')`]},_t=(e,t)=>{const n=[...e.matchAll(dr)];for(const o of n){const r=o[1];if(!r)continue;const s=r.split(yt);if(s.every(l=>l===""||t.includes(l))&&s.length>1)return!0;if(!r)continue;const i=r.replaceAll(yt,"(.+?)");try{if(new RegExp(`^${G(i)}$`).test(t))return!0}catch{}}return!1},ur=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],mr=e=>{for(const t of ur){const n=e.match(t);if(n)return n}},xt=e=>{let t,n;for(const o of Yt){const r=e.match(o);r&&(!t||o.source.includes("throw")&&!n?.source.includes("throw"))&&(t=r,n=o)}return{bestMatch:t,bestPattern:n}},kt=(e,t)=>{let n=e.index??0;if(t.source.includes("throw new")&&e[0].startsWith("throw new")){const o=e[0].indexOf("new");o!==-1&&(n+=o)}return n+1},gr=(e,t,n=0)=>{if(!e||!t)return;const o=e.split(`
1830
- `),r=mr(t),s=hr(t),i=((w,f,m)=>{let u=0;for(const[y,h]of w.entries()){if(!h)continue;const g=h.includes(f)||_t(h,f),b=Yt.some(_=>_.test(h));if(g&&b){const{bestMatch:_,bestPattern:k}=xt(h);if(_&&k&&(u+=1,u>m))return{column:kt(_,k),line:y+1}}}})(o,t,n);if(i)return i;r&&((w,f,m)=>{if(w[0].includes("Failed to resolve import")){const u=w[1];if(!u)return;const y=G(u);m.unshift(`import.*from ["']${y}["']`,`import.*["']${y}["']`,u)}else if(w[0].includes("is not defined")){const u=w[1];if(!u)return;m.unshift(u,`{${u}}`,`src={${u}}`,`${u}.`,`=${u}`)}else if(w[0].includes("Cannot read properties")){const u=w[1],y=w[2];if(!y)return;m.unshift(y,`${u}.${y}`,`${u}?.${y}`,`${u}[${y}]`)}else{const u=w[1];if(!u)return;const y=G(f),h=G(u);m.unshift(`new Error(\`${h}`,`throw new Error(\`${h}`,`new Error("${h}`,`new Error('${h}`,`throw new Error("${h}`,`throw new Error('${h}`,`new Error("${y}")`,`new Error('${y}')`,`throw new Error("${y}")`,`throw new Error('${y}')`,`new Error(\`${y}\`)`,`throw new Error(\`${y}\`)`)}})(r,t,s);const c=(w,f,m)=>{let u=0;for(const[y,h]of w.entries()){if(!h||!_t(h,f))continue;const{bestMatch:g,bestPattern:b}=xt(h);if(g&&b&&(u+=1,u>m))return{column:kt(g,b),line:y+1}}},d=(w,f,m,u)=>{if(!u)return w+1;if(u[0].includes("Failed to resolve import")){const y=u[1];if(m.includes(`"${y}"`)||m.includes(`'${y}'`)){const h=m.includes(`"${y}"`)?'"':"'";return m.indexOf(`${h}${y}${h}`)+1}}else if(u[0].includes("is not defined")){const y=u[1];if(y&&f===y)return w+1;if(y&&f.includes(y))return w+f.indexOf(y)+1}else if(u[0].includes("Cannot read properties")){const y=u[2];if(y&&f.includes(y))return w+f.indexOf(y)+1}else if(f.includes("new Error("))return m.indexOf("new Error(")+1;return w+1},p=(w,f,m,u)=>{let y=0;for(const[h,g]of w.entries()){if(!g)continue;let b=-1,_;for(const k of f){const E=g.indexOf(k);E!==-1&&(b===-1||E<b)&&(b=E,_=k)}if(b!==-1&&_&&(y+=1,y>u))return{column:d(b,_,g,m),line:h+1}}},v=c(o,t,n);return v||p(o,s,r,n)},fr=1,vr=/^\//,Pe=(e,t)=>{const n=Math.max(1,e),o=Math.max(0,t);let r,s;return n>=20?r=Math.max(1,Math.round(n*.5)):n>15?r=Math.max(1,Math.round(n*.6)):n>10?r=Math.max(1,n-8):r=Math.max(1,n-3),o>=10||o>7?s=Math.max(0,o-1):o>5?s=Math.max(0,o):s=o,{estimatedColumn:s,estimatedLine:r}},wr=(e,t,n)=>{try{const o=new ir(e);if(t<=0)return;const r=[{column:n,desc:"original",line:t},{column:Math.max(0,n-fr),desc:"offset",line:t},{column:n,desc:"line above",line:t-1},{column:n,desc:"line below",line:t+1},...Array.from({length:5},(s,a)=>({column:Math.max(0,n-2+a),desc:`col ${n-2+a}`,line:t}))].filter(s=>s.line>0);for(const s of r){const a=lr(o,{column:s.column,line:s.line});if(a.source&&a.line!==void 0&&a.column!==void 0&&a.line>0&&a.column>=0)return{column:a.column,line:a.line,source:a.source}}}catch(o){console.warn("Source map processing failed:",o)}},br=(e,t)=>t?Vt(e)?yr(e,t):t:e,yr=(e,t)=>{try{const n=new URL(e),o=(n.pathname||"").replace(vr,""),r=o.includes("/")?o.slice(0,Math.max(0,o.lastIndexOf("/"))):"";return`${n.origin}/${r?`${r}/`:""}${t}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),e}},Ie=async(e,t,n,o,r,s,a=0)=>{if(s&&t)try{let l;if(t.transformResult?.map?.sourcesContent?.[0]?[l]=t.transformResult.map.sourcesContent:t.transformResult?.code&&(l=t.transformResult.code),!l&&(t.id||t.url)){const c=t.id||t.url;if(c)try{const d=await e.transformRequest(c);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?[l]=d.map.sourcesContent:d?.code&&(l=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!l&&n)try{const c=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const p=n.indexOf("://");p!==-1&&(d=n.slice(p+3))}d.startsWith("/")||(d=`${e.config.root||process.cwd()}/${d}`),l=await c.readFile(d,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(l){const c=gr(l,s,a);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:n}}}catch(l){console.warn("Source code search failed:",l)}let i=t?.transformResult?.map;if(!i&&(t?.id||t?.url)){const l=t.id||t.url;if(l)try{const c=await e.transformRequest(l);c?.map&&(i=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!i){const{estimatedColumn:l,estimatedLine:c}=Pe(o,r);return{originalFileColumn:l,originalFileLine:c,originalFilePath:n}}try{const l=wr(i,o,r);if(!l){const{estimatedColumn:d,estimatedLine:p}=Pe(o,r);return{originalFileColumn:d,originalFileLine:p,originalFilePath:n}}const c=br(n,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:c}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:r,originalFileLine:o,originalFilePath:n}}},_r=/^[A-Z]:\//i,Oe=(e="")=>e&&e.replaceAll("\\","/").replace(_r,t=>t.toUpperCase()),xr=/^[/\\]{2}/,kr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Qt=/^[A-Z]:$/i,Er=()=>{if(typeof process.cwd=="function")try{const e=process.cwd();if(typeof e=="string")return Oe(e)}catch{}return"/"},Kt=(e,t)=>{let n="",o=0,r=-1,s=0,a;for(let i=0;i<=e.length;++i){if(i<e.length)a=e[i];else{if(a==="/")break;a="/"}if(a==="/"){if(!(r===i-1||s===1))if(s===2){if(n.length<2||o!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const l=n.lastIndexOf("/");l===-1?(n="",o=0):(n=n.slice(0,l),o=n.length-1-n.lastIndexOf("/")),r=i,s=0;continue}else if(n.length>0){n="",o=0,r=i,s=0;continue}}t&&(n+=n.length>0?"/..":"..",o=2)}else n.length>0?n+=`/${e.slice(r+1,i)}`:n=e.slice(r+1,i),o=i-r-1;r=i,s=0}else a==="."&&s!==-1?++s:s=-1}return n},_e=e=>kr.test(e),Et=function(e){if(e.length===0)return".";e=Oe(e);const t=xr.exec(e),n=_e(e),o=e.at(-1)==="/";return e=Kt(e,!n),e.length===0?n?"/":o?"./":".":(o&&(e+="/"),Qt.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!_e(e)?`/${e}`:e)},Sr=function(...e){e=e.map(o=>Oe(o));let t="",n=!1;for(let o=e.length-1;o>=-1&&!n;o--){const r=o>=0?e[o]:Er();!r||r.length===0||(t=`${r}/${t}`,n=_e(r))}return t=Kt(t,!n),Qt.test(t)?`${t}/`:n&&!_e(t)?`/${t}`:t.length>0?t:"."},Fe="/",St=":",Cr="at ",Tr=/https?:\/\/[^\s)]+/g,Rr=/file:\/\//g,Jt=/\/@fs\//g,Lr=/:(\d+)(?::(\d+))?$/,$r=/\n/,Ar=2048,en=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Pr=new Set(["<anonymous>","<unknown>","native"]),ae=e=>e>="0"&&e<="9",Ir=e=>e===" "||e===" "||e===`
1831
- `||e==="\r"||e==="\f"||e==="\v",Ct=(e,t)=>{if(!ae(e[t+1]))return t;let n=t+1;for(;n<e.length&&ae(e[n]);)n+=1;if(e[n]===":"&&ae(e[n+1]))for(n+=1;n<e.length&&ae(e[n]);)n+=1;return n},Fr=e=>{let t=!1;for(let n=0;n<e.length;n+=1){const o=e[n];if(o==="(")t=!0;else if(o===")")t=!1;else if(t&&o===":"&&Ct(e,n)>n&&e[Ct(e,n)]===")")return!0}return!1},Dr=e=>{for(let t=1;t<e.length;t+=1)if(!(e[t]!==":"||!ae(e[t+1])))for(let n=t-1;n>=0;n-=1){const o=e[n];if(o!=="("&&!Ir(o))return!0}return!1},zr=e=>Dr(e)||Fr(e),Mr=e=>{const t=e.match(Lr),n=t?.[1],o=t?.[2];return{baseUrl:t?e.slice(0,-t[0].length):e,col:o,line:n}},Br=(e,t)=>{const n=new URL(e);let o=decodeURIComponent(n.pathname||"");return o=o.replaceAll(Jt,Fe),Sr(t,o.startsWith(Fe)?o.slice(1):o)},Hr=(e,t,n)=>{if(!t)return e;const o=n?`${St}${n}`:"";return`${e}${St}${t}${o}`},Or=e=>{const t=e.trim();return t.length>Ar||!t.startsWith(Cr)||!([...en].some(r=>t.includes(r))||[...Pr].some(r=>t.includes(r)))?!1:zr(t)||t.includes("native")||t.includes("<unknown>")},Nr=e=>{let t=e.replaceAll(Jt,Fe);return t=t.replaceAll(Rr,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Or(t)?"":t},jr=(e,t)=>{try{const{baseUrl:n,col:o,line:r}=Mr(e),s=Br(n,t);return Hr(s,r,o)}catch(n){return console.warn("Failed to absolutize URL:",e,n),e}},Ne=e=>e&&e.replaceAll(`\r
1828
+ ${Mn};`,a},Vn=/\.mdx$/i,Xn=1,Zn=/syntax error/i,Yn=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Qn=/glob:\s*"(.+)"\s*\(/i,Kn=e=>e instanceof Error?e:new Error(String(e)),Jn=(e,t)=>{try{e.ssrFixStacktrace(t)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},eo=e=>{try{const n=K(e,{frameLimit:Xn})?.[0];return String(n?.file||e.loc?.file||e.id||"")}catch(t){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",t);return}},to=async e=>{try{return await Nt(e,"utf8")}catch(t){console.warn(`[visulima:vite-overlay:server] Failed to read file ${e}:`,t);return}},no=(e,t)=>{const n=e.id||e.loc?.file||t;n&&Vn.test(String(n))&&Zn.test(e.message)&&(e.hint=e.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},Wt=(e,t)=>{const n=e.split(`
1829
+ `),o=n.findIndex(a=>a.includes(t));if(o===-1)return;const r=n[o]||"";return{column:Math.max(0,r.indexOf(t))+1,line:o+1}},oo=async(e,t,n)=>{const r=Yn.exec(e.message)?.[1];if(r&&(e.title="Failed to Load Module (SSR)",e.name="FailedToLoadModuleSSR",e.message=`Failed to load module: ${r}`,e.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&t)){const i=Wt(n,r);i&&(e.loc={...i,file:t})}},ro=async(e,t,n)=>{const r=Qn.exec(e.message)?.[1];if(r&&(e.name="InvalidGlob",e.title="Invalid Glob Pattern",e.message=`Invalid glob pattern: ${r}`,e.hint=e.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&t)){const i=Wt(n,r);i&&(e.loc={...i,file:t})}},io=async(e,t)=>{const n=Kn(e);Jn(t,n);const o=eo(n),r=o&&!o.includes("://")&&!o.startsWith("\0")?await to(o):void 0;return await oo(n,o,r),no(n,o),await ro(n,o,r),n},so={javascript:()=>import("@shikijs/langs/javascript"),typescript:()=>import("@shikijs/langs/typescript"),jsx:()=>import("@shikijs/langs/jsx"),tsx:()=>import("@shikijs/langs/tsx"),json:()=>import("@shikijs/langs/json"),json5:()=>import("@shikijs/langs/json5"),jsonc:()=>import("@shikijs/langs/jsonc"),xml:()=>import("@shikijs/langs/xml"),sql:()=>import("@shikijs/langs/sql"),markdown:()=>import("@shikijs/langs/markdown"),mdx:()=>import("@shikijs/langs/mdx"),html:()=>import("@shikijs/langs/html"),css:()=>import("@shikijs/langs/css"),scss:()=>import("@shikijs/langs/scss"),less:()=>import("@shikijs/langs/less"),sass:()=>import("@shikijs/langs/sass"),stylus:()=>import("@shikijs/langs/stylus"),styl:()=>import("@shikijs/langs/styl"),svelte:()=>import("@shikijs/langs/svelte"),vue:()=>import("@shikijs/langs/vue"),bash:()=>import("@shikijs/langs/bash"),shell:()=>import("@shikijs/langs/shell"),yaml:()=>import("@shikijs/langs/yaml"),toml:()=>import("@shikijs/langs/toml"),python:()=>import("@shikijs/langs/python"),go:()=>import("@shikijs/langs/go"),rust:()=>import("@shikijs/langs/rust"),ruby:()=>import("@shikijs/langs/ruby"),php:()=>import("@shikijs/langs/php"),graphql:()=>import("@shikijs/langs/graphql"),dockerfile:()=>import("@shikijs/langs/dockerfile"),text:()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text",repository:{}})};let fe;const ao=async()=>{const[e,t]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=e,{createJavaScriptRegexEngine:o}=t;return await n({themes:[import("./packem_chunks/min-dark.js"),import("./packem_chunks/min-light.js")],langs:[],engine:o()})},lo=async(e,t)=>{if(t==="text")return;const n=t.toLowerCase();if(!(e.getLoadedLanguages?.()??e.getLanguages?.()??[]).includes(n)){const r=so[n];r&&await e.loadLanguage?.(await r())}},Vt=async(e=[])=>{fe||(fe=ao().catch(r=>{throw fe=void 0,r}));const t=await fe,n=[],o=[];for(const r of e)typeof r=="string"?n.push(r.toLowerCase()):o.push(r);return await Promise.all([...n.map(r=>lo(t,r)),...o.map(r=>t.loadLanguage?.(r))]),t},ut=(e=[])=>({name:"@shikijs/transformers:compact-line-options",line(t,n){const o=e.find(r=>r.line===n);return o?.classes&&this.addClassToHast(t,o.classes),t}}),co=e=>!Array.isArray(e)||e.length===0?!1:e.some(t=>t&&typeof t=="object"&&("location"in t||"pluginName"in t||"text"in t)),po=e=>e.map((t,n)=>{const{location:o,pluginName:r,text:i}=t,a={message:i||`ESBuild error #${n+1}`,name:t.name||"Error",stack:t.stack||""};return o&&(a.file=o.file,a.line=o.line,a.column=o.column),r&&(a.plugin=r),a}),ho=/^\/@fs\//,uo=/^[./]*/,mo=(e,t)=>{for(const[n,o]of e.moduleGraph.idToModuleMap){if(!o)continue;const r=o,i=[String(r.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(r.url||"").replaceAll("\\","/")];for(const a of t)if(i.some(s=>s===a||s.includes(a)||a.includes(s)))return o}},de=(e,t)=>{const n=[...t,...t.map(a=>a.replace(ho,"")),...t.map(a=>a.replace(uo,""))];let o,r=0;for(const a of n)try{const s=e.moduleGraph.getModuleById(a);if(s){const c=Object.keys(s).length>0,d=!!s.transformResult;let p=0;if(c&&d?p=2:c&&(p=1),c&&(p>r&&(o=s,r=p),d))return s}const l=e.moduleGraph.getModuleByUrl?.(a);if(l){const c=Object.keys(l).length>0,d=!!l.transformResult;let p=0;if(c&&d?p=2:c&&(p=1),c&&(p>r&&(o=l,r=p),d))return l}}catch{}return o||mo(e,t)||void 0},go=/^https?:\/\//,fo=/^\/@fs\//,vo=e=>{const t=new URL(e),{pathname:n}=t,o=t.search||"",r=[n+o,n,n.replace(fo,""),decodeURIComponent(n+o),decodeURIComponent(n)];return[...new Set(r)].filter(Boolean)},Xt=e=>go.test(e),U=e=>{if(!e)return[];try{if(Xt(e))return vo(e);const t=[e];if(e.startsWith("/")&&t.push(e.slice(1)),e.includes("?")){const n=e.split("?")[0];n&&t.push(n)}return[...new Set(t)].filter(Boolean)}catch(t){return console.warn(`Failed to normalize path "${e}":`,t),[]}},wo=64,mt=16,bo=3,yo=4,Zt=/\n/,_o=/\s+/g,ko=/[A-Z_$][\w$]{2,}/i,xo=/\s/,Eo=(e,t)=>e.split(Zt)[t-1]??"",gt=e=>e.replaceAll(_o,""),So=(e,t)=>{if(t<=0||t>e.length)return"";const n=Math.max(0,t-1),o=e.slice(n,n+wo),r=ko.exec(o);if(r?.[0])return r[0];let i=o.trim();return i.length<yo&&(i=e.slice(Math.max(0,n-mt),n+mt).trim()),i},Co=(e,t)=>{let n=0;for(const[o,r]of[...e].entries())if(typeof r=="string"){if(n===t)return o+1;xo.test(r)||(n+=1)}return-1},To=(e,t)=>{if(!(!e||e.length<bo))for(const[n,o]of t.entries()){if(!o)continue;const r=o.indexOf(e);if(r!==-1)return{column:r+1,line:n+1}}},Ro=(e,t)=>{if(e)for(const[n,o]of t.entries()){if(!o)continue;const r=o.indexOf(e);if(r!==-1)return{column:r+1,line:n+1}}},Lo=(e,t)=>{if(!e)return;const n=gt(e);if(n)for(const[o,r]of t.entries()){if(!r)continue;const a=gt(r).indexOf(n);if(a!==-1){const s=Co(r,a);if(s!==-1)return{column:s,line:o+1}}}},$o=(e,t,n,o)=>{const r=Eo(e,t);if(!r)return;const i=o.split(Zt),a=So(r,n);return To(a,i)||Ro(r.trim(),i)||Lo(r.trim(),i)};var Ao=44,ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Po=new Uint8Array(64),Yt=new Uint8Array(128);for(let e=0;e<ft.length;e++){const t=ft.charCodeAt(e);Po[e]=t,Yt[t]=e}function re(e){let t=0,n=0,o=0;do{const r=e.next();o=Yt[r],t|=(o&31)<<n,n+=5}while(o&32);return t}function ie(e){return e&1?-2147483648|-(e>>>1):e>>>1}function vt(e,t){return e.pos>=t?!1:e.peek()!==Ao}var Io=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,o=t.indexOf(e,n);return o===-1?t.length:o}};function Fo(e){const{length:t}=e,n=new Io(e),o=[];let r=0,i=0,a=0,s=0,l=0;do{const c=n.indexOf(";"),d=[];let p=!0,b=0;for(r=0;n.pos<c;){let v;r+=ie(re(n)),r<b&&(p=!1),b=r,vt(n,c)?(i+=ie(re(n)),a+=ie(re(n)),s+=ie(re(n)),vt(n,c)?(l+=ie(re(n)),v=[r,i,a,s,l]):v=[r,i,a,s]):v=[r],d.push(v),n.pos++}p||Do(d),o.push(d),n.pos=c+1}while(n.pos<=t);return o}function Do(e){e.sort(zo)}function zo(e,t){return e[0]-t[0]}function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var be={exports:{}},Mo=be.exports,wt;function Oo(){return wt||(wt=1,(function(e,t){(function(n,o){e.exports=o()})(Mo,(function(){const n=/^[\w+.-]+:\/\//,o=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(h){return n.test(h)}function a(h){return h.startsWith("//")}function s(h){return h.startsWith("/")}function l(h){return h.startsWith("file:")}function c(h){return/^[.?#]/.test(h)}function d(h){const g=o.exec(h);return b(g[1],g[2]||"",g[3],g[4]||"",g[5]||"/",g[6]||"",g[7]||"")}function p(h){const g=r.exec(h),w=g[2];return b("file:","",g[1]||"","",s(w)?w:"/"+w,g[3]||"",g[4]||"")}function b(h,g,w,_,x,E,T){return{scheme:h,user:g,host:w,port:_,path:x,query:E,hash:T,type:7}}function v(h){if(a(h)){const w=d("http:"+h);return w.scheme="",w.type=6,w}if(s(h)){const w=d("http://foo.com"+h);return w.scheme="",w.host="",w.type=5,w}if(l(h))return p(h);if(i(h))return d(h);const g=d("http://foo.com/"+h);return g.scheme="",g.host="",g.type=h?h.startsWith("?")?3:h.startsWith("#")?2:4:1,g}function f(h){if(h.endsWith("/.."))return h;const g=h.lastIndexOf("/");return h.slice(0,g+1)}function m(h,g){u(g,g.type),h.path==="/"?h.path=g.path:h.path=f(g.path)+h.path}function u(h,g){const w=g<=4,_=h.path.split("/");let x=1,E=0,T=!1;for(let B=1;B<_.length;B++){const j=_[B];if(!j){T=!0;continue}if(T=!1,j!=="."){if(j===".."){E?(T=!0,E--,x--):w&&(_[x++]=j);continue}_[x++]=j,E++}}let L="";for(let B=1;B<x;B++)L+="/"+_[B];(!L||T&&!L.endsWith("/.."))&&(L+="/"),h.path=L}function y(h,g){if(!h&&!g)return"";const w=v(h);let _=w.type;if(g&&_!==7){const E=v(g),T=E.type;switch(_){case 1:w.hash=E.hash;case 2:w.query=E.query;case 3:case 4:m(w,E);case 5:w.user=E.user,w.host=E.host,w.port=E.port;case 6:w.scheme=E.scheme}T>_&&(_=T)}u(w,_);const x=w.query+w.hash;switch(_){case 2:case 3:return x;case 4:{const E=w.path.slice(1);return E?c(g||h)&&!c(E)?"./"+E+x:E+x:x||"."}case 5:return w.path+x;default:return w.scheme+"//"+w.user+w.host+w.port+w.path+x}}return y}))})(be)),be.exports}var Ho=Oo();const No=Bo(Ho);function jo(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function qo(e,t){const n=jo(e),o=t?t+"/":"";return r=>No(o+(r||""),n)}var N=0,Uo=1,Go=2,Wo=3,Vo=4;function Xo(e,t){const n=bt(e,0);if(n===e.length)return e;t||(e=e.slice());for(let o=n;o<e.length;o=bt(e,o+1))e[o]=Yo(e[o],t);return e}function bt(e,t){for(let n=t;n<e.length;n++)if(!Zo(e[n]))return n;return e.length}function Zo(e){for(let t=1;t<e.length;t++)if(e[t][N]<e[t-1][N])return!1;return!0}function Yo(e,t){return t||(e=e.slice()),e.sort(Qo)}function Qo(e,t){return e[N]-t[N]}var _e=!1;function Ko(e,t,n,o){for(;n<=o;){const r=n+(o-n>>1),i=e[r][N]-t;if(i===0)return _e=!0,r;i<0?n=r+1:o=r-1}return _e=!1,n-1}function Jo(e,t,n){for(let o=n+1;o<e.length&&e[o][N]===t;n=o++);return n}function er(e,t,n){for(let o=n-1;o>=0&&e[o][N]===t;n=o--);return n}function tr(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function nr(e,t,n,o){const{lastKey:r,lastNeedle:i,lastIndex:a}=n;let s=0,l=e.length-1;if(o===r){if(t===i)return _e=a!==-1&&e[a][N]===t,a;t>=i?s=a===-1?0:a:l=a}return n.lastKey=o,n.lastNeedle=t,n.lastIndex=Ko(e,t,s,l)}function or(e){return typeof e=="string"?JSON.parse(e):e}var rr="`line` must be greater than 0 (lines start at line 1)",ir="`column` must be greater than or equal to 0 (columns start at column 0)",yt=-1,sr=1,ar=class{constructor(e,t){const n=typeof e=="string";if(!n&&e._decodedMemo)return e;const o=or(e),{version:r,file:i,names:a,sourceRoot:s,sources:l,sourcesContent:c}=o;this.version=r,this.file=i,this.names=a||[],this.sourceRoot=s,this.sources=l,this.sourcesContent=c,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const d=qo(t,s);this.resolvedSources=l.map(d);const{mappings:p}=o;if(typeof p=="string")this._encoded=p,this._decoded=void 0;else if(Array.isArray(p))this._encoded=void 0,this._decoded=Xo(p,n);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=tr(),this._bySources=void 0,this._bySourceMemos=void 0}};function lr(e){var t;return(t=e)._decoded||(t._decoded=Fo(e._encoded))}function cr(e,t){let{line:n,column:o,bias:r}=t;if(n--,n<0)throw new Error(rr);if(o<0)throw new Error(ir);const i=lr(e);if(n>=i.length)return ve(null,null,null,null);const a=i[n],s=dr(a,e._decodedMemo,n,o,r||sr);if(s===-1)return ve(null,null,null,null);const l=a[s];if(l.length===1)return ve(null,null,null,null);const{names:c,resolvedSources:d}=e;return ve(d[l[Uo]],l[Go]+1,l[Wo],l.length===5?c[l[Vo]]:null)}function ve(e,t,n,o){return{source:e,line:t,column:n,name:o}}function dr(e,t,n,o,r){let i=nr(e,o,t,n);return _e?i=(r===yt?Jo:er)(e,o,i):r===yt&&i++,i===-1||i===e.length?-1:i}const pr=/`((?:[^`$]|\$\{[^}]+\})*)`/g,_t=/\$\{[^}]+\}/g,hr=/[.*+?^${}()|[\]\\]/g,Qt=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],G=e=>e.replaceAll(hr,String.raw`\$&`),ur=e=>{const t=G(e);return[e,`new Error("${t}")`,`new Error('${t}')`,`new Error(\`${G(e)}\`)`,`throw new Error("${t}")`,`throw new Error('${t}')`,`throw new Error(\`${G(e)}\`)`,`Error("${t}")`,`Error('${t}')`]},kt=(e,t)=>{const n=[...e.matchAll(pr)];for(const o of n){const r=o[1];if(!r)continue;const i=r.split(_t);if(i.every(l=>l===""||t.includes(l))&&i.length>1)return!0;if(!r)continue;const s=r.replaceAll(_t,"(.+?)");try{if(new RegExp(`^${G(s)}$`).test(t))return!0}catch{}}return!1},mr=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],gr=e=>{for(const t of mr){const n=e.match(t);if(n)return n}},xt=e=>{let t,n;for(const o of Qt){const r=e.match(o);r&&(!t||o.source.includes("throw")&&!n?.source.includes("throw"))&&(t=r,n=o)}return{bestMatch:t,bestPattern:n}},Et=(e,t)=>{let n=e.index??0;if(t.source.includes("throw new")&&e[0].startsWith("throw new")){const o=e[0].indexOf("new");o!==-1&&(n+=o)}return n+1},fr=(e,t,n=0)=>{if(!e||!t)return;const o=e.split(`
1830
+ `),r=gr(t),i=ur(t),s=((v,f,m)=>{let u=0;for(const[y,h]of v.entries()){if(!h)continue;const g=h.includes(f)||kt(h,f),w=Qt.some(_=>_.test(h));if(g&&w){const{bestMatch:_,bestPattern:x}=xt(h);if(_&&x&&(u+=1,u>m))return{column:Et(_,x),line:y+1}}}})(o,t,n);if(s)return s;r&&((v,f,m)=>{if(v[0].includes("Failed to resolve import")){const u=v[1];if(!u)return;const y=G(u);m.unshift(`import.*from ["']${y}["']`,`import.*["']${y}["']`,u)}else if(v[0].includes("is not defined")){const u=v[1];if(!u)return;m.unshift(u,`{${u}}`,`src={${u}}`,`${u}.`,`=${u}`)}else if(v[0].includes("Cannot read properties")){const u=v[1],y=v[2];if(!y)return;m.unshift(y,`${u}.${y}`,`${u}?.${y}`,`${u}[${y}]`)}else{const u=v[1];if(!u)return;const y=G(f),h=G(u);m.unshift(`new Error(\`${h}`,`throw new Error(\`${h}`,`new Error("${h}`,`new Error('${h}`,`throw new Error("${h}`,`throw new Error('${h}`,`new Error("${y}")`,`new Error('${y}')`,`throw new Error("${y}")`,`throw new Error('${y}')`,`new Error(\`${y}\`)`,`throw new Error(\`${y}\`)`)}})(r,t,i);const c=(v,f,m)=>{let u=0;for(const[y,h]of v.entries()){if(!h||!kt(h,f))continue;const{bestMatch:g,bestPattern:w}=xt(h);if(g&&w&&(u+=1,u>m))return{column:Et(g,w),line:y+1}}},d=(v,f,m,u)=>{if(!u)return v+1;if(u[0].includes("Failed to resolve import")){const y=u[1];if(m.includes(`"${y}"`)||m.includes(`'${y}'`)){const h=m.includes(`"${y}"`)?'"':"'";return m.indexOf(`${h}${y}${h}`)+1}}else if(u[0].includes("is not defined")){const y=u[1];if(y&&f===y)return v+1;if(y&&f.includes(y))return v+f.indexOf(y)+1}else if(u[0].includes("Cannot read properties")){const y=u[2];if(y&&f.includes(y))return v+f.indexOf(y)+1}else if(f.includes("new Error("))return m.indexOf("new Error(")+1;return v+1},p=(v,f,m,u)=>{let y=0;for(const[h,g]of v.entries()){if(!g)continue;let w=-1,_;for(const x of f){const E=g.indexOf(x);E!==-1&&(w===-1||E<w)&&(w=E,_=x)}if(w!==-1&&_&&(y+=1,y>u))return{column:d(w,_,g,m),line:h+1}}},b=c(o,t,n);return b||p(o,i,r,n)},vr=1,wr=/^\//,Ie=(e,t)=>{const n=Math.max(1,e),o=Math.max(0,t);let r,i;return n>=20?r=Math.max(1,Math.round(n*.5)):n>15?r=Math.max(1,Math.round(n*.6)):n>10?r=Math.max(1,n-8):r=Math.max(1,n-3),o>=10||o>7?i=Math.max(0,o-1):o>5?i=Math.max(0,o):i=o,{estimatedColumn:i,estimatedLine:r}},br=(e,t,n)=>{try{const o=new ar(e);if(t<=0)return;const r=[{column:n,desc:"original",line:t},{column:Math.max(0,n-vr),desc:"offset",line:t},{column:n,desc:"line above",line:t-1},{column:n,desc:"line below",line:t+1},...Array.from({length:5},(i,a)=>({column:Math.max(0,n-2+a),desc:`col ${n-2+a}`,line:t}))].filter(i=>i.line>0);for(const i of r){const a=cr(o,{column:i.column,line:i.line});if(a.source&&a.line!==void 0&&a.column!==void 0&&a.line>0&&a.column>=0)return{column:a.column,line:a.line,source:a.source}}}catch(o){console.warn("Source map processing failed:",o)}},yr=(e,t)=>t?Xt(e)?_r(e,t):t:e,_r=(e,t)=>{try{const n=new URL(e),o=(n.pathname||"").replace(wr,""),r=o.includes("/")?o.slice(0,Math.max(0,o.lastIndexOf("/"))):"";return`${n.origin}/${r?`${r}/`:""}${t}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),e}},Fe=async(e,t,n,o,r,i,a=0)=>{if(i&&t)try{let l;if(t.transformResult?.map?.sourcesContent?.[0]?[l]=t.transformResult.map.sourcesContent:t.transformResult?.code&&(l=t.transformResult.code),!l&&(t.id||t.url)){const c=t.id||t.url;if(c)try{const d=await e.transformRequest(c);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?[l]=d.map.sourcesContent:d?.code&&(l=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!l&&n)try{const c=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const p=n.indexOf("://");p!==-1&&(d=n.slice(p+3))}d.startsWith("/")||(d=`${e.config.root||process.cwd()}/${d}`),l=await c.readFile(d,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(l){const c=fr(l,i,a);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:n}}}catch(l){console.warn("Source code search failed:",l)}let s=t?.transformResult?.map;if(!s&&(t?.id||t?.url)){const l=t.id||t.url;if(l)try{const c=await e.transformRequest(l);c?.map&&(s=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!s){const{estimatedColumn:l,estimatedLine:c}=Ie(o,r);return{originalFileColumn:l,originalFileLine:c,originalFilePath:n}}try{const l=br(s,o,r);if(!l){const{estimatedColumn:d,estimatedLine:p}=Ie(o,r);return{originalFileColumn:d,originalFileLine:p,originalFilePath:n}}const c=yr(n,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:c}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:r,originalFileLine:o,originalFilePath:n}}},kr=/^[A-Z]:\//i,Ne=(e="")=>e&&e.replaceAll("\\","/").replace(kr,t=>t.toUpperCase()),xr=/^[/\\]{2}/,Er=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Kt=/^[A-Z]:$/i,Sr=()=>{if(typeof process.cwd=="function")try{const e=process.cwd();if(typeof e=="string")return Ne(e)}catch{}return"/"},Jt=(e,t)=>{let n="",o=0,r=-1,i=0,a;for(let s=0;s<=e.length;++s){if(s<e.length)a=e[s];else{if(a==="/")break;a="/"}if(a==="/"){if(!(r===s-1||i===1))if(i===2){if(n.length<2||o!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const l=n.lastIndexOf("/");l===-1?(n="",o=0):(n=n.slice(0,l),o=n.length-1-n.lastIndexOf("/")),r=s,i=0;continue}else if(n.length>0){n="",o=0,r=s,i=0;continue}}t&&(n+=n.length>0?"/..":"..",o=2)}else n.length>0?n+=`/${e.slice(r+1,s)}`:n=e.slice(r+1,s),o=s-r-1;r=s,i=0}else a==="."&&i!==-1?++i:i=-1}return n},ke=e=>Er.test(e),St=function(e){if(e.length===0)return".";e=Ne(e);const t=xr.exec(e),n=ke(e),o=e.at(-1)==="/";return e=Jt(e,!n),e.length===0?n?"/":o?"./":".":(o&&(e+="/"),Kt.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!ke(e)?`/${e}`:e)},Cr=function(...e){e=e.map(o=>Ne(o));let t="",n=!1;for(let o=e.length-1;o>=-1&&!n;o--){const r=o>=0?e[o]:Sr();!r||r.length===0||(t=`${r}/${t}`,n=ke(r))}return t=Jt(t,!n),Kt.test(t)?`${t}/`:n&&!ke(t)?`/${t}`:t.length>0?t:"."},De="/",Ct=":",Tr="at ",Rr=/https?:\/\/[^\s)]+/g,Lr=/file:\/\//g,en=/\/@fs\//g,$r=/:(\d+)(?::(\d+))?$/,Ar=/\n/,Pr=2048,tn=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Ir=new Set(["<anonymous>","<unknown>","native"]),le=e=>e>="0"&&e<="9",Fr=e=>e===" "||e===" "||e===`
1831
+ `||e==="\r"||e==="\f"||e==="\v",Tt=(e,t)=>{if(!le(e[t+1]))return t;let n=t+1;for(;n<e.length&&le(e[n]);)n+=1;if(e[n]===":"&&le(e[n+1]))for(n+=1;n<e.length&&le(e[n]);)n+=1;return n},Dr=e=>{let t=!1;for(let n=0;n<e.length;n+=1){const o=e[n];if(o==="(")t=!0;else if(o===")")t=!1;else if(t&&o===":"&&Tt(e,n)>n&&e[Tt(e,n)]===")")return!0}return!1},zr=e=>{for(let t=1;t<e.length;t+=1)if(!(e[t]!==":"||!le(e[t+1])))for(let n=t-1;n>=0;n-=1){const o=e[n];if(o!=="("&&!Fr(o))return!0}return!1},Br=e=>zr(e)||Dr(e),Mr=e=>{const t=e.match($r),n=t?.[1],o=t?.[2];return{baseUrl:t?e.slice(0,-t[0].length):e,col:o,line:n}},Or=(e,t)=>{const n=new URL(e);let o=decodeURIComponent(n.pathname||"");return o=o.replaceAll(en,De),Cr(t,o.startsWith(De)?o.slice(1):o)},Hr=(e,t,n)=>{if(!t)return e;const o=n?`${Ct}${n}`:"";return`${e}${Ct}${t}${o}`},Nr=e=>{const t=e.trim();return t.length>Pr||!t.startsWith(Tr)||!([...tn].some(r=>t.includes(r))||[...Ir].some(r=>t.includes(r)))?!1:Br(t)||t.includes("native")||t.includes("<unknown>")},jr=e=>{let t=e.replaceAll(en,De);return t=t.replaceAll(Lr,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Nr(t)?"":t},qr=(e,t)=>{try{const{baseUrl:n,col:o,line:r}=Mr(e),i=Or(n,t);return Hr(i,r,o)}catch(n){return console.warn("Failed to absolutize URL:",e,n),e}},je=e=>e&&e.replaceAll(`\r
1832
1832
  `,`
1833
1833
  `).replaceAll("\r",`
1834
- `).split($r).map(t=>Nr(t)).filter(t=>t.trim()!=="").join(`
1835
- `),qr=e=>{const t=typeof e=="string"?e:e.message||String(e);return yn(t)},Ur=e=>e instanceof AggregateError||e!==null&&typeof e=="object"&&"errors"in e&&Array.isArray(e.errors),Gr=e=>Ur(e)?e.errors:[e],Se=(e,t)=>e&&String(e).replaceAll(Tr,n=>jr(n,t)),Wr=/\((\d+):(\d+)\)/,Vr=/(\S+\.vue)/,Xr=e=>{if(!e.includes("[vue/compiler-sfc]"))return;let t="",n=0,o=0;const r=e.match(Wr);r?.[1]&&r[2]&&(n=Number.parseInt(r[1],10),o=Number.parseInt(r[2],10));const s=e.match(Vr);s?.[1]&&(t=s[1]||"");const a=e.split(`
1836
- `)[0]||e;if(t&&n>0&&o>0)return{column:o,line:n,message:a,originalFilePath:t}},Zr=/<style\b[^>]*>[\s\S]*?<\/style>/gi,Yr=/<script\b[^>]*>[\s\S]*?<\/script>/gi,Qr=/<template\b[^>]*>[\s\S]*?<\/template>/gi,Kr=/style="([^"]*)"/g,Jr=e=>{let t=e.replaceAll(Zr,"").replaceAll(Yr,"").replaceAll(Qr,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return t=t.replaceAll(Kr,(n,o)=>`style="${(o.trim().endsWith(";")?o:`${o};`).replaceAll(" ","")}"`),t},es="https://react.dev/link/hydration-mismatch",ts=e=>{const[t,n]=e.message.split(es);if(t){const[s]=t?.split(`
1837
-
1838
- `);e.message=s.replace(" This can happen if a SSR-ed Client Component used:","")}const o=[];for(const s of Jr(n?.trim()||"").split(`
1839
- `)||[])s.startsWith("+ ")?o.push(`[!code ++] ${s.slice(1)}`):s.startsWith("- ")?o.push(`[!code --] ${s.slice(1)}`):s.includes(" ...")||o.push(s);let r=o.findIndex(s=>s.startsWith("[!code ++]"));if(r===-1&&(r=o.findIndex(s=>s.startsWith("[!code --]"))),r!==-1)return o.slice(Math.max(0,r-5)).join(`
1840
- `)},ns=/^(Error:.*?)at /,os=/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,rs=/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,ss=/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,is=/at ([^<\s]+)(?=\s*at|$)/g,as=async(e,t,n)=>{let o=t;if(t.includes("at ")&&!t.includes(`
1841
- at `)&&(o=t.replace(ns,`$1
1842
- at `).replaceAll(os,`
1843
- at $1 $2`).replaceAll(rs,`
1844
- at $1 $2`).replaceAll(ss,`
1845
- at $1 <$2>:0:0`),o=o.replaceAll(is,`
1846
- at $1 <unknown>:0:0`)),!o.includes("<unknown>")&&!o.includes("react-dom")&&!o.includes("react"))return o;const r=K({stack:o}),s=await Promise.all(r.map(async a=>{const{file:i}=a,l=a.line??0,c=a.column??0;if(i&&i!=="<unknown>"&&l>0&&c>0&&!i.includes("react-dom")&&!i.includes("react"))return a;if(!i||l<=0||c<=0){if((i==="<unknown>"||i&&(i.includes("react-dom")||i.includes("react")))&&a.methodName){const{methodName:d}=a,p={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[v,w]of Object.entries(p))if(d.includes(v))return{...a,column:0,file:`[React] ${w}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const v=U(d),w=ce(e,v);if(w){const f=await Ie(e,w,"",1,1);if(f.originalFilePath)return{...a,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return a}try{const d=U(i),p=ce(e,d);if(!p)return a;const v=await Ie(e,p,i,l,c);return{...a,column:v.originalFileColumn,file:v.originalFilePath,line:v.originalFileLine}}catch{return a}}));return Nt(s,{header:n})},ls=e=>!!(e&&Array.isArray(e.sources)&&Array.isArray(e.sourcesContent)),$e=e=>{if(typeof e=="string")return e},cs=(e,t)=>e===t||e.endsWith(t)||t.endsWith(e),ds=(e,t)=>{if(!e||e.length===0)return-1;const n=e.indexOf(t);if(n!==-1)return n;if(!(t.includes("\\")||t.includes("/")))return-1;const r=Et(t),s=e.indexOf(r);if(s!==-1)return s;for(const[a,i]of e.entries()){if(!i||typeof i!="string")continue;const l=Et(i);if(cs(l,r))return a}return-1},Tt=(e,t)=>{if(!ls(e))return;if(!t&&e.sourcesContent?.[0])return $e(e.sourcesContent[0]);const n=ds(e.sources,t||"");return n>=0&&e.sourcesContent?.[n]?$e(e.sourcesContent[n]):e.sourcesContent?.[0]?$e(e.sourcesContent[0]):void 0},Rt=async(e,t,n,o)=>{let r,s;if(t&&typeof t=="object"&&"transformResult"in t&&t.transformResult){const i=t.transformResult;i.code&&!s&&(s=i.code),i.map&&!r&&(r=Tt(i.map,n))}const a=t&&typeof t=="object"&&("id"in t&&t.id||"url"in t&&t.url)?"id"in t&&t.id||"url"in t&&t.url:o[0];if(a&&(!r||!s))try{const i=await e.transformRequest(a);if(i?.code&&!s&&(s=i.code),i?.map&&!r){const{map:l}=i,c=l;typeof l=="object"&&l!==null&&"mappings"in l&&c.mappings!==""&&(r=Tt(c,n))}}catch{}if(!r&&t&&typeof t=="object"&&"file"in t&&t.file)try{r=await Ot(t.file,"utf8")}catch{}return{compiledSourceText:s,originalSourceText:r}},ps=(e={})=>{const{classActivePre:t="has-diff",classLineAdd:n="diff add",classLineRemove:o="diff remove"}=e;return{code(r){this.addClassToHast(this.pre,t),r.children.filter(a=>a.type==="element").forEach(a=>{for(const i of a.children){if(i.type!=="element")continue;const l=i.children[0];l.type==="text"&&(l.value.startsWith("[!code ++]")&&(l.value=l.value.slice(10),this.addClassToHast(a,n)),l.value.startsWith("[!code --]")&&(l.value=l.value.slice(10),this.addClassToHast(a,o)))}})},name:"shiki-diff"}},hs=(e,t)=>!t||e.includes("?")?e:e+t,us=e=>{try{return new URL(e).search}catch{return""}},ms=/[&<>"']/g,Lt=/^https?:\/\/[^/]+/,$t=/^\//,gs={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},De=e=>e.replaceAll(ms,t=>gs[t]||t),fs=e=>Array.isArray(e)&&lo(e)?co(e).map(n=>({message:n.message||"ESBuild error",name:n.name||"Error",stack:n.stack||""})):Gr(e),vs=e=>{const t=K(e,{frameLimit:10}),o=t?.find(r=>r?.file?.startsWith("http"))||t?.[0];return{compiledColumn:o?.column??0,compiledFilePath:o?.file??"",compiledLine:o?.line??0}},ws=async(e,t,n,o,r,s,a=0,i)=>{const l=r?.originalFilePath||t,c=r?.line??o,d=r?.column??n;if(l){let p=l,v=l;if(l.startsWith("http://")||l.startsWith("https://"))try{p=new URL(l).pathname,p.startsWith("/")&&(p=p.slice(1));const h=e.config.root||process.cwd();v=p.startsWith("/")?p:`${h}/${p}`}catch{console.warn("Failed to parse HTTP URL:",l)}const w=U(p),f=ce(e,w);if(f)try{const h=await Ie(e,f,t||i||p,c,d,s,a),g=v||h.originalFilePath;return{originalFileColumn:h.originalFileColumn,originalFileLine:h.originalFileLine,originalFilePath:g}}catch{console.warn("Source map resolution failed, using estimation")}const{estimatedColumn:m,estimatedLine:u}=Pe(c,d);return{originalFileColumn:m,originalFileLine:u,originalFilePath:v||l}}return{originalFileColumn:d,originalFileLine:c,originalFilePath:l}},bs=(e,t,n,o,r,s)=>({compiledCodeFrameContent:void 0,compiledColumn:e,compiledFilePath:t,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:o,originalFileLine:r,originalFilePath:s,originalSnippet:""}),ys=async(e,t,n,o,r,s)=>{let a,i;const l=J(n),c=J(o)||l;if(l==="text"&&e&&e.trim()&&(a=`<pre class="shiki"><code>${De(e)}</code></pre>`),c==="text"&&t&&t.trim()&&(i=`<pre class="shiki"><code>${De(t)}</code></pre>`),l==="text"&&c==="text")return{compiledCodeFrameContent:i,originalCodeFrameContent:a};const d=await Wt([c,l]),p={themes:{dark:"min-dark",light:"min-light"}};if(e&&e.trim())try{a=d.codeToHtml(e,{...p,lang:l,transformers:[ht([{classes:["error-line"],line:r}])]})}catch{}if(t&&t.trim())try{i=d.codeToHtml(t,{...p,lang:c,transformers:[ht([{classes:["error-line"],line:s}])]})}catch{}return{compiledCodeFrameContent:i,originalCodeFrameContent:a}},_s=async(e,t,n=0,o,r,s)=>{const a=o==="vue"&&e?.message?Xr(e.message):void 0,i=fs(e),l=i[0]||e,c=o==="react"&&e.message&&(e.message.toLowerCase().includes("hydration")||e.message.toLowerCase().includes("hydrating"));let d="";if(s&&s.length>1)for(const C of s.slice(1)){const R=C.stack||"",B=K({stack:R},{frameLimit:10})?.find(X=>X?.file?.startsWith("http"));if(B?.file&&(d=us(B.file),d))break}const p=qr(l),v=Ne(l.stack||""),w=await as(t,v,{message:p,name:l.name});let f,m,u;if(r?.file&&r?.line&&r?.column)f=r.column,m=r.file,u=r.line;else{const C=vs(l);if(f=C.compiledColumn,m=C.compiledFilePath,u=C.compiledLine,m&&!m.startsWith("http")){const R=t.config.root;let $=m;m.startsWith(R)&&($=m.slice(R.length)),$.startsWith("/")||($=`/${$}`);const B=t.config.server.port||t.config.preview?.port||5173,X=t.config.server.host||t.config.preview?.host||"localhost";let Z=`${t.config.server.https?"https":"http"}://${X}:${B}${$}`;d&&(Z=hs(Z,d)),m=Z}}if(c){const C=ts(e);if(C){const R=m?J(m):"javascript";if(R==="text")return{errorCount:1,fixPrompt:Le({applicationType:void 0,error:l,file:{file:m,language:"jsx",line:u,snippet:C}}),message:l.message,originalCodeFrameContent:`<pre class="shiki"><code>${De(C)}</code></pre>`,originalFileColumn:f,originalFileLine:u,originalFilePath:m,originalSnippet:C,originalStack:l.stack||""};const $=await Wt([R]);return{errorCount:1,fixPrompt:Le({applicationType:void 0,error:l,file:{file:m,language:"jsx",line:u,snippet:C}}),message:l.message,originalCodeFrameContent:$.codeToHtml(C,{lang:R,themes:{dark:"min-dark",light:"min-light"},transformers:[ps()]}),originalFileColumn:f,originalFileLine:u,originalFilePath:m,originalSnippet:C,originalStack:l.stack||""}}}let y=r?.file||m;if(!r?.file&&l.stack){const R=K(l,{frameLimit:10})?.find($=>$?.file&&!$.file.startsWith("http")&&!$.file.includes("node_modules")&&!$.file.includes(".vite")&&[...en].some(B=>$.file.includes(B)));R?.file&&(y=R.file)}let{originalFileColumn:h,originalFileLine:g,originalFilePath:b}=await ws(t,y,f,u,a,l.message,n,m);const _=r?.plugin;let k="",E="",T,L;try{const[C,R]=await Promise.all([ce(t,U(m)),ce(t,U(b))]);if(!C&&!R)return bs(f,m,u,h,g,b);const $=m.startsWith("http")?m.replace(Lt,"").replace($t,""):m,B=b.startsWith("http")?b.replace(Lt,"").replace($t,""):b,X=C||R;if(X?.transformResult?.code&&(L=X.transformResult.code),R?.transformResult?.map&&!T){const D=R.transformResult.map;try{const P=D.sourcesContent?.[0];P&&(T=P)}catch(P){console.warn("Failed to get original source from source map:",P)}}const Te={compiledSourceText:void 0,originalSourceText:void 0};let Z=Promise.resolve(Te);!L&&C&&(Z=Rt(t,C,$,U($)));let Qe=Promise.resolve(Te);!T&&R&&(Qe=Rt(t,R,B,U(B)));const[Ke,Je]=await Promise.all([Z,Qe]);if(!L&&Ke.compiledSourceText&&({compiledSourceText:L}=Ke),!T&&Je.originalSourceText&&({originalSourceText:T}=Je),T){if(L&&g<=0&&u>0){const D=Lo(L,u,f,T);D&&(g=D.line,h=D.column)}try{k=nt(T,{start:{column:Math.max(1,h),line:Math.max(1,g)}},{showGutter:!1})}catch{k=T?.slice(0,500)||""}}const et=L&&u>0,fn=g>0&&h>0;let ue=!1;if(et&&u>0&&l.message&&L){const P=L.split(`
1847
- `)[u-1];if(P&&f<=P.length){const ne=l.message,Re=Math.max(0,f-1),Y=P.slice(Math.max(0,Re));ue=Y.includes("new Error(")||Y.includes("throw new Error")||Y.includes("throw ")||Y.includes(ne.slice(0,20)),!ue&&fn&&(b.includes(".svelte")||b.includes(".vue")||b.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(ue=!0)}}if(et&&ue&&L){const D=L.split(`
1848
- `),P=D.length,ne=Math.min(u,P)||Math.max(1,P-2),Re=D[ne-1]?Math.min(f||1,D[ne-1]?.length||1):1;try{E=nt(L,{start:{column:Re,line:ne}},{showGutter:!1})}catch(Y){console.warn("Compiled codeFrame failed:",Y),E=L?.slice(0,500)||""}}}catch(C){console.warn("Source retrieval failed:",C)}const{compiledCodeFrameContent:M,originalCodeFrameContent:j}=await ys(k,E,b,m,g,u);let te=k;if(!te&&T){const C=T.split(`
1834
+ `).split(Ar).map(t=>jr(t)).filter(t=>t.trim()!=="").join(`
1835
+ `),Ur=e=>{const t=typeof e=="string"?e:e.message||String(e);return _n(t)},Gr=e=>e instanceof AggregateError||e!==null&&typeof e=="object"&&"errors"in e&&Array.isArray(e.errors),Wr=e=>Gr(e)?e.errors:[e],Ce=(e,t)=>e&&String(e).replaceAll(Rr,n=>qr(n,t)),Vr=/\((\d+):(\d+)\)/,Xr=/(\S+\.vue)/,Zr=e=>{if(!e.includes("[vue/compiler-sfc]"))return;let t="",n=0,o=0;const r=e.match(Vr);r?.[1]&&r[2]&&(n=Number.parseInt(r[1],10),o=Number.parseInt(r[2],10));const i=e.match(Xr);i?.[1]&&(t=i[1]||"");const a=e.split(`
1836
+ `)[0]||e;if(t&&n>0&&o>0)return{column:o,line:n,message:a,originalFilePath:t}},Yr=/<style\b[^>]*>[\s\S]*?<\/style>/gi,Qr=/<script\b[^>]*>[\s\S]*?<\/script>/gi,Kr=/<template\b[^>]*>[\s\S]*?<\/template>/gi,Jr=/style="([^"]*)"/g,ei=e=>{let t=e.replaceAll(Yr,"").replaceAll(Qr,"").replaceAll(Kr,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return t=t.replaceAll(Jr,(n,o)=>`style="${(o.trim().endsWith(";")?o:`${o};`).replaceAll(" ","")}"`),t},ti="https://react.dev/link/hydration-mismatch",ni=e=>{const[t,n]=e.message.split(ti);if(t){const[i]=t?.split(`
1837
+
1838
+ `);e.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const o=[];for(const i of ei(n?.trim()||"").split(`
1839
+ `)||[])i.startsWith("+ ")?o.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?o.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||o.push(i);let r=o.findIndex(i=>i.startsWith("[!code ++]"));if(r===-1&&(r=o.findIndex(i=>i.startsWith("[!code --]"))),r!==-1)return o.slice(Math.max(0,r-5)).join(`
1840
+ `)},oi=/^(Error:.*?)at /,ri=/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,ii=/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,si=/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,ai=/at ([^<\s]+)(?=\s*at|$)/g,li=async(e,t,n)=>{let o=t;if(t.includes("at ")&&!t.includes(`
1841
+ at `)&&(o=t.replace(oi,`$1
1842
+ at `).replaceAll(ri,`
1843
+ at $1 $2`).replaceAll(ii,`
1844
+ at $1 $2`).replaceAll(si,`
1845
+ at $1 <$2>:0:0`),o=o.replaceAll(ai,`
1846
+ at $1 <unknown>:0:0`)),!o.includes("<unknown>")&&!o.includes("react-dom")&&!o.includes("react"))return o;const r=K({stack:o}),i=await Promise.all(r.map(async a=>{const{file:s}=a,l=a.line??0,c=a.column??0;if(s&&s!=="<unknown>"&&l>0&&c>0&&!s.includes("react-dom")&&!s.includes("react"))return a;if(!s||l<=0||c<=0){if((s==="<unknown>"||s&&(s.includes("react-dom")||s.includes("react")))&&a.methodName){const{methodName:d}=a,p={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[b,v]of Object.entries(p))if(d.includes(b))return{...a,column:0,file:`[React] ${v}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const b=U(d),v=de(e,b);if(v){const f=await Fe(e,v,"",1,1);if(f.originalFilePath)return{...a,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return a}try{const d=U(s),p=de(e,d);if(!p)return a;const b=await Fe(e,p,s,l,c);return{...a,column:b.originalFileColumn,file:b.originalFilePath,line:b.originalFileLine}}catch{return a}}));return jt(i,{header:n})},ci=e=>!!(e&&Array.isArray(e.sources)&&Array.isArray(e.sourcesContent)),Ae=e=>{if(typeof e=="string")return e},di=(e,t)=>e===t||e.endsWith(t)||t.endsWith(e),pi=(e,t)=>{if(!e||e.length===0)return-1;const n=e.indexOf(t);if(n!==-1)return n;if(!(t.includes("\\")||t.includes("/")))return-1;const r=St(t),i=e.indexOf(r);if(i!==-1)return i;for(const[a,s]of e.entries()){if(!s||typeof s!="string")continue;const l=St(s);if(di(l,r))return a}return-1},Rt=(e,t)=>{if(!ci(e))return;if(!t&&e.sourcesContent?.[0])return Ae(e.sourcesContent[0]);const n=pi(e.sources,t||"");return n>=0&&e.sourcesContent?.[n]?Ae(e.sourcesContent[n]):e.sourcesContent?.[0]?Ae(e.sourcesContent[0]):void 0},Lt=async(e,t,n,o)=>{let r,i;if(t&&typeof t=="object"&&"transformResult"in t&&t.transformResult){const s=t.transformResult;s.code&&!i&&(i=s.code),s.map&&!r&&(r=Rt(s.map,n))}const a=t&&typeof t=="object"&&("id"in t&&t.id||"url"in t&&t.url)?"id"in t&&t.id||"url"in t&&t.url:o[0];if(a&&(!r||!i))try{const s=await e.transformRequest(a);if(s?.code&&!i&&(i=s.code),s?.map&&!r){const{map:l}=s,c=l;typeof l=="object"&&l!==null&&"mappings"in l&&c.mappings!==""&&(r=Rt(c,n))}}catch{}if(!r&&t&&typeof t=="object"&&"file"in t&&t.file)try{r=await Nt(t.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:r}},hi=(e={})=>{const{classActivePre:t="has-diff",classLineAdd:n="diff add",classLineRemove:o="diff remove"}=e;return{code(r){this.addClassToHast(this.pre,t),r.children.filter(a=>a.type==="element").forEach(a=>{for(const s of a.children){if(s.type!=="element")continue;const l=s.children[0];l.type==="text"&&(l.value.startsWith("[!code ++]")&&(l.value=l.value.slice(10),this.addClassToHast(a,n)),l.value.startsWith("[!code --]")&&(l.value=l.value.slice(10),this.addClassToHast(a,o)))}})},name:"shiki-diff"}},ui=(e,t)=>!t||e.includes("?")?e:e+t,mi=e=>{try{return new URL(e).search}catch{return""}},gi=/[&<>"']/g,$t=/^https?:\/\/[^/]+/,At=/^\//,fi={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},ze=e=>e.replaceAll(gi,t=>fi[t]||t),vi=e=>Array.isArray(e)&&co(e)?po(e).map(n=>({message:n.message||"ESBuild error",name:n.name||"Error",stack:n.stack||""})):Wr(e),wi=e=>{const t=K(e,{frameLimit:10}),o=t?.find(r=>r?.file?.startsWith("http"))||t?.[0];return{compiledColumn:o?.column??0,compiledFilePath:o?.file??"",compiledLine:o?.line??0}},bi=async(e,t,n,o,r,i,a=0,s)=>{const l=r?.originalFilePath||t,c=r?.line??o,d=r?.column??n;if(l){let p=l,b=l;if(l.startsWith("http://")||l.startsWith("https://"))try{p=new URL(l).pathname,p.startsWith("/")&&(p=p.slice(1));const h=e.config.root||process.cwd();b=p.startsWith("/")?p:`${h}/${p}`}catch{console.warn("Failed to parse HTTP URL:",l)}const v=U(p),f=de(e,v);if(f)try{const h=await Fe(e,f,t||s||p,c,d,i,a),g=b||h.originalFilePath;return{originalFileColumn:h.originalFileColumn,originalFileLine:h.originalFileLine,originalFilePath:g}}catch{console.warn("Source map resolution failed, using estimation")}const{estimatedColumn:m,estimatedLine:u}=Ie(c,d);return{originalFileColumn:m,originalFileLine:u,originalFilePath:b||l}}return{originalFileColumn:d,originalFileLine:c,originalFilePath:l}},yi=(e,t,n,o,r,i)=>({compiledCodeFrameContent:void 0,compiledColumn:e,compiledFilePath:t,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:o,originalFileLine:r,originalFilePath:i,originalSnippet:""}),_i=async(e,t,n,o,r,i)=>{let a,s;const l=J(n),c=J(o)||l;if(l==="text"&&e&&e.trim()&&(a=`<pre class="shiki"><code>${ze(e)}</code></pre>`),c==="text"&&t&&t.trim()&&(s=`<pre class="shiki"><code>${ze(t)}</code></pre>`),l==="text"&&c==="text")return{compiledCodeFrameContent:s,originalCodeFrameContent:a};const d=await Vt([c,l]),p={themes:{dark:"min-dark",light:"min-light"}};if(e&&e.trim())try{a=d.codeToHtml(e,{...p,lang:l,transformers:[ut([{classes:["error-line"],line:r}])]})}catch{}if(t&&t.trim())try{s=d.codeToHtml(t,{...p,lang:c,transformers:[ut([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:s,originalCodeFrameContent:a}},ki=async(e,t,n=0,o,r,i)=>{const a=o==="vue"&&e?.message?Zr(e.message):void 0,s=vi(e),l=s[0]||e,c=o==="react"&&e.message&&(e.message.toLowerCase().includes("hydration")||e.message.toLowerCase().includes("hydrating"));let d="";if(i&&i.length>1)for(const C of i.slice(1)){const R=C.stack||"",M=K({stack:R},{frameLimit:10})?.find(X=>X?.file?.startsWith("http"));if(M?.file&&(d=mi(M.file),d))break}const p=Ur(l),b=je(l.stack||""),v=await li(t,b,{message:p,name:l.name});let f,m,u;if(r?.file&&r?.line&&r?.column)f=r.column,m=r.file,u=r.line;else{const C=wi(l);if(f=C.compiledColumn,m=C.compiledFilePath,u=C.compiledLine,m&&!m.startsWith("http")){const R=t.config.root;let $=m;m.startsWith(R)&&($=m.slice(R.length)),$.startsWith("/")||($=`/${$}`);const M=t.config.server.port||t.config.preview?.port||5173,X=t.config.server.host||t.config.preview?.host||"localhost";let Z=`${t.config.server.https?"https":"http"}://${X}:${M}${$}`;d&&(Z=ui(Z,d)),m=Z}}if(c){const C=ni(e);if(C){const R=m?J(m):"javascript";if(R==="text")return{errorCount:1,fixPrompt:$e({applicationType:void 0,error:l,file:{file:m,language:"jsx",line:u,snippet:C}}),message:l.message,originalCodeFrameContent:`<pre class="shiki"><code>${ze(C)}</code></pre>`,originalFileColumn:f,originalFileLine:u,originalFilePath:m,originalSnippet:C,originalStack:l.stack||""};const $=await Vt([R]);return{errorCount:1,fixPrompt:$e({applicationType:void 0,error:l,file:{file:m,language:"jsx",line:u,snippet:C}}),message:l.message,originalCodeFrameContent:$.codeToHtml(C,{lang:R,themes:{dark:"min-dark",light:"min-light"},transformers:[hi()]}),originalFileColumn:f,originalFileLine:u,originalFilePath:m,originalSnippet:C,originalStack:l.stack||""}}}let y=r?.file||m;if(!r?.file&&l.stack){const R=K(l,{frameLimit:10})?.find($=>$?.file&&!$.file.startsWith("http")&&!$.file.includes("node_modules")&&!$.file.includes(".vite")&&[...tn].some(M=>$.file.includes(M)));R?.file&&(y=R.file)}let{originalFileColumn:h,originalFileLine:g,originalFilePath:w}=await bi(t,y,f,u,a,l.message,n,m);const _=r?.plugin;let x="",E="",T,L;try{const[C,R]=await Promise.all([de(t,U(m)),de(t,U(w))]);if(!C&&!R)return yi(f,m,u,h,g,w);const $=m.startsWith("http")?m.replace($t,"").replace(At,""):m,M=w.startsWith("http")?w.replace($t,"").replace(At,""):w,X=C||R;if(X?.transformResult?.code&&(L=X.transformResult.code),R?.transformResult?.map&&!T){const D=R.transformResult.map;try{const P=D.sourcesContent?.[0];P&&(T=P)}catch(P){console.warn("Failed to get original source from source map:",P)}}const Re={compiledSourceText:void 0,originalSourceText:void 0};let Z=Promise.resolve(Re);!L&&C&&(Z=Lt(t,C,$,U($)));let Ke=Promise.resolve(Re);!T&&R&&(Ke=Lt(t,R,M,U(M)));const[Je,et]=await Promise.all([Z,Ke]);if(!L&&Je.compiledSourceText&&({compiledSourceText:L}=Je),!T&&et.originalSourceText&&({originalSourceText:T}=et),T){if(L&&g<=0&&u>0){const D=$o(L,u,f,T);D&&(g=D.line,h=D.column)}try{x=ot(T,{start:{column:Math.max(1,h),line:Math.max(1,g)}},{showGutter:!1})}catch{x=T?.slice(0,500)||""}}const tt=L&&u>0,vn=g>0&&h>0;let me=!1;if(tt&&u>0&&l.message&&L){const P=L.split(`
1847
+ `)[u-1];if(P&&f<=P.length){const ne=l.message,Le=Math.max(0,f-1),Y=P.slice(Math.max(0,Le));me=Y.includes("new Error(")||Y.includes("throw new Error")||Y.includes("throw ")||Y.includes(ne.slice(0,20)),!me&&vn&&(w.includes(".svelte")||w.includes(".vue")||w.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(me=!0)}}if(tt&&me&&L){const D=L.split(`
1848
+ `),P=D.length,ne=Math.min(u,P)||Math.max(1,P-2),Le=D[ne-1]?Math.min(f||1,D[ne-1]?.length||1):1;try{E=ot(L,{start:{column:Le,line:ne}},{showGutter:!1})}catch(Y){console.warn("Compiled codeFrame failed:",Y),E=L?.slice(0,500)||""}}}catch(C){console.warn("Source retrieval failed:",C)}const{compiledCodeFrameContent:B,originalCodeFrameContent:j}=await _i(x,E,w,m,g,u);let te=x;if(!te&&T){const C=T.split(`
1849
1849
  `),R=Math.max(0,g-3),$=Math.min(C.length,g+2);te=C.slice(R,$).join(`
1850
- `)}te||(te=E||`Error at line ${g} in ${b}`);const gn=Le({applicationType:void 0,error:e,file:{file:b,language:J(b),line:g,snippet:te}});return{compiledCodeFrameContent:M,compiledColumn:f,compiledFilePath:m,compiledLine:u,compiledStack:Nt(K({message:p,name:l.name,stack:v}),{header:{message:p,name:l.name}}),errorCount:i.length,fixPrompt:gn,originalCodeFrameContent:j,originalFileColumn:h,originalFileLine:g,originalFilePath:b,originalSnippet:k,originalStack:w||v,plugin:_}},xs=(e,t,n)=>{const o=t.map(r=>{const s=r.charAt(0).toUpperCase()+r.slice(1);return`
1851
- var orig${s} = console.${r};
1850
+ `)}te||(te=E||`Error at line ${g} in ${w}`);const fn=$e({applicationType:void 0,error:e,file:{file:w,language:J(w),line:g,snippet:te}});return{compiledCodeFrameContent:B,compiledColumn:f,compiledFilePath:m,compiledLine:u,compiledStack:jt(K({message:p,name:l.name,stack:b}),{header:{message:p,name:l.name}}),errorCount:s.length,fixPrompt:fn,originalCodeFrameContent:j,originalFileColumn:h,originalFileLine:g,originalFilePath:w,originalSnippet:x,originalStack:v||b,plugin:_}},xi=(e,t,n)=>{const o=t.map(r=>{const i=r.charAt(0).toUpperCase()+r.slice(1);return`
1851
+ var orig${i} = console.${r};
1852
1852
 
1853
1853
  console.${r} = function(...args) {
1854
1854
  function parseConsoleArgs(args) {
@@ -1901,7 +1901,7 @@ console.${r} = function(...args) {
1901
1901
  }
1902
1902
  } catch {}
1903
1903
 
1904
- return orig${s}.apply(console, args);
1904
+ return orig${i}.apply(console, args);
1905
1905
  };`}).join(`
1906
1906
  `);return String.raw`
1907
1907
  import { createHotContext } from '/@vite/client';
@@ -1945,7 +1945,7 @@ async function sendError(error, loc) {
1945
1945
 
1946
1946
  var causeChain = extractCauseChain(error);
1947
1947
 
1948
- hot.send('${jt}', {
1948
+ hot.send('${qt}', {
1949
1949
  name: error?.name || null,
1950
1950
  message: error.message,
1951
1951
  stack: error.stack,
@@ -2056,73 +2056,73 @@ window.__visulima_overlay__ = {
2056
2056
  };
2057
2057
 
2058
2058
  ${o}
2059
- `};function je(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var V=je();function tn(e){V=e}var q={exec:()=>null};function Q(e){let t=[];return n=>{let o=Math.max(0,Math.min(3,n-1)),r=t[o];return r||(r=e(o),t[o]=r),r}}function x(e,t=""){let n=typeof e=="string"?e:e.source,o={replace:(r,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(A.caret,"$1"),n=n.replace(r,a),o},getRegex:()=>new RegExp(n,t)};return o}var ks=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),A={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Q(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Q(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Q(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Q(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Q(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Q(e=>new RegExp(`^ {0,${e}}>`))},Es=/^(?:[ \t]*(?:\n|$))+/,Ss=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Cs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ts=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,qe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,nn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,on=x(nn).replace(/bull/g,qe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rs=x(nn).replace(/bull/g,qe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ue=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ls=/^[^\n]+/,Ge=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$s=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ge).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),As=x(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,qe).getRegex(),Ce="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",We=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ps=x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",We).replace("tag",Ce).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),rn=e=>x(Ue).replace("hr",pe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ce).getRegex(),Is=rn(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Fs=rn(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ds=x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fs).getRegex(),Ve={blockquote:Ds,code:Ss,def:$s,fences:Cs,heading:Ts,hr:pe,html:Ps,lheading:on,list:As,newline:Es,paragraph:Is,table:q,text:Ls},At=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",pe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ce).getRegex(),zs={...Ve,lheading:Rs,table:At,paragraph:x(Ue).replace("hr",pe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",At).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ce).getRegex()},Ms={...Ve,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",We).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(Ue).replace("hr",pe).replace("heading",` *#{1,6} *[^
2060
- ]`).replace("lheading",on).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sn=/^( {2,}|\\)\n(?!\s*$)/,Os=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,H=/[\p{P}\p{S}]/u,ee=/[\s\p{P}\p{S}]/u,he=/[^\s\p{P}\p{S}]/u,Ns=x(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ee).getRegex(),js=/[\p{Pi}\p{Ps}"']/u,an=/(?!~)[\p{P}\p{S}]/u,qs=/(?!~)[\s\p{P}\p{S}]/u,Us=/(?:[^\s\p{P}\p{S}]|~)/u,Gs=x(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ks?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ln=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ws=x(ln,"u").replace(/punct/g,H).getRegex(),Vs=x(ln,"u").replace(/punct/g,an).getRegex(),Xs=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Zs=x(Xs,"u").replace(/openQuote/g,js).replace(/punct/g,H).getRegex(),cn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ys=x(cn,"gu").replace(/notPunctSpace/g,he).replace(/punctSpace/g,ee).replace(/punct/g,H).getRegex(),Qs=x(cn,"gu").replace(/notPunctSpace/g,Us).replace(/punctSpace/g,qs).replace(/punct/g,an).getRegex(),Ks="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Js=x(Ks,"gu").replace(/notPunctSpace/g,he).replace(/punctSpace/g,ee).replace(/punct/g,H).getRegex(),ei=x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,he).replace(/punctSpace/g,ee).replace(/punct/g,H).getRegex(),ti="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ni=x(ti,"gu").replace(/notPunctSpace/g,he).replace(/punctSpace/g,ee).replace(/punct/g,H).getRegex(),oi=x(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,H).getRegex(),ri="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",si=x(ri,"gu").replace(/notPunctSpace/g,he).replace(/punctSpace/g,ee).replace(/punct/g,H).getRegex(),ii=x(/\\(punct)/,"gu").replace(/punct/g,H).getRegex(),ai=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),li=x(We).replace("(?:-->|$)","-->").getRegex(),ci=x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",li).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,di=x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",xe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dn=x(/^!?\[(label)\]\[(ref)\]/).replace("label",xe).replace("ref",Ge).getRegex(),pn=x(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ge).getRegex(),pi=x("reflink|nolink(?!\\()","g").replace("reflink",dn).replace("nolink",pn).getRegex(),Pt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Xe={_backpedal:q,anyPunctuation:ii,autolink:ai,blockSkip:Gs,br:sn,code:Hs,del:q,delLDelim:q,delRDelim:q,emStrongLDelim:Ws,emStrongRDelimAst:Ys,emStrongRDelimUnd:ei,escape:Bs,link:di,nolink:pn,punctuation:Ns,reflink:dn,reflinkSearch:pi,tag:ci,text:Os,url:q},hi={...Xe,emStrongLDelim:Zs,emStrongRDelimAst:Js,emStrongRDelimUnd:ni,link:x(/^!?\[(label)\]\((.*?)\)/).replace("label",xe).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xe).getRegex()},ze={...Xe,emStrongRDelimAst:Qs,emStrongLDelim:Vs,delLDelim:oi,delRDelim:si,url:x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Pt).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Pt).getRegex()},ui={...ze,br:x(sn).replace("{2,}","*").getRegex(),text:x(ze.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ve={normal:Ve,gfm:zs,pedantic:Ms},se={normal:Xe,gfm:ze,breaks:ui,pedantic:hi},mi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},It=e=>mi[e];function z(e,t){if(t){if(A.escapeTest.test(e))return e.replace(A.escapeReplace,It)}else if(A.escapeTestNoEncode.test(e))return e.replace(A.escapeReplaceNoEncode,It);return e}function Ft(e){try{e=encodeURI(e).replace(A.percentDecode,"%")}catch{return null}return e}function Dt(e,t){let n=e.replace(A.findPipe,(s,a,i)=>{let l=!1,c=a;for(;--c>=0&&i[c]==="\\";)l=!l;return l?"|":" |"}),o=n.split(A.splitPipe),r=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;r<o.length;r++)o[r]=o[r].trim().replace(A.slashPipe,"|");return o}function O(e,t,n){let o=e.length;if(o===0)return"";let r=0;for(;r<o&&e.charAt(o-r-1)===t;)r++;return e.slice(0,o-r)}function zt(e){let t=e.split(`
2059
+ `};function qe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var V=qe();function nn(e){V=e}var q={exec:()=>null};function Q(e){let t=[];return n=>{let o=Math.max(0,Math.min(3,n-1)),r=t[o];return r||(r=e(o),t[o]=r),r}}function k(e,t=""){let n=typeof e=="string"?e:e.source,o={replace:(r,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(A.caret,"$1"),n=n.replace(r,a),o},getRegex:()=>new RegExp(n,t)};return o}var Ei=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),A={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Q(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Q(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Q(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Q(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Q(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Q(e=>new RegExp(`^ {0,${e}}>`))},Si=/^(?:[ \t]*(?:\n|$))+/,Ci=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ti=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,he=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ri=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ue=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,on=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rn=k(on).replace(/bull/g,Ue).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Li=k(on).replace(/bull/g,Ue).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ge=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,$i=/^[^\n]+/,We=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ai=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",We).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pi=k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ue).getRegex(),Te="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ii=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ve).replace("tag",Te).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sn=e=>k(Ge).replace("hr",he).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Te).getRegex(),Fi=sn(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Di=sn(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),zi=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Di).getRegex(),Xe={blockquote:zi,code:Ci,def:Ai,fences:Ti,heading:Ri,hr:he,html:Ii,lheading:rn,list:Pi,newline:Si,paragraph:Fi,table:q,text:$i},Pt=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",he).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Te).getRegex(),Bi={...Xe,lheading:Li,table:Pt,paragraph:k(Ge).replace("hr",he).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Te).getRegex()},Mi={...Xe,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(Ge).replace("hr",he).replace("heading",` *#{1,6} *[^
2060
+ ]`).replace("lheading",rn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Oi=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hi=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,an=/^( {2,}|\\)\n(?!\s*$)/,Ni=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,O=/[\p{P}\p{S}]/u,ee=/[\s\p{P}\p{S}]/u,ue=/[^\s\p{P}\p{S}]/u,ji=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ee).getRegex(),qi=/[\p{Pi}\p{Ps}"']/u,ln=/(?!~)[\p{P}\p{S}]/u,Ui=/(?!~)[\s\p{P}\p{S}]/u,Gi=/(?:[^\s\p{P}\p{S}]|~)/u,Wi=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ei?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),cn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Vi=k(cn,"u").replace(/punct/g,O).getRegex(),Xi=k(cn,"u").replace(/punct/g,ln).getRegex(),Zi=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Yi=k(Zi,"u").replace(/openQuote/g,qi).replace(/punct/g,O).getRegex(),dn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Qi=k(dn,"gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,ee).replace(/punct/g,O).getRegex(),Ki=k(dn,"gu").replace(/notPunctSpace/g,Gi).replace(/punctSpace/g,Ui).replace(/punct/g,ln).getRegex(),Ji="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",es=k(Ji,"gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,ee).replace(/punct/g,O).getRegex(),ts=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,ee).replace(/punct/g,O).getRegex(),ns="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",os=k(ns,"gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,ee).replace(/punct/g,O).getRegex(),rs=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,O).getRegex(),is="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ss=k(is,"gu").replace(/notPunctSpace/g,ue).replace(/punctSpace/g,ee).replace(/punct/g,O).getRegex(),as=k(/\\(punct)/,"gu").replace(/punct/g,O).getRegex(),ls=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),cs=k(Ve).replace("(?:-->|$)","-->").getRegex(),ds=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",cs).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ps=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",xe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pn=k(/^!?\[(label)\]\[(ref)\]/).replace("label",xe).replace("ref",We).getRegex(),hn=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",We).getRegex(),hs=k("reflink|nolink(?!\\()","g").replace("reflink",pn).replace("nolink",hn).getRegex(),It=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ze={_backpedal:q,anyPunctuation:as,autolink:ls,blockSkip:Wi,br:an,code:Hi,del:q,delLDelim:q,delRDelim:q,emStrongLDelim:Vi,emStrongRDelimAst:Qi,emStrongRDelimUnd:ts,escape:Oi,link:ps,nolink:hn,punctuation:ji,reflink:pn,reflinkSearch:hs,tag:ds,text:Ni,url:q},us={...Ze,emStrongLDelim:Yi,emStrongRDelimAst:es,emStrongRDelimUnd:os,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",xe).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xe).getRegex()},Be={...Ze,emStrongRDelimAst:Ki,emStrongLDelim:Xi,delLDelim:rs,delRDelim:ss,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",It).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",It).getRegex()},ms={...Be,br:k(an).replace("{2,}","*").getRegex(),text:k(Be.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},we={normal:Xe,gfm:Bi,pedantic:Mi},se={normal:Ze,gfm:Be,breaks:ms,pedantic:us},gs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ft=e=>gs[e];function z(e,t){if(t){if(A.escapeTest.test(e))return e.replace(A.escapeReplace,Ft)}else if(A.escapeTestNoEncode.test(e))return e.replace(A.escapeReplaceNoEncode,Ft);return e}function Dt(e){try{e=encodeURI(e).replace(A.percentDecode,"%")}catch{return null}return e}function zt(e,t){let n=e.replace(A.findPipe,(i,a,s)=>{let l=!1,c=a;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),o=n.split(A.splitPipe),r=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;r<o.length;r++)o[r]=o[r].trim().replace(A.slashPipe,"|");return o}function H(e,t,n){let o=e.length;if(o===0)return"";let r=0;for(;r<o&&e.charAt(o-r-1)===t;)r++;return e.slice(0,o-r)}function Bt(e){let t=e.split(`
2061
2061
  `),n=t.length-1;for(;n>=0&&A.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
2062
- `)}function gi(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let o=0;o<e.length;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return n>0?-2:-1}function fi(e,t=0){let n=t,o="";for(let r of e)if(r===" "){let s=4-n%4;o+=" ".repeat(s),n+=s}else o+=r,n++;return o}function Mt(e,t,n,o,r){let s=t.href,a=t.title||null,i=e[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:a,text:i,tokens:o.inlineTokens(i)};return o.state.inLink=!1,l}function vi(e,t,n){let o=e.match(n.other.indentCodeCompensation);if(o===null)return t;let r=o[1];return t.split(`
2063
- `).map(s=>{let a=s.match(n.other.beginningSpace);if(a===null)return s;let[i]=a;return i.length>=r.length?s.slice(r.length):s}).join(`
2064
- `)}var ke=class{options;rules;lexer;constructor(e){this.options=e||V}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:zt(t[0]),o=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:o}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],o=vi(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:o}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let o=O(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:O(t[0],`
2065
- `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:O(t[0],`
2066
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=O(t[0],`
2062
+ `)}function fs(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let o=0;o<e.length;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return n>0?-2:-1}function vs(e,t=0){let n=t,o="";for(let r of e)if(r===" "){let i=4-n%4;o+=" ".repeat(i),n+=i}else o+=r,n++;return o}function Mt(e,t,n,o,r){let i=t.href,a=t.title||null,s=e[1].replace(r.other.outputLinkReplace,"$1"),l=e[0].charAt(0)==="!";o.state.inLink=!0;let c=o.state.linkEmitted,d=o.state.inRawBlock;o.state.linkEmitted=!1;let p=o.inlineTokens(s),b=o.state.linkEmitted;if(o.state.linkEmitted=c,o.state.inLink=!1,!l){if(b){o.state.inRawBlock=d;return}o.state.linkEmitted=!0}return{type:l?"image":"link",raw:n,href:i,title:a,text:s,tokens:p}}function ws(e,t,n){let o=e.match(n.other.indentCodeCompensation);if(o===null)return t;let r=o[1];return t.split(`
2063
+ `).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[s]=a;return s.length>=r.length?i.slice(r.length):i}).join(`
2064
+ `)}var Ee=class{options;rules;lexer;constructor(e){this.options=e||V}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:Bt(t[0]),o=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:o}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],o=ws(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:o}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let o=H(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:H(t[0],`
2065
+ `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:H(t[0],`
2066
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=H(t[0],`
2067
2067
  `).split(`
2068
- `),o="",r="",s=[];for(;n.length>0;){let a=!1,i=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))i.push(n[l]),a=!0;else if(!a)i.push(n[l]);else break;n=n.slice(l);let c=i.join(`
2068
+ `),o="",r="",i=[];for(;n.length>0;){let a=!1,s=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))s.push(n[l]),a=!0;else if(!a)s.push(n[l]);else break;n=n.slice(l);let c=s.join(`
2069
2069
  `),d=c.replace(this.rules.other.blockquoteSetextReplace,`
2070
2070
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
2071
2071
  ${c}`:c,r=r?`${r}
2072
- ${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=p,n.length===0)break;let v=s.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let w=v,f=n.join(`
2073
- `),m=w.raw+`
2074
- `+f.replace(this.rules.other.blockquoteSetextReplace2,""),u=this.blockquote(m);s[s.length-1]=u,o=`${o}
2075
- ${f}`,r=r.substring(0,r.length-w.text.length)+u.text;break}else if(v?.type==="list"){let w=v,f=w.raw+`
2072
+ ${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,i,!0),this.lexer.state.top=p,n.length===0)break;let b=i.at(-1);if(b?.type==="code")break;if(b?.type==="blockquote"){let v=b,f=n.join(`
2073
+ `),m=v.raw+`
2074
+ `+f.replace(this.rules.other.blockquoteSetextReplace2,""),u=this.blockquote(m);i[i.length-1]=u,o=`${o}
2075
+ ${f}`,r=r.substring(0,r.length-v.text.length)+u.text;break}else if(b?.type==="list"){let v=b,f=v.raw+`
2076
2076
  `+n.join(`
2077
- `),m=this.list(f);s[s.length-1]=m,o=o.substring(0,o.length-v.raw.length)+m.raw,r=r.substring(0,r.length-w.raw.length)+m.raw,n=f.substring(s.at(-1).raw.length).split(`
2078
- `);continue}}return{type:"blockquote",raw:o,tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),o=n.length>1,r={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let s=this.rules.other.listItemRegex(n),a=!1;for(;e;){let l=!1,c="",d="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let p=fi(t[2].split(`
2079
- `,1)[0],t[1].length),v=e.split(`
2080
- `,1)[0],w=!p.trim(),f=0;if(this.options.pedantic?(f=2,d=p.trimStart()):w?f=t[1].length+1:(f=p.search(this.rules.other.nonSpaceChar),f=f>4?1:f,d=p.slice(f),f+=t[1].length),w&&this.rules.other.blankLine.test(v)&&(c+=v+`
2081
- `,e=e.substring(v.length+1),l=!0),!l){let m=this.rules.other.nextBulletRegex(f),u=this.rules.other.hrRegex(f),y=this.rules.other.fencesBeginRegex(f),h=this.rules.other.headingBeginRegex(f),g=this.rules.other.htmlBeginRegex(f),b=this.rules.other.blockquoteBeginRegex(f);for(;e;){let _=e.split(`
2082
- `,1)[0],k;if(v=_,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),k=v):k=v.replace(this.rules.other.tabCharGlobal," "),y.test(v)||h.test(v)||g.test(v)||b.test(v)||m.test(v)||u.test(v))break;if(k.search(this.rules.other.nonSpaceChar)>=f||!v.trim())d+=`
2083
- `+k.slice(f);else{if(w||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(p)||h.test(p)||u.test(p))break;d+=`
2084
- `+v}w=!v.trim(),c+=_+`
2085
- `,e=e.substring(_.length+1),p=k.slice(f)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),r.raw+=c}let i=r.items.at(-1);if(i)i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l of r.items){this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]);let c=l.tokens[0];if(l.task&&(c?.type==="text"||c?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}let d=this.rules.other.listTaskCheckbox.exec(l.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};l.checked=p.checked,r.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=p.raw+l.tokens[0].raw,l.tokens[0].text=p.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(p)):l.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):l.tokens.unshift(p)}}else l.task&&(l.task=!1);if(!r.loose){let d=l.tokens.filter(v=>v.type==="space"),p=d.length>0&&d.some(v=>this.rules.other.anyLine.test(v.raw));r.loose=p}}if(r.loose)for(let l of r.items){l.loose=!0;for(let c of l.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=zt(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:O(t[0],`
2086
- `),href:o,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Dt(t[1]),o=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
2087
- `):[],s={type:"table",raw:O(t[0],`
2088
- `),header:[],align:[],rows:[]};if(n.length===o.length){for(let a of o)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<n.length;a++)s.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(Dt(a,s.header.length).map((i,l)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[l]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:O(t[0],`
2077
+ `),m=this.list(f);i[i.length-1]=m,o=o.substring(0,o.length-b.raw.length)+m.raw,r=r.substring(0,r.length-v.raw.length)+m.raw,n=f.substring(i.at(-1).raw.length).split(`
2078
+ `);continue}}return{type:"blockquote",raw:o,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),o=n.length>1,r={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let l=!1,c="",d="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let p=vs(t[2].split(`
2079
+ `,1)[0],t[1].length),b=e.split(`
2080
+ `,1)[0],v=!p.trim(),f=0;if(this.options.pedantic?(f=2,d=p.trimStart()):v?f=t[1].length+1:(f=p.search(this.rules.other.nonSpaceChar),f=f>4?1:f,d=p.slice(f),f+=t[1].length),v&&this.rules.other.blankLine.test(b)&&(c+=b+`
2081
+ `,e=e.substring(b.length+1),l=!0),!l){let m=this.rules.other.nextBulletRegex(f),u=this.rules.other.hrRegex(f),y=this.rules.other.fencesBeginRegex(f),h=this.rules.other.headingBeginRegex(f),g=this.rules.other.htmlBeginRegex(f),w=this.rules.other.blockquoteBeginRegex(f);for(;e;){let _=e.split(`
2082
+ `,1)[0],x;if(b=_,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),x=b):x=b.replace(this.rules.other.tabCharGlobal," "),y.test(b)||h.test(b)||g.test(b)||w.test(b)||m.test(b)||u.test(b))break;if(x.search(this.rules.other.nonSpaceChar)>=f||!b.trim())d+=`
2083
+ `+x.slice(f);else{if(v||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(p)||h.test(p)||u.test(p))break;d+=`
2084
+ `+b}v=!b.trim(),c+=_+`
2085
+ `,e=e.substring(_.length+1),p=x.slice(f)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),r.raw+=c}let s=r.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l of r.items)if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),!r.loose){let c=l.tokens.filter(p=>p.type==="space"),d=c.length>0&&c.some(p=>this.rules.other.anyLine.test(p.raw));r.loose=d}for(let l of r.items){let c=l.tokens[0];if(l.task&&(c?.type==="text"||c?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}let d=this.rules.other.listTaskCheckbox.exec(l.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};l.checked=p.checked,r.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=p.raw+l.tokens[0].raw,l.tokens[0].text=p.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(p)):l.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):l.tokens.unshift(p)}}else l.task&&(l.task=!1)}if(r.loose)for(let l of r.items){l.loose=!0;for(let c of l.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=Bt(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:H(t[0],`
2086
+ `),href:o,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=zt(t[1]),o=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
2087
+ `):[],i={type:"table",raw:H(t[0],`
2088
+ `),header:[],align:[],rows:[]};if(n.length===o.length){for(let a of o)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let a=0;a<n.length;a++)i.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:i.align[a]});for(let a of r)i.rows.push(zt(a,i.header.length).map((s,l)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:i.align[l]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:H(t[0],`
2089
2089
  `),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
2090
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=O(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=gi(t[2],"()");if(s===-2)return;if(s>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let o=t[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(o);s&&(o=s[1],r=s[3])}else r=t[3]?t[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),Mt(t,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[o.toLowerCase()];if(!r){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Mt(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||!o[1]&&!o[2]&&!o[3]&&!o[4]||o[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[3])||!n||this.rules.inline.punctuation.exec(n))){let r=[...o[0]].length-1,s,a,i=r,l=0,c=o[0][0],d=n===c,p=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+r);(o=p.exec(t))!==null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(a=[...s].length,o[3]||o[4]){i+=a;continue}else if(o[5]||o[6]){if(r%3&&!((r+a)%3)){l+=a;continue}if(d)break}if(i-=a,i>0)continue;a=Math.min(a,a+i+l);let v=[...o[0]][0].length,w=e.slice(0,r+o.index+v+a);if(Math.min(r,a)%2){let m=w.slice(1,-1);return{type:"em",raw:w,text:m,tokens:this.lexer.inlineTokens(m)}}let f=w.slice(2,-2);return{type:"strong",raw:w,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let o=this.rules.inline.delLDelim.exec(e);if(o&&(!o[1]||!n||this.rules.inline.punctuation.exec(n))){let r=[...o[0]].length-1,s,a,i=r,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+r);(o=l.exec(t))!==null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s||(a=[...s].length,a!==r))continue;if(o[3]||o[4]){i+=a;continue}if(i-=a,i>0)continue;a=Math.min(a,a+i);let c=[...o[0]][0].length,d=e.slice(0,r+o.index+c+a),p=d.slice(r,-r);return{type:"del",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,o;return t[2]==="@"?(n=t[1],o="mailto:"+n):(n=t[1],o=n),{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,o;if(t[2]==="@")n=t[0],o="mailto:"+n;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);n=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},I=class Me{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||V,this.options.tokenizer=this.options.tokenizer||new ke,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:A,block:ve.normal,inline:se.normal};this.options.pedantic?(n.block=ve.pedantic,n.inline=se.pedantic):this.options.gfm&&(n.block=ve.gfm,this.options.breaks?n.inline=se.breaks:n.inline=se.gfm),this.tokenizer.rules=n}static get rules(){return{block:ve,inline:se}}static lex(t,n){return new Me(n).lex(t)}static lexInline(t,n){return new Me(n).inlineTokens(t)}lex(t){t=t.replace(A.carriageReturn,`
2091
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let o=this.inlineQueue[n];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],o=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(A.tabCharGlobal," ").replace(A.spaceLine,""));let r=1/0;for(;t;){if(t.length<r)r=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if(this.options.extensions?.block?.some(i=>(s=i.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let i=n.at(-1);s.raw.length===1&&i!==void 0?i.raw+=`
2092
- `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
2090
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=H(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=fs(t[2],"()");if(i===-2)return;if(i>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let o=t[2],r="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(o);i&&(o=i[1],r=i[3])}else r=t[3]?t[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),Mt(t,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[o.toLowerCase()];if(!r){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Mt(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||!o[1]&&!o[2]&&!o[3]&&!o[4]||o[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[3])||!n||this.rules.inline.punctuation.exec(n))){let r=[...o[0]].length-1,i,a,s=r,l=0,c=o[0][0],d=n===c,p=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+r);(o=p.exec(t))!==null;){if(i=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!i)continue;if(a=[...i].length,o[3]||o[4]){s+=a;continue}else if(o[5]||o[6]){if(r%3&&!((r+a)%3)){l+=a;continue}if(d)break}if(s-=a,s>0)continue;a=Math.min(a,a+s+l);let b=[...o[0]][0].length,v=e.slice(0,r+o.index+b+a);if(Math.min(r,a)%2){let m=v.slice(1,-1);return{type:"em",raw:v,text:m,tokens:this.lexer.inlineTokens(m)}}let f=v.slice(2,-2);return{type:"strong",raw:v,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let o=this.rules.inline.delLDelim.exec(e);if(o&&(!o[1]||!n||this.rules.inline.punctuation.exec(n))){let r=[...o[0]].length-1,i,a,s=r,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+r);(o=l.exec(t))!==null;){if(i=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!i||(a=[...i].length,a!==r))continue;if(o[3]||o[4]){s+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s);let c=[...o[0]][0].length,d=e.slice(0,r+o.index+c+a),p=d.slice(r,-r);return{type:"del",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,o;return t[2]==="@"?(n=t[1],o="mailto:"+n):(n=t[1],o=n),{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,o;if(t[2]==="@")n=t[0],o="mailto:"+n;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);n=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},I=class Me{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||V,this.options.tokenizer=this.options.tokenizer||new Ee,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let n={other:A,block:we.normal,inline:se.normal};this.options.pedantic?(n.block=we.pedantic,n.inline=se.pedantic):this.options.gfm&&(n.block=we.gfm,this.options.breaks?n.inline=se.breaks:n.inline=se.gfm),this.tokenizer.rules=n}static get rules(){return{block:we,inline:se}}static lex(t,n){return new Me(n).lex(t)}static lexInline(t,n){return new Me(n).inlineTokens(t)}lex(t){t=t.replace(A.carriageReturn,`
2091
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let o=this.inlineQueue[n];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],o=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(A.tabCharGlobal," ").replace(A.spaceLine,""));let r=1/0;for(;t;){if(t.length<r)r=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let s=n.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
2092
+ `:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
2093
2093
  `)?"":`
2094
- `)+s.raw,i.text+=`
2095
- `+s.text,this.inlineQueue.at(-1).src=i.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
2094
+ `)+i.raw,s.text+=`
2095
+ `+i.text,this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
2096
2096
  `)?"":`
2097
- `)+s.raw,i.text+=`
2098
- `+s.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},n.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let a=t;if(this.options.extensions?.startBlock){let i=1/0,l=t.slice(1),c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},l),typeof c=="number"&&c>=0&&(i=Math.min(i,c))}),i<1/0&&i>=0&&(a=t.substring(0,i+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){let i=n.at(-1);o&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
2097
+ `)+i.raw,s.text+=`
2098
+ `+i.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let s=1/0,l=t.slice(1),c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},l),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(a=t.substring(0,s+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let s=n.at(-1);o&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
2099
2099
  `)?"":`
2100
- `)+s.raw,i.text+=`
2101
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(s),o=a.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let i=n.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
2100
+ `)+i.raw,s.text+=`
2101
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i),o=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
2102
2102
  `)?"":`
2103
- `)+s.raw,i.text+=`
2104
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let o=t;if(this.tokens.links){let i=Object.keys(this.tokens.links);i.length>0&&(o=o.replace(this.tokenizer.rules.inline.reflinkSearch,l=>i.includes(l.slice(l.lastIndexOf("[")+1,-1))?"["+"a".repeat(l.length-2)+"]":l))}o=o.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),o=o.replace(this.tokenizer.rules.inline.blockSkip,(i,l,c)=>{let d=c?c.length:0;return i.slice(0,d)+"["+"a".repeat(i.length-d-2)+"]"}),o=this.options.hooks?.emStrongMask?.call({lexer:this},o)??o;let r=!1,s="",a=1/0;for(;t;){if(t.length<a)a=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}r||(s=""),r=!1;let i;if(this.options.extensions?.inline?.some(c=>(i=c.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length);let c=n.at(-1);i.type==="text"&&c?.type==="text"?(c.raw+=i.raw,c.text+=i.text):n.push(i);continue}if(i=this.tokenizer.emStrong(t,o,s)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.del(t,o,s)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),n.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),n.push(i);continue}let l=t;if(this.options.extensions?.startInline){let c=1/0,d=t.slice(1),p;this.options.extensions.startInline.forEach(v=>{p=v.call({lexer:this},d),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(i=this.tokenizer.inlineText(l)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(s=i.raw.slice(-1)),r=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=i.raw,c.text+=i.text):n.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},de=class{options;parser;constructor(e){this.options=e||V}space(e){return""}code({text:e,lang:t,escaped:n}){let o=(t||"").match(A.notSpaceStart)?.[0],r=e.replace(A.endingNewline,"")+`
2103
+ `)+i.raw,s.text+=`
2104
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}linkInText(t){if(!t.includes("["))return!1;let n=this.tokenizer.rules.inline.link;for(let o of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(n.test(o[0])&&t.charAt(o.index-1)!=="!")return!0;for(let o of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let r=o[0],i=r.lastIndexOf("[");if(!(r.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,r.slice(i+1,-1)))&&!(i>1&&this.linkInText(r.slice(1,i-1))))return!0}return!1}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let o=t;if(this.tokens.links&&t.includes("[")){let s=this.tokenizer.rules.inline.reflinkSearch,l=c=>{let d=c.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,c.slice(d+1,-1)))return c;if(d>1&&c.charAt(0)!=="!"){let p=c.slice(1,d-1);if(this.linkInText(p))return"["+p.replace(s,l)+"]["+"a".repeat(c.length-d-2)+"]"}return"["+"a".repeat(c.length-2)+"]"};o=o.replace(s,l)}o=o.replace(this.tokenizer.rules.inline.anyPunctuation,s=>"+".repeat(s.length)),o=o.replace(this.tokenizer.rules.inline.blockSkip,(s,l,c)=>{let d=c?c.length:0;return s.slice(0,d)+"["+"a".repeat(s.length-d-2)+"]"}),o=this.options.hooks?.emStrongMask?.call({lexer:this},o)??o;let r=!1,i="",a=1/0;for(;t;){if(t.length<a)a=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}r||(i=""),r=!1;let s;if(this.options.extensions?.inline?.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length);let c=n.at(-1);s.type==="text"&&c?.type==="text"?(c.raw+=s.raw,c.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,o,i)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t,o,i)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if(this.options.extensions?.startInline){let c=1/0,d=t.slice(1),p;this.options.extensions.startInline.forEach(b=>{p=b.call({lexer:this},d),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(s=this.tokenizer.inlineText(l)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(i=s.raw.slice(-1)),r=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=s.raw,c.text+=s.text):n.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},pe=class{options;parser;constructor(e){this.options=e||V}space(e){return""}code({text:e,lang:t,escaped:n}){let o=(t||"").match(A.notSpaceStart)?.[0],r=e.replace(A.endingNewline,"")+`
2105
2105
  `;return o?'<pre><code class="language-'+z(o)+'">'+(n?r:z(r,!0))+`</code></pre>
2106
2106
  `:"<pre><code>"+(n?r:z(r,!0))+`</code></pre>
2107
2107
  `}blockquote({tokens:e}){return`<blockquote>
2108
2108
  ${this.parser.parse(e)}</blockquote>
2109
2109
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
2110
2110
  `}hr(e){return`<hr>
2111
- `}list(e){let t=e.ordered,n=e.start,o="";for(let a=0;a<e.items.length;a++){let i=e.items[a];o+=this.listitem(i)}let r=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+r+s+`>
2111
+ `}list(e){let t=e.ordered,n=e.start,o="";for(let a=0;a<e.items.length;a++){let s=e.items[a];o+=this.listitem(s)}let r=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+r+i+`>
2112
2112
  `+o+"</"+r+`>
2113
2113
  `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
2114
2114
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
2115
- `}table(e){let t="",n="";for(let r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});let o="";for(let r=0;r<e.rows.length;r++){let s=e.rows[r];n="";for(let a=0;a<s.length;a++)n+=this.tablecell(s[a]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
2115
+ `}table(e){let t="",n="";for(let r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});let o="";for(let r=0;r<e.rows.length;r++){let i=e.rows[r];n="";for(let a=0;a<i.length;a++)n+=this.tablecell(i[a]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
2116
2116
  <thead>
2117
2117
  `+t+`</thead>
2118
2118
  `+o+`</table>
2119
2119
  `}tablerow({text:e}){return`<tr>
2120
2120
  ${e}</tr>
2121
2121
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
2122
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${z(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let o=this.parser.parseInline(n),r=Ft(e);if(r===null)return o;e=r;let s='<a href="'+e+'"';return t&&(s+=' title="'+z(t)+'"'),s+=">"+o+"</a>",s}image({href:e,title:t,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let r=Ft(e);if(r===null)return z(n);e=r;let s=`<img src="${e}" alt="${z(n)}"`;return t&&(s+=` title="${z(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:z(e.text)}},Ze=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},F=class Be{options;renderer;textRenderer;constructor(t){this.options=t||V,this.options.renderer=this.options.renderer||new de,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ze}static parse(t,n){return new Be(n).parse(t)}static parseInline(t,n){return new Be(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let o=0;o<t.length;o++){let r=t[o];if(this.options.extensions?.renderers?.[r.type]){let a=r,i=this.options.extensions.renderers[a.type].call({parser:this},a);if(i!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(a.type)){n+=i||"";continue}}let s=r;switch(s.type){case"space":{n+=this.renderer.space(s);break}case"hr":{n+=this.renderer.hr(s);break}case"heading":{n+=this.renderer.heading(s);break}case"code":{n+=this.renderer.code(s);break}case"table":{n+=this.renderer.table(s);break}case"blockquote":{n+=this.renderer.blockquote(s);break}case"list":{n+=this.renderer.list(s);break}case"checkbox":{n+=this.renderer.checkbox(s);break}case"html":{n+=this.renderer.html(s);break}case"def":{n+=this.renderer.def(s);break}case"paragraph":{n+=this.renderer.paragraph(s);break}case"text":{n+=this.renderer.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let o="";for(let r=0;r<t.length;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let i=this.options.extensions.renderers[s.type].call({parser:this},s);if(i!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(s.type)){o+=i||"";continue}}let a=s;switch(a.type){case"escape":{o+=n.text(a);break}case"html":{o+=n.html(a);break}case"link":{o+=n.link(a);break}case"image":{o+=n.image(a);break}case"checkbox":{o+=n.checkbox(a);break}case"strong":{o+=n.strong(a);break}case"em":{o+=n.em(a);break}case"codespan":{o+=n.codespan(a);break}case"br":{o+=n.br(a);break}case"del":{o+=n.del(a);break}case"text":{o+=n.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return o}},le=class{options;block;constructor(e){this.options=e||V}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?I.lex:I.lexInline}provideParser(e=this.block){return e?F.parse:F.parseInline}},hn=class{defaults=je();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=F;Renderer=de;TextRenderer=Ze;Lexer=I;Tokenizer=ke;Hooks=le;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{let r=o;for(let s of r.header)n=n.concat(this.walkTokens(s.tokens,t));for(let s of r.rows)for(let a of s)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let r=o;n=n.concat(this.walkTokens(r.items,t));break}default:{let r=o;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(s=>{let a=r[s].flat(1/0);n=n.concat(this.walkTokens(a,t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=t.renderers[r.name];s?t.renderers[r.name]=function(...a){let i=r.renderer.apply(this,a);return i===!1&&(i=s.apply(this,a)),i}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[r.level];s?s.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),o.extensions=t),n.renderer){let r=this.defaults.renderer||new de(this.defaults);for(let s in n.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,i=n.renderer[a],l=r[a];r[a]=(...c)=>{let d=i.apply(r,c);return d===!1&&(d=l.apply(r,c)),d||""}}o.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new ke(this.defaults);for(let s in n.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,i=n.tokenizer[a],l=r[a];r[a]=(...c)=>{let d=i.apply(r,c);return d===!1&&(d=l.apply(r,c)),d}}o.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new le;for(let s in n.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,i=n.hooks[a],l=r[a];le.passThroughHooks.has(s)?r[a]=c=>{if(this.defaults.async&&le.passThroughHooksRespectAsync.has(s))return(async()=>{let p=await i.call(r,c);return l.call(r,p)})();let d=i.call(r,c);return l.call(r,d)}:r[a]=(...c)=>{if(this.defaults.async)return(async()=>{let p=await i.apply(r,c);return p===!1&&(p=await l.apply(r,c)),p})();let d=i.apply(r,c);return d===!1&&(d=l.apply(r,c)),d}}o.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,s=n.walkTokens;o.walkTokens=function(a){let i=[];return i.push(s.call(this,a)),r&&(i=i.concat(r.call(this,a))),i}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return I.lex(e,t??this.defaults)}parser(e,t){return F.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let o={...n},r={...this.defaults,...o},s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&o.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let a=r.hooks?await r.hooks.preprocess(t):t,i=await(r.hooks?await r.hooks.provideLexer(e):e?I.lex:I.lexInline)(a,r),l=r.hooks?await r.hooks.processAllTokens(i):i;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser(e):e?F.parse:F.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(s);try{r.hooks&&(t=r.hooks.preprocess(t));let a=(r.hooks?r.hooks.provideLexer(e):e?I.lex:I.lexInline)(t,r);r.hooks&&(a=r.hooks.processAllTokens(a)),r.walkTokens&&this.walkTokens(a,r.walkTokens);let i=(r.hooks?r.hooks.provideParser(e):e?F.parse:F.parseInline)(a,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(a){return s(a)}}}onError(e,t){return n=>{if(n.message+=`
2123
- Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+z(n.message+"",!0)+"</pre>";return t?Promise.resolve(o):o}if(t)return Promise.reject(n);throw n}}},W=new hn;function S(e,t){return W.parse(e,t)}S.options=S.setOptions=function(e){return W.setOptions(e),S.defaults=W.defaults,tn(S.defaults),S};S.getDefaults=je;S.defaults=V;function wi(...e){return W.use(...e),S.defaults=W.defaults,tn(S.defaults),S}S.use=wi;S.walkTokens=function(e,t){return W.walkTokens(e,t)};S.parseInline=W.parseInline;S.Parser=F;S.parser=F.parse;S.Renderer=de;S.TextRenderer=Ze;S.Lexer=I;S.lexer=I.lex;S.Tokenizer=ke;S.Hooks=le;S.parse=S;S.options;S.setOptions;S.walkTokens;S.parseInline;F.parse;I.lex;const bi=/[&<>"']/g,yi={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},ie=e=>e.replaceAll(bi,t=>yi[t]??t),_i=/^(?:https?:|mailto:|tel:|#|\.{0,2}\/)/i,xi=/[\u0000-\u0020\u007F-\u00A0]/g,ki=e=>_i.test(e.replaceAll(xi,"")),Ei=()=>{const e=new de;return e.html=({text:t})=>ie(t),e.link=({href:t,text:n,title:o})=>{const r=ie(n);if(!ki(t))return r;const s=o?` title="${ie(o)}"`:"";return`<a href="${ie(t)}"${s}>${r}</a>`},e.image=({text:t})=>ie(t),new hn({renderer:e})},Si=Ei(),Bt=async e=>Si.parse(e),Ci=/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/,Ti=/at\s+([^:)]+):(\d+):(\d+)/,un=/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/,Ri=2048,Ee=(e,t,n)=>{try{const o=n instanceof Error?n.message:String(n);e.config.logger.error(`${t}: ${o}`,{clear:!0,timestamp:!0})}catch{}},Li=e=>({error:t=>{e.config.logger.error(String(t??""),{clear:!0,timestamp:!0})},log:t=>{e.config.logger.info(String(t??""))}}),$i=()=>{const e=new Map;return{recentErrors:e,shouldSkip:n=>{const o=Date.now();for(const[s,a]of e)o-a>=ot&&e.delete(s);const r=e.get(n)||0;return o-r<ot?!0:(e.set(n,o),!1)}}},mn=e=>`${String(e?.message||"")}
2124
- ${String(e?.stack||"")}`,Ai=(e,t,n)=>async o=>{const r=o instanceof Error?o:new Error(String(o?.stack||o));try{e.ssrFixStacktrace(r)}catch(s){Ee(e,"[visulima:vite-overlay:server] ssrFixStacktrace failed",s)}try{const s=await ro(r,e);Object.assign(r,s)}catch(s){Ee(e,"[visulima:vite-overlay:server] enhanceViteSsrError failed",s)}try{r.stack=Se(Ne(String(r.stack||"")),t)}catch{}await n.error(kn(r)),e.ws.send({err:r,type:"error"})},Pi=(e,t)=>{if(!process.env.DEBUG)return;const n=t instanceof Error?t.message:String(t);console.debug(`Solution finder "${e}" threw and was skipped: ${n}`)},Ii=async(e,t,n)=>{let o;const r=[...t,...n];for await(const s of r.toSorted((a,i)=>i.priority-a.priority)){const{handle:a,name:i}=s;if(process.env.DEBUG&&console.debug(`Running solution finder: ${i}`),typeof a=="function")try{const l=await a({hint:e?.hint??"",message:e.message,name:e.name,stack:e?.stack},{file:e?.originalFilePath??"",language:J(e?.originalFilePath??""),line:e?.originalFileLine??0,snippet:e?.originalSnippet??""});if(l===void 0)continue;const c=await Bt(l.header??"");o={body:await Bt(l.body??""),header:c};break}catch(l){Pi(i,l);continue}}return o},He=async(e,t,n,o,r,s,a,i)=>{const l=xn(e);if(l.length===0)throw new Error("No errors found in the error stack");const c=await Promise.all(l.map(async(p,v)=>{let w=o;if(v>0){const y=(p?.stack?.split(`
2125
- `)||[]).find(h=>h.includes("at ")&&!h.includes("node_modules"));if(y&&y.length<=Ri){const h=y.match(Ci)||y.match(Ti);if(h){const[,g,b,_]=h;w={column:Number.parseInt(_||"0",10),file:g,line:Number.parseInt(b||"0",10),plugin:o?.plugin}}}}let f=w;v===0&&p?.sourceFile&&(f={...w,file:p.sourceFile});const m=await _s(p,t,v,a,f,l);return{hint:p?.hint,message:p?.message||"",name:p?.name||qt,stack:Se(Ne(p?.stack||""),n),...m}})),d=await Ii(c[0],s,i);return{errors:c,errorType:r,rootPath:n,solution:d}},Ye=(e,t=0)=>{if(!e||t>=Pn)return;const n=new Error(String(e.message||"Caused by error"));return n.name=String(e.name||"Error"),n.stack=String(e.stack||""),e.cause&&(n.cause=Ye(e.cause,t+1)),n},Fi=(e,t,n,o,r,s)=>{const a=e.ws.send.bind(e.ws);let i=Promise.resolve();const l=async(c,d)=>{try{if(c&&typeof c=="object"&&c.type==="error"&&c.err){const{err:p}=c,v=mn(p);if(t(v))return;if(p.message?.includes("Failed to resolve import")){const w=p.message.match(un);if(w){const f=w[2],m=new Error(p.message);m.name="ImportResolutionError",m.stack=p.stack;const u=await He(m,e,n,{column:p.loc?.column||1,file:f,line:p.loc?.line||1,plugin:p.plugin||"vite:import-analysis"},"server",o,r,s);c.err=u}}else{const w=String(p?.name||"Error"),f=String(p.message),m=String(p.stack),u=new Error(f);u.name=w,u.stack=`${w}: ${f}
2126
- ${Se(m,n)}`,p.cause&&(u.cause=Ye(p.cause));const y=p.sourceFile?{column:p.column,file:p.sourceFile,line:p.line,plugin:p.plugin}:void 0,h=await He(u,e,n,y,"server",o,r,s);c.err=h}}a(c,d)}catch(p){Ee(e,"[visulima:vite-overlay:server] ws.send intercept failed",p),d&&typeof d.send=="function"?d.send(c):a(c,d)}};e.ws.send=(c,d)=>{const p=i.then(()=>l(c,d));return i=p.catch(()=>{}),p}},Di=(e,t,n,o,r,s,a,i)=>{e.ws.on(jt,async(l,c)=>{if(!s)return;const d=l&&typeof l=="object"?l:{message:An,stack:""},p=mn(d);if(n(p))return;const v=String(d?.name||"Error"),w=String(d.message),f=String(d.stack),m=new Error(w);m.name=v,m.stack=`${v}: ${w}
2127
- ${Se(f,o)}`,d.cause&&(m.cause=Ye(d.cause));try{const u=await He(m,e,o,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",r,a,i),y={err:{...u},type:"error"};u.solution&&(y.solution=u.solution);const h=[...u.errors],g=h.shift();if(!g){await t.error("No error information available"),c.send(y);return}const b=[`${tt("red","[client]")} ${g.name}: ${g.message}`,...g.originalFilePath.includes("-extension://")?[]:["",tt("blue",`${g.originalFilePath}:${g.originalFileLine}:${g.originalFileColumn}`),"",await _n(g.originalSnippet,J(g.originalFilePath),"nord"),"","Raw stack trace:","",g.originalStack]];h.forEach((_,k)=>{const E=" ".repeat(2*k);b.push("",`${E}Caused by: `,"",`${E}${_.name}: ${_.message}`,`${E}at ${_.originalFilePath}:${_.originalFileLine}:${_.originalFileColumn}`)}),await t.error(b.join(`
2128
- `)),c.send(y)}catch(u){Ee(e,"[visulima:vite-overlay:server] failed to build extended client error",u),c.send({err:{message:u.message,name:String(u.name||qt),stack:u.stack},type:"error"})}})},zi=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),Mi=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),Bi=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="vite-plugin-svelte"||n.name==="@sveltejs/vite-plugin-svelte"||typeof n=="function"&&n.name?.includes("svelte")||n.constructor&&n.constructor.name?.includes("Svelte"))),Hi=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="preact:config"||n.name==="vite:preact-jsx"||n.name==="@preact/preset-vite"||typeof n=="function"&&n.name?.includes("preact")||n.constructor&&n.constructor.name?.includes("Preact"))),Oi=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="solid"||n.name==="vite-plugin-solid"||typeof n=="function"&&n.name?.includes("solid")||n.constructor&&n.constructor.name?.includes("Solid"))),Qi=(e={})=>{let t,n,o,r,s,a;const i=(e.logClientRuntimeError===void 0?e.forwardConsole:e.logClientRuntimeError)??!0,l=e.forwardedConsoleMethods??["error"],c=e.interceptUnhandledRejection??!0;if(e.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),e.showBallonButton!==void 0&&console.warn("[vite-overlay] The 'showBallonButton' option is misspelled and deprecated. Please use 'showBalloonButton' instead."),l.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(d,p){return d.plugins&&(n=zi(d.plugins,e?.reactPluginName),o=Mi(d.plugins,e?.vuePluginName),r=Bi(d.plugins,e?.sveltePluginName),s=Hi(d.plugins,e?.preactPluginName),a=Oi(d.plugins,e?.solidPluginName)),t=p.mode||"development",d},configureServer(d){const p=d.config.root||process.cwd(),v=Li(d),{shouldSkip:w}=$i(),f=d.transformRequest.bind(d);d.transformRequest=async(y,h)=>{try{return await f(y,h)}catch(g){if(g?.message?.includes("Failed to resolve import")){const b=g.message.match(un);if(b){const[,_,k]=b;g.sourceFile=k,g.importPath=_}}throw g}};let m=e?.framework;m===void 0&&(n?m="react":o?m="vue":r?m="svelte":s?m="preact":a&&(m="solid"));const u=[En,Cn(p),Sn];if(Fi(d,w,p,e?.solutionFinders??[],m,u),Di(d,v,w,p,e?.solutionFinders??[],i,m,u),c){const y=Ai(d,p,v);process.on("unhandledRejection",y),d.httpServer?.on("close",()=>{process.off("unhandledRejection",y)})}},enforce:"pre",name:$n,transform(d,p,v){if(v?.ssr||!(p.includes("vite/dist/client/client.mjs")||p.includes("/@vite/client")))return null;const w=e?.showBalloonButton??e?.showBallonButton??e?.overlay?.balloon?.enabled??!0;return Gn(d,w,e?.overlay?.balloon,e?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:xs(t,l,e?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}};export{Cn as createViteSolutionFinder,Qi as default};
2122
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${z(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let o=this.parser.parseInline(n),r=Dt(e);if(r===null)return o;e=r;let i='<a href="'+e+'"';return t&&(i+=' title="'+z(t)+'"'),i+=">"+o+"</a>",i}image({href:e,title:t,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let r=Dt(e);if(r===null)return z(n);e=r;let i=`<img src="${e}" alt="${z(n)}"`;return t&&(i+=` title="${z(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:z(e.text)}},Ye=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},F=class Oe{options;renderer;textRenderer;constructor(t){this.options=t||V,this.options.renderer=this.options.renderer||new pe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ye}static parse(t,n){return new Oe(n).parse(t)}static parseInline(t,n){return new Oe(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let o=0;o<t.length;o++){let r=t[o];if(this.options.extensions?.renderers?.[r.type]){let a=r,s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(a.type)){n+=s||"";continue}}let i=r;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let o="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){o+=s||"";continue}}let a=i;switch(a.type){case"escape":{o+=n.text(a);break}case"html":{o+=n.html(a);break}case"link":{o+=n.link(a);break}case"image":{o+=n.image(a);break}case"checkbox":{o+=n.checkbox(a);break}case"strong":{o+=n.strong(a);break}case"em":{o+=n.em(a);break}case"codespan":{o+=n.codespan(a);break}case"br":{o+=n.br(a);break}case"del":{o+=n.del(a);break}case"text":{o+=n.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return o}},ce=class{options;block;constructor(e){this.options=e||V}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?I.lex:I.lexInline}provideParser(e=this.block){return e?F.parse:F.parseInline}},un=class{defaults=qe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=F;Renderer=pe;TextRenderer=Ye;Lexer=I;Tokenizer=Ee;Hooks=ce;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{let r=o;for(let i of r.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of r.rows)for(let a of i)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let r=o;n=n.concat(this.walkTokens(r.items,t));break}default:{let r=o;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let a=r[i].flat(1/0);n=n.concat(this.walkTokens(a,t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=t.renderers[r.name];i?t.renderers[r.name]=function(...a){let s=r.renderer.apply(this,a);return s===!1&&(s=i.apply(this,a)),s}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[r.level];i?i.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),o.extensions=t),n.renderer){let r=this.defaults.renderer||new pe(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let a=i,s=n.renderer[a],l=r[a];r[a]=(...c)=>{let d=s.apply(r,c);return d===!1&&(d=l.apply(r,c)),d||""}}o.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new Ee(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let a=i,s=n.tokenizer[a],l=r[a];r[a]=(...c)=>{let d=s.apply(r,c);return d===!1&&(d=l.apply(r,c)),d}}o.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new ce;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let a=i,s=n.hooks[a],l=r[a];ce.passThroughHooks.has(i)?r[a]=c=>{if(this.defaults.async&&ce.passThroughHooksRespectAsync.has(i))return(async()=>{let p=await s.call(r,c);return l.call(r,p)})();let d=s.call(r,c);return l.call(r,d)}:r[a]=(...c)=>{if(this.defaults.async)return(async()=>{let p=await s.apply(r,c);return p===!1&&(p=await l.apply(r,c)),p})();let d=s.apply(r,c);return d===!1&&(d=l.apply(r,c)),d}}o.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;o.walkTokens=function(a){let s=[];return s.push(i.call(this,a)),r&&(s=s.concat(r.call(this,a))),s}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return I.lex(e,t??this.defaults)}parser(e,t){return F.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let o={...n},r={...this.defaults,...o},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&o.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let a=r.hooks?await r.hooks.preprocess(t):t,s=await(r.hooks?await r.hooks.provideLexer(e):e?I.lex:I.lexInline)(a,r),l=r.hooks?await r.hooks.processAllTokens(s):s;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser(e):e?F.parse:F.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let a=(r.hooks?r.hooks.provideLexer(e):e?I.lex:I.lexInline)(t,r);r.hooks&&(a=r.hooks.processAllTokens(a)),r.walkTokens&&this.walkTokens(a,r.walkTokens);let s=(r.hooks?r.hooks.provideParser(e):e?F.parse:F.parseInline)(a,r);return r.hooks&&(s=r.hooks.postprocess(s)),s}catch(a){return i(a)}}}onError(e,t){return n=>{if(n.message+=`
2123
+ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+z(n.message+"",!0)+"</pre>";return t?Promise.resolve(o):o}if(t)return Promise.reject(n);throw n}}},W=new un;function S(e,t){return W.parse(e,t)}S.options=S.setOptions=function(e){return W.setOptions(e),S.defaults=W.defaults,nn(S.defaults),S};S.getDefaults=qe;S.defaults=V;function bs(...e){return W.use(...e),S.defaults=W.defaults,nn(S.defaults),S}S.use=bs;S.walkTokens=function(e,t){return W.walkTokens(e,t)};S.parseInline=W.parseInline;S.Parser=F;S.parser=F.parse;S.Renderer=pe;S.TextRenderer=Ye;S.Lexer=I;S.lexer=I.lex;S.Tokenizer=Ee;S.Hooks=ce;S.parse=S;S.options;S.setOptions;S.walkTokens;S.parseInline;F.parse;I.lex;const ys=/[&<>"']/g,_s={'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;"},ae=e=>e.replaceAll(ys,t=>_s[t]??t),ks=/^(?:https?:|mailto:|tel:|#|\.{0,2}\/)/i,xs=/[\u0000-\u0020\u007F-\u00A0]/g,Es=e=>ks.test(e.replaceAll(xs,"")),Ss=()=>{const e=new pe;return e.html=({text:t})=>ae(t),e.link=({href:t,text:n,title:o})=>{const r=ae(n);if(!Es(t))return r;const i=o?` title="${ae(o)}"`:"";return`<a href="${ae(t)}"${i}>${r}</a>`},e.image=({text:t})=>ae(t),new un({renderer:e})},Cs=Ss(),Ot=async e=>Cs.parse(e),Ts=/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/,Rs=/at\s+([^:)]+):(\d+):(\d+)/,mn=/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/,Ls=2048,Se=(e,t,n)=>{try{const o=n instanceof Error?n.message:String(n);e.config.logger.error(`${t}: ${o}`,{clear:!0,timestamp:!0})}catch{}},$s=e=>({error:t=>{e.config.logger.error(String(t??""),{clear:!0,timestamp:!0})},log:t=>{e.config.logger.info(String(t??""))}}),As=()=>{const e=new Map;return{recentErrors:e,shouldSkip:n=>{const o=Date.now();for(const[i,a]of e)o-a>=rt&&e.delete(i);const r=e.get(n)||0;return o-r<rt?!0:(e.set(n,o),!1)}}},gn=e=>`${String(e?.message||"")}
2124
+ ${String(e?.stack||"")}`,Ps=(e,t,n)=>async o=>{const r=o instanceof Error?o:new Error(String(o?.stack||o));try{e.ssrFixStacktrace(r)}catch(i){Se(e,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await io(r,e);Object.assign(r,i)}catch(i){Se(e,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{r.stack=Ce(je(String(r.stack||"")),t)}catch{}await n.error(En(r)),e.ws.send({err:r,type:"error"})},Is=(e,t)=>{if(!process.env.DEBUG)return;const n=t instanceof Error?t.message:String(t);console.debug(`Solution finder "${e}" threw and was skipped: ${n}`)},Fs=async(e,t,n)=>{let o;const r=[...t,...n];for await(const i of r.toSorted((a,s)=>s.priority-a.priority)){const{handle:a,name:s}=i;if(process.env.DEBUG&&console.debug(`Running solution finder: ${s}`),typeof a=="function")try{const l=await a({hint:e?.hint??"",message:e.message,name:e.name,stack:e?.stack},{file:e?.originalFilePath??"",language:J(e?.originalFilePath??""),line:e?.originalFileLine??0,snippet:e?.originalSnippet??""});if(l===void 0)continue;const c=await Ot(l.header??"");o={body:await Ot(l.body??""),header:c};break}catch(l){Is(s,l);continue}}return o},He=async(e,t,n,o,r,i,a,s)=>{const l=xn(e);if(l.length===0)throw new Error("No errors found in the error stack");const c=await Promise.all(l.map(async(p,b)=>{let v=o;if(b>0){const y=(p?.stack?.split(`
2125
+ `)||[]).find(h=>h.includes("at ")&&!h.includes("node_modules"));if(y&&y.length<=Ls){const h=y.match(Ts)||y.match(Rs);if(h){const[,g,w,_]=h;v={column:Number.parseInt(_||"0",10),file:g,line:Number.parseInt(w||"0",10),plugin:o?.plugin}}}}let f=v;b===0&&p?.sourceFile&&(f={...v,file:p.sourceFile});const m=await ki(p,t,b,a,f,l);return{hint:p?.hint,message:p?.message||"",name:p?.name||Ut,stack:Ce(je(p?.stack||""),n),...m}})),d=await Fs(c[0],i,s);return{errors:c,errorType:r,rootPath:n,solution:d}},Qe=(e,t=0)=>{if(!e||t>=In)return;const n=new Error(String(e.message||"Caused by error"));return n.name=String(e.name||"Error"),n.stack=String(e.stack||""),e.cause&&(n.cause=Qe(e.cause,t+1)),n},Ds=(e,t,n,o,r,i)=>{const a=e.ws.send.bind(e.ws);let s=Promise.resolve();const l=async(c,d)=>{try{if(c&&typeof c=="object"&&c.type==="error"&&c.err){const{err:p}=c,b=gn(p);if(t(b))return;if(p.message?.includes("Failed to resolve import")){const v=p.message.match(mn);if(v){const f=v[2],m=new Error(p.message);m.name="ImportResolutionError",m.stack=p.stack;const u=await He(m,e,n,{column:p.loc?.column||1,file:f,line:p.loc?.line||1,plugin:p.plugin||"vite:import-analysis"},"server",o,r,i);c.err=u}}else{const v=String(p?.name||"Error"),f=String(p.message),m=String(p.stack),u=new Error(f);u.name=v,u.stack=`${v}: ${f}
2126
+ ${Ce(m,n)}`,p.cause&&(u.cause=Qe(p.cause));const y=p.sourceFile?{column:p.column,file:p.sourceFile,line:p.line,plugin:p.plugin}:void 0,h=await He(u,e,n,y,"server",o,r,i);c.err=h}}a(c,d)}catch(p){Se(e,"[visulima:vite-overlay:server] ws.send intercept failed",p),d&&typeof d.send=="function"?d.send(c):a(c,d)}};e.ws.send=(c,d)=>{const p=s.then(()=>l(c,d));return s=p.catch(()=>{}),p}},zs=(e,t,n,o,r,i,a,s)=>{e.ws.on(qt,async(l,c)=>{if(!i)return;const d=l&&typeof l=="object"?l:{message:Pn,stack:""},p=gn(d);if(n(p))return;const b=String(d?.name||"Error"),v=String(d.message),f=String(d.stack),m=new Error(v);m.name=b,m.stack=`${b}: ${v}
2127
+ ${Ce(f,o)}`,d.cause&&(m.cause=Qe(d.cause));try{const u=await He(m,e,o,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",r,a,s),y={err:{...u},type:"error"};u.solution&&(y.solution=u.solution);const h=[...u.errors],g=h.shift();if(!g){await t.error("No error information available"),c.send(y);return}const w=[`${nt("red","[client]")} ${g.name}: ${g.message}`,...g.originalFilePath.includes("-extension://")?[]:["",nt("blue",`${g.originalFilePath}:${g.originalFileLine}:${g.originalFileColumn}`),"",await kn(g.originalSnippet,J(g.originalFilePath),"nord"),"","Raw stack trace:","",g.originalStack]];h.forEach((_,x)=>{const E=" ".repeat(2*x);w.push("",`${E}Caused by: `,"",`${E}${_.name}: ${_.message}`,`${E}at ${_.originalFilePath}:${_.originalFileLine}:${_.originalFileColumn}`)}),await t.error(w.join(`
2128
+ `)),c.send(y)}catch(u){Se(e,"[visulima:vite-overlay:server] failed to build extended client error",u),c.send({err:{message:u.message,name:String(u.name||Ut),stack:u.stack},type:"error"})}})},Bs=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),Ms=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),Os=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="vite-plugin-svelte"||n.name==="@sveltejs/vite-plugin-svelte"||typeof n=="function"&&n.name?.includes("svelte")||n.constructor&&n.constructor.name?.includes("Svelte"))),Hs=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="preact:config"||n.name==="vite:preact-jsx"||n.name==="@preact/preset-vite"||typeof n=="function"&&n.name?.includes("preact")||n.constructor&&n.constructor.name?.includes("Preact"))),Ns=(e,t)=>e.flat().some(n=>n&&(t&&n.name===t||n.name==="solid"||n.name==="vite-plugin-solid"||typeof n=="function"&&n.name?.includes("solid")||n.constructor&&n.constructor.name?.includes("Solid"))),Ks=(e={})=>{let t,n,o,r,i,a;const s=(e.logClientRuntimeError===void 0?e.forwardConsole:e.logClientRuntimeError)??!0,l=e.forwardedConsoleMethods??["error"],c=e.interceptUnhandledRejection??!0;if(e.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),e.showBallonButton!==void 0&&console.warn("[vite-overlay] The 'showBallonButton' option is misspelled and deprecated. Please use 'showBalloonButton' instead."),l.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(d,p){return d.plugins&&(n=Bs(d.plugins,e?.reactPluginName),o=Ms(d.plugins,e?.vuePluginName),r=Os(d.plugins,e?.sveltePluginName),i=Hs(d.plugins,e?.preactPluginName),a=Ns(d.plugins,e?.solidPluginName)),t=p.mode||"development",d},configureServer(d){const p=d.config.root||process.cwd(),b=$s(d),{shouldSkip:v}=As(),f=d.transformRequest.bind(d);d.transformRequest=async(y,h)=>{try{return await f(y,h)}catch(g){if(g?.message?.includes("Failed to resolve import")){const w=g.message.match(mn);if(w){const[,_,x]=w;g.sourceFile=x,g.importPath=_}}throw g}};let m=e?.framework;m===void 0&&(n?m="react":o?m="vue":r?m="svelte":i?m="preact":a&&(m="solid"));const u=[Sn,Tn(p),Cn];if(Ds(d,v,p,e?.solutionFinders??[],m,u),zs(d,b,v,p,e?.solutionFinders??[],s,m,u),c){const y=Ps(d,p,b);process.on("unhandledRejection",y),d.httpServer?.on("close",()=>{process.off("unhandledRejection",y)})}},enforce:"pre",name:An,transform(d,p,b){if(b?.ssr||!(p.includes("vite/dist/client/client.mjs")||p.includes("/@vite/client")))return null;const v=e?.showBalloonButton??e?.showBallonButton??e?.overlay?.balloon?.enabled??!0;return Wn(d,v,e?.overlay?.balloon,e?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:xi(t,l,e?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}};export{Tn as createViteSolutionFinder,Ks as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/vite-overlay",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "Improved vite overlay",
5
5
  "keywords": [
6
6
  "error-handling",