@hyperflow.fun/ghost 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +11 -9
  2. package/dist/index.js +79499 -44452
  3. package/dist/package.json +1 -1
  4. package/dist/templates/SOUL.md +8 -0
  5. package/dist/web/dist/assets/{Chart-234Kdnfi.js → Chart-DpKu5h2M.js} +1 -1
  6. package/dist/web/dist/assets/{Config-BYGKgURp.js → Config-gzLZUKBZ.js} +1 -1
  7. package/dist/web/dist/assets/{Cost-BQAkdVIa.js → Cost-BVMipOkN.js} +1 -1
  8. package/dist/web/dist/assets/{Cron-D5wFcTwJ.js → Cron-C9SB1S0l.js} +1 -1
  9. package/dist/web/dist/assets/{Dashboard-BdZ2aC9H.js → Dashboard-BG-glqRY.js} +1 -1
  10. package/dist/web/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  11. package/dist/web/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  12. package/dist/web/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  13. package/dist/web/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  14. package/dist/web/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  15. package/dist/web/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  16. package/dist/web/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  17. package/dist/web/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  18. package/dist/web/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  19. package/dist/web/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  20. package/dist/web/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  21. package/dist/web/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  22. package/dist/web/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  23. package/dist/web/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  24. package/dist/web/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  25. package/dist/web/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  26. package/dist/web/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  27. package/dist/web/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  28. package/dist/web/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  29. package/dist/web/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  30. package/dist/web/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  31. package/dist/web/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  32. package/dist/web/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  33. package/dist/web/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  34. package/dist/web/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  35. package/dist/web/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  36. package/dist/web/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  37. package/dist/web/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  38. package/dist/web/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  39. package/dist/web/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  40. package/dist/web/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  41. package/dist/web/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  42. package/dist/web/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  43. package/dist/web/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  44. package/dist/web/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  45. package/dist/web/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  46. package/dist/web/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  47. package/dist/web/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  48. package/dist/web/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  49. package/dist/web/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  50. package/dist/web/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  51. package/dist/web/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  52. package/dist/web/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  53. package/dist/web/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  54. package/dist/web/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  55. package/dist/web/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  56. package/dist/web/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  57. package/dist/web/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  58. package/dist/web/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  59. package/dist/web/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  60. package/dist/web/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  61. package/dist/web/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  62. package/dist/web/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  63. package/dist/web/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  64. package/dist/web/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  65. package/dist/web/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  66. package/dist/web/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  67. package/dist/web/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  68. package/dist/web/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  69. package/dist/web/dist/assets/{Logs-D47Y9BIl.js → Logs-C6SDjLaq.js} +1 -1
  70. package/dist/web/dist/assets/{Memory-BexXuxoQ.js → Memory-c_I-OUzC.js} +1 -1
  71. package/dist/web/dist/assets/{Sessions-D3walnqk.js → Sessions-3ZsT5zN5.js} +1 -1
  72. package/dist/web/dist/assets/{Skills-pAthDu4_.js → Skills-osDspDnu.js} +1 -1
  73. package/dist/web/dist/assets/{Tools-BFHGHPXB.js → Tools-BmiDKDjv.js} +1 -1
  74. package/dist/web/dist/assets/{activity-DoII5Fp-.js → activity-Dhq3V6kN.js} +1 -1
  75. package/dist/web/dist/assets/{clock-RU3zeFmt.js → clock-dqJWkiuE.js} +1 -1
  76. package/dist/web/dist/assets/{highlighted-body-OFNGDK62-y6A7wCrG.js → highlighted-body-OFNGDK62-BxVZVvj8.js} +1 -1
  77. package/dist/web/dist/assets/index-C9j7T7rz.css +1 -0
  78. package/dist/web/dist/assets/index-Du3VgAo4.js +57 -0
  79. package/dist/web/dist/assets/mermaid-GHXKKRXX-CNibSrez.js +550 -0
  80. package/dist/web/dist/assets/mermaid-GHXKKRXX-Ds5qNABy.css +1 -0
  81. package/dist/web/dist/assets/{refresh-cw-BYmwU45d.js → refresh-cw-BoPT0lMd.js} +1 -1
  82. package/dist/web/dist/index.html +2 -2
  83. package/package.json +6 -1
  84. package/dist/web/dist/assets/index-BcTR6SiD.js +0 -59
  85. package/dist/web/dist/assets/index-PX2emSv9.css +0 -1
  86. package/dist/web/dist/assets/mermaid-GHXKKRXX-DC3T5XzO.js +0 -282
@@ -0,0 +1,550 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-OFNGDK62-BxVZVvj8.js","assets/vendor-react-B0mWfPOm.js","assets/vendor-viem-wp7lz4Hc.js","assets/index-Du3VgAo4.js","assets/vendor-charts-CfOL2F-E.js","assets/index-C9j7T7rz.css","assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
+ var m3=Object.defineProperty;var p3=Object.getPrototypeOf;var g3=Reflect.get;var Pc=e=>{throw TypeError(e)};var b3=(e,t,r)=>t in e?m3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var j=(e,t,r)=>b3(e,typeof t!="symbol"?t+"":t,r),Xo=(e,t,r)=>t.has(e)||Pc("Cannot "+r);var It=(e,t,r)=>(Xo(e,t,"read from private field"),r?r.call(e):t.get(e)),Cn=(e,t,r)=>t.has(e)?Pc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ur=(e,t,r,n)=>(Xo(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ko=(e,t,r)=>(Xo(e,t,"access private method"),r);var Mc=(e,t,r)=>g3(p3(e),r,t);import{g as u1,r as I,j as v,a as s0,f as y3,h as E3,o as x3,s as _3,i as T3,k as v3,l as w3,m as k3,n as A3,p as C3,q as S3}from"./vendor-react-B0mWfPOm.js";import{_ as k}from"./vendor-viem-wp7lz4Hc.js";import{T as I3,d as N3,e as Vr,f as qr,B as ya,g as l1,G as Ns,F as c1,h as h1,i as d1,j as f1,k as o0,l as u0,m as Bc,R as Fc,a as R3,n as L3}from"./index-Du3VgAo4.js";import{q as Rs,R as l0,n as Bn,V as O3,K as m1,W as p1,h as Hc}from"./vendor-charts-CfOL2F-E.js";const Ra=(function(e){if(e==null)return B3;if(typeof e=="function")return uo(e);if(typeof e=="object")return Array.isArray(e)?D3(e):P3(e);if(typeof e=="string")return M3(e);throw new Error("Expected function, string, or object as test")});function D3(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ra(e[r]);return uo(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function P3(e){const t=e;return uo(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function M3(e){return uo(t);function t(r){return r&&r.type===e}}function uo(e){return t;function t(r,n,i){return!!(F3(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function B3(){return!0}function F3(e){return e!==null&&typeof e=="object"&&"type"in e}const g1=[],ea=!0,tl=!1,Fn="skip";function lo(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=Ra(i),s=n?-1:1;o(e,void 0,[])();function o(u,l,c){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=g1,g,y,_;if((!t||a(u,l,c[c.length-1]||void 0))&&(d=H3(r(u,c)),d[0]===tl))return d;if("children"in u&&u.children){const E=u;if(E.children&&d[0]!==Fn)for(y=(n?E.children.length:-1)+s,_=c.concat(E);y>-1&&y<E.children.length;){const w=E.children[y];if(g=o(w,y,_)(),g[0]===tl)return g;y=typeof g[1]=="number"?g[1]:y+s}}return d}}}function H3(e){return Array.isArray(e)?e:typeof e=="number"?[ea,e]:e==null?g1:[e]}function wr(e,t,r,n){let i,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,i=r):(a=t,s=r,i=n),lo(e,a,o,i);function o(u,l){const c=l[l.length-1],h=c?c.children.indexOf(u):void 0;return s(u,h,c)}}const Ei={indicator:"indicator",textOnly:"text-only",remove:"remove"};function z3({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=Ei.indicator,imageBlockPolicy:u=Ei.indicator}){const l=t.length&&!t.every(h=>h==="*"),c=r.length&&!r.every(h=>h==="*");if(!e&&(l||c))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const f=G3(e,t,r,n,i,a,s,o,u);b1(h),wr(h,f)}}function zc(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function U3(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const $3=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),j3=new Set(["javascript:","data:","file:","vbscript:"]);function Uc(e,t,r,n=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&n&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const c=e.substring(5);if(c&&c.length>0&&c!=="invalid")return e}}catch{return null}return null}const s=zc(e,r);if(!s||j3.has(s.protocol)||!($3.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const u=U3(e);return s&&t.some(l=>{const c=zc(l,r);return!c||c.origin!==s.origin?!1:s.href.startsWith(c.href)})?u?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:u?s.pathname+s.search+s.hash:s.href:null}function b1(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)b1(t)}}const Qo=Symbol("node-seen");function V3(e,t,r){return t===Ei.remove?{type:"remove"}:t===Ei.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function q3(e,t,r){if(t===Ei.remove)return{type:"remove"};if(t===Ei.textOnly){const n=String(e.properties.alt||"");return n?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:n}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const G3=(e,t,r,n,i,a,s,o,u)=>{const l=(c,h,f)=>{if(c.type!=="element"||c[Qo])return ea;if(c.tagName==="a"){const d=Uc(c.properties.href,t,e,!1,!1,i);if(d===null){if(c[Qo]=!0,wr(c,l),f&&typeof h=="number"){const g=V3(c,o,s);if(g.type==="remove")return f.children.splice(h,1),[Fn,h];f.children[h]=g.element}return Fn}else return c.properties.href=d,c.properties.target="_blank",c.properties.rel="noopener noreferrer",ea}if(c.tagName==="img"){const d=Uc(c.properties.src,r,e,n,!0,i);if(d===null){if(c[Qo]=!0,wr(c,l),f&&typeof h=="number"){const g=q3(c,u,a);if(g.type==="remove")return f.children.splice(h,1),[Fn,h];f.children[h]=g.element}return Fn}else return c.properties.src=d,ea}return ea};return l},y1=-1,co=0,sa=1,Ls=2,c0=3,h0=4,d0=5,f0=6,E1=7,x1=8,$c=typeof self=="object"?self:globalThis,W3=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case co:case y1:return r(s,i);case sa:{const o=r([],i);for(const u of s)o.push(n(u));return o}case Ls:{const o=r({},i);for(const[u,l]of s)o[n(u)]=n(l);return o}case c0:return r(new Date(s),i);case h0:{const{source:o,flags:u}=s;return r(new RegExp(o,u),i)}case d0:{const o=r(new Map,i);for(const[u,l]of s)o.set(n(u),n(l));return o}case f0:{const o=r(new Set,i);for(const u of s)o.add(n(u));return o}case E1:{const{name:o,message:u}=s;return r(new $c[o](u),i)}case x1:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new $c[a](s),i)};return n},jc=e=>W3(new Map,e)(0),ii="",{toString:Y3}={},{keys:X3}=Object,Vi=e=>{const t=typeof e;if(t!=="object"||!e)return[co,t];const r=Y3.call(e).slice(8,-1);switch(r){case"Array":return[sa,ii];case"Object":return[Ls,ii];case"Date":return[c0,ii];case"RegExp":return[h0,ii];case"Map":return[d0,ii];case"Set":return[f0,ii];case"DataView":return[sa,r]}return r.includes("Array")?[sa,r]:r.includes("Error")?[E1,r]:[Ls,r]},Ga=([e,t])=>e===co&&(t==="function"||t==="symbol"),K3=(e,t,r,n)=>{const i=(s,o)=>{const u=n.push(s)-1;return r.set(o,u),u},a=s=>{if(r.has(s))return r.get(s);let[o,u]=Vi(s);switch(o){case co:{let c=s;switch(u){case"bigint":o=x1,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([y1],s)}return i([o,c],s)}case sa:{if(u){let f=s;return u==="DataView"?f=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(s)),i([u,[...f]],s)}const c=[],h=i([o,c],s);for(const f of s)c.push(a(f));return h}case Ls:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],h=i([o,c],s);for(const f of X3(s))(e||!Ga(Vi(s[f])))&&c.push([a(f),a(s[f])]);return h}case c0:return i([o,s.toISOString()],s);case h0:{const{source:c,flags:h}=s;return i([o,{source:c,flags:h}],s)}case d0:{const c=[],h=i([o,c],s);for(const[f,d]of s)(e||!(Ga(Vi(f))||Ga(Vi(d))))&&c.push([a(f),a(d)]);return h}case f0:{const c=[],h=i([o,c],s);for(const f of s)(e||!Ga(Vi(f)))&&c.push(a(f));return h}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},Vc=(e,{json:t,lossy:r}={})=>{const n=[];return K3(!(t||r),!!t,new Map,n)(e),n},Vn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?jc(Vc(e,t)):structuredClone(e):(e,t)=>jc(Vc(e,t));class La{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}La.prototype.normal={};La.prototype.property={};La.prototype.space=void 0;function _1(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new La(r,n,t)}function Ea(e){return e.toLowerCase()}class Ut{constructor(t,r){this.attribute=r,this.property=t}}Ut.prototype.attribute="";Ut.prototype.booleanish=!1;Ut.prototype.boolean=!1;Ut.prototype.commaOrSpaceSeparated=!1;Ut.prototype.commaSeparated=!1;Ut.prototype.defined=!1;Ut.prototype.mustUseProperty=!1;Ut.prototype.number=!1;Ut.prototype.overloadedBoolean=!1;Ut.prototype.property="";Ut.prototype.spaceSeparated=!1;Ut.prototype.space=void 0;let Q3=0;const _e=Xn(),rt=Xn(),rl=Xn(),ne=Xn(),$e=Xn(),pi=Xn(),jt=Xn();function Xn(){return 2**++Q3}const nl=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:rt,commaOrSpaceSeparated:jt,commaSeparated:pi,number:ne,overloadedBoolean:rl,spaceSeparated:$e},Symbol.toStringTag,{value:"Module"})),Zo=Object.keys(nl);class m0 extends Ut{constructor(t,r,n,i){let a=-1;if(super(t,r),qc(this,"space",i),typeof n=="number")for(;++a<Zo.length;){const s=Zo[a];qc(this,Zo[a],(n&nl[s])===nl[s])}}}m0.prototype.defined=!0;function qc(e,t,r){r&&(e[t]=r)}function Ai(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new m0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Ea(n)]=n,r[Ea(a.attribute)]=n}return new La(t,r,e.space)}const T1=Ai({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:ne,ariaColIndex:ne,ariaColSpan:ne,ariaControls:$e,ariaCurrent:null,ariaDescribedBy:$e,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:$e,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:$e,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$e,ariaLevel:ne,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:$e,ariaPlaceholder:null,ariaPosInSet:ne,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:$e,ariaRowCount:ne,ariaRowIndex:ne,ariaRowSpan:ne,ariaSelected:rt,ariaSetSize:ne,ariaSort:null,ariaValueMax:ne,ariaValueMin:ne,ariaValueNow:ne,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function v1(e,t){return t in e?e[t]:t}function w1(e,t){return v1(e,t.toLowerCase())}const Z3=Ai({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pi,acceptCharset:$e,accessKey:$e,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:$e,autoFocus:_e,autoPlay:_e,blocking:$e,capture:null,charSet:null,checked:_e,cite:null,className:$e,cols:ne,colSpan:null,content:null,contentEditable:rt,controls:_e,controlsList:$e,coords:ne|pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:rl,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:$e,height:ne,hidden:rl,high:ne,href:null,hrefLang:null,htmlFor:$e,httpEquiv:$e,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:$e,itemRef:$e,itemScope:_e,itemType:$e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:ne,manifest:null,max:null,maxLength:ne,media:null,method:null,min:null,minLength:ne,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_e,optimum:ne,pattern:null,ping:$e,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:$e,required:_e,reversed:_e,rows:ne,rowSpan:ne,sandbox:$e,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:ne,sizes:null,slot:null,span:ne,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ne,step:null,style:null,tabIndex:ne,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:rt,width:ne,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$e,axis:null,background:null,bgColor:null,border:ne,borderColor:null,bottomMargin:ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:ne,leftMargin:ne,link:null,longDesc:null,lowSrc:null,marginHeight:ne,marginWidth:ne,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:ne,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ne,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:ne,security:null,unselectable:null},space:"html",transform:w1}),J3=Ai({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:jt,accentHeight:ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ne,amplitude:ne,arabicForm:null,ascent:ne,attributeName:null,attributeType:null,azimuth:ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ne,by:null,calcMode:null,capHeight:ne,className:$e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ne,diffuseConstant:ne,direction:null,display:null,dur:null,divisor:ne,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ne,enableBackground:null,end:null,event:null,exponent:ne,externalResourcesRequired:null,fill:null,fillOpacity:ne,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pi,g2:pi,glyphName:pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ne,horizOriginX:ne,horizOriginY:ne,id:null,ideographic:ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ne,k:ne,k1:ne,k2:ne,k3:ne,k4:ne,kernelMatrix:jt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ne,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ne,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ne,overlineThickness:ne,paintOrder:null,panose1:null,path:null,pathLength:ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ne,pointsAtY:ne,pointsAtZ:ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jt,rev:jt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jt,requiredFeatures:jt,requiredFonts:jt,requiredFormats:jt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ne,specularExponent:ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ne,strikethroughThickness:ne,string:null,stroke:null,strokeDashArray:jt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ne,strokeOpacity:ne,strokeWidth:null,style:null,surfaceScale:ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jt,tabIndex:ne,tableValues:null,target:null,targetX:ne,targetY:ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ne,underlineThickness:ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ne,values:null,vAlphabetic:ne,vMathematical:ne,vectorEffect:null,vHanging:ne,vIdeographic:ne,version:null,vertAdvY:ne,vertOriginX:ne,vertOriginY:ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:v1}),k1=Ai({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),A1=Ai({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:w1}),C1=Ai({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),eb={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},tb=/[A-Z]/g,Gc=/-[a-z]/g,rb=/^data[-\w.:]+$/i;function Oa(e,t){const r=Ea(t);let n=t,i=Ut;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&rb.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Gc,ib);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Gc.test(a)){let s=a.replace(tb,nb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=m0}return new i(n,t)}function nb(e){return"-"+e.toLowerCase()}function ib(e){return e.charAt(1).toUpperCase()}const Ci=_1([T1,Z3,k1,A1,C1],"html"),kr=_1([T1,J3,k1,A1,C1],"svg");function Wc(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&t.push(s),i=n+1,n=r.indexOf(",",i)}return t}function p0(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Yc=/[#.]/g;function ab(e,t){const r=e||"",n={};let i=0,a,s;for(;i<r.length;){Yc.lastIndex=i;const o=Yc.exec(r),u=r.slice(i,o?o.index:r.length);u&&(a?a==="#"?n.id=u:Array.isArray(n.className)?n.className.push(u):n.className=[u]:s=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function Xc(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function g0(e){return e.join(" ").trim()}function S1(e,t,r){const n=r?lb(r):void 0;function i(a,s,...o){let u;if(a==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=ab(a,t);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,sb(s))o.unshift(s);else for(const[h,f]of Object.entries(s))ob(e,u.properties,h,f)}for(const l of o)il(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function sb(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ob(e,t,r,n){const i=Oa(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=Xc(n):i.commaSeparated?a=Wc(n):i.commaOrSpaceSeparated?a=Xc(Wc(n).join(" ")):a=Kc(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?ub(n):String(n);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Kc(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function il(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)il(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?il(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Kc(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Ea(r)===Ea(t)))return!0}return r}function ub(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function lb(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const cb=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],I1=S1(Ci,"div"),N1=S1(kr,"g",cb);function hb(e){const t=String(e),r=[];return{toOffset:i,toPoint:n};function n(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const u=Qc(t,r[s-1]);o=u===-1?t.length+1:u+1,r[s]=o}if(o>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const o=r[r.length-1],u=Qc(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;r.push(l)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function Qc(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
3
+ `,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const Tr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},R1={}.hasOwnProperty,db=Object.prototype;function fb(e,t){const r=t||{};return b0({file:r.file||void 0,location:!1,schema:r.space==="svg"?kr:Ci,verbose:r.verbose||!1},e)}function b0(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},xs(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:L1(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=hb(a),o=s.toPoint(0),u=s.toPoint(a.length);r.position={start:o,end:u}}return r}case"#documentType":{const n=t;return r={type:"doctype"},xs(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},xs(e,n,r),r}default:return r=mb(e,t),r}}function L1(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=b0(e,t[r]);n.push(i)}return n}function mb(e,t){const r=e.schema;e.schema=t.namespaceURI===Tr.svg?kr:Ci;let n=-1;const i={};for(;++n<t.attrs.length;){const o=t.attrs[n],u=(o.prefix?o.prefix+":":"")+o.name;R1.call(db,u)||(i[u]=o.value)}const s=(e.schema.space==="svg"?N1:I1)(t.tagName,i,L1(e,t.childNodes));if(xs(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&fi(u.startTag),c=u&&u.endTag&&fi(u.endTag),h=b0(e,o.content);l&&c&&e.file&&(h.position={start:l.end,end:c.start}),s.content=h}return e.schema=r,s}function xs(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=pb(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function pb(e,t,r){const n=fi(r);if(t.type==="element"){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)R1.call(r.attrs,s)&&(a[Oa(e.schema,s).property]=fi(r.attrs[s]));r.startTag;const o=fi(r.startTag),u=r.endTag?fi(r.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=a,t.data={position:l}}}return n}function fi(e){const t=Zc({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Zc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Zc(e){return e.line&&e.column?e:void 0}const Jc={}.hasOwnProperty;function y0(e,t){const r=t||{};function n(i,...a){let s=n.invalid;const o=n.handlers;if(i&&Jc.call(i,e)){const u=String(i[e]);s=Jc.call(o,u)?o[u]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const gb={},bb={}.hasOwnProperty,O1=y0("type",{handlers:{root:Eb,element:wb,text:Tb,comment:vb,doctype:_b}});function yb(e,t){const n=(t||gb).space;return O1(e,n==="svg"?kr:Ci)}function Eb(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=E0(e.children,r,t),Si(e,r),r}function xb(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=E0(e.children,r,t),Si(e,r),r}function _b(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Si(e,t),t}function Tb(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Si(e,t),t}function vb(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Si(e,t),t}function wb(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=kr);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&bb.call(e.properties,a)){const u=kb(n,a,e.properties[a]);u&&i.push(u)}}const s=n.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Tr[s],childNodes:[],parentNode:null};return o.childNodes=E0(e.children,o,n),Si(e,o),e.tagName==="template"&&e.content&&(o.content=xb(e.content,n)),o}function kb(e,t,r){const n=Oa(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?p0(r):g0(r));const i={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=n.attribute.slice(0,a)),i.namespace=Tr[n.space]}return i}function E0(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=O1(e[n],r);a.parentNode=t,i.push(a)}return i}function Si(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const D1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ab=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),qe="�";var A;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(A||(A={}));const Ft={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function P1(e){return e>=55296&&e<=57343}function Cb(e){return e>=56320&&e<=57343}function Sb(e,t){return(e-55296)*1024+9216+t}function M1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function B1(e){return e>=64976&&e<=65007||Ab.has(e)}var V;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(V||(V={}));const Ib=65536;class Nb{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ib,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:i,offset:a}=this,s=i+r,o=a+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(Cb(r))return this.pos++,this._addGap(),Sb(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(V.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const n=this.html.charCodeAt(r);return n===A.CARRIAGE_RETURN?A.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,P1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){M1(t)?this._err(V.controlCharacterInInputStream):B1(t)&&this._err(V.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ce;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ce||(Ce={}));function F1(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const Rb=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Lb=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ob(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Lb.get(e))!==null&&t!==void 0?t:e}var yt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(yt||(yt={}));const Db=32;var fn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(fn||(fn={}));function al(e){return e>=yt.ZERO&&e<=yt.NINE}function Pb(e){return e>=yt.UPPER_A&&e<=yt.UPPER_F||e>=yt.LOWER_A&&e<=yt.LOWER_F}function Mb(e){return e>=yt.UPPER_A&&e<=yt.UPPER_Z||e>=yt.LOWER_A&&e<=yt.LOWER_Z||al(e)}function Bb(e){return e===yt.EQUALS||Mb(e)}var gt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(gt||(gt={}));var Ur;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ur||(Ur={}));class Fb{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=gt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ur.Strict}startEntity(t){this.decodeMode=t,this.state=gt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case gt.EntityStart:return t.charCodeAt(r)===yt.NUM?(this.state=gt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=gt.NamedEntity,this.stateNamedEntity(t,r));case gt.NumericStart:return this.stateNumericStart(t,r);case gt.NumericDecimal:return this.stateNumericDecimal(t,r);case gt.NumericHex:return this.stateNumericHex(t,r);case gt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Db)===yt.LOWER_X?(this.state=gt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=gt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(al(i)||Pb(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if(al(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===yt.SEMI)this.consumed+=1;else if(this.decodeMode===Ur.Strict)return 0;return this.emitCodePoint(Ob(this.result),this.consumed),this.errors&&(t!==yt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let i=n[this.treeIndex],a=(i&fn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=Hb(n,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ur.Attribute&&(a===0||Bb(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&fn.VALUE_LENGTH)>>14,a!==0){if(s===yt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ur.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&fn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~fn.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case gt.NamedEntity:return this.result!==0&&(this.decodeMode!==Ur.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case gt.NumericDecimal:return this.emitNumericEntity(0,2);case gt.NumericHex:return this.emitNumericEntity(0,3);case gt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case gt.EntityStart:return 0}}}function Hb(e,t,r,n){const i=(t&fn.BRANCH_LENGTH)>>7,a=t&fn.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const u=n-a;return u<0||u>=i?-1:e[r+u]-1}let s=r,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<n)s=u+1;else if(l>n)o=u-1;else return e[u+i]}return-1}var Q;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Q||(Q={}));var jn;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(jn||(jn={}));var Zt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Zt||(Zt={}));var z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(z||(z={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const zb=new Map([[z.A,m.A],[z.ADDRESS,m.ADDRESS],[z.ANNOTATION_XML,m.ANNOTATION_XML],[z.APPLET,m.APPLET],[z.AREA,m.AREA],[z.ARTICLE,m.ARTICLE],[z.ASIDE,m.ASIDE],[z.B,m.B],[z.BASE,m.BASE],[z.BASEFONT,m.BASEFONT],[z.BGSOUND,m.BGSOUND],[z.BIG,m.BIG],[z.BLOCKQUOTE,m.BLOCKQUOTE],[z.BODY,m.BODY],[z.BR,m.BR],[z.BUTTON,m.BUTTON],[z.CAPTION,m.CAPTION],[z.CENTER,m.CENTER],[z.CODE,m.CODE],[z.COL,m.COL],[z.COLGROUP,m.COLGROUP],[z.DD,m.DD],[z.DESC,m.DESC],[z.DETAILS,m.DETAILS],[z.DIALOG,m.DIALOG],[z.DIR,m.DIR],[z.DIV,m.DIV],[z.DL,m.DL],[z.DT,m.DT],[z.EM,m.EM],[z.EMBED,m.EMBED],[z.FIELDSET,m.FIELDSET],[z.FIGCAPTION,m.FIGCAPTION],[z.FIGURE,m.FIGURE],[z.FONT,m.FONT],[z.FOOTER,m.FOOTER],[z.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[z.FORM,m.FORM],[z.FRAME,m.FRAME],[z.FRAMESET,m.FRAMESET],[z.H1,m.H1],[z.H2,m.H2],[z.H3,m.H3],[z.H4,m.H4],[z.H5,m.H5],[z.H6,m.H6],[z.HEAD,m.HEAD],[z.HEADER,m.HEADER],[z.HGROUP,m.HGROUP],[z.HR,m.HR],[z.HTML,m.HTML],[z.I,m.I],[z.IMG,m.IMG],[z.IMAGE,m.IMAGE],[z.INPUT,m.INPUT],[z.IFRAME,m.IFRAME],[z.KEYGEN,m.KEYGEN],[z.LABEL,m.LABEL],[z.LI,m.LI],[z.LINK,m.LINK],[z.LISTING,m.LISTING],[z.MAIN,m.MAIN],[z.MALIGNMARK,m.MALIGNMARK],[z.MARQUEE,m.MARQUEE],[z.MATH,m.MATH],[z.MENU,m.MENU],[z.META,m.META],[z.MGLYPH,m.MGLYPH],[z.MI,m.MI],[z.MO,m.MO],[z.MN,m.MN],[z.MS,m.MS],[z.MTEXT,m.MTEXT],[z.NAV,m.NAV],[z.NOBR,m.NOBR],[z.NOFRAMES,m.NOFRAMES],[z.NOEMBED,m.NOEMBED],[z.NOSCRIPT,m.NOSCRIPT],[z.OBJECT,m.OBJECT],[z.OL,m.OL],[z.OPTGROUP,m.OPTGROUP],[z.OPTION,m.OPTION],[z.P,m.P],[z.PARAM,m.PARAM],[z.PLAINTEXT,m.PLAINTEXT],[z.PRE,m.PRE],[z.RB,m.RB],[z.RP,m.RP],[z.RT,m.RT],[z.RTC,m.RTC],[z.RUBY,m.RUBY],[z.S,m.S],[z.SCRIPT,m.SCRIPT],[z.SEARCH,m.SEARCH],[z.SECTION,m.SECTION],[z.SELECT,m.SELECT],[z.SOURCE,m.SOURCE],[z.SMALL,m.SMALL],[z.SPAN,m.SPAN],[z.STRIKE,m.STRIKE],[z.STRONG,m.STRONG],[z.STYLE,m.STYLE],[z.SUB,m.SUB],[z.SUMMARY,m.SUMMARY],[z.SUP,m.SUP],[z.TABLE,m.TABLE],[z.TBODY,m.TBODY],[z.TEMPLATE,m.TEMPLATE],[z.TEXTAREA,m.TEXTAREA],[z.TFOOT,m.TFOOT],[z.TD,m.TD],[z.TH,m.TH],[z.THEAD,m.THEAD],[z.TITLE,m.TITLE],[z.TR,m.TR],[z.TRACK,m.TRACK],[z.TT,m.TT],[z.U,m.U],[z.UL,m.UL],[z.SVG,m.SVG],[z.VAR,m.VAR],[z.WBR,m.WBR],[z.XMP,m.XMP]]);function Ii(e){var t;return(t=zb.get(e))!==null&&t!==void 0?t:m.UNKNOWN}const J=m,Ub={[Q.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Q.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Q.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set},sl=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(N||(N={}));const tt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function $b(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function ta(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function jb(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function sn(e){return jb(e)||ta(e)}function eh(e){return sn(e)||$b(e)}function Wa(e){return e+32}function H1(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function th(e){return H1(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function Vb(e){return e===A.NULL?V.nullCharacterReference:e>1114111?V.characterReferenceOutsideUnicodeRange:P1(e)?V.surrogateCharacterReference:B1(e)?V.noncharacterCharacterReference:M1(e)||e===A.CARRIAGE_RETURN?V.controlCharacterReference:null}class qb{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Nb(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Fb(Rb,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(V.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(V.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const i=Vb(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n==null||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ce.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ce.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ce.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ce.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(F1(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(V.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ii(t.tagName),t.type===Ce.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(V.endTagWithAttributes),t.selfClosing&&this._err(V.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ce.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ce.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ce.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ce.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=H1(t)?Ce.WHITESPACE_CHARACTER:t===A.NULL?Ce.NULL_CHARACTER:Ce.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ce.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ur.Attribute:Ur.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitChars(qe);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitChars(qe);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitChars(qe);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitChars(qe);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(sn(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(V.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(V.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(V.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(sn(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(V.missingEndTagName),this.state=N.DATA;break}case A.EOF:{this._err(V.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(V.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.tagName+=qe;break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ta(t)?Wa(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){sn(t)?(this.state=N.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case A.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=N.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===A.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){sn(t)?(this.state=N.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case A.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case A.EXCLAMATION_MARK:{this.state=N.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=N.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){sn(t)?(this.state=N.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===A.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitChars(qe);break}case A.EOF:{this._err(V.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(qe);break}case A.EOF:{this._err(V.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(qe);break}case A.EOF:{this._err(V.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:sn(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){sn(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ft.SCRIPT,!1)&&th(this.preprocessor.peek(Ft.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Ft.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(V.unexpectedNullCharacter),this._emitChars(qe);break}case A.EOF:{this._err(V.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qe);break}case A.EOF:{this._err(V.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qe);break}case A.EOF:{this._err(V.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ft.SCRIPT,!1)&&th(this.preprocessor.peek(Ft.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Ft.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err(V.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(V.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.currentAttr.name+=qe;break}default:this.currentAttr.name+=String.fromCodePoint(ta(t)?Wa(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(V.missingAttributeValue),this.state=N.DATA,this.emitCurrentTagToken();break}default:this.state=N.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(V.unexpectedNullCharacter),this.currentAttr.value+=qe;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(V.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:this._err(V.missingWhitespaceBetweenAttributes),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(V.eofInTag),this._emitEOFToken();break}default:this._err(V.unexpectedSolidusInTag),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(r);break}case A.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.data+=qe;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ft.DASH_DASH,!0)?(this._createCommentToken(Ft.DASH_DASH.length+1),this.state=N.COMMENT_START):this._consumeSequenceIfMatch(Ft.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ft.DOCTYPE.length+1),this.state=N.DOCTYPE):this._consumeSequenceIfMatch(Ft.CDATA_START,!0)?this.inForeignNode?this.state=N.CDATA_SECTION:(this._err(V.cdataInHtmlContent),this._createCommentToken(Ft.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=N.BOGUS_COMMENT):this._ensureHibernation()||(this._err(V.incorrectlyOpenedComment),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err(V.abruptClosingOfEmptyComment),this.state=N.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(V.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(r);break}case A.EOF:{this._err(V.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{r.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.data+=qe;break}case A.EOF:{this._err(V.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{r.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(V.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case A.EOF:{this._err(V.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(r);break}case A.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{r.data+="-";break}case A.EOF:{this._err(V.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case A.HYPHEN_MINUS:{r.data+="--!",this.state=N.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(V.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(r);break}case A.EOF:{this._err(V.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=N.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err(V.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingWhitespaceBeforeDoctypeName),this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ta(t))this._createDoctypeToken(String.fromCharCode(Wa(t))),this.state=N.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(V.unexpectedNullCharacter),this._createDoctypeToken(qe),this.state=N.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err(V.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.EOF:{this._err(V.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=N.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.name+=qe;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ta(t)?Wa(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ft.PUBLIC,!1)?this.state=N.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ft.SYSTEM,!1)?this.state=N.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(V.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(V.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(V.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(V.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{r.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{r.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(V.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.publicId+=qe;break}case A.GREATER_THAN_SIGN:{this._err(V.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.publicId+=qe;break}case A.GREATER_THAN_SIGN:{this._err(V.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.QUOTATION_MARK:{this._err(V.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(V.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.QUOTATION_MARK:{r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(V.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(V.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(V.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{r.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(V.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(r);break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.systemId+=qe;break}case A.GREATER_THAN_SIGN:{this._err(V.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(V.unexpectedNullCharacter),r.systemId+=qe;break}case A.GREATER_THAN_SIGN:{this._err(V.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.EOF:{this._err(V.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(V.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=N.DATA;break}case A.NULL:{this._err(V.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(V.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=N.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&eh(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){eh(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(V.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const z1=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),rh=new Set([...z1,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),Os=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),Gb=new Set([...Os,m.OL,m.UL]),Wb=new Set([...Os,m.BUTTON]),nh=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),ih=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),Yb=new Set([m.TR,m.TEMPLATE,m.HTML]),Xb=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),Kb=new Set([m.TABLE,m.TEMPLATE,m.HTML]),Qb=new Set([m.TD,m.TH]);class Zb{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==Q.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(sl,Q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Qb,Q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Kb,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Xb,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(Yb,Q.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Q.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case Q.SVG:{if(ih.has(i))return!1;break}case Q.MATHML:{if(nh.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Os)}hasInListItemScope(t){return this.hasInDynamicScope(t,Gb)}hasInButtonScope(t){return this.hasInDynamicScope(t,Wb)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Q.HTML:{if(sl.has(r))return!0;if(Os.has(r))return!1;break}case Q.SVG:{if(ih.has(r))return!1;break}case Q.MATHML:{if(nh.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Q.HTML)switch(this.tagIDs[r]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Q.HTML)switch(this.tagIDs[r]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&z1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&rh.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&rh.has(this.currentTagId);)this.pop()}}const Jo=3;var xr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(xr||(xr={}));const ah={type:xr.Marker};class Jb{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],i=r.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===xr.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===s){const c=this.treeAdapter.getAttrList(l);c.length===i&&n.push({idx:o,attrs:c})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<Jo)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<Jo)return;const i=new Map(r.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<n.length;s++){const o=n[s];o.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=Jo&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(ah)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:xr.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:xr.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(ah);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===xr.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===xr.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===xr.Element&&r.element===t)}}const on={createDocument(){return{nodeName:"#document",mode:Zt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};on.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(on.isTextNode(r)){r.value+=t;return}}on.appendChild(e,on.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&on.isTextNode(n)?n.value+=t:on.insertBefore(e,on.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},U1="html",e6="about:legacy-compat",t6="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",$1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],r6=[...$1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],n6=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),j1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],i6=[...j1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function sh(e,t){return t.some(r=>e.startsWith(r))}function a6(e){return e.name===U1&&e.publicId===null&&(e.systemId===null||e.systemId===e6)}function s6(e){if(e.name!==U1)return Zt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===t6)return Zt.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),n6.has(r))return Zt.QUIRKS;let n=t===null?r6:$1;if(sh(r,n))return Zt.QUIRKS;if(n=t===null?j1:i6,sh(r,n))return Zt.LIMITED_QUIRKS}return Zt.NO_QUIRKS}const oh={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},o6="definitionurl",u6="definitionURL",l6=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),c6=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),h6=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),d6=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function f6(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:n})=>n===jn.COLOR||n===jn.SIZE||n===jn.FACE)||d6.has(t)}function V1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===o6){e.attrs[t].name=u6;break}}function q1(e){for(let t=0;t<e.attrs.length;t++){const r=l6.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function x0(e){for(let t=0;t<e.attrs.length;t++){const r=c6.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function m6(e){const t=h6.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ii(e.tagName))}function p6(e,t){return t===Q.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}function g6(e,t,r){if(t===Q.MATHML&&e===m.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===jn.ENCODING){const i=r[n].value.toLowerCase();return i===oh.TEXT_HTML||i===oh.APPLICATION_XML}}return t===Q.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}function b6(e,t,r,n){return(!n||n===Q.HTML)&&g6(e,t,r)||(!n||n===Q.MATHML)&&p6(e,t)}const y6="hidden",E6=8,x6=3;var O;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(O||(O={}));const _6={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},G1=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),uh={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:on,onParseError:null};let lh=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=O.INITIAL,this.originalInsertionMode=O.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...uh,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new qb(this.options,this),this.activeFormattingElements=new Jb(this.treeAdapter),this.fragmentContextID=n?Ii(this.treeAdapter.getTagName(n)):m.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Zb(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...uh,...r};t??(t=n.treeAdapter.createElement(z.TEMPLATE,Q.HTML,[]));const i=n.treeAdapter.createElement("documentmock",Q.HTML,[]),a=new this(n,i,t);return a.fragmentContextID===m.TEMPLATE&&a.tmplInsertionModeStack.unshift(O.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:_6,s={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,r,n){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Q.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,Q.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=O.TEXT}switchToPlaintextParsing(){this.insertionMode=O.TEXT,this.originalInsertionMode=O.IN_BODY,this.tokenizer.state=tt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Q.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=tt.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=tt.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=tt.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=tt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,Q.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,Q.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(r),a=n?i.lastIndexOf(n):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,i=this.treeAdapter.getTagName(t),a=r.type===Ce.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(r)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===Q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,Q.HTML)}_processToken(t){switch(t.type){case Ce.CHARACTER:{this.onCharacter(t);break}case Ce.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ce.COMMENT:{this.onComment(t);break}case Ce.DOCTYPE:{this.onDoctype(t);break}case Ce.START_TAG:{this._processStartTag(t);break}case Ce.END_TAG:{this.onEndTag(t);break}case Ce.EOF:{this.onEof(t);break}case Ce.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const i=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return b6(t,i,a,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(i=>i.type===xr.Marker||this.openElements.contains(i.element)),n=r===-1?t-1:r-1;for(let i=n;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=O.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=O.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=O.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=O.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=O.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=O.IN_TABLE;return}case m.BODY:{this.insertionMode=O.IN_BODY;return}case m.FRAMESET:{this.insertionMode=O.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?O.AFTER_HEAD:O.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=O.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=O.IN_HEAD;return}break}}this.insertionMode=O.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===m.TEMPLATE)break;if(n===m.TABLE){this.insertionMode=O.IN_SELECT_IN_TABLE;return}}this.insertionMode=O.IN_SELECT}_isElementCausesFosterParenting(t){return G1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case m.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return Ub[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Q5(this,t);return}switch(this.insertionMode){case O.INITIAL:{qi(this,t);break}case O.BEFORE_HTML:{oa(this,t);break}case O.BEFORE_HEAD:{ua(this,t);break}case O.IN_HEAD:{la(this,t);break}case O.IN_HEAD_NO_SCRIPT:{ca(this,t);break}case O.AFTER_HEAD:{ha(this,t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:{Y1(this,t);break}case O.TEXT:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{eu(this,t);break}case O.IN_TABLE_TEXT:{em(this,t);break}case O.IN_COLUMN_GROUP:{Ds(this,t);break}case O.AFTER_BODY:{Ps(this,t);break}case O.AFTER_AFTER_BODY:{_s(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){K5(this,t);return}switch(this.insertionMode){case O.INITIAL:{qi(this,t);break}case O.BEFORE_HTML:{oa(this,t);break}case O.BEFORE_HEAD:{ua(this,t);break}case O.IN_HEAD:{la(this,t);break}case O.IN_HEAD_NO_SCRIPT:{ca(this,t);break}case O.AFTER_HEAD:{ha(this,t);break}case O.TEXT:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{eu(this,t);break}case O.IN_COLUMN_GROUP:{Ds(this,t);break}case O.AFTER_BODY:{Ps(this,t);break}case O.AFTER_AFTER_BODY:{_s(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ol(this,t);return}switch(this.insertionMode){case O.INITIAL:case O.BEFORE_HTML:case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_TEMPLATE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{ol(this,t);break}case O.IN_TABLE_TEXT:{Gi(this,t);break}case O.AFTER_BODY:{S6(this,t);break}case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{I6(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case O.INITIAL:{N6(this,t);break}case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:{this._err(t,V.misplacedDoctype);break}case O.IN_TABLE_TEXT:{Gi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,V.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Z5(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{qi(this,t);break}case O.BEFORE_HTML:{R6(this,t);break}case O.BEFORE_HEAD:{O6(this,t);break}case O.IN_HEAD:{fr(this,t);break}case O.IN_HEAD_NO_SCRIPT:{M6(this,t);break}case O.AFTER_HEAD:{F6(this,t);break}case O.IN_BODY:{At(this,t);break}case O.IN_TABLE:{xi(this,t);break}case O.IN_TABLE_TEXT:{Gi(this,t);break}case O.IN_CAPTION:{D5(this,t);break}case O.IN_COLUMN_GROUP:{v0(this,t);break}case O.IN_TABLE_BODY:{mo(this,t);break}case O.IN_ROW:{po(this,t);break}case O.IN_CELL:{B5(this,t);break}case O.IN_SELECT:{nm(this,t);break}case O.IN_SELECT_IN_TABLE:{H5(this,t);break}case O.IN_TEMPLATE:{U5(this,t);break}case O.AFTER_BODY:{j5(this,t);break}case O.IN_FRAMESET:{V5(this,t);break}case O.AFTER_FRAMESET:{G5(this,t);break}case O.AFTER_AFTER_BODY:{Y5(this,t);break}case O.AFTER_AFTER_FRAMESET:{X5(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?J5(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{qi(this,t);break}case O.BEFORE_HTML:{L6(this,t);break}case O.BEFORE_HEAD:{D6(this,t);break}case O.IN_HEAD:{P6(this,t);break}case O.IN_HEAD_NO_SCRIPT:{B6(this,t);break}case O.AFTER_HEAD:{H6(this,t);break}case O.IN_BODY:{fo(this,t);break}case O.TEXT:{w5(this,t);break}case O.IN_TABLE:{xa(this,t);break}case O.IN_TABLE_TEXT:{Gi(this,t);break}case O.IN_CAPTION:{P5(this,t);break}case O.IN_COLUMN_GROUP:{M5(this,t);break}case O.IN_TABLE_BODY:{ul(this,t);break}case O.IN_ROW:{rm(this,t);break}case O.IN_CELL:{F5(this,t);break}case O.IN_SELECT:{im(this,t);break}case O.IN_SELECT_IN_TABLE:{z5(this,t);break}case O.IN_TEMPLATE:{$5(this,t);break}case O.AFTER_BODY:{sm(this,t);break}case O.IN_FRAMESET:{q5(this,t);break}case O.AFTER_FRAMESET:{W5(this,t);break}case O.AFTER_AFTER_BODY:{_s(this,t);break}}}onEof(t){switch(this.insertionMode){case O.INITIAL:{qi(this,t);break}case O.BEFORE_HTML:{oa(this,t);break}case O.BEFORE_HEAD:{ua(this,t);break}case O.IN_HEAD:{la(this,t);break}case O.IN_HEAD_NO_SCRIPT:{ca(this,t);break}case O.AFTER_HEAD:{ha(this,t);break}case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{Z1(this,t);break}case O.TEXT:{k5(this,t);break}case O.IN_TABLE_TEXT:{Gi(this,t);break}case O.IN_TEMPLATE:{am(this,t);break}case O.AFTER_BODY:case O.IN_FRAMESET:case O.AFTER_FRAMESET:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{T0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.TEXT:case O.IN_COLUMN_GROUP:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{this._insertCharacters(t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:case O.AFTER_BODY:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{W1(this,t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{eu(this,t);break}case O.IN_TABLE_TEXT:{J1(this,t);break}}}};function T6(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Q1(e,t),r}function v6(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function w6(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==r;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=x6;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=k6(e,o),n===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function k6(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function A6(e,t,r){const n=e.treeAdapter.getTagName(t),i=Ii(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);i===m.TEMPLATE&&a===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function C6(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function _0(e,t){for(let r=0;r<E6;r++){const n=T6(e,t);if(!n)break;const i=v6(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=w6(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),s&&A6(e,s,a),C6(e,i,n)}}function ol(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function S6(e,t){e._appendCommentNode(t,e.openElements.items[0])}function I6(e,t){e._appendCommentNode(t,e.document)}function T0(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function N6(e,t){e._setDocumentType(t);const r=t.forceQuirks?Zt.QUIRKS:s6(t);a6(t)||e._err(t,V.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=O.BEFORE_HTML}function qi(e,t){e._err(t,V.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Zt.QUIRKS),e.insertionMode=O.BEFORE_HTML,e._processToken(t)}function R6(e,t){t.tagID===m.HTML?(e._insertElement(t,Q.HTML),e.insertionMode=O.BEFORE_HEAD):oa(e,t)}function L6(e,t){const r=t.tagID;(r===m.HTML||r===m.HEAD||r===m.BODY||r===m.BR)&&oa(e,t)}function oa(e,t){e._insertFakeRootElement(),e.insertionMode=O.BEFORE_HEAD,e._processToken(t)}function O6(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.HEAD:{e._insertElement(t,Q.HTML),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD;break}default:ua(e,t)}}function D6(e,t){const r=t.tagID;r===m.HEAD||r===m.BODY||r===m.HTML||r===m.BR?ua(e,t):e._err(t,V.endTagWithoutMatchingOpenElement)}function ua(e,t){e._insertFakeElement(z.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD,e._processToken(t)}function fr(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,tt.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,tt.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=O.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,tt.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,tt.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=O.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(O.IN_TEMPLATE);break}case m.HEAD:{e._err(t,V.misplacedStartTagForHeadElement);break}default:la(e,t)}}function P6(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=O.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{la(e,t);break}case m.TEMPLATE:{Kn(e,t);break}default:e._err(t,V.endTagWithoutMatchingOpenElement)}}function Kn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,V.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,V.endTagWithoutMatchingOpenElement)}function la(e,t){e.openElements.pop(),e.insertionMode=O.AFTER_HEAD,e._processToken(t)}function M6(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{fr(e,t);break}case m.NOSCRIPT:{e._err(t,V.nestedNoscriptInHead);break}default:ca(e,t)}}function B6(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=O.IN_HEAD;break}case m.BR:{ca(e,t);break}default:e._err(t,V.endTagWithoutMatchingOpenElement)}}function ca(e,t){const r=t.type===Ce.EOF?V.openElementsLeftAfterEof:V.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=O.IN_HEAD,e._processToken(t)}function F6(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.BODY:{e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=O.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,Q.HTML),e.insertionMode=O.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,V.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),fr(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,V.misplacedStartTagForHeadElement);break}default:ha(e,t)}}function H6(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{ha(e,t);break}case m.TEMPLATE:{Kn(e,t);break}default:e._err(t,V.endTagWithoutMatchingOpenElement)}}function ha(e,t){e._insertFakeElement(z.BODY,m.BODY),e.insertionMode=O.IN_BODY,ho(e,t)}function ho(e,t){switch(t.type){case Ce.CHARACTER:{Y1(e,t);break}case Ce.WHITESPACE_CHARACTER:{W1(e,t);break}case Ce.COMMENT:{ol(e,t);break}case Ce.START_TAG:{At(e,t);break}case Ce.END_TAG:{fo(e,t);break}case Ce.EOF:{Z1(e,t);break}}}function W1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Y1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function z6(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function U6(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function $6(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=O.IN_FRAMESET)}function j6(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function V6(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&sl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML)}function q6(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function G6(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Q.HTML),r||(e.formElement=e.openElements.current))}function W6(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.tagIDs[n];if(r===m.LI&&i===m.LI||(r===m.DD||r===m.DT)&&(i===m.DD||i===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==m.ADDRESS&&i!==m.DIV&&i!==m.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function Y6(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=tt.PLAINTEXT}function X6(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1}function K6(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);r&&(_0(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Q6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Z6(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(_0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function J6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function e5(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zt.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=O.IN_TABLE}function X1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function K1(e){const t=F1(e,jn.TYPE);return t!=null&&t.toLowerCase()===y6}function t5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),K1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function r5(e,t){e._appendElement(t,Q.HTML),t.ackSelfClosing=!0}function n5(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function i5(e,t){t.tagName=z.IMG,t.tagID=m.IMG,X1(e,t)}function a5(e,t){e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=tt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=O.TEXT}function s5(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,tt.RAWTEXT)}function o5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,tt.RAWTEXT)}function ch(e,t){e._switchToTextParsing(t,tt.RAWTEXT)}function u5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===O.IN_TABLE||e.insertionMode===O.IN_CAPTION||e.insertionMode===O.IN_TABLE_BODY||e.insertionMode===O.IN_ROW||e.insertionMode===O.IN_CELL?O.IN_SELECT_IN_TABLE:O.IN_SELECT}function l5(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function c5(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML)}function h5(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,Q.HTML)}function d5(e,t){e._reconstructActiveFormattingElements(),V1(t),x0(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0}function f5(e,t){e._reconstructActiveFormattingElements(),q1(t),x0(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0}function hh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function At(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{Q6(e,t);break}case m.A:{K6(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{V6(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{j6(e,t);break}case m.LI:case m.DD:case m.DT:{W6(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{X1(e,t);break}case m.HR:{n5(e,t);break}case m.RB:case m.RTC:{c5(e,t);break}case m.RT:case m.RP:{h5(e,t);break}case m.PRE:case m.LISTING:{q6(e,t);break}case m.XMP:{s5(e,t);break}case m.SVG:{f5(e,t);break}case m.HTML:{z6(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{fr(e,t);break}case m.BODY:{U6(e,t);break}case m.FORM:{G6(e,t);break}case m.NOBR:{Z6(e,t);break}case m.MATH:{d5(e,t);break}case m.TABLE:{e5(e,t);break}case m.INPUT:{t5(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{r5(e,t);break}case m.IMAGE:{i5(e,t);break}case m.BUTTON:{X6(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{J6(e,t);break}case m.IFRAME:{o5(e,t);break}case m.SELECT:{u5(e,t);break}case m.OPTION:case m.OPTGROUP:{l5(e,t);break}case m.NOEMBED:case m.NOFRAMES:{ch(e,t);break}case m.FRAMESET:{$6(e,t);break}case m.TEXTAREA:{a5(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?ch(e,t):hh(e,t);break}case m.PLAINTEXT:{Y6(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:hh(e,t)}}function m5(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=O.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function p5(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=O.AFTER_BODY,sm(e,t))}function g5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function b5(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):r&&e.openElements.remove(r))}function y5(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(z.P,m.P),e._closePElement()}function E5(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function x5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function _5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function T5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function v5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function Q1(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(n===s&&(n!==m.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function fo(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{_0(e,t);break}case m.P:{y5(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{g5(e,t);break}case m.LI:{E5(e);break}case m.DD:case m.DT:{x5(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{_5(e);break}case m.BR:{v5(e);break}case m.BODY:{m5(e,t);break}case m.HTML:{p5(e,t);break}case m.FORM:{b5(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{T5(e,t);break}case m.TEMPLATE:{Kn(e,t);break}default:Q1(e,t)}}function Z1(e,t){e.tmplInsertionModeStack.length>0?am(e,t):T0(e,t)}function w5(e,t){var r;t.tagID===m.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function k5(e,t){e._err(t,V.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function eu(e,t){if(e.openElements.currentTagId!==void 0&&G1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O.IN_TABLE_TEXT,t.type){case Ce.CHARACTER:{em(e,t);break}case Ce.WHITESPACE_CHARACTER:{J1(e,t);break}}else Da(e,t)}function A5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=O.IN_CAPTION}function C5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=O.IN_COLUMN_GROUP}function S5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,m.COLGROUP),e.insertionMode=O.IN_COLUMN_GROUP,v0(e,t)}function I5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=O.IN_TABLE_BODY}function N5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,m.TBODY),e.insertionMode=O.IN_TABLE_BODY,mo(e,t)}function R5(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function L5(e,t){K1(t)?e._appendElement(t,Q.HTML):Da(e,t),t.ackSelfClosing=!0}function O5(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function xi(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{N5(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{fr(e,t);break}case m.COL:{S5(e,t);break}case m.FORM:{O5(e,t);break}case m.TABLE:{R5(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{I5(e,t);break}case m.INPUT:{L5(e,t);break}case m.CAPTION:{A5(e,t);break}case m.COLGROUP:{C5(e,t);break}default:Da(e,t)}}function xa(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{Kn(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Da(e,t)}}function Da(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ho(e,t),e.fosterParentingEnabled=r}function J1(e,t){e.pendingCharacterTokens.push(t)}function em(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Gi(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Da(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const tm=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function D5(e,t){const r=t.tagID;tm.has(r)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,xi(e,t)):At(e,t)}function P5(e,t){const r=t.tagID;switch(r){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,r===m.TABLE&&xa(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:fo(e,t)}}function v0(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.COL:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{fr(e,t);break}default:Ds(e,t)}}function M5(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE);break}case m.TEMPLATE:{Kn(e,t);break}case m.COL:break;default:Ds(e,t)}}function Ds(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE,e._processToken(t))}function mo(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Q.HTML),e.insertionMode=O.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,m.TR),e.insertionMode=O.IN_ROW,po(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE,xi(e,t));break}default:xi(e,t)}}function ul(e,t){const r=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE,xa(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:xa(e,t)}}function po(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Q.HTML),e.insertionMode=O.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,mo(e,t));break}default:xi(e,t)}}function rm(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,ul(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,ul(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:xa(e,t)}}function B5(e,t){const r=t.tagID;tm.has(r)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),po(e,t)):At(e,t)}function F5(e,t){const r=t.tagID;switch(r){case m.TD:case m.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),rm(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:fo(e,t)}}function nm(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{fr(e,t);break}}}function im(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{Kn(e,t);break}}}function H5(e,t){const r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):nm(e,t)}function z5(e,t){const r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):im(e,t)}function U5(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{fr(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=O.IN_TABLE,e.insertionMode=O.IN_TABLE,xi(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=O.IN_COLUMN_GROUP,e.insertionMode=O.IN_COLUMN_GROUP,v0(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=O.IN_TABLE_BODY,e.insertionMode=O.IN_TABLE_BODY,mo(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=O.IN_ROW,e.insertionMode=O.IN_ROW,po(e,t);break}default:e.tmplInsertionModeStack[0]=O.IN_BODY,e.insertionMode=O.IN_BODY,At(e,t)}}function $5(e,t){t.tagID===m.TEMPLATE&&Kn(e,t)}function am(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):T0(e,t)}function j5(e,t){t.tagID===m.HTML?At(e,t):Ps(e,t)}function sm(e,t){var r;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=O.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else Ps(e,t)}function Ps(e,t){e.insertionMode=O.IN_BODY,ho(e,t)}function V5(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.FRAMESET:{e._insertElement(t,Q.HTML);break}case m.FRAME:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{fr(e,t);break}}}function q5(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=O.AFTER_FRAMESET))}function G5(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.NOFRAMES:{fr(e,t);break}}}function W5(e,t){t.tagID===m.HTML&&(e.insertionMode=O.AFTER_AFTER_FRAMESET)}function Y5(e,t){t.tagID===m.HTML?At(e,t):_s(e,t)}function _s(e,t){e.insertionMode=O.IN_BODY,ho(e,t)}function X5(e,t){switch(t.tagID){case m.HTML:{At(e,t);break}case m.NOFRAMES:{fr(e,t);break}}}function K5(e,t){t.chars=qe,e._insertCharacters(t)}function Q5(e,t){e._insertCharacters(t),e.framesetOk=!1}function om(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Z5(e,t){if(f6(t))om(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Q.MATHML?V1(t):n===Q.SVG&&(m6(t),q1(t)),x0(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function J5(e,t){if(t.tagID===m.P||t.tagID===m.BR){om(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Q.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const go=um("end"),Ar=um("start");function um(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function lm(e){const t=Ar(e),r=go(e);if(t&&r)return{start:t,end:r}}const e7=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,t7=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),dh={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function cm(e,t){const r=h7(e),n=y0("type",{handlers:{root:r7,element:n7,text:i7,comment:dm,doctype:a7,raw:o7},unknown:u7}),i={parser:r?new lh(dh):lh.getFragmentParser(void 0,dh),handle(o){n(o,i)},stitches:!1,options:t||{}};n(e,i),Ni(i,Ar());const a=r?i.parser.document:i.parser.getFragment(),s=fb(a,{file:i.options.file});return i.stitches&&wr(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const h=l.children;return h[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function hm(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function r7(e,t){hm(e.children,t)}function n7(e,t){l7(e,t),hm(e.children,t),c7(e,t)}function i7(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Ce.CHARACTER,chars:e.value,location:Pa(e)};Ni(t,Ar(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function a7(e,t){const r={type:Ce.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Pa(e)};Ni(t,Ar(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function s7(e,t){t.stitches=!0;const r=d7(e);if("children"in e&&"children"in r){const n=cm({type:"root",children:e.children},t.options);r.children=n.children}dm({type:"comment",value:{stitch:r}},t)}function dm(e,t){const r=e.value,n={type:Ce.COMMENT,data:r,location:Pa(e)};Ni(t,Ar(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function o7(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,fm(t,Ar(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(e7,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function u7(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))s7(r,t);else{let n="";throw t7.has(r.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+n)}}function Ni(e,t){fm(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=tt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function fm(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function l7(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===tt.PLAINTEXT)return;Ni(t,Ar(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:Tr.html;i===Tr.html&&r==="svg"&&(i=Tr.svg);const a=yb({...e,children:[]},{space:i===Tr.svg?"svg":"html"}),s={type:Ce.START_TAG,tagName:r,tagID:Ii(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Pa(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function c7(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&D1.includes(r)||t.parser.tokenizer.state===tt.PLAINTEXT)return;Ni(t,go(e));const n={type:Ce.END_TAG,tagName:r,tagID:Ii(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Pa(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===tt.RCDATA||t.parser.tokenizer.state===tt.RAWTEXT||t.parser.tokenizer.state===tt.SCRIPT_DATA)&&(t.parser.tokenizer.state=tt.DATA)}function h7(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Pa(e){const t=Ar(e)||{line:void 0,column:void 0,offset:void 0},r=go(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function d7(e){return"children"in e?Vn({...e,children:[]}):Vn(e)}function ll(e){return function(t,r){return cm(t,{...e,file:r})}}const Sn=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Dn={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Sn,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Sn],h2:[["className","sr-only"]],img:[...Sn,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Sn,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Sn],table:[...Sn],ul:[...Sn,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},cn={}.hasOwnProperty;function f7(e,t){let r={type:"root",children:[]};const n={schema:t?{...Dn,...t}:Dn,stack:[]},i=mm(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function mm(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return m7(e,r);case"doctype":return p7(e,r);case"element":return g7(e,r);case"root":return b7(e,r);case"text":return y7(e,r)}}}function m7(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),a={type:"comment",value:n<0?r:r.slice(0,n)};return Ma(a,t),a}}function p7(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return Ma(r,t),r}}function g7(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=pm(e,t.children),i=E7(e,t.properties);e.stack.pop();let a=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&cn.call(e.schema.ancestors,r))){const o=e.schema.ancestors[r];let u=-1;for(a=!1;++u<o.length;)e.stack.includes(o[u])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:i,children:n};return Ma(s,t),s}function b7(e,t){const n={type:"root",children:pm(e,t.children)};return Ma(n,t),n}function y7(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return Ma(n,t),n}function pm(e,t){const r=[];if(Array.isArray(t)){const n=t;let i=-1;for(;++i<n.length;){const a=mm(e,n[i]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function E7(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,a=n&&cn.call(n,r)?n[r]:void 0,s=n&&cn.call(n,"*")?n["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let l;for(l in o)if(cn.call(o,l)){const c=o[l];let h=fh(e,mh(a,l),l,c);h==null&&(h=fh(e,mh(s,l),l,c)),h!=null&&(u[l]=h)}if(i&&cn.call(i,r)){const c=i[r];for(l in c)cn.call(c,l)&&!cn.call(u,l)&&(u[l]=c[l])}return u}function fh(e,t,r,n){return t?Array.isArray(n)?x7(e,t,r,n):gm(e,t,r,n):void 0}function x7(e,t,r,n){let i=-1;const a=[];for(;++i<n.length;){const s=gm(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function gm(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&_7(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function _7(e,t,r){const n=e.schema.protocols&&cn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const i=String(r),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),u=i.indexOf("/");if(a<0||u>-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l<n.length;){const c=n[l];if(a===c.length&&i.slice(0,c.length)===c)return!0}return!1}function Ma(e,t){const r=lm(t);t.data&&(e.data=Vn(t.data)),r&&(e.position=r)}function mh(e,t){let r,n=-1;if(e)for(;++n<e.length;){const i=e[n],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function bm(e){return function(t){return f7(t,e)}}function Ms(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const Ot=vn(/[A-Za-z]/),wt=vn(/[\dA-Za-z]/),T7=vn(/[#-'*+\--9=?A-Z^-~]/);function Bs(e){return e!==null&&(e<32||e===127)}const cl=vn(/\d/),v7=vn(/[\dA-Fa-f]/),w7=vn(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const bo=vn(new RegExp("\\p{P}|\\p{S}","u")),qn=vn(/\s/);function vn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function k7(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function A7(e,t,r){const i=Ra((r||{}).ignore||[]),a=C7(t);let s=-1;for(;++s<a.length;)lo(e,"text",o);function o(l,c){let h=-1,f;for(;++h<c.length;){const d=c[h],g=f?f.children:void 0;if(i(d,g?g.indexOf(d):void 0,f))return;f=d}if(f)return u(l,c)}function u(l,c){const h=c[c.length-1],f=a[s][0],d=a[s][1];let g=0;const _=h.children.indexOf(l);let E=!1,w=[];f.lastIndex=0;let C=f.exec(l.value);for(;C;){const M=C.index,H={index:C.index,input:C.input,stack:[...c,l]};let D=d(...C,H);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?f.lastIndex=M+1:(g!==M&&w.push({type:"text",value:l.value.slice(g,M)}),Array.isArray(D)?w.push(...D):D&&w.push(D),g=M+C[0].length,E=!0),!f.global)break;C=f.exec(l.value)}return E?(g<l.value.length&&w.push({type:"text",value:l.value.slice(g)}),h.children.splice(_,1,...w)):w=[l],_+w.length}}function C7(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([S7(i[0]),I7(i[1])])}return t}function S7(e){return typeof e=="string"?new RegExp(k7(e),"g"):e}function I7(e){return typeof e=="function"?e:function(){return e}}const tu="phrasing",ru=["autolink","link","image","label"];function N7(){return{transforms:[B7],enter:{literalAutolink:L7,literalAutolinkEmail:nu,literalAutolinkHttp:nu,literalAutolinkWww:nu},exit:{literalAutolink:M7,literalAutolinkEmail:P7,literalAutolinkHttp:O7,literalAutolinkWww:D7}}}function R7(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tu,notInConstruct:ru},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tu,notInConstruct:ru},{character:":",before:"[ps]",after:"\\/",inConstruct:tu,notInConstruct:ru}]}}function L7(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nu(e){this.config.enter.autolinkProtocol.call(this,e)}function O7(e){this.config.exit.autolinkProtocol.call(this,e)}function D7(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function P7(e){this.config.exit.autolinkEmail.call(this,e)}function M7(e){this.exit(e)}function B7(e){A7(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,F7],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),H7]],{ignore:["link","linkReference"]})}function F7(e,t,r,n,i){let a="";if(!ym(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!z7(r)))return!1;const s=U7(r+n);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function H7(e,t,r,n){return!ym(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function z7(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function U7(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=Ms(e,"(");let a=Ms(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function ym(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||qn(r)||bo(r))&&(!t||r!==47)}function hr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Em.peek=K7;function $7(){this.buffer()}function j7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function V7(){this.buffer()}function q7(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function G7(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=hr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function W7(e){this.exit(e)}function Y7(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=hr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function X7(e){this.exit(e)}function K7(){return"["}function Em(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function Q7(){return{enter:{gfmFootnoteCallString:$7,gfmFootnoteCall:j7,gfmFootnoteDefinitionLabelString:V7,gfmFootnoteDefinition:q7},exit:{gfmFootnoteCallString:G7,gfmFootnoteCall:W7,gfmFootnoteDefinitionLabelString:Y7,gfmFootnoteDefinition:X7}}}function Z7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Em},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(n),{before:u,after:"]"})),c(),u+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),u+=o.move((t?`
4
+ `:" ")+a.indentLines(a.containerFlow(n,o.current()),t?xm:J7))),l(),u}}function J7(e,t,r){return t===0?e:xm(e,t,r)}function xm(e,t,r){return(r?"":" ")+e}const e8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_m.peek=a8;function t8(){return{canContainEols:["delete"],enter:{strikethrough:n8},exit:{strikethrough:i8}}}function r8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:e8}],handlers:{delete:_m}}}function n8(e){this.enter({type:"delete",children:[]},e)}function i8(e){this.exit(e)}function _m(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function a8(){return"~"}function s8(e){return e.length}function o8(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||s8,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++c<e.length;){const y=[],_=[];let E=-1;for(e[c].length>l&&(l=e[c].length);++E<e[c].length;){const w=u8(e[c][E]);if(r.alignDelimiters!==!1){const C=i(w);_[E]=C,(u[E]===void 0||C>u[E])&&(u[E]=C)}y.push(w)}s[c]=y,o[c]=_}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<l;)a[h]=ph(n[h]);else{const y=ph(n);for(;++h<l;)a[h]=y}h=-1;const f=[],d=[];for(;++h<l;){const y=a[h];let _="",E="";y===99?(_=":",E=":"):y===108?_=":":y===114&&(E=":");let w=r.alignDelimiters===!1?1:Math.max(1,u[h]-_.length-E.length);const C=_+"-".repeat(w)+E;r.alignDelimiters!==!1&&(w=_.length+w+E.length,w>u[h]&&(u[h]=w),d[h]=w),f[h]=C}s.splice(1,0,f),o.splice(1,0,d),c=-1;const g=[];for(;++c<s.length;){const y=s[c],_=o[c];h=-1;const E=[];for(;++h<l;){const w=y[h]||"";let C="",M="";if(r.alignDelimiters!==!1){const H=u[h]-(_[h]||0),D=a[h];D===114?C=" ".repeat(H):D===99?H%2?(C=" ".repeat(H/2+.5),M=" ".repeat(H/2-.5)):(C=" ".repeat(H/2),M=C):M=" ".repeat(H)}r.delimiterStart!==!1&&!h&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||h)&&E.push(" "),r.alignDelimiters!==!1&&E.push(C),E.push(w),r.alignDelimiters!==!1&&E.push(M),r.padding!==!1&&E.push(" "),(r.delimiterEnd!==!1||h!==l-1)&&E.push("|")}g.push(r.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return g.join(`
5
+ `)}function u8(e){return e==null?"":String(e)}function ph(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function l8(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),c8);return i(),s}function c8(e,t,r){return">"+(r?"":" ")+e}function h8(e,t){return gh(e,t.inConstruct,!0)&&!gh(e,t.notInConstruct,!1)}function gh(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function bh(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
6
+ `&&h8(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
7
+ `}function Tm(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++a>s&&(s=a):a=1,i=n+t.length,n=r.indexOf(t,i);return s}function d8(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function f8(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function m8(e,t,r,n){const i=f8(r),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(d8(e,r)){const h=r.enter("codeIndented"),f=r.indentLines(a,p8);return h(),f}const o=r.createTracker(n),u=i.repeat(Math.max(Tm(a,i)+1,3)),l=r.enter("codeFenced");let c=o.move(u);if(e.lang){const h=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
8
+ `,encode:["`"],...o.current()})),h()}return c+=o.move(`
9
+ `),a&&(c+=o.move(a+`
10
+ `)),c+=o.move(u),l(),c}function p8(e,t,r){return(r?"":" ")+e}function w0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function g8(e,t,r,n){const i=w0(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const u=r.createTracker(n);let l=u.move("[");return l+=u.move(r.safe(r.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(r.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=r.enter("destinationRaw"),l+=u.move(r.safe(e.url,{before:l,after:e.title?" ":`
11
+ `,...u.current()}))),o(),e.title&&(o=r.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(r.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function b8(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function _a(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _i(e){if(e===null||He(e)||qn(e))return 1;if(bo(e))return 2}function Fs(e,t,r){const n=_i(e),i=_i(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}vm.peek=y8;function vm(e,t,r,n){const i=b8(r),a=r.enter("emphasis"),s=r.createTracker(n),o=s.move(i);let u=s.move(r.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Fs(n.before.charCodeAt(n.before.length-1),l,i);c.inside&&(u=_a(l)+u.slice(1));const h=u.charCodeAt(u.length-1),f=Fs(n.after.charCodeAt(0),h,i);f.inside&&(u=u.slice(0,-1)+_a(h));const d=s.move(i);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+u+d}function y8(e,t,r){return r.options.emphasis||"*"}const E8={};function k0(e,t){const r=E8,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return wm(e,n,i)}function wm(e,t,r){if(x8(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yh(e.children,t,r)}return Array.isArray(e)?yh(e,t,r):""}function yh(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=wm(e[i],t,r);return n.join("")}function x8(e){return!!(e&&typeof e=="object")}function _8(e,t){let r=!1;return wr(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,tl}),!!((!e.depth||e.depth<3)&&k0(e)&&(t.options.setext||r))}function T8(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(_8(e,r)){const c=r.enter("headingSetext"),h=r.enter("phrasing"),f=r.containerPhrasing(e,{...a.current(),before:`
12
+ `,after:`
13
+ `});return h(),c(),f+`
14
+ `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
15
+ `))+1))}const s="#".repeat(i),o=r.enter("headingAtx"),u=r.enter("phrasing");a.move(s+" ");let l=r.containerPhrasing(e,{before:"# ",after:`
16
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=_a(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,r.options.closeAtx&&(l+=" "+s),u(),o(),l}km.peek=v8;function km(e){return e.value||""}function v8(){return"<"}Am.peek=w8;function Am(e,t,r,n){const i=w0(r),a=i==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const u=r.createTracker(n);let l=u.move("![");return l+=u.move(r.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(r.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=r.enter("destinationRaw"),l+=u.move(r.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=r.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(r.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function w8(){return"!"}Cm.peek=k8;function Cm(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("![");const l=r.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:u,after:"]",...o.current()});return s(),r.stack=c,a(),i==="full"||!l||l!==h?u+=o.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function k8(){return"!"}Sm.peek=A8;function Sm(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const s=r.unsafe[a],o=r.compilePattern(s);let u;if(s.atBreak)for(;u=o.exec(n);){let l=u.index;n.charCodeAt(l)===10&&n.charCodeAt(l-1)===13&&l--,n=n.slice(0,l)+" "+n.slice(u.index+1)}}return i+n+i}function A8(){return"`"}function Im(e,t){const r=k0(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Nm.peek=C8;function Nm(e,t,r,n){const i=w0(r),a=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let o,u;if(Im(e,r)){const c=r.stack;r.stack=[],o=r.enter("autolink");let h=s.move("<");return h+=s.move(r.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),r.stack=c,h}o=r.enter("link"),u=r.enter("label");let l=s.move("[");return l+=s.move(r.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(r.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=r.enter("destinationRaw"),l+=s.move(r.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=r.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(r.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function C8(e,t,r){return Im(e,r)?"<":"["}Rm.peek=S8;function Rm(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("[");const l=r.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:u,after:"]",...o.current()});return s(),r.stack=c,a(),i==="full"||!l||l!==h?u+=o.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function S8(){return"["}function A0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function I8(e){const t=A0(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function N8(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Lm(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function R8(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let s=e.ordered?N8(r):A0(r);const o=e.ordered?s==="."?")":".":I8(r);let u=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),Lm(r)===s&&c){let h=-1;for(;++h<e.children.length;){const f=e.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),r.bulletCurrent=s;const l=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=a,i(),l}function L8(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function O8(e,t,r,n){const i=L8(r);let a=r.bulletCurrent||A0(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(n);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,o.current()),c);return u(),l;function c(h,f,d){return f?(d?"":" ".repeat(s))+h:(d?a:a+" ".repeat(s-a.length))+h}}function D8(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),s=r.containerPhrasing(e,n);return a(),i(),s}const P8=Ra(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function M8(e,t,r,n){return(e.children.some(function(s){return P8(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function B8(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Om.peek=F8;function Om(e,t,r,n){const i=B8(r),a=r.enter("strong"),s=r.createTracker(n),o=s.move(i+i);let u=s.move(r.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Fs(n.before.charCodeAt(n.before.length-1),l,i);c.inside&&(u=_a(l)+u.slice(1));const h=u.charCodeAt(u.length-1),f=Fs(n.after.charCodeAt(0),h,i);f.inside&&(u=u.slice(0,-1)+_a(h));const d=s.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+u+d}function F8(e,t,r){return r.options.strong||"*"}function H8(e,t,r,n){return r.safe(e.value,n)}function z8(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function U8(e,t,r){const n=(Lm(r)+(r.options.ruleSpaces?" ":"")).repeat(z8(r));return r.options.ruleSpaces?n.slice(0,-1):n}const Dm={blockquote:l8,break:bh,code:m8,definition:g8,emphasis:vm,hardBreak:bh,heading:T8,html:km,image:Am,imageReference:Cm,inlineCode:Sm,link:Nm,linkReference:Rm,list:R8,listItem:O8,paragraph:D8,root:M8,strong:Om,text:H8,thematicBreak:U8},Eh=document.createElement("i");function C0(e){const t="&"+e+";";Eh.innerHTML=t;const r=Eh.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Pm(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}const $8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function j8(e){return e.replace($8,V8)}function V8(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return Pm(r.slice(a?2:1),a?16:10)}return C0(r)||e}function q8(){return{enter:{table:G8,tableData:xh,tableHeader:xh,tableRow:Y8},exit:{codeText:X8,table:W8,tableData:iu,tableHeader:iu,tableRow:iu}}}function G8(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function W8(e){this.exit(e),this.data.inTable=void 0}function Y8(e){this.enter({type:"tableRow",children:[]},e)}function iu(e){this.exit(e)}function xh(e){this.enter({type:"tableCell",children:[]},e)}function X8(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,K8));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function K8(e,t){return t==="|"?t:e}function Q8(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:u,tableRow:o}};function s(d,g,y,_){return l(c(d,y,_),d.align)}function o(d,g,y,_){const E=h(d,y,_),w=l([E]);return w.slice(0,w.indexOf(`
18
+ `))}function u(d,g,y,_){const E=y.enter("tableCell"),w=y.enter("phrasing"),C=y.containerPhrasing(d,{..._,before:a,after:a});return w(),E(),C}function l(d,g){return o8(d,{align:g,alignDelimiters:n,padding:r,stringLength:i})}function c(d,g,y){const _=d.children;let E=-1;const w=[],C=g.enter("table");for(;++E<_.length;)w[E]=h(_[E],g,y);return C(),w}function h(d,g,y){const _=d.children;let E=-1;const w=[],C=g.enter("tableRow");for(;++E<_.length;)w[E]=u(_[E],d,g,y);return C(),w}function f(d,g,y){let _=Dm.inlineCode(d,g,y);return y.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function Z8(){return{exit:{taskListCheckValueChecked:_h,taskListCheckValueUnchecked:_h,paragraph:ey}}}function J8(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ty}}}function _h(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ey(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ty(e,t,r,n){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(n);a&&o.move(s);let u=Dm.listItem(e,t,r,{...n,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(c){return c+s}}function ry(){return[N7(),Q7(),t8(),q8(),Z8()]}function ny(e){return{extensions:[R7(),Z7(e),r8(),Q8(e),J8()]}}function Vt(e,t,r,n){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Jt(e,t){return e.length>0?(Vt(e,e.length,0,t),e):t}const Th={}.hasOwnProperty;function Mm(e){const t={};let r=-1;for(;++r<e.length;)iy(t,e[r]);return t}function iy(e,t){let r;for(r in t){const i=(Th.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){Th.call(i,s)||(i[s]=[]);const o=a[s];ay(i[s],Array.isArray(o)?o:o?[o]:[])}}}function ay(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Vt(e,0,0,n)}const sy={tokenize:dy,partial:!0},Bm={tokenize:fy,partial:!0},Fm={tokenize:my,partial:!0},Hm={tokenize:py,partial:!0},oy={tokenize:gy,partial:!0},zm={name:"wwwAutolink",tokenize:cy,previous:$m},Um={name:"protocolAutolink",tokenize:hy,previous:jm},Yr={name:"emailAutolink",tokenize:ly,previous:Vm},Cr={};function uy(){return{text:Cr}}let In=48;for(;In<123;)Cr[In]=Yr,In++,In===58?In=65:In===91&&(In=97);Cr[43]=Yr;Cr[45]=Yr;Cr[46]=Yr;Cr[95]=Yr;Cr[72]=[Yr,Um];Cr[104]=[Yr,Um];Cr[87]=[Yr,zm];Cr[119]=[Yr,zm];function ly(e,t,r){const n=this;let i,a;return s;function s(h){return!hl(h)||!Vm.call(n,n.previous)||S0(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return hl(h)?(e.consume(h),o):h===64?(e.consume(h),u):r(h)}function u(h){return h===46?e.check(oy,c,l)(h):h===45||h===95||wt(h)?(a=!0,e.consume(h),u):c(h)}function l(h){return e.consume(h),i=!0,u}function c(h){return a&&i&&Ot(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function cy(e,t,r){const n=this;return i;function i(s){return s!==87&&s!==119||!$m.call(n,n.previous)||S0(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sy,e.attempt(Bm,e.attempt(Fm,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function hy(e,t,r){const n=this;let i="",a=!1;return s;function s(h){return(h===72||h===104)&&jm.call(n,n.previous)&&!S0(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),o):r(h)}function o(h){if(Ot(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(h),u}return r(h)}function u(h){return h===47?(e.consume(h),a?l:(a=!0,u)):r(h)}function l(h){return h===null||Bs(h)||He(h)||qn(h)||bo(h)?r(h):e.attempt(Bm,e.attempt(Fm,c),r)(h)}function c(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function dy(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),a):r(s)}function a(s){return s===null?r(s):t(s)}}function fy(e,t,r){let n,i,a;return s;function s(l){return l===46||l===95?e.check(Hm,u,o)(l):l===null||He(l)||qn(l)||l!==45&&bo(l)?u(l):(a=!0,e.consume(l),s)}function o(l){return l===95?n=!0:(i=n,n=void 0),e.consume(l),s}function u(l){return i||n||!a?r(l):t(l)}}function my(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Hm,t,a)(s):s===null||He(s)||qn(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&n++,e.consume(s),i}}function py(e,t,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),n):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||He(o)||qn(o)?t(o):r(o)}function i(o){return o===null||o===40||o===91||He(o)||qn(o)?t(o):n(o)}function a(o){return Ot(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),n):Ot(o)?(e.consume(o),s):r(o)}}function gy(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return wt(a)?r(a):t(a)}}function $m(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function jm(e){return!Ot(e)}function Vm(e){return!(e===47||hl(e))}function hl(e){return e===43||e===45||e===46||e===95||wt(e)}function S0(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function Ri(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&wt(e.charCodeAt(r+1))&&wt(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function yo(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const dl={name:"attention",resolveAll:by,tokenize:yy};function by(e,t){let r=-1,n,i,a,s,o,u,l,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[n][1].end},f={...e[r][1].start};vh(h,-u),vh(f,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},a={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Jt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Jt(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=Jt(l,yo(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),l=Jt(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,l=Jt(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Vt(e,n-1,r-n+3,l),r=n+l.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function yy(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=_i(n);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const l=e.exit("attentionSequence"),c=_i(u),h=!c||c===2&&i||r.includes(u),f=!i||i===2&&c||r.includes(n);return l._open=!!(a===42?h:h&&(i||!f)),l._close=!!(a===42?f:f&&(c||!h)),t(u)}}function vh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ey={name:"autolink",tokenize:xy};function xy(e,t,r){let n=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return Ot(d)?(e.consume(d),s):d===64?r(d):l(d)}function s(d){return d===43||d===45||d===46||wt(d)?(n=1,o(d)):l(d)}function o(d){return d===58?(e.consume(d),n=0,u):(d===43||d===45||d===46||wt(d))&&n++<32?(e.consume(d),o):(n=0,l(d))}function u(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Bs(d)?r(d):(e.consume(d),u)}function l(d){return d===64?(e.consume(d),c):T7(d)?(e.consume(d),l):r(d)}function c(d){return wt(d)?h(d):r(d)}function h(d){return d===46?(e.consume(d),n=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):f(d)}function f(d){if((d===45||wt(d))&&n++<63){const g=d===45?f:h;return e.consume(d),g}return r(d)}}function Se(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Re(u)?(e.enter(r),o(u)):t(u)}function o(u){return Re(u)&&a++<i?(e.consume(u),o):(e.exit(r),t(u))}}const Ba={partial:!0,tokenize:_y};function _y(e,t,r){return n;function n(a){return Re(a)?Se(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||he(a)?t(a):r(a)}}const qm={continuation:{tokenize:vy},exit:wy,name:"blockQuote",tokenize:Ty};function Ty(e,t,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return Re(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function vy(e,t,r){const n=this;return i;function i(s){return Re(s)?Se(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(qm,t,r)(s)}}function wy(e){e.exit("blockQuote")}const Gm={name:"characterEscape",tokenize:ky};function ky(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return w7(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Wm={name:"characterReference",tokenize:Ay};function Ay(e,t,r){const n=this;let i=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,s=wt,c(h))}function l(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=v7,c):(e.enter("characterReferenceValue"),a=7,s=cl,c(h))}function c(h){if(h===59&&i){const f=e.exit("characterReferenceValue");return s===wt&&!C0(n.sliceSerialize(f))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<a?(e.consume(h),c):r(h)}}const wh={partial:!0,tokenize:Sy},kh={concrete:!0,name:"codeFenced",tokenize:Cy};function Cy(e,t,r){const n=this,i={partial:!0,tokenize:H};let a=0,s=0,o;return u;function u(D){return l(D)}function l(D){const U=n.events[n.events.length-1];return a=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,o=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(D)}function c(D){return D===o?(s++,e.consume(D),c):s<3?r(D):(e.exit("codeFencedFenceSequence"),Re(D)?Se(e,h,"whitespace")(D):h(D))}function h(D){return D===null||he(D)?(e.exit("codeFencedFence"),n.interrupt?t(D):e.check(wh,y,M)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(D))}function f(D){return D===null||he(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(D)):Re(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,d,"whitespace")(D)):D===96&&D===o?r(D):(e.consume(D),f)}function d(D){return D===null||he(D)?h(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(D))}function g(D){return D===null||he(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(D)):D===96&&D===o?r(D):(e.consume(D),g)}function y(D){return e.attempt(i,M,_)(D)}function _(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),E}function E(D){return a>0&&Re(D)?Se(e,w,"linePrefix",a+1)(D):w(D)}function w(D){return D===null||he(D)?e.check(wh,y,M)(D):(e.enter("codeFlowValue"),C(D))}function C(D){return D===null||he(D)?(e.exit("codeFlowValue"),w(D)):(e.consume(D),C)}function M(D){return e.exit("codeFenced"),t(D)}function H(D,U,$){let q=0;return F;function F(W){return D.enter("lineEnding"),D.consume(W),D.exit("lineEnding"),Y}function Y(W){return D.enter("codeFencedFence"),Re(W)?Se(D,X,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):X(W)}function X(W){return W===o?(D.enter("codeFencedFenceSequence"),de(W)):$(W)}function de(W){return W===o?(q++,D.consume(W),de):q>=s?(D.exit("codeFencedFenceSequence"),Re(W)?Se(D,ie,"whitespace")(W):ie(W)):$(W)}function ie(W){return W===null||he(W)?(D.exit("codeFencedFence"),U(W)):$(W)}}}function Sy(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const au={name:"codeIndented",tokenize:Ny},Iy={partial:!0,tokenize:Ry};function Ny(e,t,r){const n=this;return i;function i(l){return e.enter("codeIndented"),Se(e,a,"linePrefix",5)(l)}function a(l){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):r(l)}function s(l){return l===null?u(l):he(l)?e.attempt(Iy,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function Ry(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Se(e,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):r(s)}}const Ly={name:"codeText",previous:Dy,resolve:Oy,tokenize:Py};function Oy(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function Dy(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Py(e,t,r){let n=0,i,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),n++,o):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),i=0,c(h)):he(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(h))}function l(h){return h===null||h===32||h===96||he(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),l)}function c(h){return h===96?(e.consume(h),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",l(h))}}class My{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Wi(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Wi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Wi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Wi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Wi(this.left,r.reverse())}}}function Wi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Ym(e){const t={};let r=-1,n,i,a,s,o,u,l;const c=new My(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,By(c,r)),r=t[r],l=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...c.get(i)[1].start},o=c.slice(i,r),o.unshift(n),c.splice(i,r-i+1,o))}}return Vt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function By(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let c,h,f=-1,d=r,g=0,y=0;const _=[y];for(;d;){for(;e.get(++i)[1]!==d;);a.push(i),d._tokenizer||(c=n.sliceStream(d),d.next||c.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(y=f+1,_.push(y),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):_.pop(),f=_.length;f--;){const E=o.slice(_[f],_[f+1]),w=a.pop();u.push([w,w+E.length-1]),e.splice(w,2,E)}for(u.reverse(),f=-1;++f<u.length;)l[g+u[f][0]]=g+u[f][1],g+=u[f][1]-u[f][0]-1;return l}const Fy={resolve:zy,tokenize:Uy},Hy={partial:!0,tokenize:$y};function zy(e){return Ym(e),e}function Uy(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):he(o)?e.check(Hy,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function $y(e,t,r){const n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Se(e,a,"linePrefix")}function a(s){if(s===null||he(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Xm(e,t,r,n,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return h;function h(E){return E===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(E),e.exit(a),f):E===null||E===32||E===41||Bs(E)?r(E):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(E))}function f(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===62?(e.exit("chunkString"),e.exit(o),f(E)):E===null||E===60||he(E)?r(E):(e.consume(E),E===92?g:d)}function g(E){return E===60||E===62||E===92?(e.consume(E),d):d(E)}function y(E){return!c&&(E===null||E===41||He(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(E)):c<l&&E===40?(e.consume(E),c++,y):E===41?(e.consume(E),c--,y):E===null||E===32||E===40||Bs(E)?r(E):(e.consume(E),E===92?_:y)}function _(E){return E===40||E===41||E===92?(e.consume(E),y):y(E)}}function Km(e,t,r,n,i,a){const s=this;let o=0,u;return l;function l(d){return e.enter(n),e.enter(i),e.consume(d),e.exit(i),e.enter(a),c}function c(d){return o>999||d===null||d===91||d===93&&!u||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):he(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||he(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),u||(u=!Re(d)),d===92?f:h)}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,h):h(d)}}function Qm(e,t,r,n,i,a){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(n),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,u):r(f)}function u(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):(e.enter(a),l(f))}function l(f){return f===s?(e.exit(a),u(s)):f===null?r(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||he(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?h:c)}function h(f){return f===s||f===92?(e.consume(f),c):c(f)}}function da(e,t){let r;return n;function n(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Re(i)?Se(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const jy={name:"definition",tokenize:qy},Vy={partial:!0,tokenize:Gy};function qy(e,t,r){const n=this;let i;return a;function a(d){return e.enter("definition"),s(d)}function s(d){return Km.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=hr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),u):r(d)}function u(d){return He(d)?da(e,l)(d):l(d)}function l(d){return Xm(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Vy,h,h)(d)}function h(d){return Re(d)?Se(e,f,"whitespace")(d):f(d)}function f(d){return d===null||he(d)?(e.exit("definition"),n.parser.defined.push(i),t(d)):r(d)}}function Gy(e,t,r){return n;function n(o){return He(o)?da(e,i)(o):r(o)}function i(o){return Qm(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Re(o)?Se(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):r(o)}}const Wy={name:"hardBreakEscape",tokenize:Yy};function Yy(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Xy={name:"headingAtx",resolve:Ky,tokenize:Qy};function Ky(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Vt(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Qy(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||He(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Re(c)?Se(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||He(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const Zy=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ah=["pre","script","style","textarea"],Jy={concrete:!0,name:"htmlFlow",resolveTo:rE,tokenize:nE},eE={partial:!0,tokenize:aE},tE={partial:!0,tokenize:iE};function rE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nE(e,t,r){const n=this;let i,a,s,o,u;return l;function l(P){return c(P)}function c(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),h}function h(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,y):P===63?(e.consume(P),i=3,n.interrupt?t:S):Ot(P)?(e.consume(P),s=String.fromCharCode(P),_):r(P)}function f(P){return P===45?(e.consume(P),i=2,d):P===91?(e.consume(P),i=5,o=0,g):Ot(P)?(e.consume(P),i=4,n.interrupt?t:S):r(P)}function d(P){return P===45?(e.consume(P),n.interrupt?t:S):r(P)}function g(P){const je="CDATA[";return P===je.charCodeAt(o++)?(e.consume(P),o===je.length?n.interrupt?t:X:g):r(P)}function y(P){return Ot(P)?(e.consume(P),s=String.fromCharCode(P),_):r(P)}function _(P){if(P===null||P===47||P===62||He(P)){const je=P===47,ke=s.toLowerCase();return!je&&!a&&Ah.includes(ke)?(i=1,n.interrupt?t(P):X(P)):Zy.includes(s.toLowerCase())?(i=6,je?(e.consume(P),E):n.interrupt?t(P):X(P)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(P):a?w(P):C(P))}return P===45||wt(P)?(e.consume(P),s+=String.fromCharCode(P),_):r(P)}function E(P){return P===62?(e.consume(P),n.interrupt?t:X):r(P)}function w(P){return Re(P)?(e.consume(P),w):F(P)}function C(P){return P===47?(e.consume(P),F):P===58||P===95||Ot(P)?(e.consume(P),M):Re(P)?(e.consume(P),C):F(P)}function M(P){return P===45||P===46||P===58||P===95||wt(P)?(e.consume(P),M):H(P)}function H(P){return P===61?(e.consume(P),D):Re(P)?(e.consume(P),H):C(P)}function D(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),u=P,U):Re(P)?(e.consume(P),D):$(P)}function U(P){return P===u?(e.consume(P),u=null,q):P===null||he(P)?r(P):(e.consume(P),U)}function $(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||He(P)?H(P):(e.consume(P),$)}function q(P){return P===47||P===62||Re(P)?C(P):r(P)}function F(P){return P===62?(e.consume(P),Y):r(P)}function Y(P){return P===null||he(P)?X(P):Re(P)?(e.consume(P),Y):r(P)}function X(P){return P===45&&i===2?(e.consume(P),re):P===60&&i===1?(e.consume(P),fe):P===62&&i===4?(e.consume(P),De):P===63&&i===3?(e.consume(P),S):P===93&&i===5?(e.consume(P),Ve):he(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(eE,Ue,de)(P)):P===null||he(P)?(e.exit("htmlFlowData"),de(P)):(e.consume(P),X)}function de(P){return e.check(tE,ie,Ue)(P)}function ie(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),W}function W(P){return P===null||he(P)?de(P):(e.enter("htmlFlowData"),X(P))}function re(P){return P===45?(e.consume(P),S):X(P)}function fe(P){return P===47?(e.consume(P),s="",Ne):X(P)}function Ne(P){if(P===62){const je=s.toLowerCase();return Ah.includes(je)?(e.consume(P),De):X(P)}return Ot(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),Ne):X(P)}function Ve(P){return P===93?(e.consume(P),S):X(P)}function S(P){return P===62?(e.consume(P),De):P===45&&i===2?(e.consume(P),S):X(P)}function De(P){return P===null||he(P)?(e.exit("htmlFlowData"),Ue(P)):(e.consume(P),De)}function Ue(P){return e.exit("htmlFlow"),t(P)}}function iE(e,t,r){const n=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function aE(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ba,t,r)}}const sE={name:"htmlText",tokenize:oE};function oE(e,t,r){const n=this;let i,a,s;return o;function o(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),u}function u(S){return S===33?(e.consume(S),l):S===47?(e.consume(S),H):S===63?(e.consume(S),C):Ot(S)?(e.consume(S),$):r(S)}function l(S){return S===45?(e.consume(S),c):S===91?(e.consume(S),a=0,g):Ot(S)?(e.consume(S),w):r(S)}function c(S){return S===45?(e.consume(S),d):r(S)}function h(S){return S===null?r(S):S===45?(e.consume(S),f):he(S)?(s=h,fe(S)):(e.consume(S),h)}function f(S){return S===45?(e.consume(S),d):h(S)}function d(S){return S===62?re(S):S===45?f(S):h(S)}function g(S){const De="CDATA[";return S===De.charCodeAt(a++)?(e.consume(S),a===De.length?y:g):r(S)}function y(S){return S===null?r(S):S===93?(e.consume(S),_):he(S)?(s=y,fe(S)):(e.consume(S),y)}function _(S){return S===93?(e.consume(S),E):y(S)}function E(S){return S===62?re(S):S===93?(e.consume(S),E):y(S)}function w(S){return S===null||S===62?re(S):he(S)?(s=w,fe(S)):(e.consume(S),w)}function C(S){return S===null?r(S):S===63?(e.consume(S),M):he(S)?(s=C,fe(S)):(e.consume(S),C)}function M(S){return S===62?re(S):C(S)}function H(S){return Ot(S)?(e.consume(S),D):r(S)}function D(S){return S===45||wt(S)?(e.consume(S),D):U(S)}function U(S){return he(S)?(s=U,fe(S)):Re(S)?(e.consume(S),U):re(S)}function $(S){return S===45||wt(S)?(e.consume(S),$):S===47||S===62||He(S)?q(S):r(S)}function q(S){return S===47?(e.consume(S),re):S===58||S===95||Ot(S)?(e.consume(S),F):he(S)?(s=q,fe(S)):Re(S)?(e.consume(S),q):re(S)}function F(S){return S===45||S===46||S===58||S===95||wt(S)?(e.consume(S),F):Y(S)}function Y(S){return S===61?(e.consume(S),X):he(S)?(s=Y,fe(S)):Re(S)?(e.consume(S),Y):q(S)}function X(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),i=S,de):he(S)?(s=X,fe(S)):Re(S)?(e.consume(S),X):(e.consume(S),ie)}function de(S){return S===i?(e.consume(S),i=void 0,W):S===null?r(S):he(S)?(s=de,fe(S)):(e.consume(S),de)}function ie(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||He(S)?q(S):(e.consume(S),ie)}function W(S){return S===47||S===62||He(S)?q(S):r(S)}function re(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function fe(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Ne}function Ne(S){return Re(S)?Se(e,Ve,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):Ve(S)}function Ve(S){return e.enter("htmlTextData"),s(S)}}const I0={name:"labelEnd",resolveAll:hE,resolveTo:dE,tokenize:fE},uE={tokenize:mE},lE={tokenize:pE},cE={tokenize:gE};function hE(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Vt(e,0,e.length,r),e}function dE(e,t){let r=e.length,n=0,i,a,s,o;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=Jt(o,e.slice(a+1,a+n+3)),o=Jt(o,[["enter",c,t]]),o=Jt(o,yo(t.parser.constructs.insideSpan.null,e.slice(a+n+4,s-3),t)),o=Jt(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=Jt(o,e.slice(s+1)),o=Jt(o,[["exit",u,t]]),Vt(e,a,e.length,o),e}function fE(e,t,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(f){return a?a._inactive?h(f):(s=n.parser.defined.includes(hr(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):r(f)}function u(f){return f===40?e.attempt(uE,c,s?c:h)(f):f===91?e.attempt(lE,c,s?l:h)(f):s?c(f):h(f)}function l(f){return e.attempt(cE,c,h)(f)}function c(f){return t(f)}function h(f){return a._balanced=!0,r(f)}}function mE(e,t,r){return n;function n(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return He(h)?da(e,a)(h):a(h)}function a(h){return h===41?c(h):Xm(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return He(h)?da(e,u)(h):c(h)}function o(h){return r(h)}function u(h){return h===34||h===39||h===40?Qm(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function l(h){return He(h)?da(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function pE(e,t,r){const n=this;return i;function i(o){return Km.call(n,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(hr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function gE(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const bE={name:"labelStartImage",resolveAll:I0.resolveAll,tokenize:yE};function yE(e,t,r){const n=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const EE={name:"labelStartLink",resolveAll:I0.resolveAll,tokenize:xE};function xE(e,t,r){const n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const su={name:"lineEnding",tokenize:_E};function _E(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const Ts={name:"thematicBreak",tokenize:TE};function TE(e,t,r){let n=0,i;return a;function a(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):n>=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):r(l)}function u(l){return l===i?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),Re(l)?Se(e,o,"whitespace")(l):o(l))}}const Ht={continuation:{tokenize:AE},exit:SE,name:"list",tokenize:kE},vE={partial:!0,tokenize:IE},wE={partial:!0,tokenize:CE};function kE(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(d){const g=n.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!n.containerState.marker||d===n.containerState.marker:cl(d)){if(n.containerState.type||(n.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Ts,r,l)(d):l(d);if(!n.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(d)}return r(d)}function u(d){return cl(d)&&++s<10?(e.consume(d),u):(!n.interrupt||s<2)&&(n.containerState.marker?d===n.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):r(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||d,e.check(Ba,n.interrupt?r:c,e.attempt(vE,f,h))}function c(d){return n.containerState.initialBlankLine=!0,a++,f(d)}function h(d){return Re(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):r(d)}function f(d){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function AE(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Ba,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Se(e,t,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!Re(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(wE,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Se(e,e.attempt(Ht,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function CE(e,t,r){const n=this;return Se(e,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):r(a)}}function SE(e){e.exit(this.containerState.type)}function IE(e,t,r){const n=this;return Se(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!Re(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Ch={name:"setextUnderline",resolveTo:NE,tokenize:RE};function NE(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function RE(e,t,r){const n=this;let i;return a;function a(l){let c=n.events.length,h;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){h=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(e.enter("setextHeadingLine"),i=l,s(l)):r(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Re(l)?Se(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const LE={tokenize:zE,partial:!0};function OE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:BE,continuation:{tokenize:FE},exit:HE}},text:{91:{name:"gfmFootnoteCall",tokenize:ME},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:DE,resolveTo:PE}}}}function DE(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const u=n.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return r(u);const l=hr(n.sliceSerialize({start:s.end,end:n.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function PE(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...o),e}function ME(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(h){if(a>999||h===93&&!s||h===null||h===91||He(h))return r(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(hr(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return He(h)||(s=!0),a++,e.consume(h),h===92?c:l}function c(h){return h===91||h===92||h===93?(e.consume(h),a++,l):l(h)}}function BE(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(g)}function c(g){if(s>999||g===93&&!o||g===null||g===91||He(g))return r(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=hr(n.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return He(g)||(o=!0),s++,e.consume(g),g===92?h:c}function h(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),Se(e,d,"gfmFootnoteDefinitionWhitespace")):r(g)}function d(g){return t(g)}}function FE(e,t,r){return e.check(Ba,t,e.attempt(LE,t,r))}function HE(e){e.exit("gfmFootnoteDefinition")}function zE(e,t,r){const n=this;return Se(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):r(a)}}function UE(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let l=u;for(;l--;)if(s[l][0]==="exit"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[l][1].end.offset-s[l][1].start.offset){s[u][1].type="strikethroughSequence",s[l][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[l][1].start),end:Object.assign({},s[u][1].end)},h={type:"strikethroughText",start:Object.assign({},s[l][1].end),end:Object.assign({},s[u][1].start)},f=[["enter",c,o],["enter",s[l][1],o],["exit",s[l][1],o],["enter",h,o]],d=o.parser.constructs.insideSpan.null;d&&Vt(f,f.length,0,yo(d,s.slice(l+1,u),o)),Vt(f,f.length,0,[["exit",h,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",c,o]]),Vt(s,l-1,u-l+3,f),u=l+f.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,o,u){const l=this.previous,c=this.events;let h=0;return f;function f(g){return l===126&&c[c.length-1][1].type!=="characterEscape"?u(g):(s.enter("strikethroughSequenceTemporary"),d(g))}function d(g){const y=_i(l);if(g===126)return h>1?u(g):(s.consume(g),h++,d);if(h<2&&!r)return u(g);const _=s.exit("strikethroughSequenceTemporary"),E=_i(g);return _._open=!E||E===2&&!!y,_._close=!y||y===2&&!!E,o(g)}}}class $E{constructor(){this.map=[]}add(t,r,n){jE(this,t,r,n)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function jE(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function VE(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function qE(){return{flow:{null:{name:"table",tokenize:GE,resolveAll:WE}}}}function GE(e,t,r){const n=this;let i=0,a=0,s;return o;function o(F){let Y=n.events.length-1;for(;Y>-1;){const ie=n.events[Y][1].type;if(ie==="lineEnding"||ie==="linePrefix")Y--;else break}const X=Y>-1?n.events[Y][1].type:null,de=X==="tableHead"||X==="tableRow"?D:u;return de===D&&n.parser.lazy[n.now().line]?r(F):de(F)}function u(F){return e.enter("tableHead"),e.enter("tableRow"),l(F)}function l(F){return F===124||(s=!0,a+=1),c(F)}function c(F){return F===null?r(F):he(F)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),d):r(F):Re(F)?Se(e,c,"whitespace")(F):(a+=1,s&&(s=!1,i+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),h(F)))}function h(F){return F===null||F===124||He(F)?(e.exit("data"),c(F)):(e.consume(F),F===92?f:h)}function f(F){return F===92||F===124?(e.consume(F),h):h(F)}function d(F){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(F):(e.enter("tableDelimiterRow"),s=!1,Re(F)?Se(e,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):g(F))}function g(F){return F===45||F===58?_(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),y):H(F)}function y(F){return Re(F)?Se(e,_,"whitespace")(F):_(F)}function _(F){return F===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),E):F===45?(a+=1,E(F)):F===null||he(F)?M(F):H(F)}function E(F){return F===45?(e.enter("tableDelimiterFiller"),w(F)):H(F)}function w(F){return F===45?(e.consume(F),w):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(F))}function C(F){return Re(F)?Se(e,M,"whitespace")(F):M(F)}function M(F){return F===124?g(F):F===null||he(F)?!s||i!==a?H(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):H(F)}function H(F){return r(F)}function D(F){return e.enter("tableRow"),U(F)}function U(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),U):F===null||he(F)?(e.exit("tableRow"),t(F)):Re(F)?Se(e,U,"whitespace")(F):(e.enter("data"),$(F))}function $(F){return F===null||F===124||He(F)?(e.exit("data"),U(F)):(e.consume(F),F===92?q:$)}function q(F){return F===92||F===124?(e.consume(F),$):$(F)}}function WE(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,h;const f=new $E;for(;++r<e.length;){const d=e[r],g=d[1];d[0]==="enter"?g.type==="tableHead"?(o=!1,u!==0&&(Sh(f,t,u,l,c),c=void 0,u=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,h=void 0,a=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(r,0,[["enter",c,t]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=Ya(f,t,a,i,void 0,h),a=[0,0,0,0]),s[2]=r)):g.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],h=Ya(f,t,a,i,void 0,h)),a=s,s=[a[1],r,0,0])):g.type==="tableHead"?(o=!0,u=r):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=r,a[1]!==0?(s[0]=s[1],h=Ya(f,t,a,i,r,h)):s[1]!==0&&(h=Ya(f,t,s,i,r,h)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&Sh(f,t,u,l,c),f.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=VE(t.events,r))}return e}function Ya(e,t,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(a.end=Object.assign({},ci(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const u=ci(t.events,r[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const l=ci(t.events,r[2]),c=ci(t.events,r[3]),h={type:o,start:Object.assign({},l),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",h,t]]),n!==2){const f=t.events[r[2]],d=t.events[r[3]];if(f[1].end=Object.assign({},d[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const g=r[2]+1,y=r[3]-r[2]-1;e.add(g,y,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},ci(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Sh(e,t,r,n,i){const a=[],s=ci(t.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),n.end=Object.assign({},s),a.push(["exit",n,t]),e.add(r+1,0,a)}function ci(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const YE={name:"tasklistCheck",tokenize:KE};function XE(){return{text:{91:YE}}}function KE(e,t,r){const n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return He(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(u)}function o(u){return he(u)?t(u):Re(u)?e.check({tokenize:QE},t,r)(u):r(u)}}function QE(e,t,r){return Se(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function ZE(e){return Mm([uy(),OE(),UE(e),qE(),XE()])}const JE={};function e9(e){const t=this,r=e||JE,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(ZE(r)),a.push(ry()),s.push(ny(r))}var t9=Object.defineProperty,r9=Object.defineProperties,n9=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,i9=Object.prototype.hasOwnProperty,a9=Object.prototype.propertyIsEnumerable,Nh=(e,t,r)=>t in e?t9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zm=(e,t)=>{for(var r in t||(t={}))i9.call(t,r)&&Nh(e,r,t[r]);if(Ih)for(var r of Ih(t))a9.call(t,r)&&Nh(e,r,t[r]);return e},Jm=(e,t)=>r9(e,n9(t)),Mt=(e,t)=>{let r=!1,n=!1;for(let i=0;i<t;i+=1){if(e[i]==="\\"&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){n=!n,i+=2;continue}!n&&e[i]==="`"&&(r=!r)}return r||n},s9=(e,t)=>{let r=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return r||n||i},o9=e=>{let t=0;for(let r=0;r<e.length;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}e[r]==="`"&&!s9(e,r)&&(t+=1)}return t},bn=(e,t)=>{let r=!1,n=!1,i=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){n=!n,a+=2;continue}if(!n&&e[a]==="`")if(r){if(i<t&&t<a)return!0;r=!1,i=-1}else r=!0,i=a}return!1},u9=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,l9=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(u9,(t,r,n,i)=>Mt(e,i)?t:`${r}\\>${n}`),c9=/(\*\*)([^*]*\*?)$/,h9=/(__)([^_]*?)$/,d9=/(\*\*\*)([^*]*?)$/,f9=/(\*)([^*]*?)$/,m9=/(_)([^_]*?)$/,p9=/(`)([^`]*?)$/,g9=/(~~)([^~]*?)$/,Qn=/^[\s_~*`]*$/,ep=/^[\s]*[-*+][\s]+$/,b9=/[\p{L}\p{N}_]/u,y9=/^```[^`\n]*```?$/,E9=/^\*{4,}$/,x9=/(__)([^_]+)_$/,_9=/(~~)([^~]+)~$/,Rh=/~~/g,yn=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:b9.test(e)},T9=(e,t)=>{let r=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")r+=1;else if(e[n]==="["&&(r-=1,r===0))return n;return-1},tp=(e,t)=>{let r=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")r+=1;else if(e[n]==="]"&&(r-=1,r===0))return n;return-1},Eo=(e,t)=>{let r=!1,n=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(n=!n,i+=1,r=!1):n||(r=!r))}return r||n},v9=(e,t)=>{for(let r=t;r<e.length;r+=1){if(e[r]===")")return!0;if(e[r]===`
19
+ `)return!1}return!1},rp=(e,t)=>{for(let r=t-1;r>=0;r-=1){if(e[r]===")")return!1;if(e[r]==="(")return r>0&&e[r-1]==="]"?v9(e,t):!1;if(e[r]===`
20
+ `)return!1}return!1},w9=(e,t)=>{for(let r=t-1;r>=0;r-=1){if(e[r]===">")return!1;if(e[r]==="<"){let n=r+1<e.length?e[r+1]:"";return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[r]===`
21
+ `)return!1}return!1},N0=(e,t,r)=>{let n=0;for(let u=t-1;u>=0;u-=1)if(e[u]===`
22
+ `){n=u+1;break}let i=e.length;for(let u=t;u<e.length;u+=1)if(e[u]===`
23
+ `){i=u;break}let a=e.substring(n,i),s=0,o=!1;for(let u of a)if(u===r)s+=1;else if(u!==" "&&u!==" "){o=!0;break}return s>=3&&!o},k9=(e,t,r,n)=>r==="\\"||e.includes("$")&&Eo(e,t)?!0:r!=="*"&&n==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(r==="*"||r&&n&&yn(r)&&yn(n)||(!r||r===" "||r===" "||r===`
24
+ `)&&(!n||n===" "||n===" "||n===`
25
+ `)),np=e=>{let t=0,r=!1,n=e.length;for(let i=0;i<n;i+=1){if(e[i]==="`"&&i+2<n&&e[i+1]==="`"&&e[i+2]==="`"){r=!r,i+=2;continue}if(r||e[i]!=="*")continue;let a=i>0?e[i-1]:"",s=i<n-1?e[i+1]:"";k9(e,i,a,s)||(t+=1)}return t},A9=(e,t,r,n)=>!!(r==="\\"||e.includes("$")&&Eo(e,t)||rp(e,t)||w9(e,t)||r==="_"||n==="_"||r&&n&&yn(r)&&yn(n)),C9=e=>{let t=0,r=!1,n=e.length;for(let i=0;i<n;i+=1){if(e[i]==="`"&&i+2<n&&e[i+1]==="`"&&e[i+2]==="`"){r=!r,i+=2;continue}if(r||e[i]!=="_")continue;let a=i>0?e[i-1]:"",s=i<n-1?e[i+1]:"";A9(e,i,a,s)||(t+=1)}return t},S9=e=>{let t=0,r=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){r>=3&&(t+=Math.floor(r/3)),r=0,n=!n,i+=2;continue}n||(e[i]==="*"?r+=1:(r>=3&&(t+=Math.floor(r/3)),r=0))}return r>=3&&(t+=Math.floor(r/3)),t},R0=e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){r=!r,n+=2;continue}r||e[n]==="*"&&n+1<e.length&&e[n+1]==="*"&&(t+=1,n+=1)}return t},Lh=e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){r=!r,n+=2;continue}r||e[n]==="_"&&n+1<e.length&&e[n+1]==="_"&&(t+=1,n+=1)}return t},I9=(e,t,r)=>{if(!t||Qn.test(t))return!0;let n=e.substring(0,r).lastIndexOf(`
26
+ `),i=n===-1?0:n+1,a=e.substring(i,r);return ep.test(a)&&t.includes(`
27
+ `)?!0:N0(e,r,"*")},N9=e=>{let t=e.match(c9);if(!t)return e;let r=t[2],n=e.lastIndexOf(t[1]);return Mt(e,n)||bn(e,n)||I9(e,r,n)?e:R0(e)%2===1?r.endsWith("*")?`${e}*`:`${e}**`:e},R9=(e,t,r)=>{if(!t||Qn.test(t))return!0;let n=e.substring(0,r).lastIndexOf(`
28
+ `),i=n===-1?0:n+1,a=e.substring(i,r);return ep.test(a)&&t.includes(`
29
+ `)?!0:N0(e,r,"_")},L9=e=>{let t=e.match(h9);if(!t){let i=e.match(x9);if(i){let a=e.lastIndexOf(i[1]);if(!(Mt(e,a)||bn(e,a))&&Lh(e)%2===1)return`${e}_`}return e}let r=t[2],n=e.lastIndexOf(t[1]);return Mt(e,n)||bn(e,n)||R9(e,r,n)?e:Lh(e)%2===1?`${e}__`:e},O9=e=>{let t=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){t=!t,r+=2;continue}if(!t&&e[r]==="*"&&e[r-1]!=="*"&&e[r+1]!=="*"&&e[r-1]!=="\\"&&!Eo(e,r)){let n=r>0?e[r-1]:"",i=r<e.length-1?e[r+1]:"";if((!n||n===" "||n===" "||n===`
30
+ `)&&(!i||i===" "||i===" "||i===`
31
+ `)||n&&i&&yn(n)&&yn(i))continue;return r}}return-1},D9=e=>{if(!e.match(f9))return e;let t=O9(e);if(t===-1||Mt(e,t)||bn(e,t))return e;let r=e.substring(t+1);return!r||Qn.test(r)?e:np(e)%2===1?`${e}*`:e},ip=e=>{let t=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){t=!t,r+=2;continue}if(!t&&e[r]==="_"&&e[r-1]!=="_"&&e[r+1]!=="_"&&e[r-1]!=="\\"&&!Eo(e,r)&&!rp(e,r)){let n=r>0?e[r-1]:"",i=r<e.length-1?e[r+1]:"";if(n&&i&&yn(n)&&yn(i))continue;return r}}return-1},P9=e=>{let t=e.length;for(;t>0&&e[t-1]===`
32
+ `;)t-=1;if(t<e.length){let r=e.slice(0,t),n=e.slice(t);return`${r}_${n}`}return`${e}_`},M9=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(R0(t)%2!==1)return null;let r=t.indexOf("**"),n=ip(t);return r!==-1&&n!==-1&&r<n?`${t}_**`:null},B9=e=>{if(!e.match(m9))return e;let t=ip(e);if(t===-1)return e;let r=e.substring(t+1);if(!r||Qn.test(r)||Mt(e,t)||bn(e,t))return e;if(C9(e)%2===1){let n=M9(e);return n!==null?n:P9(e)}return e},F9=e=>{let t=R0(e),r=np(e);return t%2===0&&r%2===0},H9=(e,t,r)=>!t||Qn.test(t)||Mt(e,r)||bn(e,r)?!0:N0(e,r,"*"),z9=e=>{if(E9.test(e))return e;let t=e.match(d9);if(!t)return e;let r=t[2],n=e.lastIndexOf(t[1]);return H9(e,r,n)?e:S9(e)%2===1?F9(e)?e:`${e}***`:e},U9=/<[a-zA-Z/][^>]*$/,$9=e=>{let t=e.match(U9);return!t||t.index===void 0||Mt(e,t.index)?e:e.substring(0,t.index).trimEnd()},j9=e=>!e.match(y9)||e.includes(`
33
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,V9=e=>(e.match(/```/g)||[]).length%2===1,q9=e=>{let t=j9(e);if(t!==null)return t;let r=e.match(p9);if(r&&!V9(e)){let n=r[2];if(!n||Qn.test(n))return e;if(o9(e)%2===1)return`${e}\``}return e},ap=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",G9=e=>{let t=0,r=!1;for(let n=0;n<e.length-1;n+=1)e[n]==="`"&&!ap(e,n)&&(r=!r),!r&&e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},W9=e=>{let t=0,r=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"){n+=1;continue}if(e[n]==="`"&&!ap(e,n)){r=!r;continue}!r&&e[n]==="$"&&(n+1<e.length&&e[n+1]==="$"?n+=1:t+=1)}return t},Y9=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
34
+ `,t)!==-1&&!e.endsWith(`
35
+ `)?`${e}
36
+ $$`:`${e}$$`},X9=e=>G9(e)%2===0?e:Y9(e),K9=e=>W9(e)%2===1?`${e}$`:e,Q9=(e,t,r)=>{if(e.substring(t+2).includes(")"))return null;let n=T9(e,t);if(n===-1||Mt(e,n))return null;let i=n>0&&e[n-1]==="!",a=i?n-1:n,s=e.substring(0,a);if(i)return s;let o=e.substring(n+1,t);return r==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},Oh=(e,t)=>{for(let r=0;r<t;r++)if(e[r]==="["&&!Mt(e,r)){if(r>0&&e[r-1]==="!")continue;let n=tp(e,r);if(n===-1)return r;if(n+1<e.length&&e[n+1]==="("){let i=e.indexOf(")",n+2);i!==-1&&(r=i)}}return t},Z9=(e,t,r)=>{let n=t>0&&e[t-1]==="!",i=n?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,i);if(n)return a;if(r==="text-only"){let s=Oh(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(tp(e,t)===-1){let a=e.substring(0,i);if(n)return a;if(r==="text-only"){let s=Oh(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},sp=(e,t="protocol")=>{let r=e.lastIndexOf("](");if(r!==-1&&!Mt(e,r)){let n=Q9(e,r,t);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!Mt(e,n)){let i=Z9(e,n,t);if(i!==null)return i}return e},J9=/^-{1,2}$/,ex=/^[\s]*-{1,2}[\s]+$/,tx=/^={1,2}$/,rx=/^[\s]*={1,2}[\s]+$/,nx=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
37
+ `);if(t===-1)return e;let r=e.substring(t+1),n=e.substring(0,t),i=r.trim();if(J9.test(i)&&!r.match(ex)){let a=n.split(`
38
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(tx.test(i)&&!r.match(rx)){let a=n.split(`
39
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},ix=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),ax=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(ix,(t,r)=>Mt(e,r)?t:"\\~"),sx=e=>{var t,r;let n=e.match(g9);if(n){let i=n[2];if(!i||Qn.test(i))return e;let a=e.lastIndexOf(n[1]);if(Mt(e,a)||bn(e,a))return e;if(((t=e.match(Rh))==null?void 0:t.length)%2===1)return`${e}~~`}else{let i=e.match(_9);if(i){let a=e.lastIndexOf(i[0].slice(0,2));if(Mt(e,a)||bn(e,a))return e;if(((r=e.match(Rh))==null?void 0:r.length)%2===1)return`${e}~`}}return e},ou=e=>e!==!1,ox=e=>e===!0,Rt={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},ux=[{handler:{name:"singleTilde",handle:ax,priority:Rt.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:l9,priority:Rt.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:$9,priority:Rt.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:nx,priority:Rt.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:sp,priority:Rt.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:z9,priority:Rt.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:N9,priority:Rt.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:L9,priority:Rt.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:D9,priority:Rt.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:B9,priority:Rt.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:q9,priority:Rt.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:sx,priority:Rt.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:X9,priority:Rt.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:K9,priority:Rt.INLINE_KATEX},optionKey:"inlineKatex"}],lx=e=>{var t;let r=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return ux.filter(({handler:n,optionKey:i})=>n.name==="links"?ou(e==null?void 0:e.links)||ou(e==null?void 0:e.images):n.name==="inlineKatex"?ox(e==null?void 0:e.inlineKatex):ou(e==null?void 0:e[i])).map(({handler:n,earlyReturn:i})=>n.name==="links"?{handler:Jm(Zm({},n),{handle:a=>sp(a,r)}),earlyReturn:r==="protocol"?i:void 0}:{handler:n,earlyReturn:i})},cx=(e,t)=>{var r;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=lx(t),a=((r=t==null?void 0:t.handlers)!=null?r:[]).map(o=>{var u;return{handler:Jm(Zm({},o),{priority:(u=o.priority)!=null?u:Rt.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((o,u)=>{var l,c;return((l=o.handler.priority)!=null?l:0)-((c=u.handler.priority)!=null?c:0)});for(let{handler:o,earlyReturn:u}of s)if(n=o.handle(n),u!=null&&u(n))return n;return n},hx=cx;function op(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=op(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function up(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=op(e))&&(n&&(n+=" "),n+=t);return n}const dx=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},fx=(e,t)=>({classGroupId:e,validator:t}),lp=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Hs="-",Dh=[],mx="arbitrary..",px=e=>{const t=bx(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return gx(s);const o=s.split(Hs),u=o[0]===""&&o.length>1?1:0;return cp(o,u,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const u=n[s],l=r[s];return u?l?dx(l,u):u:l||Dh}return r[s]||Dh}}},cp=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const l=cp(e,t+1,a);if(l)return l}const s=r.validators;if(s===null)return;const o=t===0?e.join(Hs):e.slice(t).join(Hs),u=s.length;for(let l=0;l<u;l++){const c=s[l];if(c.validator(o))return c.classGroupId}},gx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?mx+n:void 0})(),bx=e=>{const{theme:t,classGroups:r}=e;return yx(r,t)},yx=(e,t)=>{const r=lp();for(const n in e){const i=e[n];L0(i,r,n,t)}return r},L0=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];Ex(s,t,r,n)}},Ex=(e,t,r,n)=>{if(typeof e=="string"){xx(e,t,r);return}if(typeof e=="function"){_x(e,t,r,n);return}Tx(e,t,r,n)},xx=(e,t,r)=>{const n=e===""?t:hp(t,e);n.classGroupId=r},_x=(e,t,r,n)=>{if(vx(e)){L0(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(fx(r,e))},Tx=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[o,u]=i[s];L0(u,hp(t,o),r,n)}},hp=(e,t)=>{let r=e;const n=t.split(Hs),i=n.length;for(let a=0;a<i;a++){const s=n[a];let o=r.nextPart.get(s);o||(o=lp(),r.nextPart.set(s,o)),r=o}return r},vx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,s)=>{r[a]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=n[a])!==void 0)return i(a,s),s},set(a,s){a in r?r[a]=s:i(a,s)}}},fl="!",Ph=":",kx=[],Mh=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),Ax=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let s=0,o=0,u=0,l;const c=i.length;for(let y=0;y<c;y++){const _=i[y];if(s===0&&o===0){if(_===Ph){a.push(i.slice(u,y)),u=y+1;continue}if(_==="/"){l=y;continue}}_==="["?s++:_==="]"?s--:_==="("?o++:_===")"&&o--}const h=a.length===0?i:i.slice(u);let f=h,d=!1;h.endsWith(fl)?(f=h.slice(0,-1),d=!0):h.startsWith(fl)&&(f=h.slice(1),d=!0);const g=l&&l>u?l-u:void 0;return Mh(a,d,f,g)};if(t){const i=t+Ph,a=n;n=s=>s.startsWith(i)?a(s.slice(i.length)):Mh(kx,!1,s,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},Cx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const s=r[a],o=s[0]==="[",u=t.has(s);o||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(s)):i.push(s)}return i.length>0&&(i.sort(),n.push(...i)),n}},Sx=e=>({cache:wx(e.cacheSize),parseClassName:Ax(e),sortModifiers:Cx(e),...px(e)}),Ix=/\s+/,Nx=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],o=e.trim().split(Ix);let u="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{isExternal:h,modifiers:f,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:y}=r(c);if(h){u=c+(u.length>0?" "+u:u);continue}let _=!!y,E=n(_?g.substring(0,y):g);if(!E){if(!_){u=c+(u.length>0?" "+u:u);continue}if(E=n(g),!E){u=c+(u.length>0?" "+u:u);continue}_=!1}const w=f.length===0?"":f.length===1?f[0]:a(f).join(":"),C=d?w+fl:w,M=C+E;if(s.indexOf(M)>-1)continue;s.push(M);const H=i(E,_);for(let D=0;D<H.length;++D){const U=H[D];s.push(C+U)}u=c+(u.length>0?" "+u:u)}return u},Rx=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=dp(r))&&(i&&(i+=" "),i+=n);return i},dp=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=dp(e[n]))&&(r&&(r+=" "),r+=t);return r},Lx=(e,...t)=>{let r,n,i,a;const s=u=>{const l=t.reduce((c,h)=>h(c),e());return r=Sx(l),n=r.cache.get,i=r.cache.set,a=o,o(u)},o=u=>{const l=n(u);if(l)return l;const c=Nx(u,r);return i(u,c),c};return a=s,(...u)=>a(Rx(...u))},Ox=[],lt=e=>{const t=r=>r[e]||Ox;return t.isThemeGetter=!0,t},fp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,mp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Px=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>Dx.test(e),Ae=e=>!!e&&!Number.isNaN(Number(e)),tn=e=>!!e&&Number.isInteger(Number(e)),uu=e=>e.endsWith("%")&&Ae(e.slice(0,-1)),Pr=e=>Px.test(e),pp=()=>!0,zx=e=>Mx.test(e)&&!Bx.test(e),O0=()=>!1,Ux=e=>Fx.test(e),$x=e=>Hx.test(e),jx=e=>!le(e)&&!ce(e),Vx=e=>wn(e,yp,O0),le=e=>fp.test(e),Nn=e=>wn(e,Ep,zx),Bh=e=>wn(e,Zx,Ae),qx=e=>wn(e,_p,pp),Gx=e=>wn(e,xp,O0),Fh=e=>wn(e,gp,O0),Wx=e=>wn(e,bp,$x),Xa=e=>wn(e,Tp,Ux),ce=e=>mp.test(e),Yi=e=>Zn(e,Ep),Yx=e=>Zn(e,xp),Hh=e=>Zn(e,gp),Xx=e=>Zn(e,yp),Kx=e=>Zn(e,bp),Ka=e=>Zn(e,Tp,!0),Qx=e=>Zn(e,_p,!0),wn=(e,t,r)=>{const n=fp.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Zn=(e,t,r=!1)=>{const n=mp.exec(e);return n?n[1]?t(n[1]):r:!1},gp=e=>e==="position"||e==="percentage",bp=e=>e==="image"||e==="url",yp=e=>e==="length"||e==="size"||e==="bg-size",Ep=e=>e==="length",Zx=e=>e==="number",xp=e=>e==="family-name",_p=e=>e==="number"||e==="weight",Tp=e=>e==="shadow",Jx=()=>{const e=lt("color"),t=lt("font"),r=lt("text"),n=lt("font-weight"),i=lt("tracking"),a=lt("leading"),s=lt("breakpoint"),o=lt("container"),u=lt("spacing"),l=lt("radius"),c=lt("shadow"),h=lt("inset-shadow"),f=lt("text-shadow"),d=lt("drop-shadow"),g=lt("blur"),y=lt("perspective"),_=lt("aspect"),E=lt("ease"),w=lt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...M(),ce,le],D=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],$=()=>[ce,le,u],q=()=>[en,"full","auto",...$()],F=()=>[tn,"none","subgrid",ce,le],Y=()=>["auto",{span:["full",tn,ce,le]},tn,ce,le],X=()=>[tn,"auto",ce,le],de=()=>["auto","min","max","fr",ce,le],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...$()],fe=()=>[en,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],Ne=()=>[en,"screen","full","dvw","lvw","svw","min","max","fit",...$()],Ve=()=>[en,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],S=()=>[e,ce,le],De=()=>[...M(),Hh,Fh,{position:[ce,le]}],Ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",Xx,Vx,{size:[ce,le]}],je=()=>[uu,Yi,Nn],ke=()=>["","none","full",l,ce,le],ve=()=>["",Ae,Yi,Nn],Ke=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[Ae,uu,Hh,Fh],pt=()=>["","none",g,ce,le],xt=()=>["none",Ae,ce,le],St=()=>["none",Ae,ce,le],ot=()=>[Ae,ce,le],_t=()=>[en,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pr],breakpoint:[Pr],color:[pp],container:[Pr],"drop-shadow":[Pr],ease:["in","out","in-out"],font:[jx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pr],shadow:[Pr],spacing:["px",Ae],text:[Pr],"text-shadow":[Pr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",en,le,ce,_]}],container:["container"],columns:[{columns:[Ae,le,ce,o]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:H()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{"inset-s":q(),start:q()}],end:[{"inset-e":q(),end:q()}],"inset-bs":[{"inset-bs":q()}],"inset-be":[{"inset-be":q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[tn,"auto",ce,le]}],basis:[{basis:[en,"full","auto",o,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,en,"auto","initial","none",le]}],grow:[{grow:["",Ae,ce,le]}],shrink:[{shrink:["",Ae,ce,le]}],order:[{order:[tn,"first","last","none",ce,le]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...Ne()]}],"min-inline-size":[{"min-inline":["auto",...Ne()]}],"max-inline-size":[{"max-inline":["none",...Ne()]}],"block-size":[{block:["auto",...Ve()]}],"min-block-size":[{"min-block":["auto",...Ve()]}],"max-block-size":[{"max-block":["none",...Ve()]}],w:[{w:[o,"screen",...fe()]}],"min-w":[{"min-w":[o,"screen","none",...fe()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,Yi,Nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Qx,qx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uu,le]}],"font-family":[{font:[Yx,Gx,t]}],"font-features":[{"font-features":[le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ce,le]}],"line-clamp":[{"line-clamp":[Ae,"none",ce,Bh]}],leading:[{leading:[a,...$()]}],"list-image":[{"list-image":["none",ce,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",ce,Nn]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Ae,"auto",ce,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:De()}],"bg-repeat":[{bg:Ue()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tn,ce,le],radial:["",ce,le],conic:[tn,ce,le]},Kx,Wx]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:je()}],"gradient-via-pos":[{via:je()}],"gradient-to-pos":[{to:je()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:ke()}],"rounded-s":[{"rounded-s":ke()}],"rounded-e":[{"rounded-e":ke()}],"rounded-t":[{"rounded-t":ke()}],"rounded-r":[{"rounded-r":ke()}],"rounded-b":[{"rounded-b":ke()}],"rounded-l":[{"rounded-l":ke()}],"rounded-ss":[{"rounded-ss":ke()}],"rounded-se":[{"rounded-se":ke()}],"rounded-ee":[{"rounded-ee":ke()}],"rounded-es":[{"rounded-es":ke()}],"rounded-tl":[{"rounded-tl":ke()}],"rounded-tr":[{"rounded-tr":ke()}],"rounded-br":[{"rounded-br":ke()}],"rounded-bl":[{"rounded-bl":ke()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-bs":[{"border-bs":ve()}],"border-w-be":[{"border-be":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ke(),"hidden","none"]}],"divide-style":[{divide:[...Ke(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-bs":[{"border-bs":S()}],"border-color-be":[{"border-be":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...Ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,ce,le]}],"outline-w":[{outline:["",Ae,Yi,Nn]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",c,Ka,Xa]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",h,Ka,Xa]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Ae,Nn]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",f,Ka,Xa]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Ae,ce,le]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[ce,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:De()}],"mask-repeat":[{mask:Ue()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,le]}],filter:[{filter:["","none",ce,le]}],blur:[{blur:pt()}],brightness:[{brightness:[Ae,ce,le]}],contrast:[{contrast:[Ae,ce,le]}],"drop-shadow":[{"drop-shadow":["","none",d,Ka,Xa]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Ae,ce,le]}],"hue-rotate":[{"hue-rotate":[Ae,ce,le]}],invert:[{invert:["",Ae,ce,le]}],saturate:[{saturate:[Ae,ce,le]}],sepia:[{sepia:["",Ae,ce,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,le]}],"backdrop-blur":[{"backdrop-blur":pt()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,ce,le]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,ce,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,ce,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,ce,le]}],"backdrop-invert":[{"backdrop-invert":["",Ae,ce,le]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,ce,le]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,ce,le]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,ce,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",ce,le]}],ease:[{ease:["linear","initial",E,ce,le]}],delay:[{delay:[Ae,ce,le]}],animate:[{animate:["none",w,ce,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ce,le]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:xt()}],"rotate-x":[{"rotate-x":xt()}],"rotate-y":[{"rotate-y":xt()}],"rotate-z":[{"rotate-z":xt()}],scale:[{scale:St()}],"scale-x":[{"scale-x":St()}],"scale-y":[{"scale-y":St()}],"scale-z":[{"scale-z":St()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[ce,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_t()}],"translate-x":[{"translate-x":_t()}],"translate-y":[{"translate-y":_t()}],"translate-z":[{"translate-z":_t()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,le]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Ae,Yi,Nn,Bh]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vp=Lx(Jx),e_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,t_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,r_={};function zh(e,t){return(r_.jsx?t_:e_).test(e)}const n_=/[ \t\n\f\r]/g;function xo(e){return typeof e=="object"?e.type==="text"?Uh(e.value):!1:Uh(e)}function Uh(e){return e.replace(n_,"")===""}var ai={},lu,$h;function i_(){if($h)return lu;$h=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
40
+ `,l="/",c="*",h="",f="comment",d="declaration";function g(_,E){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];E=E||{};var w=1,C=1;function M(ie){var W=ie.match(t);W&&(w+=W.length);var re=ie.lastIndexOf(u);C=~re?ie.length-re:C+ie.length}function H(){var ie={line:w,column:C};return function(W){return W.position=new D(ie),q(),W}}function D(ie){this.start=ie,this.end={line:w,column:C},this.source=E.source}D.prototype.content=_;function U(ie){var W=new Error(E.source+":"+w+":"+C+": "+ie);if(W.reason=ie,W.filename=E.source,W.line=w,W.column=C,W.source=_,!E.silent)throw W}function $(ie){var W=ie.exec(_);if(W){var re=W[0];return M(re),_=_.slice(re.length),W}}function q(){$(r)}function F(ie){var W;for(ie=ie||[];W=Y();)W!==!1&&ie.push(W);return ie}function Y(){var ie=H();if(!(l!=_.charAt(0)||c!=_.charAt(1))){for(var W=2;h!=_.charAt(W)&&(c!=_.charAt(W)||l!=_.charAt(W+1));)++W;if(W+=2,h===_.charAt(W-1))return U("End of comment missing");var re=_.slice(2,W-2);return C+=2,M(re),_=_.slice(W),C+=2,ie({type:f,comment:re})}}function X(){var ie=H(),W=$(n);if(W){if(Y(),!$(i))return U("property missing ':'");var re=$(a),fe=ie({type:d,property:y(W[0].replace(e,h)),value:re?y(re[0].replace(e,h)):h});return $(s),fe}}function de(){var ie=[];F(ie);for(var W;W=X();)W!==!1&&(ie.push(W),F(ie));return ie}return q(),de()}function y(_){return _?_.replace(o,h):h}return lu=g,lu}var jh;function a_(){if(jh)return ai;jh=1;var e=ai&&ai.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=r;const t=e(i_());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const s=(0,t.default)(n),o=typeof i=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:c}=u;o?i(l,c,u):c&&(a=a||{},a[l]=c)}),a}return ai}var Xi={},Vh;function s_(){if(Vh)return Xi;Vh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||r.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(n,o),l.replace(t,s))};return Xi.camelCase=u,Xi}var Ki,qh;function o_(){if(qh)return Ki;qh=1;var e=Ki&&Ki.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(a_()),r=s_();function n(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,r.camelCase)(o,a)]=u)}),s}return n.default=n,Ki=n,Ki}var u_=o_();const l_=u1(u_);function fa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gh(e.position):"start"in e||"end"in e?Gh(e):"line"in e||"column"in e?ml(e):""}function ml(e){return Wh(e&&e.line)+":"+Wh(e&&e.column)}function Gh(e){return ml(e&&e.start)+"-"+ml(e&&e.end)}function Wh(e){return e&&typeof e=="number"?e:1}class Ct extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?a.ruleId=n:(a.source=n.slice(0,u),a.ruleId=n.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=fa(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ct.prototype.file="";Ct.prototype.name="";Ct.prototype.reason="";Ct.prototype.message="";Ct.prototype.stack="";Ct.prototype.column=void 0;Ct.prototype.line=void 0;Ct.prototype.ancestors=void 0;Ct.prototype.cause=void 0;Ct.prototype.fatal=void 0;Ct.prototype.place=void 0;Ct.prototype.ruleId=void 0;Ct.prototype.source=void 0;const D0={}.hasOwnProperty,c_=new Map,h_=/[A-Z]/g,d_=new Set(["table","tbody","thead","tfoot","tr"]),f_=new Set(["td","th"]),wp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function m_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=T_(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=__(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kr:Ci,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kp(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kp(e,t,r){if(t.type==="element")return p_(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return g_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return y_(e,t,r);if(t.type==="mdxjsEsm")return b_(e,t);if(t.type==="root")return E_(e,t,r);if(t.type==="text")return x_(e,t)}function p_(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=kr,e.schema=i),e.ancestors.push(t);const a=Cp(e,t.tagName,!1),s=v_(e,t);let o=M0(e,t);return d_.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!xo(u):!0})),Ap(e,s,a,t),P0(s,o),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function g_(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ta(e,t.position)}function b_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ta(e,t.position)}function y_(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=kr,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Cp(e,t.name,!0),s=w_(e,t),o=M0(e,t);return Ap(e,s,a,t),P0(s,o),e.ancestors.pop(),e.schema=n,e.create(t,a,s,r)}function E_(e,t,r){const n={};return P0(n,M0(e,t)),e.create(t,e.Fragment,n,r)}function x_(e,t){return t.value}function Ap(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function P0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function __(e,t,r){return n;function n(i,a,s,o){const l=Array.isArray(s.children)?r:t;return o?l(a,s,o):l(a,s)}}function T_(e,t){return r;function r(n,i,a,s){const o=Array.isArray(a.children),u=Ar(n);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function v_(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&D0.call(t.properties,i)){const a=k_(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&f_.has(t.tagName)?n=o:r[s]=o}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function w_(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Ta(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const o=n.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Ta(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function M0(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:c_;for(;++n<t.children.length;){const a=t.children[n];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const l=i.get(u)||0;s=u+"-"+l,i.set(u,l+1)}}const o=kp(e,a,s);o!==void 0&&r.push(o)}return r}function k_(e,t,r){const n=Oa(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?p0(r):g0(r)),n.property==="style"){let i=typeof r=="object"?r:A_(e,String(r));return e.stylePropertyNameCase==="css"&&(i=C_(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?eb[n.property]||n.property:n.attribute,r]}}function A_(e,t){try{return l_(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new Ct("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=wp+"#cannot-parse-style-attribute",i}}function Cp(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=zh(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}n=s}else n=zh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return D0.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Ta(e)}function Ta(e,t){const r=new Ct("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=wp+"#cannot-handle-mdx-estrees-without-createevaluater",r}function C_(e){const t={};let r;for(r in e)D0.call(e,r)&&(t[S_(r)]=e[r]);return t}function S_(e){let t=e.replace(h_,I_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function I_(e){return"-"+e.toLowerCase()}const cu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},N_={tokenize:R_};function R_(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return he(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const L_={tokenize:O_},Yh={tokenize:D_};function O_(e){const t=this,r=[];let n=0,i,a,s;return o;function o(C){if(n<r.length){const M=r[n];return t.containerState=M[1],e.attempt(M[0].continuation,u,l)(C)}return l(C)}function u(C){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const M=t.events.length;let H=M,D;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){D=t.events[H][1].end;break}E(n);let U=M;for(;U<t.events.length;)t.events[U][1].end={...D},U++;return Vt(t.events,H+1,0,t.events.slice(M)),t.events.length=U,l(C)}return o(C)}function l(C){if(n===r.length){if(!i)return f(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yh,c,h)(C)}function c(C){return i&&w(),E(n),f(C)}function h(C){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,g(C)}function f(C){return t.containerState={},e.attempt(Yh,d,g)(C)}function d(C){return n++,r.push([t.currentConstruct,t.containerState]),f(C)}function g(C){if(C===null){i&&w(),E(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),y(C)}function y(C){if(C===null){_(e.exit("chunkFlow"),!0),E(0),e.consume(C);return}return he(C)?(e.consume(C),_(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(C),y)}function _(C,M){const H=t.sliceStream(C);if(M&&H.push(null),C.previous=a,a&&(a.next=C),a=C,i.defineSkip(C.start),i.write(H),t.parser.lazy[C.start.line]){let D=i.events.length;for(;D--;)if(i.events[D][1].start.offset<s&&(!i.events[D][1].end||i.events[D][1].end.offset>s))return;const U=t.events.length;let $=U,q,F;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(q){F=t.events[$][1].end;break}q=!0}for(E(n),D=U;D<t.events.length;)t.events[D][1].end={...F},D++;Vt(t.events,$+1,0,t.events.slice(U)),t.events.length=D}}function E(C){let M=r.length;for(;M-- >C;){const H=r[M];t.containerState=H[1],H[0].exit.call(t,e)}r.length=C}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function D_(e,t,r){return Se(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const P_={tokenize:M_};function M_(e){const t=this,r=e.attempt(Ba,n,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Fy,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const B_={resolveAll:Ip()},F_=Sp("string"),H_=Sp("text");function Sp(e){return{resolveAll:Ip(e==="text"?z_:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),u}function u(c){return l(c)?(r.exit("data"),a(c)):(r.consume(c),u)}function l(c){if(c===null)return!0;const h=i[c];let f=-1;if(h)for(;++f<h.length;){const d=h[f];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}function Ip(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function z_(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,s=-1,o=0,u;for(;a--;){const l=i[a];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)u=!0,o++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const l={type:r===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...l.start},n.start.offset===n.end.offset?Object.assign(n,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}const U_={42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:qm},$_={91:jy},j_={[-2]:au,[-1]:au,32:au},V_={35:Xy,42:Ts,45:[Ch,Ts],60:Jy,61:Ch,95:Ts,96:kh,126:kh},q_={38:Wm,92:Gm},G_={[-5]:su,[-4]:su,[-3]:su,33:bE,38:Wm,42:dl,60:[Ey,sE],91:EE,92:[Wy,Gm],93:I0,95:dl,96:Ly},W_={null:[dl,B_]},Y_={null:[42,95]},X_={null:[]},K_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Y_,contentInitial:$_,disable:X_,document:U_,flow:V_,flowInitial:j_,insideSpan:W_,string:q_,text:G_},Symbol.toStringTag,{value:"Module"}));function Q_(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],o=[];const u={attempt:U(H),check:U(D),consume:w,enter:C,exit:M,interrupt:U(D,{interrupt:!0})},l={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:d,write:h};let c=t.tokenize.call(l,u);return t.resolveAll&&a.push(t),l;function h(Y){return s=Jt(s,Y),_(),s[s.length-1]!==null?[]:($(t,0),l.events=yo(a,l.events,l),l.events)}function f(Y,X){return J_(d(Y),X)}function d(Y){return Z_(s,Y)}function g(){const{_bufferIndex:Y,_index:X,line:de,column:ie,offset:W}=n;return{_bufferIndex:Y,_index:X,line:de,column:ie,offset:W}}function y(Y){i[Y.line]=Y.column,F()}function _(){let Y;for(;n._index<s.length;){const X=s[n._index];if(typeof X=="string")for(Y=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===Y&&n._bufferIndex<X.length;)E(X.charCodeAt(n._bufferIndex));else E(X)}}function E(Y){c=c(Y)}function w(Y){he(Y)?(n.line++,n.column=1,n.offset+=Y===-3?2:1,F()):Y!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),l.previous=Y}function C(Y,X){const de=X||{};return de.type=Y,de.start=g(),l.events.push(["enter",de,l]),o.push(de),de}function M(Y){const X=o.pop();return X.end=g(),l.events.push(["exit",X,l]),X}function H(Y,X){$(Y,X.from)}function D(Y,X){X.restore()}function U(Y,X){return de;function de(ie,W,re){let fe,Ne,Ve,S;return Array.isArray(ie)?Ue(ie):"tokenize"in ie?Ue([ie]):De(ie);function De(ve){return Ke;function Ke(Je){const Ee=Je!==null&&ve[Je],pt=Je!==null&&ve.null,xt=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(pt)?pt:pt?[pt]:[]];return Ue(xt)(Je)}}function Ue(ve){return fe=ve,Ne=0,ve.length===0?re:P(ve[Ne])}function P(ve){return Ke;function Ke(Je){return S=q(),Ve=ve,ve.partial||(l.currentConstruct=ve),ve.name&&l.parser.constructs.disable.null.includes(ve.name)?ke():ve.tokenize.call(X?Object.assign(Object.create(l),X):l,u,je,ke)(Je)}}function je(ve){return Y(Ve,S),W}function ke(ve){return S.restore(),++Ne<fe.length?P(fe[Ne]):re}}}function $(Y,X){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&Vt(l.events,X,l.events.length-X,Y.resolve(l.events.slice(X),l)),Y.resolveTo&&(l.events=Y.resolveTo(l.events,l))}function q(){const Y=g(),X=l.previous,de=l.currentConstruct,ie=l.events.length,W=Array.from(o);return{from:ie,restore:re};function re(){n=Y,l.previous=X,l.currentConstruct=de,l.events.length=ie,o=W,F()}}function F(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Z_(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,a)];else{if(s=e.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function J_(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
41
+ `;break}case-3:{s=`\r
42
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function eT(e){const n={constructs:Mm([K_,...(e||{}).extensions||[]]),content:i(N_),defined:[],document:i(L_),flow:i(P_),lazy:{},string:i(F_),text:i(H_)};return n;function i(a){return s;function s(o){return Q_(n,a,o)}}}function tT(e){for(;!Ym(e););return e}const Xh=/[\0\t\n\r]/g;function rT(){let e=1,t="",r=!0,n;return i;function i(a,s,o){const u=[];let l,c,h,f,d;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(Xh.lastIndex=h,l=Xh.exec(a),f=l&&l.index!==void 0?l.index:a.length,d=a.charCodeAt(f),!l){t=a.slice(h);break}if(d===10&&h===f&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),h<f&&(u.push(a.slice(h,f)),e+=f-h),d){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}h=f+1}return o&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Np={}.hasOwnProperty;function nT(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),iT(r)(tT(eT(r).document().write(rT()(e,t,!0))))}function iT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Le),autolinkProtocol:q,autolinkEmail:q,atxHeading:a(Rr),blockQuote:a(pt),characterEscape:q,characterReference:q,codeFenced:a(xt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(xt,s),codeText:a(St,s),codeTextData:q,data:q,codeFlowValue:q,definition:a(ot),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(_t),hardBreakEscape:a(pr),hardBreakTrailing:a(pr),htmlFlow:a(Jr,s),htmlFlowData:q,htmlText:a(Jr,s),htmlTextData:q,image:a(xe),label:s,link:a(Le),listItem:a(Kt),listItemValue:f,listOrdered:a(ut,h),listUnordered:a(ut),paragraph:a(Lr),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Rr),strong:a(Ui),thematicBreak:a(qa)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:Ee,autolinkProtocol:Je,blockQuote:u(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:ve,characterReference:Ke,codeFenced:u(_),codeFencedFence:y,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:F,codeIndented:u(E),codeText:u(W),codeTextData:F,data:F,definition:u(),definitionDestinationString:M,definitionLabelString:w,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(X),hardBreakTrailing:u(X),htmlFlow:u(de),htmlFlowData:F,htmlText:u(ie),htmlTextData:F,image:u(fe),label:Ve,labelText:Ne,lineEnding:Y,link:u(re),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:je,resourceDestinationString:S,resourceTitleString:De,resource:Ue,setextHeading:u($),setextHeadingLineSequence:U,setextHeadingText:D,strong:u(),thematicBreak:u()}};Rp(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(G){let se={type:"root",children:[]};const pe={stack:[se],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:c,data:r},we=[];let Fe=-1;for(;++Fe<G.length;)if(G[Fe][1].type==="listOrdered"||G[Fe][1].type==="listUnordered")if(G[Fe][0]==="enter")we.push(Fe);else{const or=we.pop();Fe=i(G,or,Fe)}for(Fe=-1;++Fe<G.length;){const or=t[G[Fe][0]];Np.call(or,G[Fe][1].type)&&or[G[Fe][1].type].call(Object.assign({sliceSerialize:G[Fe][2].sliceSerialize},pe),G[Fe][1])}if(pe.tokenStack.length>0){const or=pe.tokenStack[pe.tokenStack.length-1];(or[1]||Kh).call(pe,void 0,or[0])}for(se.position={start:rn(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:rn(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Fe=-1;++Fe<t.transforms.length;)se=t.transforms[Fe](se)||se;return se}function i(G,se,pe){let we=se-1,Fe=-1,or=!1,An,Or,$i,ji;for(;++we<=pe;){const $t=G[we];switch($t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$t[0]==="enter"?Fe++:Fe--,ji=void 0;break}case"lineEndingBlank":{$t[0]==="enter"&&(An&&!ji&&!Fe&&!$i&&($i=we),ji=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ji=void 0}if(!Fe&&$t[0]==="enter"&&$t[1].type==="listItemPrefix"||Fe===-1&&$t[0]==="exit"&&($t[1].type==="listUnordered"||$t[1].type==="listOrdered")){if(An){let ni=we;for(Or=void 0;ni--;){const Dr=G[ni];if(Dr[1].type==="lineEnding"||Dr[1].type==="lineEndingBlank"){if(Dr[0]==="exit")continue;Or&&(G[Or][1].type="lineEndingBlank",or=!0),Dr[1].type="lineEnding",Or=ni}else if(!(Dr[1].type==="linePrefix"||Dr[1].type==="blockQuotePrefix"||Dr[1].type==="blockQuotePrefixWhitespace"||Dr[1].type==="blockQuoteMarker"||Dr[1].type==="listItemIndent"))break}$i&&(!Or||$i<Or)&&(An._spread=!0),An.end=Object.assign({},Or?G[Or][1].start:$t[1].end),G.splice(Or||we,0,["exit",An,$t[2]]),we++,pe++}if($t[1].type==="listItemPrefix"){const ni={type:"listItem",_spread:!1,start:Object.assign({},$t[1].start),end:void 0};An=ni,G.splice(we,0,["enter",ni,$t[2]]),we++,pe++,$i=void 0,ji=!0}}}return G[se][1]._spread=or,pe}function a(G,se){return pe;function pe(we){o.call(this,G(we),we),se&&se.call(this,we)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(G,se,pe){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([se,pe||void 0]),G.position={start:rn(se.start),end:void 0}}function u(G){return se;function se(pe){G&&G.call(this,pe),l.call(this,pe)}}function l(G,se){const pe=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==G.type&&(se?se.call(this,G,we[0]):(we[1]||Kh).call(this,G,we[0]));else throw new Error("Cannot close `"+G.type+"` ("+fa({start:G.start,end:G.end})+"): it’s not open");pe.position.end=rn(G.end)}function c(){return k0(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(G){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function d(){const G=this.resume(),se=this.stack[this.stack.length-1];se.lang=G}function g(){const G=this.resume(),se=this.stack[this.stack.length-1];se.meta=G}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const G=this.resume(),se=this.stack[this.stack.length-1];se.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const G=this.resume(),se=this.stack[this.stack.length-1];se.value=G.replace(/(\r?\n|\r)$/g,"")}function w(G){const se=this.resume(),pe=this.stack[this.stack.length-1];pe.label=se,pe.identifier=hr(this.sliceSerialize(G)).toLowerCase()}function C(){const G=this.resume(),se=this.stack[this.stack.length-1];se.title=G}function M(){const G=this.resume(),se=this.stack[this.stack.length-1];se.url=G}function H(G){const se=this.stack[this.stack.length-1];if(!se.depth){const pe=this.sliceSerialize(G).length;se.depth=pe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function U(G){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function q(G){const pe=this.stack[this.stack.length-1].children;let we=pe[pe.length-1];(!we||we.type!=="text")&&(we=Va(),we.position={start:rn(G.start),end:void 0},pe.push(we)),this.stack.push(we)}function F(G){const se=this.stack.pop();se.value+=this.sliceSerialize(G),se.position.end=rn(G.end)}function Y(G){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=se.children[se.children.length-1];pe.position.end=rn(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(q.call(this,G),F.call(this,G))}function X(){this.data.atHardBreak=!0}function de(){const G=this.resume(),se=this.stack[this.stack.length-1];se.value=G}function ie(){const G=this.resume(),se=this.stack[this.stack.length-1];se.value=G}function W(){const G=this.resume(),se=this.stack[this.stack.length-1];se.value=G}function re(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=se,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function fe(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=se,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function Ne(G){const se=this.sliceSerialize(G),pe=this.stack[this.stack.length-2];pe.label=j8(se),pe.identifier=hr(se).toLowerCase()}function Ve(){const G=this.stack[this.stack.length-1],se=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const we=G.children;pe.children=we}else pe.alt=se}function S(){const G=this.resume(),se=this.stack[this.stack.length-1];se.url=G}function De(){const G=this.resume(),se=this.stack[this.stack.length-1];se.title=G}function Ue(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function je(G){const se=this.resume(),pe=this.stack[this.stack.length-1];pe.label=se,pe.identifier=hr(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ke(G){this.data.characterReferenceType=G.type}function ve(G){const se=this.sliceSerialize(G),pe=this.data.characterReferenceType;let we;pe?(we=Pm(se,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=C0(se);const Fe=this.stack[this.stack.length-1];Fe.value+=we}function Ke(G){const se=this.stack.pop();se.position.end=rn(G.end)}function Je(G){F.call(this,G);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(G)}function Ee(G){F.call(this,G);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(G)}function pt(){return{type:"blockquote",children:[]}}function xt(){return{type:"code",lang:null,meta:null,value:""}}function St(){return{type:"inlineCode",value:""}}function ot(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _t(){return{type:"emphasis",children:[]}}function Rr(){return{type:"heading",depth:0,children:[]}}function pr(){return{type:"break"}}function Jr(){return{type:"html",value:""}}function xe(){return{type:"image",title:null,url:"",alt:null}}function Le(){return{type:"link",title:null,url:"",children:[]}}function ut(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Kt(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Lr(){return{type:"paragraph",children:[]}}function Ui(){return{type:"strong",children:[]}}function Va(){return{type:"text",value:""}}function qa(){return{type:"thematicBreak"}}}function rn(e){return{line:e.line,column:e.column,offset:e.offset}}function Rp(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Rp(e,n):aT(e,n)}}function aT(e,t){let r;for(r in t)if(Np.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Kh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fa({start:t.start,end:t.end})+") is still open")}function sT(e){const t=this;t.parser=r;function r(n){return nT(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function oT(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function uT(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
43
+ `}]}function lT(e,t){const r=t.value?t.value+`
44
+ `:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function cT(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hT(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dT(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Ri(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(n,o);const u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function fT(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mT(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Lp(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function pT(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Lp(e,t);const i={src:Ri(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gT(e,t){const r={src:Ri(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function bT(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function yT(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Lp(e,t);const i={href:Ri(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ET(e,t){const r={href:Ri(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xT(e,t,r){const n=e.all(t),i=r?_T(r):Op(t),a={},s=[];if(typeof t.checked=="boolean"){const c=n[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const c=n[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
45
+ `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const u=n[n.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
46
+ `});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function _T(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Op(r[n])}return t}function Op(e){const t=e.spread;return t??e.children.length>1}function TT(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function vT(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wT(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function kT(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AT(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Ar(t.children[1]),u=go(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function CT(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u<o;){const h=t.children[u],f={},d=s?s[u]:void 0;d&&(f.align=d);let g={type:"element",tagName:a,properties:f,children:[]};h&&(g.children=e.all(h),e.patch(h,g),g=e.applyData(h,g)),l.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function ST(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Qh=9,Zh=32;function IT(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(Jh(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Jh(t.slice(i),i>0,!1)),a.join("")}function Jh(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===Qh||a===Zh;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===Qh||a===Zh;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function NT(e,t){const r={type:"text",value:IT(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function RT(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const LT={blockquote:oT,break:uT,code:lT,delete:cT,emphasis:hT,footnoteReference:dT,heading:fT,html:mT,imageReference:pT,image:gT,inlineCode:bT,linkReference:yT,link:ET,listItem:xT,list:TT,paragraph:vT,root:wT,strong:kT,table:AT,tableCell:ST,tableRow:CT,text:NT,thematicBreak:RT,toml:Qa,yaml:Qa,definition:Qa,footnoteDefinition:Qa};function Qa(){}function OT(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function DT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function PT(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||OT,n=e.options.footnoteBackLabel||DT,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const c=e.all(l),h=String(l.identifier).toUpperCase(),f=Ri(h.toLowerCase());let d=0;const g=[],y=e.footnoteCounts.get(h);for(;y!==void 0&&++d<=y;){g.length>0&&g.push({type:"text",value:" "});let w=typeof r=="string"?r:r(u,d);typeof w=="string"&&(w={type:"text",value:w}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,d),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const _=c[c.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const w=_.children[_.children.length-1];w&&w.type==="text"?w.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...g)}else c.push(...g);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(l,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
47
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
48
+ `}]}}const pl={}.hasOwnProperty,MT={};function BT(e,t){const r=t||MT,n=new Map,i=new Map,a=new Map,s={...LT,...r.handlers},o={all:l,applyData:HT,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:r,patch:FT,wrap:UT};return wr(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?n:i,f=String(c.identifier).toUpperCase();h.has(f)||h.set(f,c)}}),o;function u(c,h){const f=c.type,d=o.handlers[f];if(pl.call(o.handlers,f)&&d)return d(o,c,h);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:y,..._}=c,E=Vn(_);return E.children=o.all(c),E}return Vn(c)}return(o.options.unknownHandler||zT)(o,c,h)}function l(c){const h=[];if("children"in c){const f=c.children;let d=-1;for(;++d<f.length;){const g=o.one(f[d],c);if(g){if(d&&f[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=ed(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=ed(y.value))}Array.isArray(g)?h.push(...g):h.push(g)}}}return h}}function FT(e,t){e.position&&(t.position=lm(e))}function HT(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,Vn(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function zT(e,t){const r=t.data||{},n="value"in t&&!(pl.call(r,"hProperties")||pl.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UT(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
49
+ `});++n<e.length;)n&&r.push({type:"text",value:`
50
+ `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
51
+ `}),r}function ed(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function td(e,t){const r=BT(e,t),n=r.one(e,void 0),i=PT(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
52
+ `},i),a}function $T(e,t){return e&&"run"in e?async function(r,n){const i=td(r,{file:n,...t});await e.run(i,n)}:function(r,n){return td(r,{file:n,...e||t})}}function rd(e){if(e)throw e}var hu,nd;function jT(){if(nd)return hu;nd=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),h=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!h)return!1;var f;for(f in l);return typeof f>"u"||e.call(l,f)},s=function(l,c){r&&c.name==="__proto__"?r(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(n)return n(l,c).value}else return;return l[c]};return hu=function u(){var l,c,h,f,d,g,y=arguments[0],_=1,E=arguments.length,w=!1;for(typeof y=="boolean"&&(w=y,y=arguments[1]||{},_=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});_<E;++_)if(l=arguments[_],l!=null)for(c in l)h=o(y,c),f=o(l,c),y!==f&&(w&&f&&(a(f)||(d=i(f)))?(d?(d=!1,g=h&&i(h)?h:[]):g=h&&a(h)?h:{},s(y,{name:c,newValue:u(w,g,f)})):typeof f<"u"&&s(y,{name:c,newValue:f}));return y},hu}var VT=jT();const du=u1(VT);function gl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qT(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(u,...l){const c=e[++a];let h=-1;if(u){s(u);return}for(;++h<i.length;)(l[h]===null||l[h]===void 0)&&(l[h]=i[h]);i=l,c?GT(c,o)(...l):s(null,...l)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function GT(e,t){let r;return n;function n(...s){const o=e.length>s.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&r)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){r||(r=!0,t(s,...o))}function a(s){i(null,s)}}const Er={basename:WT,dirname:YT,extname:XT,join:KT,sep:"/"};function WT(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Fa(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function YT(e){if(Fa(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function XT(e){Fa(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function KT(...e){let t=-1,r;for(;++t<e.length;)Fa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":QT(r)}function QT(e){Fa(e);const t=e.codePointAt(0)===47;let r=ZT(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function ZT(e,t){let r="",n=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function Fa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const JT={cwd:ev};function ev(){return"/"}function bl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tv(e){if(typeof e=="string")e=new URL(e);else if(!bl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return rv(e)}function rv(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const fu=["history","path","basename","stem","extname","dirname"];class nv{constructor(t){let r;t?bl(t)?r={path:t}:typeof t=="string"||iv(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":JT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<fu.length;){const a=fu[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)fu.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Er.basename(this.path):void 0}set basename(t){pu(t,"basename"),mu(t,"basename"),this.path=Er.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Er.dirname(this.path):void 0}set dirname(t){id(this.basename,"dirname"),this.path=Er.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Er.extname(this.path):void 0}set extname(t){if(mu(t,"extname"),id(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Er.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){bl(t)&&(t=tv(t)),pu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Er.basename(this.path,this.extname):void 0}set stem(t){pu(t,"stem"),mu(t,"stem"),this.path=Er.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new Ct(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function mu(e,t){if(e&&e.includes(Er.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Er.sep+"`")}function pu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function id(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function iv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const av=(function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),sv={}.hasOwnProperty;class B0 extends av{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qT()}copy(){const t=new B0;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(du(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(yu("data",this.frozen),this.namespace[t]=r,this):sv.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yu("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Za(t),n=this.parser||this.Parser;return gu("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),gu("process",this.parser||this.Parser),bu("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const o=Za(t),u=n.parse(o);n.run(u,o,function(c,h,f){if(c||!h||!f)return l(c);const d=h,g=n.stringify(d,f);lv(g)?f.value=g:f.result=g,l(c,f)});function l(c,h){c||!h?s(c):a?a(h):r(void 0,h)}}}processSync(t){let r=!1,n;return this.freeze(),gu("processSync",this.parser||this.Parser),bu("processSync",this.compiler||this.Compiler),this.process(t,i),sd("processSync","process",r),n;function i(a,s){r=!0,rd(a),n=s}}run(t,r,n){ad(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,o){const u=Za(r);i.run(t,u,l);function l(c,h,f){const d=h||t;c?o(c):s?s(d):n(void 0,d,f)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),sd("runSync","run",n),i;function a(s,o){rd(s),i=o,n=!0}}stringify(t,r){this.freeze();const n=Za(r),i=this.compiler||this.Compiler;return bu("stringify",i),ad(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(yu("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...h]=l;u(c,h)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(i.settings=du(!0,i.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const h=l[c];a(h)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let h=-1,f=-1;for(;++h<n.length;)if(n[h][0]===l){f=h;break}if(f===-1)n.push([l,...c]);else if(c.length>0){let[d,...g]=c;const y=n[f][1];gl(y)&&gl(d)&&(d=du(!0,y,d)),n[f]=[l,d,...g]}}}}const ov=new B0().freeze();function gu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ad(e){if(!gl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sd(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Za(e){return uv(e)?e:new nv(e)}function uv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function lv(e){return typeof e=="string"||cv(e)}function cv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function F0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Jn=F0();function Dp(e){Jn=e}var Pn={exec:()=>null};function Oe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Dt.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,t)};return n}var hv=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Dt={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:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},dv=/^(?:[ \t]*(?:\n|$))+/,fv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ha=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,H0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Pp=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mp=Oe(Pp).replace(/bull/g,H0).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),gv=Oe(Pp).replace(/bull/g,H0).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),z0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,bv=/^[^\n]+/,U0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,yv=Oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ev=Oe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,H0).getRegex(),_o="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",$0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xv=Oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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",$0).replace("tag",_o).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bp=Oe(z0).replace("hr",Ha).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),_v=Oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Bp).getRegex(),j0={blockquote:_v,code:fv,def:yv,fences:mv,heading:pv,hr:Ha,html:xv,lheading:Mp,list:Ev,newline:dv,paragraph:Bp,table:Pn,text:bv},od=Oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ha).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),Tv={...j0,lheading:gv,table:od,paragraph:Oe(z0).replace("hr",Ha).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",od).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex()},vv={...j0,html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$0).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:Pn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Oe(z0).replace("hr",Ha).replace("heading",` *#{1,6} *[^
53
+ ]`).replace("lheading",Mp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,kv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fp=/^( {2,}|\\)\n(?!\s*$)/,Av=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Li=/[\p{P}\p{S}]/u,To=/[\s\p{P}\p{S}]/u,V0=/[^\s\p{P}\p{S}]/u,Cv=Oe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,To).getRegex(),Hp=/(?!~)[\p{P}\p{S}]/u,Sv=/(?!~)[\s\p{P}\p{S}]/u,Iv=/(?:[^\s\p{P}\p{S}]|~)/u,Nv=Oe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",hv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zp=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Rv=Oe(zp,"u").replace(/punct/g,Li).getRegex(),Lv=Oe(zp,"u").replace(/punct/g,Hp).getRegex(),Up="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ov=Oe(Up,"gu").replace(/notPunctSpace/g,V0).replace(/punctSpace/g,To).replace(/punct/g,Li).getRegex(),Dv=Oe(Up,"gu").replace(/notPunctSpace/g,Iv).replace(/punctSpace/g,Sv).replace(/punct/g,Hp).getRegex(),Pv=Oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,V0).replace(/punctSpace/g,To).replace(/punct/g,Li).getRegex(),Mv=Oe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Li).getRegex(),Bv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Fv=Oe(Bv,"gu").replace(/notPunctSpace/g,V0).replace(/punctSpace/g,To).replace(/punct/g,Li).getRegex(),Hv=Oe(/\\(punct)/,"gu").replace(/punct/g,Li).getRegex(),zv=Oe(/^<(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(),Uv=Oe($0).replace("(?:-->|$)","-->").getRegex(),$v=Oe("^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",Uv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,jv=Oe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",zs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$p=Oe(/^!?\[(label)\]\[(ref)\]/).replace("label",zs).replace("ref",U0).getRegex(),jp=Oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",U0).getRegex(),Vv=Oe("reflink|nolink(?!\\()","g").replace("reflink",$p).replace("nolink",jp).getRegex(),ud=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,q0={_backpedal:Pn,anyPunctuation:Hv,autolink:zv,blockSkip:Nv,br:Fp,code:kv,del:Pn,delLDelim:Pn,delRDelim:Pn,emStrongLDelim:Rv,emStrongRDelimAst:Ov,emStrongRDelimUnd:Pv,escape:wv,link:jv,nolink:jp,punctuation:Cv,reflink:$p,reflinkSearch:Vv,tag:$v,text:Av,url:Pn},qv={...q0,link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",zs).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zs).getRegex()},yl={...q0,emStrongRDelimAst:Dv,emStrongLDelim:Lv,delLDelim:Mv,delRDelim:Fv,url:Oe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ud).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:Oe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ud).getRegex()},Gv={...yl,br:Oe(Fp).replace("{2,}","*").getRegex(),text:Oe(yl.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ja={normal:j0,gfm:Tv,pedantic:vv},Qi={normal:q0,gfm:yl,breaks:Gv,pedantic:qv},Wv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ld=e=>Wv[e];function gr(e,t){if(t){if(Dt.escapeTest.test(e))return e.replace(Dt.escapeReplace,ld)}else if(Dt.escapeTestNoEncode.test(e))return e.replace(Dt.escapeReplaceNoEncode,ld);return e}function cd(e){try{e=encodeURI(e).replace(Dt.percentDecode,"%")}catch{return null}return e}function hd(e,t){var a;let r=e.replace(Dt.findPipe,(s,o,u)=>{let l=!1,c=o;for(;--c>=0&&u[c]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Dt.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Dt.slashPipe,"|");return n}function Zi(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function Yv(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Xv(e,t=0){let r=t,n="";for(let i of e)if(i===" "){let a=4-r%4;n+=" ".repeat(a),r+=a}else n+=i,r++;return n}function dd(e,t,r,n,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,u}function Kv(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
54
+ `).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
55
+ `)}var Us=class{constructor(t){j(this,"options");j(this,"rules");j(this,"lexer");this.options=t||Jn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Zi(n,`
56
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=Kv(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Zi(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Zi(r[0],`
57
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Zi(r[0],`
58
+ `).split(`
59
+ `),i="",a="",s=[];for(;n.length>0;){let o=!1,u=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))u.push(n[l]),o=!0;else if(!o)u.push(n[l]);else break;n=n.slice(l);let c=u.join(`
60
+ `),h=c.replace(this.rules.other.blockquoteSetextReplace,`
61
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
62
+ ${c}`:c,a=a?`${a}
63
+ ${h}`:h;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,s,!0),this.lexer.state.top=f,n.length===0)break;let d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let g=d,y=g.raw+`
64
+ `+n.join(`
65
+ `),_=this.blockquote(y);s[s.length-1]=_,i=i.substring(0,i.length-g.raw.length)+_.raw,a=a.substring(0,a.length-g.text.length)+_.text;break}else if((d==null?void 0:d.type)==="list"){let g=d,y=g.raw+`
66
+ `+n.join(`
67
+ `),_=this.list(y);s[s.length-1]=_,i=i.substring(0,i.length-d.raw.length)+_.raw,a=a.substring(0,a.length-g.raw.length)+_.raw,n=y.substring(s.at(-1).raw.length).split(`
68
+ `);continue}}return{type:"blockquote",raw:i,tokens:s,text:a}}}list(t){var n,i;let r=this.rules.block.list.exec(t);if(r){let a=r[1].trim(),s=a.length>1,o={type:"list",raw:"",ordered:s,start:s?+a.slice(0,-1):"",loose:!1,items:[]};a=s?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=s?a:"[*+-]");let u=this.rules.other.listItemRegex(a),l=!1;for(;t;){let h=!1,f="",d="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;f=r[0],t=t.substring(f.length);let g=Xv(r[2].split(`
69
+ `,1)[0],r[1].length),y=t.split(`
70
+ `,1)[0],_=!g.trim(),E=0;if(this.options.pedantic?(E=2,d=g.trimStart()):_?E=r[1].length+1:(E=g.search(this.rules.other.nonSpaceChar),E=E>4?1:E,d=g.slice(E),E+=r[1].length),_&&this.rules.other.blankLine.test(y)&&(f+=y+`
71
+ `,t=t.substring(y.length+1),h=!0),!h){let w=this.rules.other.nextBulletRegex(E),C=this.rules.other.hrRegex(E),M=this.rules.other.fencesBeginRegex(E),H=this.rules.other.headingBeginRegex(E),D=this.rules.other.htmlBeginRegex(E),U=this.rules.other.blockquoteBeginRegex(E);for(;t;){let $=t.split(`
72
+ `,1)[0],q;if(y=$,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),q=y):q=y.replace(this.rules.other.tabCharGlobal," "),M.test(y)||H.test(y)||D.test(y)||U.test(y)||w.test(y)||C.test(y))break;if(q.search(this.rules.other.nonSpaceChar)>=E||!y.trim())d+=`
73
+ `+q.slice(E);else{if(_||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(g)||H.test(g)||C.test(g))break;d+=`
74
+ `+y}_=!y.trim(),f+=$+`
75
+ `,t=t.substring($.length+1),g=q.slice(E)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0)),o.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),o.raw+=f}let c=o.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let h of o.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),((n=h.tokens[0])==null?void 0:n.type)==="text"||((i=h.tokens[0])==null?void 0:i.type)==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let d=this.lexer.inlineQueue.length-1;d>=0;d--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[d].src)){this.lexer.inlineQueue[d].src=this.lexer.inlineQueue[d].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(h.raw);if(f){let d={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};h.checked=d.checked,o.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=d.raw+h.tokens[0].raw,h.tokens[0].text=d.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(d)):h.tokens.unshift({type:"paragraph",raw:d.raw,text:d.raw,tokens:[d]}):h.tokens.unshift(d)}}if(!o.loose){let f=h.tokens.filter(g=>g.type==="space"),d=f.length>0&&f.some(g=>this.rules.other.anyLine.test(g.raw));o.loose=d}}if(o.loose)for(let h of o.items){h.loose=!0;for(let f of h.tokens)f.type==="text"&&(f.type="paragraph")}return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(t){var o;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=hd(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(o=r[3])!=null&&o.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
76
+ `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?s.align.push("right"):this.rules.other.tableAlignCenter.test(u)?s.align.push("center"):this.rules.other.tableAlignLeft.test(u)?s.align.push("left"):s.align.push(null);for(let u=0;u<n.length;u++)s.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:s.align[u]});for(let u of a)s.rows.push(hd(u,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r){let n=r[1].trim();return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
77
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=Zi(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=Yv(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),dd(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return dd(n,a,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,s,o,u=a,l=0,c=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,r=r.slice(-1*t.length+a);(i=c.exec(r))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){u+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){l+=o;continue}if(u-=o,u>0)continue;o=Math.min(o,o+u+l);let h=[...i[0]][0].length,f=t.slice(0,a+i.index+h+o);if(Math.min(a,o)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t,r,n=""){let i=this.rules.inline.delLDelim.exec(t);if(i&&(!i[1]||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,s,o,u=a,l=this.rules.inline.delRDelim;for(l.lastIndex=0,r=r.slice(-1*t.length+a);(i=l.exec(r))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s||(o=[...s].length,o!==a))continue;if(i[3]||i[4]){u+=o;continue}if(u-=o,u>0)continue;o=Math.min(o,o+u);let c=[...i[0]][0].length,h=t.slice(0,a+i.index+c+o),f=h.slice(a,-a);return{type:"del",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let s;do s=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(s!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},er=class El{constructor(t){j(this,"tokens");j(this,"options");j(this,"state");j(this,"inlineQueue");j(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Jn,this.options.tokenizer=this.options.tokenizer||new Us,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 r={other:Dt,block:Ja.normal,inline:Qi.normal};this.options.pedantic?(r.block=Ja.pedantic,r.inline=Qi.pedantic):this.options.gfm&&(r.block=Ja.gfm,this.options.breaks?r.inline=Qi.breaks:r.inline=Qi.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ja,inline:Qi}}static lex(t,r){return new El(r).lex(t)}static lexInline(t,r){return new El(r).inlineTokens(t)}lex(t){t=t.replace(Dt.carriageReturn,`
78
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,a,s;for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Dt.tabCharGlobal," ").replace(Dt.spaceLine,""));t;){let o;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(l=>(o=l.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let l=r.at(-1);o.raw.length===1&&l!==void 0?l.raw+=`
79
+ `:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
80
+ `)?"":`
81
+ `)+o.raw,l.text+=`
82
+ `+o.text,this.inlineQueue.at(-1).src=l.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
83
+ `)?"":`
84
+ `)+o.raw,l.text+=`
85
+ `+o.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let u=t;if((s=this.options.extensions)!=null&&s.startBlock){let l=1/0,c=t.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},c),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(u=t.substring(0,l+1))}if(this.state.top&&(o=this.tokenizer.paragraph(u))){let l=r.at(-1);n&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=(l.raw.endsWith(`
86
+ `)?"":`
87
+ `)+o.raw,l.text+=`
88
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(o),n=u.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=(l.raw.endsWith(`
89
+ `)?"":`
90
+ `)+o.raw,l.text+=`
91
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(o);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var u,l,c,h,f;this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)a=i[2]?i[2].length:0,n=n.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((l=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:l.call({lexer:this},n))??n;let s=!1,o="";for(;t;){s||(o=""),s=!1;let d;if((h=(c=this.options.extensions)==null?void 0:c.inline)!=null&&h.some(y=>(d=y.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let y=r.at(-1);d.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=d.raw,y.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,o)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t,n,o)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let g=t;if((f=this.options.extensions)!=null&&f.startInline){let y=1/0,_=t.slice(1),E;this.options.extensions.startInline.forEach(w=>{E=w.call({lexer:this},_),typeof E=="number"&&E>=0&&(y=Math.min(y,E))}),y<1/0&&y>=0&&(g=t.substring(0,y+1))}if(d=this.tokenizer.inlineText(g)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),s=!0;let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=d.raw,y.text+=d.text):r.push(d);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return r}},$s=class{constructor(t){j(this,"options");j(this,"parser");this.options=t||Jn}space(t){return""}code({text:t,lang:r,escaped:n}){var s;let i=(s=(r||"").match(Dt.notSpaceStart))==null?void 0:s[0],a=t.replace(Dt.endingNewline,"")+`
92
+ `;return i?'<pre><code class="language-'+gr(i)+'">'+(n?a:gr(a,!0))+`</code></pre>
93
+ `:"<pre><code>"+(n?a:gr(a,!0))+`</code></pre>
94
+ `}blockquote({tokens:t}){return`<blockquote>
95
+ ${this.parser.parse(t)}</blockquote>
96
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
97
+ `}hr(t){return`<hr>
98
+ `}list(t){let r=t.ordered,n=t.start,i="";for(let o=0;o<t.items.length;o++){let u=t.items[o];i+=this.listitem(u)}let a=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+a+s+`>
99
+ `+i+"</"+a+`>
100
+ `}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
101
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
102
+ `}table(t){let r="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);r+=this.tablerow({text:n});let i="";for(let a=0;a<t.rows.length;a++){let s=t.rows[a];n="";for(let o=0;o<s.length;o++)n+=this.tablecell(s[o]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
103
+ <thead>
104
+ `+r+`</thead>
105
+ `+i+`</table>
106
+ `}tablerow({text:t}){return`<tr>
107
+ ${t}</tr>
108
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
109
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${gr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),a=cd(t);if(a===null)return i;t=a;let s='<a href="'+t+'"';return r&&(s+=' title="'+gr(r)+'"'),s+=">"+i+"</a>",s}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let a=cd(t);if(a===null)return gr(n);t=a;let s=`<img src="${t}" alt="${gr(n)}"`;return r&&(s+=` title="${gr(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:gr(t.text)}},G0=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},lr=class xl{constructor(t){j(this,"options");j(this,"renderer");j(this,"textRenderer");this.options=t||Jn,this.options.renderer=this.options.renderer||new $s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new G0}static parse(t,r){return new xl(r).parse(t)}static parseInline(t,r){return new xl(r).parseInline(t)}parse(t){var n,i;this.renderer.parser=this;let r="";for(let a=0;a<t.length;a++){let s=t[a];if((i=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&i[s.type]){let u=s,l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){r+=l||"";continue}}let o=s;switch(o.type){case"space":{r+=this.renderer.space(o);break}case"hr":{r+=this.renderer.hr(o);break}case"heading":{r+=this.renderer.heading(o);break}case"code":{r+=this.renderer.code(o);break}case"table":{r+=this.renderer.table(o);break}case"blockquote":{r+=this.renderer.blockquote(o);break}case"list":{r+=this.renderer.list(o);break}case"checkbox":{r+=this.renderer.checkbox(o);break}case"html":{r+=this.renderer.html(o);break}case"def":{r+=this.renderer.def(o);break}case"paragraph":{r+=this.renderer.paragraph(o);break}case"text":{r+=this.renderer.text(o);break}default:{let u='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,r=this.renderer){var i,a;this.renderer.parser=this;let n="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[o.type]){let l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=l||"";continue}}let u=o;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"checkbox":{n+=r.checkbox(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},Es,ra=(Es=class{constructor(t){j(this,"options");j(this,"block");this.options=t||Jn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?er.lex:er.lexInline}provideParser(t=this.block){return t?lr.parse:lr.parseInline}},j(Es,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),j(Es,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Es),Qv=class{constructor(...t){j(this,"defaults",F0());j(this,"options",this.setOptions);j(this,"parse",this.parseMarkdown(!0));j(this,"parseInline",this.parseMarkdown(!1));j(this,"Parser",lr);j(this,"Renderer",$s);j(this,"TextRenderer",G0);j(this,"Lexer",er);j(this,"Tokenizer",Us);j(this,"Hooks",ra);this.use(...t)}walkTokens(t,r){var i,a;let n=[];for(let s of t)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let u of o.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of o.rows)for(let l of u)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let o=s;n=n.concat(this.walkTokens(o.items,r));break}default:{let o=s;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(u=>{let l=o[u].flat(1/0);n=n.concat(this.walkTokens(l,r))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let u=a.renderer.apply(this,o);return u===!1&&(u=s.apply(this,o)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new $s(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,u=n.renderer[o],l=a[o];a[o]=(...c)=>{let h=u.apply(a,c);return h===!1&&(h=l.apply(a,c)),h||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Us(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,u=n.tokenizer[o],l=a[o];a[o]=(...c)=>{let h=u.apply(a,c);return h===!1&&(h=l.apply(a,c)),h}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new ra;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,u=n.hooks[o],l=a[o];ra.passThroughHooks.has(s)?a[o]=c=>{if(this.defaults.async&&ra.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await u.call(a,c);return l.call(a,f)})();let h=u.call(a,c);return l.call(a,h)}:a[o]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await u.apply(a,c);return f===!1&&(f=await l.apply(a,c)),f})();let h=u.apply(a,c);return h===!1&&(h=l.apply(a,c)),h}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(o){let u=[];return u.push(s.call(this,o)),a&&(u=u.concat(a.call(this,o))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return er.lex(t,r??this.defaults)}parser(t,r){return lr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.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 r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,u=await(a.hooks?await a.hooks.provideLexer(t):t?er.lex:er.lexInline)(o,a),l=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let c=await(a.hooks?await a.hooks.provideParser(t):t?lr.parse:lr.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(c):c})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer(t):t?er.lex:er.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let u=(a.hooks?a.hooks.provideParser(t):t?lr.parse:lr.parseInline)(o,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(o){return s(o)}}}onError(t,r){return n=>{if(n.message+=`
110
+ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+gr(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Gn=new Qv;function Be(e,t){return Gn.parse(e,t)}Be.options=Be.setOptions=function(e){return Gn.setOptions(e),Be.defaults=Gn.defaults,Dp(Be.defaults),Be};Be.getDefaults=F0;Be.defaults=Jn;Be.use=function(...e){return Gn.use(...e),Be.defaults=Gn.defaults,Dp(Be.defaults),Be};Be.walkTokens=function(e,t){return Gn.walkTokens(e,t)};Be.parseInline=Gn.parseInline;Be.Parser=lr;Be.parser=lr.parse;Be.Renderer=$s;Be.TextRenderer=G0;Be.Lexer=er;Be.lexer=er.lex;Be.Tokenizer=Us;Be.Hooks=ra;Be.parse=Be;Be.options;Be.setOptions;Be.use;Be.walkTokens;Be.parseInline;lr.parse;er.lex;var Zv=300,Jv="300px",ew=500;function tw(e={}){let{immediate:t=!1,debounceDelay:r=Zv,rootMargin:n=Jv,idleTimeout:i=ew}=e,[a,s]=I.useState(!1),o=I.useRef(null),u=I.useRef(null),l=I.useRef(null),c=I.useMemo(()=>d=>{let g=Date.now();return window.setTimeout(()=>{d({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-g))})},1)},[]),h=I.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(d,g)=>window.requestIdleCallback(d,g):c,[c]),f=I.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?d=>window.cancelIdleCallback(d):d=>{clearTimeout(d)},[]);return I.useEffect(()=>{if(t){s(!0);return}let d=o.current;if(!d)return;u.current&&(clearTimeout(u.current),u.current=null),l.current&&(f(l.current),l.current=null);let g=()=>{u.current&&(clearTimeout(u.current),u.current=null),l.current&&(f(l.current),l.current=null)},y=C=>{l.current=h(M=>{M.timeRemaining()>0||M.didTimeout?(s(!0),C.disconnect()):l.current=h(()=>{s(!0),C.disconnect()},{timeout:i/2})},{timeout:i})},_=C=>{g(),u.current=window.setTimeout(()=>{var M,H;let D=C.takeRecords();(D.length===0||(H=(M=D.at(-1))==null?void 0:M.isIntersecting)!=null&&H)&&y(C)},r)},E=(C,M)=>{C.isIntersecting?_(M):g()},w=new IntersectionObserver(C=>{for(let M of C)E(M,w)},{rootMargin:n,threshold:0});return w.observe(d),()=>{u.current&&clearTimeout(u.current),l.current&&f(l.current),w.disconnect()}},[t,r,n,i,f,h]),{shouldRender:a,containerRef:o}}var Vp=/\s/,rw=/^\s+$/,nw=new Set(["code","pre","svg","math","annotation"]),iw=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",aw=e=>e.some(t=>iw(t)&&nw.has(t.tagName)),sw=e=>{let t=[],r="",n=!1;for(let i of e){let a=Vp.test(i);a!==n&&r&&(t.push(r),r=""),r+=i,n=a}return r&&t.push(r),t},ow=e=>{let t=[],r="";for(let n of e)Vp.test(n)?r+=n:(r&&(t.push(r),r=""),t.push(n));return r&&t.push(r),t},uw=(e,t,r,n,i,a)=>{let s=`--sd-animation:sd-${t};--sd-duration:${i?0:r}ms;--sd-easing:${n}`;return a&&(s+=`;--sd-delay:${a}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},lw=(e,t,r,n,i)=>{let a=t.at(-1);if(!(a&&"children"in a))return;if(aw(t))return Fn;let s=a,o=s.children.indexOf(e);if(o===-1)return;let u=e.value;if(!u.trim()){i.count+=u.length;return}let l=r.sep==="char"?ow(u):sw(u),c=n.prevContentLength,h=l.map(f=>{let d=i.count;if(i.count+=f.length,rw.test(f))return{type:"text",value:f};let g=c>0&&d<c,y=g?0:i.newIndex++*r.stagger;return uw(f,r.animation,r.duration,r.easing,g,y)});return s.children.splice(o,1,...h),o+h.length},cw=0;function _l(e){var t,r,n,i,a;let s={animation:(t=e==null?void 0:e.animation)!=null?t:"fadeIn",duration:(r=e==null?void 0:e.duration)!=null?r:150,easing:(n=e==null?void 0:e.easing)!=null?n:"ease",sep:(i=e==null?void 0:e.sep)!=null?i:"word",stagger:(a=e==null?void 0:e.stagger)!=null?a:40},o={prevContentLength:0,lastRenderCharCount:0},u=cw++,l=()=>c=>{let h={count:0,newIndex:0};lo(c,"text",(f,d)=>lw(f,d,s,o,h)),o.lastRenderCharCount=h.count,o.prevContentLength=0};return Object.defineProperty(l,"name",{value:`rehypeAnimate$${u}`}),{name:"animate",type:"animate",rehypePlugin:l,setPrevContentLength(c){o.prevContentLength=c},getLastRenderCharCount(){let c=o.lastRenderCharCount;return o.lastRenderCharCount=0,c}}}_l();var qp=I.createContext(!1),hw=()=>I.useContext(qp),W0=(...e)=>vp(up(e)),dw=(e,t)=>{if(!e||!t)return t;let r=`${e}:`;return t.split(/\s+/).filter(Boolean).map(n=>n.startsWith(r)?n:`${e}:${n}`).join(" ")},fw=e=>e?(...t)=>dw(e,vp(up(t))):W0,gi=(e,t,r)=>{let n=typeof t=="string"&&r.startsWith("text/csv")?"\uFEFF":"",i=typeof t=="string"?new Blob([n+t],{type:r}):t,a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},Tl=I.createContext(W0),Ie=()=>I.useContext(Tl),mw=W0("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),pw=e=>{let t={};for(let r of e.split(";")){let n=r.indexOf(":");if(n>0){let i=r.slice(0,n).trim(),a=r.slice(n+1).trim();i&&a&&(t[i]=a)}}return t},gw=I.memo(({children:e,result:t,language:r,className:n,startLine:i,lineNumbers:a=!0,...s})=>{let o=Ie(),u=I.useMemo(()=>o(mw),[o]),l=I.useMemo(()=>{let c={};return t.bg&&(c["--sdm-bg"]=t.bg),t.fg&&(c["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(c,pw(t.rootStyle)),c},[t.bg,t.fg,t.rootStyle]);return v.jsx("div",{className:o(n,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":r,"data-streamdown":"code-block-body",...s,children:v.jsx("pre",{className:o(n,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:l,children:v.jsx("code",{className:a?o("[counter-increment:line_0] [counter-reset:line]"):void 0,style:a&&i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((c,h)=>v.jsx("span",{className:a?u:void 0,children:c.length===0||c.length===1&&c[0].content===""?`
111
+ `:c.map((f,d)=>{let g={},y=!!f.bgColor;if(f.color&&(g["--sdm-c"]=f.color),f.bgColor&&(g["--sdm-tbg"]=f.bgColor),f.htmlStyle)for(let[_,E]of Object.entries(f.htmlStyle))_==="color"?g["--sdm-c"]=E:_==="background-color"?(g["--sdm-tbg"]=E,y=!0):g[_]=E;return v.jsx("span",{className:o("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",y&&"bg-[var(--sdm-tbg)]",y&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:g,...f.htmlAttrs,children:f.content},d)})},h))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),bw=({className:e,language:t,style:r,isIncomplete:n,...i})=>{let a=Ie();return v.jsx("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":n||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...i})},Gp=I.createContext({code:""}),Wp=()=>I.useContext(Gp),yw=({language:e})=>{let t=Ie();return v.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:v.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},Ew=e=>{let t=e.length;for(;t>0&&e[t-1]===`
112
+ `;)t--;return e.slice(0,t)},xw=I.lazy(()=>k(()=>import("./highlighted-body-OFNGDK62-BxVZVvj8.js"),__vite__mapDeps([0,1,2,3,4,5])).then(e=>({default:e.HighlightedCodeBlockBody}))),_w=({code:e,language:t,className:r,children:n,isIncomplete:i=!1,startLine:a,lineNumbers:s,...o})=>{let u=Ie(),l=I.useMemo(()=>Ew(e),[e]),c=I.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:l.split(`
113
+ `).map(h=>[{content:h,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[l]);return v.jsx(Gp.Provider,{value:{code:e},children:v.jsxs(bw,{isIncomplete:i,language:t,children:[v.jsx(yw,{language:t}),n?v.jsx("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:v.jsx("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:n})}):null,v.jsx(I.Suspense,{fallback:v.jsx(gw,{className:r,language:t,lineNumbers:s,result:c,startLine:a,...o}),children:v.jsx(xw,{className:r,code:l,language:t,lineNumbers:s,raw:c,startLine:a,...o})})]})})},Tw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),vw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),ww=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),kw=e=>v.jsxs("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[v.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),v.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Aw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),Cw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),Sw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),Iw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Nw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Rw=e=>v.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:v.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),na={CheckIcon:Tw,CopyIcon:vw,DownloadIcon:ww,ExternalLinkIcon:Iw,Loader2Icon:kw,Maximize2Icon:Aw,RotateCcwIcon:Cw,XIcon:Sw,ZoomInIcon:Nw,ZoomOutIcon:Rw},Yp=I.createContext(na),Lw=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(i=>e[i]===t[i])},fd=({icons:e,children:t})=>{let r=I.useRef(e),n=I.useRef(e?{...na,...e}:na);Lw(r.current,e)||(r.current=e,n.current=e?{...na,...e}:na);let i=n.current;return v.jsx(Yp.Provider,{value:i,children:t})},mr=()=>I.useContext(Yp),Xp={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},vl=I.createContext(Xp),Xr=()=>I.useContext(vl),md=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:i,code:a,...s})=>{let o=Ie(),[u,l]=I.useState(!1),c=I.useRef(0),{code:h}=Wp(),{isAnimating:f}=I.useContext(Gt),d=Xr(),g=a??h,y=async()=>{var w;if(typeof window>"u"||!((w=navigator==null?void 0:navigator.clipboard)!=null&&w.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(g),l(!0),e==null||e(),c.current=window.setTimeout(()=>l(!1),r))}catch(C){t==null||t(C)}};I.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let _=mr(),E=u?_.CheckIcon:_.CopyIcon;return v.jsx("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:f,onClick:y,title:d.copyCode,type:"button",...s,children:n??v.jsx(E,{size:14})})},pd={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},Ow=({onDownload:e,onError:t,language:r,children:n,className:i,code:a,...s})=>{let o=Ie(),{code:u}=Wp(),{isAnimating:l}=I.useContext(Gt),c=Xr(),h=mr(),f=a??u,d=`file.${r&&r in pd?pd[r]:"txt"}`,g="text/plain",y=()=>{try{gi(d,f,g),e==null||e()}catch(_){t==null||t(_)}};return v.jsx("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:l,onClick:y,title:c.downloadFile,type:"button",...s,children:n??v.jsx(h.DownloadIcon,{size:14})})},gd=()=>{let{Loader2Icon:e}=mr(),t=Ie();return v.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[v.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),v.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:v.jsx(e,{className:t("size-4 animate-spin")})})]})},Dw=/\.[^/.]+$/,Pw=({node:e,className:t,src:r,alt:n,onLoad:i,onError:a,...s})=>{let{DownloadIcon:o}=mr(),u=Ie(),l=I.useRef(null),[c,h]=I.useState(!1),[f,d]=I.useState(!1),g=Xr(),y=s.width!=null||s.height!=null,_=(c||y)&&!f,E=f&&!y;I.useEffect(()=>{let H=l.current;if(H!=null&&H.complete){let D=H.naturalWidth>0;h(D),d(!D)}},[]);let w=I.useCallback(H=>{h(!0),d(!1),i==null||i(H)},[i]),C=I.useCallback(H=>{h(!1),d(!0),a==null||a(H)},[a]),M=async()=>{if(r)try{let H=await(await fetch(r)).blob(),D=new URL(r,window.location.origin).pathname.split("/").pop()||"",U=D.split(".").pop(),$=D.includes(".")&&U!==void 0&&U.length<=4,q="";if($)q=D;else{let F=H.type,Y="png";F.includes("jpeg")||F.includes("jpg")?Y="jpg":F.includes("png")?Y="png":F.includes("svg")?Y="svg":F.includes("gif")?Y="gif":F.includes("webp")&&(Y="webp"),q=`${(n||D||"image").replace(Dw,"")}.${Y}`}gi(q,H,H.type)}catch{window.open(r,"_blank")}};return r?v.jsxs("div",{className:u("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[v.jsx("img",{alt:n,className:u("max-w-full rounded-lg",E&&"hidden",t),"data-streamdown":"image",onError:C,onLoad:w,ref:l,src:r,...s}),E&&v.jsx("span",{className:u("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:g.imageNotAvailable}),v.jsx("div",{className:u("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),_&&v.jsx("button",{className:u("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:M,title:g.downloadImage,type:"button",children:v.jsx(o,{size:14})})]}):null},ma=0,Y0=()=>{ma+=1,ma===1&&(document.body.style.overflow="hidden")},X0=()=>{ma=Math.max(0,ma-1),ma===0&&(document.body.style.overflow="")},Mw=({url:e,isOpen:t,onClose:r,onConfirm:n})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:s,XIcon:o}=mr(),u=Ie(),[l,c]=I.useState(!1),h=Xr(),f=I.useCallback(async()=>{try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch{}},[e]),d=I.useCallback(()=>{n(),r()},[n,r]);return I.useEffect(()=>{if(t){Y0();let g=y=>{y.key==="Escape"&&r()};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g),X0()}}},[t,r]),t?v.jsx("div",{className:u("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:r,onKeyDown:g=>{g.key==="Escape"&&r()},role:"button",tabIndex:0,children:v.jsxs("div",{className:u("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:g=>g.stopPropagation(),onKeyDown:g=>g.stopPropagation(),role:"presentation",children:[v.jsx("button",{className:u("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:r,title:h.close,type:"button",children:v.jsx(o,{size:16})}),v.jsxs("div",{className:u("flex flex-col gap-2"),children:[v.jsxs("div",{className:u("flex items-center gap-2 font-semibold text-lg"),children:[v.jsx(s,{size:20}),v.jsx("span",{children:h.openExternalLink})]}),v.jsx("p",{className:u("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),v.jsx("div",{className:u("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),v.jsxs("div",{className:u("flex gap-2"),children:[v.jsx("button",{className:u("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:f,type:"button",children:l?v.jsxs(v.Fragment,{children:[v.jsx(i,{size:14}),v.jsx("span",{children:h.copied})]}):v.jsxs(v.Fragment,{children:[v.jsx(a,{size:14}),v.jsx("span",{children:h.copyLink})]})}),v.jsxs("button",{className:u("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:d,type:"button",children:[v.jsx(s,{size:14}),v.jsx("span",{children:h.openLink})]})]})]})}):null},wl=I.createContext(null),K0=()=>I.useContext(wl),PD=()=>{var e;let t=K0();return(e=t==null?void 0:t.code)!=null?e:null},Q0=()=>{var e;let t=K0();return(e=t==null?void 0:t.mermaid)!=null?e:null},Bw=e=>{var t;let r=K0();return r!=null&&r.renderers&&e&&(t=r.renderers.find(n=>Array.isArray(n.language)?n.language.includes(e):n.language===e))!=null?t:null},Fw=(e,t)=>{var r;let n=(r=void 0)!=null?r:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let u=document.createElement("canvas"),l=o.width*n,c=o.height*n;u.width=l,u.height=c;let h=u.getContext("2d");if(!h){a(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(o,0,0,l,c),u.toBlob(f=>{if(!f){a(new Error("Failed to create PNG blob"));return}i(f)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},Hw=({chart:e,children:t,className:r,onDownload:n,config:i,onError:a})=>{let s=Ie(),[o,u]=I.useState(!1),l=I.useRef(null),{isAnimating:c}=I.useContext(Gt),h=mr(),f=Q0(),d=Xr(),g=async y=>{try{if(y==="mmd"){gi("diagram.mmd",e,"text/plain"),u(!1),n==null||n(y);return}if(!f){a==null||a(new Error("Mermaid plugin not available"));return}let _=f.getMermaid(i),E=e.split("").reduce((M,H)=>(M<<5)-M+H.charCodeAt(0)|0,0),w=`mermaid-${Math.abs(E)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:C}=await _.render(w,e);if(!C){a==null||a(new Error("SVG not found. Please wait for the diagram to render."));return}if(y==="svg"){gi("diagram.svg",C,"image/svg+xml"),u(!1),n==null||n(y);return}if(y==="png"){let M=await Fw(C);gi("diagram.png",M,"image/png"),n==null||n(y),u(!1);return}}catch(_){a==null||a(_)}};return I.useEffect(()=>{let y=_=>{let E=_.composedPath();l.current&&!E.includes(l.current)&&u(!1)};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),v.jsxs("div",{className:s("relative"),ref:l,children:[v.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:c,onClick:()=>u(!o),title:d.downloadDiagram,type:"button",children:t??v.jsx(h.DownloadIcon,{size:14})}),o?v.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[v.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>g("svg"),title:d.downloadDiagramAsSvg,type:"button",children:d.mermaidFormatSvg}),v.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>g("png"),title:d.downloadDiagramAsPng,type:"button",children:d.mermaidFormatPng}),v.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>g("mmd"),title:d.downloadDiagramAsMmd,type:"button",children:d.mermaidFormatMmd})]}):null]})},zw=({chart:e,config:t,onFullscreen:r,onExit:n,className:i,...a})=>{let{Maximize2Icon:s,XIcon:o}=mr(),u=Ie(),[l,c]=I.useState(!1),{isAnimating:h,controls:f}=I.useContext(Gt),d=Xr(),g=(()=>{if(typeof f=="boolean")return f;let _=f.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.panZoom!==!1})(),y=()=>{c(!l)};return I.useEffect(()=>{if(l){Y0();let _=E=>{E.key==="Escape"&&c(!1)};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_),X0()}}},[l]),I.useEffect(()=>{l?r==null||r():n&&n()},[l,r,n]),v.jsxs(v.Fragment,{children:[v.jsx("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:h,onClick:y,title:d.viewFullscreen,type:"button",...a,children:v.jsx(s,{size:14})}),l?s0.createPortal(v.jsxs("div",{className:u("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:y,onKeyDown:_=>{_.key==="Escape"&&y()},role:"button",tabIndex:0,children:[v.jsx("button",{className:u("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:y,title:d.exitFullscreen,type:"button",children:v.jsx(o,{size:20})}),v.jsx("div",{className:u("flex size-full items-center justify-center p-4"),onClick:_=>_.stopPropagation(),onKeyDown:_=>_.stopPropagation(),role:"presentation",children:v.jsx(Ng,{chart:e,className:u("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:g})})]}),document.body):null]})},Kp=e=>{var t,r;let n=[],i=[],a=e.querySelectorAll("thead th");for(let o of a)n.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let u=[],l=o.querySelectorAll("td");for(let c of l)u.push(((r=c.textContent)==null?void 0:r.trim())||"");i.push(u)}return{headers:n,rows:i}},Qp=e=>{let{headers:t,rows:r}=e,n=o=>{let u=!1,l=!1;for(let c of o){if(c==='"'){u=!0,l=!0;break}(c===","||c===`
114
+ `)&&(u=!0)}return u?l?`"${o.replace(/"/g,'""')}"`:`"${o}"`:o},i=t.length>0?r.length+1:r.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(n).join(","),s+=1);for(let o of r)a[s]=o.map(n).join(","),s+=1;return a.join(`
115
+ `)},Uw=e=>{let{headers:t,rows:r}=e,n=o=>{let u=!1;for(let c of o)if(c===" "||c===`
116
+ `||c==="\r"){u=!0;break}if(!u)return o;let l=[];for(let c of o)c===" "?l.push("\\t"):c===`
117
+ `?l.push("\\n"):c==="\r"?l.push("\\r"):l.push(c);return l.join("")},i=t.length>0?r.length+1:r.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(n).join(" "),s+=1);for(let o of r)a[s]=o.map(n).join(" "),s+=1;return a.join(`
118
+ `)},Eu=e=>{let t=!1;for(let n of e)if(n==="\\"||n==="|"){t=!0;break}if(!t)return e;let r=[];for(let n of e)n==="\\"?r.push("\\\\"):n==="|"?r.push("\\|"):r.push(n);return r.join("")},kl=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let n=new Array(r.length+2),i=0,a=t.map(o=>Eu(o));n[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";n[i]=`| ${s.join(" | ")} |`,i+=1;for(let o of r)if(o.length<t.length){let u=new Array(t.length);for(let l=0;l<t.length;l+=1)u[l]=l<o.length?Eu(o[l]):"";n[i]=`| ${u.join(" | ")} |`,i+=1}else{let u=o.map(l=>Eu(l));n[i]=`| ${u.join(" | ")} |`,i+=1}return n.join(`
119
+ `)},Zp=({children:e,className:t,onCopy:r,onError:n,timeout:i=2e3})=>{let a=Ie(),[s,o]=I.useState(!1),[u,l]=I.useState(!1),c=I.useRef(null),h=I.useRef(0),{isAnimating:f}=I.useContext(Gt),d=Xr(),g=async E=>{var w,C;if(typeof window>"u"||!((w=navigator==null?void 0:navigator.clipboard)!=null&&w.write)){n==null||n(new Error("Clipboard API not available"));return}try{let M=(C=c.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),H=M==null?void 0:M.querySelector("table");if(!H){n==null||n(new Error("Table not found"));return}let D=Kp(H),U=({csv:Qp,tsv:Uw,md:kl}[E]||kl)(D),$=new ClipboardItem({"text/plain":new Blob([U],{type:"text/plain"}),"text/html":new Blob([H.outerHTML],{type:"text/html"})});await navigator.clipboard.write([$]),l(!0),o(!1),r==null||r(E),h.current=window.setTimeout(()=>l(!1),i)}catch(M){n==null||n(M)}};I.useEffect(()=>{let E=w=>{let C=w.composedPath();c.current&&!C.includes(c.current)&&o(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E),window.clearTimeout(h.current)}},[]);let y=mr(),_=u?y.CheckIcon:y.CopyIcon;return v.jsxs("div",{className:a("relative"),ref:c,children:[v.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:f,onClick:()=>o(!s),title:d.copyTable,type:"button",children:e??v.jsx(_,{height:14,width:14})}),s?v.jsxs("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[v.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>g("md"),title:d.copyTableAsMarkdown,type:"button",children:d.tableFormatMarkdown}),v.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>g("csv"),title:d.copyTableAsCsv,type:"button",children:d.tableFormatCsv}),v.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>g("tsv"),title:d.copyTableAsTsv,type:"button",children:d.tableFormatTsv})]}):null]})},Jp=({children:e,className:t,onDownload:r,onError:n})=>{let i=Ie(),[a,s]=I.useState(!1),o=I.useRef(null),{isAnimating:u}=I.useContext(Gt),l=Xr(),c=mr(),h=f=>{var d;try{let g=(d=o.current)==null?void 0:d.closest('[data-streamdown="table-wrapper"]'),y=g==null?void 0:g.querySelector("table");if(!y){n==null||n(new Error("Table not found"));return}let _=Kp(y),E=f==="csv"?Qp(_):kl(_);gi(`table.${f==="csv"?"csv":"md"}`,E,f==="csv"?"text/csv":"text/markdown"),s(!1),r==null||r(f)}catch(g){n==null||n(g)}};return I.useEffect(()=>{let f=d=>{let g=d.composedPath();o.current&&!g.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[]),v.jsxs("div",{className:i("relative"),ref:o,children:[v.jsx("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>s(!a),title:l.downloadTable,type:"button",children:e??v.jsx(c.DownloadIcon,{size:14})}),a?v.jsxs("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[v.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("csv"),title:l.downloadTableAsCsv,type:"button",children:l.tableFormatCsv}),v.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("markdown"),title:l.downloadTableAsMarkdown,type:"button",children:l.tableFormatMarkdown})]}):null]})},$w=({children:e,className:t,showCopy:r=!0,showDownload:n=!0})=>{let{Maximize2Icon:i,XIcon:a}=mr(),s=Ie(),[o,u]=I.useState(!1),{isAnimating:l}=I.useContext(Gt),c=Xr(),h=()=>{u(!0)},f=()=>{u(!1)};return I.useEffect(()=>{if(o){Y0();let d=g=>{g.key==="Escape"&&u(!1)};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),X0()}}},[o]),v.jsxs(v.Fragment,{children:[v.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:h,title:c.viewFullscreen,type:"button",children:v.jsx(i,{size:14})}),o?s0.createPortal(v.jsx("div",{"aria-label":c.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:f,onKeyDown:d=>{d.key==="Escape"&&f()},role:"dialog",children:v.jsxs("div",{className:s("flex h-full flex-col"),onClick:d=>d.stopPropagation(),onKeyDown:d=>d.stopPropagation(),role:"presentation",children:[v.jsxs("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[r?v.jsx(Zp,{}):null,n?v.jsx(Jp,{}):null,v.jsx("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:f,title:c.exitFullscreen,type:"button",children:v.jsx(a,{size:20})})]}),v.jsx("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:v.jsx("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},jw=({children:e,className:t,showControls:r,showCopy:n=!0,showDownload:i=!0,showFullscreen:a=!0,...s})=>{let o=Ie(),u=r&&n,l=r&&i,c=r&&a,h=u||l||c;return v.jsxs("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?v.jsxs("div",{className:o("flex items-center justify-end gap-1"),children:[u?v.jsx(Zp,{}):null,l?v.jsx(Jp,{}):null,c?v.jsx($w,{showCopy:u,showDownload:l,children:e}):null]}):null,v.jsx("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:v.jsx("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...s,children:e})})]})},Vw=/startLine=(\d+)/,qw=/\bnoLineNumbers\b/,Gw=I.lazy(()=>k(()=>Promise.resolve().then(()=>vD),void 0).then(e=>({default:e.Mermaid}))),Ww=/language-([^\s]+)/;function vo(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,i=e.position.end,a=t.position.end;return(r==null?void 0:r.line)===(n==null?void 0:n.line)&&(r==null?void 0:r.column)===(n==null?void 0:n.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function Ze(e,t){return e.className===t.className&&vo(e.node,t.node)}var Al=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,xu=(e,t)=>{if(typeof e=="boolean")return e;let r=e.table;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},bd=(e,t)=>{if(typeof e=="boolean")return e;let r=e.code;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},es=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Z0=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...n,children:e})},(e,t)=>Ze(e,t));Z0.displayName="MarkdownOl";var eg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:e})},(e,t)=>e.className===t.className&&vo(e.node,t.node));eg.displayName="MarkdownLi";var tg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...n,children:e})},(e,t)=>Ze(e,t));tg.displayName="MarkdownUl";var rg=I.memo(({className:e,node:t,...r})=>{let n=Ie();return v.jsx("hr",{className:n("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r})},(e,t)=>Ze(e,t));rg.displayName="MarkdownHr";var ng=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("span",{className:i("font-semibold",t),"data-streamdown":"strong",...n,children:e})},(e,t)=>Ze(e,t));ng.displayName="MarkdownStrong";var Yw=({children:e,className:t,href:r,node:n,...i})=>{let a=Ie(),{linkSafety:s}=I.useContext(Gt),[o,u]=I.useState(!1),l=r==="streamdown:incomplete-link",c=I.useCallback(async g=>{if(!(!(s!=null&&s.enabled&&r)||l)){if(g.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(r)){window.open(r,"_blank","noreferrer");return}u(!0)}},[s,r,l]),h=I.useCallback(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),f=I.useCallback(()=>{u(!1)},[]),d={url:r??"",isOpen:o,onClose:f,onConfirm:h};return s!=null&&s.enabled&&r?v.jsxs(v.Fragment,{children:[v.jsx("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":l,"data-streamdown":"link",onClick:c,type:"button",children:e}),s.renderModal?s.renderModal(d):v.jsx(Mw,{...d})]}):v.jsx("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":l,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...i,children:e})},ig=I.memo(Yw,(e,t)=>Ze(e,t)&&e.href===t.href);ig.displayName="MarkdownA";var ag=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e})},(e,t)=>Ze(e,t));ag.displayName="MarkdownH1";var sg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e})},(e,t)=>Ze(e,t));sg.displayName="MarkdownH2";var og=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e})},(e,t)=>Ze(e,t));og.displayName="MarkdownH3";var ug=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e})},(e,t)=>Ze(e,t));ug.displayName="MarkdownH4";var lg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e})},(e,t)=>Ze(e,t));lg.displayName="MarkdownH5";var cg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e})},(e,t)=>Ze(e,t));cg.displayName="MarkdownH6";var hg=I.memo(({children:e,className:t,node:r,...n})=>{let{controls:i}=I.useContext(Gt),a=Al(i,"table"),s=xu(i,"copy"),o=xu(i,"download"),u=xu(i,"fullscreen");return v.jsx(jw,{className:t,showControls:a,showCopy:s,showDownload:o,showFullscreen:u,...n,children:e})},(e,t)=>Ze(e,t));hg.displayName="MarkdownTable";var dg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e})},(e,t)=>Ze(e,t));dg.displayName="MarkdownThead";var fg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...n,children:e})},(e,t)=>Ze(e,t));fg.displayName="MarkdownTbody";var mg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("tr",{className:i("border-border",t),"data-streamdown":"table-row",...n,children:e})},(e,t)=>Ze(e,t));mg.displayName="MarkdownTr";var pg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e})},(e,t)=>Ze(e,t));pg.displayName="MarkdownTh";var gg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e})},(e,t)=>Ze(e,t));gg.displayName="MarkdownTd";var bg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e})},(e,t)=>Ze(e,t));bg.displayName="MarkdownBlockquote";var yg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...n,children:e})},(e,t)=>Ze(e,t));yg.displayName="MarkdownSup";var Eg=I.memo(({children:e,className:t,node:r,...n})=>{let i=Ie();return v.jsx("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...n,children:e})},(e,t)=>Ze(e,t));Eg.displayName="MarkdownSub";var xg=I.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let i=s=>{var o,u;if(!I.isValidElement(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],c=!1,h=!1;for(let f of l)if(f){if(typeof f=="string")f.trim()!==""&&(c=!0);else if(I.isValidElement(f))if(((o=f.props)==null?void 0:o["data-footnote-backref"])!==void 0)h=!0;else{let d=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let g of d){if(typeof g=="string"&&g.trim()!==""){c=!0;break}if(I.isValidElement(g)&&((u=g.props)==null?void 0:u["data-footnote-backref"])===void 0){c=!0;break}}}}return h&&!c},a=Array.isArray(e)?e.map(s=>{if(!I.isValidElement(s))return s;if(s.type===Z0){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(u=>!i(u));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?v.jsx("section",{className:t,...n,children:a}):null}return v.jsx("section",{className:t,...n,children:e})},(e,t)=>Ze(e,t));xg.displayName="MarkdownSection";var Xw=({node:e,className:t,children:r,...n})=>{var i,a;let s=Ie(),o=!("data-block"in n),{mermaid:u,controls:l,lineNumbers:c}=I.useContext(Gt),h=Q0(),f=hw(),d=t==null?void 0:t.match(Ww),g=(i=d==null?void 0:d.at(1))!=null?i:"",y=Bw(g);if(o)return v.jsx("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let _=(a=e==null?void 0:e.properties)==null?void 0:a.metastring,E=_==null?void 0:_.match(Vw),w=E?Number.parseInt(E[1],10):void 0,C=w!==void 0&&w>=1?w:void 0,M=!(_&&qw.test(_))&&c!==!1,H="";if(I.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?H=r.props.children:typeof r=="string"&&(H=r),y){let q=y.component;return v.jsx(I.Suspense,{fallback:v.jsx(gd,{}),children:v.jsx(q,{code:H,isIncomplete:f,language:g,meta:_})})}if(g==="mermaid"&&h){let q=Al(l,"mermaid"),F=es(l,"download"),Y=es(l,"copy"),X=es(l,"fullscreen"),de=es(l,"panZoom"),ie=q&&(F||Y||X);return v.jsx(I.Suspense,{fallback:v.jsx(gd,{}),children:v.jsxs("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[v.jsx("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:v.jsx("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),ie?v.jsx("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:v.jsxs("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[F?v.jsx(Hw,{chart:H,config:u==null?void 0:u.config}):null,Y?v.jsx(md,{code:H}):null,X?v.jsx(zw,{chart:H,config:u==null?void 0:u.config}):null]})}):null,v.jsx("div",{className:s("rounded-md border border-border bg-background"),children:v.jsx(Gw,{chart:H,config:u==null?void 0:u.config,showControls:de})})]})})}let D=Al(l,"code"),U=bd(l,"download"),$=bd(l,"copy");return v.jsx(_w,{className:t,code:H,isIncomplete:f,language:g,lineNumbers:M,startLine:C,children:D?v.jsxs(v.Fragment,{children:[U?v.jsx(Ow,{code:H,language:g}):null,$?v.jsx(md,{}):null]}):null})},_g=I.memo(Xw,(e,t)=>e.className===t.className&&vo(e.node,t.node));_g.displayName="MarkdownCode";var Tg=I.memo(Pw,(e,t)=>e.className===t.className&&vo(e.node,t.node));Tg.displayName="MarkdownImg";var vg=I.memo(({children:e,node:t,...r})=>{let n=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(n.length===1&&I.isValidElement(n[0])){let i=n[0].props.node,a=i==null?void 0:i.tagName;if(a==="img")return v.jsx(v.Fragment,{children:e});if(a==="code"&&"data-block"in n[0].props)return v.jsx(v.Fragment,{children:e})}return v.jsx("p",{...r,children:e})},(e,t)=>Ze(e,t));vg.displayName="MarkdownParagraph";var Kw={ol:Z0,li:eg,ul:tg,hr:rg,strong:ng,a:ig,h1:ag,h2:sg,h3:og,h4:ug,h5:lg,h6:cg,table:hg,thead:dg,tbody:fg,tr:mg,th:pg,td:gg,blockquote:bg,code:_g,img:Tg,pre:({children:e})=>I.isValidElement(e)?I.cloneElement(e,{"data-block":"true"}):e,sup:yg,sub:Eg,p:vg,section:xg},Qw=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,Zw=new RegExp("\\p{L}","u");function yd(e){let t=e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"");for(let r of t){if(Qw.test(r))return"rtl";if(Zw.test(r))return"ltr"}return"ltr"}var Jw=/^[ \t]{0,3}(`{3,}|~{3,})/,ek=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,Ed=e=>{let t=e.split(`
120
+ `),r=null,n=0;for(let i of t){let a=Jw.exec(i);if(r===null){if(a){let s=a[1];r=s[0],n=s.length}}else if(a){let s=a[1],o=s[0],u=s.length;o===r&&u>=n&&(r=null,n=0)}}return r!==null},tk=e=>{let t=e.split(`
121
+ `);for(let r of t){let n=r.trim();if(n.length>0&&n.includes("|")&&ek.test(n))return!0}return!1},rk=()=>e=>{wr(e,"html",(t,r,n)=>{!n||typeof r!="number"||(n.children[r]={type:"text",value:t.value})})},xd=[],_d={allowDangerousHtml:!0},ts=new WeakMap,nk=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(r||n||i)){let c="default";return this.keyCache.set(e,c),c}let a=c=>{if(!c||c.length===0)return"";let h="";for(let f=0;f<c.length;f+=1){let d=c[f];if(f>0&&(h+=","),Array.isArray(d)){let[g,y]=d;if(typeof g=="function"){let _=ts.get(g);_||(_=g.name,ts.set(g,_)),h+=_}else h+=String(g);h+=":",h+=JSON.stringify(y)}else if(typeof d=="function"){let g=ts.get(d);g||(g=d.name,ts.set(d,g)),h+=g}else h+=String(d)}return h},s=a(r),o=a(n),u=i?JSON.stringify(i):"",l=`${o}::${s}::${u}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},Td=new nk,wg=e=>{let t=ik(e),r=e.children||"",n=t.runSync(t.parse(r),r);return hk(n,e)},ik=e=>{let t=Td.get(e);if(t)return t;let r=sk(e);return Td.set(e,r),r},ak=e=>e.some(t=>Array.isArray(t)?t[0]===ll:t===ll),sk=e=>{let t=e.rehypePlugins||xd,r=e.remarkPlugins||xd,n=ak(t)?r:[...r,rk],i=e.remarkRehypeOptions?{..._d,...e.remarkRehypeOptions}:_d;return ov().use(sT).use(n).use($T,i).use(t)},ok=e=>e,uk=(e,t,r,n)=>{r?e.children.splice(t,1):e.children[t]={type:"text",value:n}},lk=(e,t)=>{var r;for(let n in cu)if(Object.hasOwn(cu,n)&&Object.hasOwn(e.properties,n)){let i=e.properties[n],a=cu[n];(a===null||a.includes(e.tagName))&&(e.properties[n]=(r=t(String(i||""),n,e))!=null?r:void 0)}},ck=(e,t,r,n,i,a)=>{let s=!1;return n?s=!n.includes(e.tagName):i&&(s=i.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,r)),s},hk=(e,t)=>{let{allowElement:r,allowedElements:n,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(r||n||i||a||o){let u=o||ok;wr(e,(l,c,h)=>{if(l.type==="raw"&&h&&typeof c=="number")return uk(h,c,a,l.value),c;if(l.type==="element"&&(lk(l,u),ck(l,c,h,n,i,r)&&h&&typeof c=="number"))return s&&l.children?h.children.splice(c,1,...l.children):h.children.splice(c,1),c})}return m_(e,{Fragment:v.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0})},dk=/\[\^[\w-]{1,200}\](?!:)/,fk=/\[\^[\w-]{1,200}\]:/,mk=/<(\w+)[\s>]/,pk=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),vd=new Map,wd=new Map,gk=e=>{let t=e.toLowerCase(),r=vd.get(t);if(r)return r;let n=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return vd.set(t,n),n},bk=e=>{let t=e.toLowerCase(),r=wd.get(t);if(r)return r;let n=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return wd.set(t,n),n},kd=(e,t)=>{if(pk.has(t.toLowerCase()))return 0;let r=e.match(gk(t));if(!r)return 0;let n=0;for(let i of r)i.trimEnd().endsWith("/>")||(n+=1);return n},Ad=(e,t)=>{let r=e.match(bk(t));return r?r.length:0},yk=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},Ek=e=>{let t=dk.test(e),r=fk.test(e);if(t||r)return[e];let n=er.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let o of n){let u=o.raw,l=i.length;if(a.length>0){i[l-1]+=u;let c=a.at(-1),h=kd(u,c),f=Ad(u,c);for(let d=0;d<h;d+=1)a.push(c);for(let d=0;d<f;d+=1)a.length>0&&a.at(-1)===c&&a.pop();continue}if(o.type==="html"&&o.block){let c=u.match(mk);if(c){let h=c[1],f=kd(u,h),d=Ad(u,h);f>d&&a.push(h)}}if(l>0&&!s){let c=i[l-1];if(yk(c)%2===1){i[l-1]=c+u;continue}}i.push(u),o.type!=="space"&&(s=o.type==="code")}return i},xk=(e,t)=>{if(!t.length)return e;let r=e;for(let n of t){let i=new RegExp(`(<${n}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${n}\\s*>)`,"gi");r=r.replace(i,(a,s,o,u)=>{if(!o.includes(`
122
+
123
+ `))return s+o+u;let l=o.replace(/\n\n/g,`
124
+ <!---->
125
+ `),c=(l.startsWith(`
126
+ `)?"":`
127
+ `)+l+(l.endsWith(`
128
+ `)?"":`
129
+ `);return`${s}${c}${u}
130
+
131
+ `})}return r},_k=/([\\`*_~[\]|])/g,Tk=e=>e.replace(_k,"\\$1"),vk=(e,t)=>{if(!t.length)return e;let r=e;for(let n of t){let i=new RegExp(`(<${n}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${n}\\s*>)`,"gi");r=r.replace(i,(a,s,o,u)=>{let l=Tk(o).replace(/\n\n/g,"&#10;&#10;");return s+l+u})}return r},kg=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(kg).join(""):"",wk=e=>t=>{if(!e||e.length===0)return;let r=new Set(e.map(n=>n.toLowerCase()));wr(t,"element",n=>{if(r.has(n.tagName.toLowerCase())){let i=kg(n);n.children=i?[{type:"text",value:i}]:[]}})},kk=()=>e=>{wr(e,"code",t=>{var r,n;t.meta&&(t.data=(r=t.data)!=null?r:{},t.data.hProperties={...(n=t.data.hProperties)!=null?n:{},metastring:t.meta})})},Ak=/^[ \t]*<[\w!/?-]/,Ck=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Sk=e=>typeof e!="string"||e.length===0||!Ak.test(e)?e:e.replace(Ck,"$1"),Cd,Sd,Id,Nd,vs={...Dn,protocols:{...Dn.protocols,href:[...(Sd=(Cd=Dn.protocols)==null?void 0:Cd.href)!=null?Sd:[],"tel"]},attributes:{...Dn.attributes,code:[...(Nd=(Id=Dn.attributes)==null?void 0:Id.code)!=null?Nd:[],"metastring"]}},Cl={raw:ll,sanitize:[bm,vs],harden:[z3,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Ik={gfm:[e9,{}],codeMeta:kk},Rd=Object.values(Cl),Nk=Object.values(Ik),Rk={block:" ▋",circle:" ●"},Ag=["github-light","github-dark"],Cg={enabled:!0},Lk={shikiTheme:Ag,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:Cg},Gt=I.createContext(Lk),Sg=I.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:r,index:n,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{if(s){let c=s.getLastRenderCharCount();s.setPrevContentLength(c)}let u=typeof e=="string"&&r?Sk(e):e,l=v.jsx(wg,{...o,children:u});return v.jsx(qp.Provider,{value:i,children:a?v.jsx("div",{dir:a,style:{display:"contents"},children:l}):l})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});Sg.displayName="Block";var Ig=I.memo(({children:e,mode:t="streaming",dir:r,parseIncompleteMarkdown:n=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:s=Rd,remarkPlugins:o=Nk,className:u,shikiTheme:l=Ag,mermaid:c,controls:h=!0,isAnimating:f=!1,animated:d,BlockComponent:g=Sg,parseMarkdownIntoBlocksFn:y=Ek,caret:_,plugins:E,remend:w,linkSafety:C=Cg,lineNumbers:M=!0,allowedTags:H,literalTagContent:D,translations:U,icons:$,prefix:q,onAnimationStart:F,onAnimationEnd:Y,...X})=>{let de=I.useId(),[ie,W]=I.useTransition(),re=I.useMemo(()=>fw(q),[q]),fe=I.useRef(null),Ne=I.useRef(F),Ve=I.useRef(Y);Ne.current=F,Ve.current=Y,I.useEffect(()=>{var xe,Le,ut;if(t==="static")return;let Kt=fe.current;if(fe.current=f,Kt===null){f&&((xe=Ne.current)==null||xe.call(Ne));return}f&&!Kt?(Le=Ne.current)==null||Le.call(Ne):!f&&Kt&&((ut=Ve.current)==null||ut.call(Ve))},[f,t]);let S=I.useMemo(()=>H?Object.keys(H):[],[H]),De=I.useMemo(()=>{if(typeof e!="string")return"";let xe=t==="streaming"&&n?hx(e,w):e;return D&&D.length>0&&(xe=vk(xe,D)),S.length>0&&(xe=xk(xe,S)),xe},[e,t,n,w,S,D]),Ue=I.useMemo(()=>y(De),[De,y]),[P,je]=I.useState(Ue);I.useEffect(()=>{t==="streaming"&&!Ee?W(()=>{je(Ue)}):je(Ue)},[Ue,t]);let ke=t==="streaming"?P:Ue,ve=I.useMemo(()=>r==="auto"?ke.map(yd):void 0,[ke,r]),Ke=I.useMemo(()=>ke.map((xe,Le)=>`${de}-${Le}`),[ke.length,de]),Je=I.useMemo(()=>d===!0?"true":d?JSON.stringify(d):"",[d]),Ee=I.useMemo(()=>Je?Je==="true"?_l():_l(d):null,[Je]),pt=I.useMemo(()=>{var xe,Le;return{shikiTheme:(Le=(xe=E==null?void 0:E.code)==null?void 0:xe.getThemes())!=null?Le:l,controls:h,isAnimating:f,lineNumbers:M,mode:t,mermaid:c,linkSafety:C}},[l,h,f,M,t,c,C,E==null?void 0:E.code]),xt=I.useMemo(()=>U?JSON.stringify(U):"",[U]),St=I.useMemo(()=>({...Xp,...U}),[xt]),ot=I.useMemo(()=>{let{inlineCode:xe,...Le}=a??{},ut={...Kw,...Le};if(xe){let Kt=ut.code;ut.code=Lr=>"data-block"in Lr?Kt?I.createElement(Kt,Lr):null:I.createElement(xe,Lr)}return ut},[a]),_t=I.useMemo(()=>{let xe=[];return E!=null&&E.cjk&&(xe=[...xe,...E.cjk.remarkPluginsBefore]),xe=[...xe,...o],E!=null&&E.cjk&&(xe=[...xe,...E.cjk.remarkPluginsAfter]),E!=null&&E.math&&(xe=[...xe,E.math.remarkPlugin]),xe},[o,E==null?void 0:E.math,E==null?void 0:E.cjk]),Rr=I.useMemo(()=>{var xe;let Le=s;if(H&&Object.keys(H).length>0&&s===Rd){let ut={...vs,tagNames:[...(xe=vs.tagNames)!=null?xe:[],...Object.keys(H)],attributes:{...vs.attributes,...H}};Le=[Cl.raw,[bm,ut],Cl.harden]}return D&&D.length>0&&(Le=[...Le,[wk,D]]),E!=null&&E.math&&(Le=[...Le,E.math.rehypePlugin]),Ee&&f&&(Le=[...Le,Ee.rehypePlugin]),Le},[s,E==null?void 0:E.math,Ee,f,H,D]),pr=I.useMemo(()=>{if(!f||ke.length===0)return!1;let xe=ke.at(-1);return Ed(xe)||tk(xe)},[f,ke]),Jr=I.useMemo(()=>_&&f&&!pr?{"--streamdown-caret":`"${Rk[_]}"`}:void 0,[_,f,pr]);return t==="static"?v.jsx(vl.Provider,{value:St,children:v.jsx(wl.Provider,{value:E??null,children:v.jsx(Gt.Provider,{value:pt,children:v.jsx(fd,{icons:$,children:v.jsx(Tl.Provider,{value:re,children:v.jsx("div",{className:re("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",u),dir:r==="auto"?yd(De):r,children:v.jsx(wg,{components:ot,rehypePlugins:Rr,remarkPlugins:_t,...X,children:De})})})})})})}):v.jsx(vl.Provider,{value:St,children:v.jsx(wl.Provider,{value:E??null,children:v.jsx(Gt.Provider,{value:pt,children:v.jsx(fd,{icons:$,children:v.jsx(Tl.Provider,{value:re,children:v.jsxs("div",{className:re("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",_&&!pr?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,u),style:Jr,children:[ke.length===0&&_&&f&&v.jsx("span",{}),ke.map((xe,Le)=>{var ut;let Kt=Le===ke.length-1,Lr=f&&Kt&&Ed(xe);return v.jsx(g,{animatePlugin:Ee,components:ot,content:xe,dir:(ut=ve==null?void 0:ve[Le])!=null?ut:r!=="auto"?r:void 0,index:Le,isIncomplete:Lr,rehypePlugins:Rr,remarkPlugins:_t,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:n,...X},Ke[Le])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Ig.displayName="Streamdown";var Ok=({children:e,className:t,minZoom:r=.5,maxZoom:n=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let{RotateCcwIcon:u,ZoomInIcon:l,ZoomOutIcon:c}=mr(),h=Ie(),f=I.useRef(null),d=I.useRef(null),[g,y]=I.useState(s),[_,E]=I.useState({x:0,y:0}),[w,C]=I.useState(!1),[M,H]=I.useState({x:0,y:0}),[D,U]=I.useState({x:0,y:0}),$=I.useCallback(re=>{y(fe=>Math.max(r,Math.min(n,fe+re)))},[r,n]),q=I.useCallback(()=>{$(i)},[$,i]),F=I.useCallback(()=>{$(-i)},[$,i]),Y=I.useCallback(()=>{y(s),E({x:0,y:0})},[s]),X=I.useCallback(re=>{re.preventDefault();let fe=re.deltaY>0?-i:i;$(fe)},[$,i]),de=I.useCallback(re=>{if(re.button!==0||re.isPrimary===!1)return;C(!0),H({x:re.clientX,y:re.clientY}),U(_);let fe=re.currentTarget;fe instanceof HTMLElement&&fe.setPointerCapture(re.pointerId)},[_]),ie=I.useCallback(re=>{if(!w)return;re.preventDefault();let fe=re.clientX-M.x,Ne=re.clientY-M.y;E({x:D.x+fe,y:D.y+Ne})},[w,M,D]),W=I.useCallback(re=>{C(!1);let fe=re.currentTarget;fe instanceof HTMLElement&&fe.releasePointerCapture(re.pointerId)},[]);return I.useEffect(()=>{let re=f.current;if(re)return re.addEventListener("wheel",X,{passive:!1}),()=>{re.removeEventListener("wheel",X)}},[X]),I.useEffect(()=>{let re=d.current;if(re&&w)return document.body.style.userSelect="none",re.addEventListener("pointermove",ie,{passive:!1}),re.addEventListener("pointerup",W),re.addEventListener("pointercancel",W),()=>{document.body.style.userSelect="",re.removeEventListener("pointermove",ie),re.removeEventListener("pointerup",W),re.removeEventListener("pointercancel",W)}},[w,ie,W]),v.jsxs("div",{className:h("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:f,style:{cursor:w?"grabbing":"grab"},children:[a?v.jsxs("div",{className:h("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[v.jsx("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:g>=n,onClick:q,title:"Zoom in",type:"button",children:v.jsx(l,{size:16})}),v.jsx("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:g<=r,onClick:F,title:"Zoom out",type:"button",children:v.jsx(c,{size:16})}),v.jsx("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:Y,title:"Reset zoom and pan",type:"button",children:v.jsx(u,{size:16})})]}):null,v.jsx("div",{className:h("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:de,ref:d,role:"application",style:{transform:`translate(${_.x}px, ${_.y}px) scale(${g})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Ng=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:i=!0})=>{let a=Ie(),[s,o]=I.useState(null),[u,l]=I.useState(!1),[c,h]=I.useState(""),[f,d]=I.useState(""),[g,y]=I.useState(0),{mermaid:_}=I.useContext(Gt),E=Q0(),w=_==null?void 0:_.errorComponent,{shouldRender:C,containerRef:M}=tw({immediate:n});if(I.useEffect(()=>{if(C){if(!E){o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{o(null),l(!0);let D=E.getMermaid(r),U=e.split("").reduce((F,Y)=>(F<<5)-F+Y.charCodeAt(0)|0,0),$=`mermaid-${Math.abs(U)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:q}=await D.render($,e);h(q),d(q)}catch(D){if(!(f||c)){let U=D instanceof Error?D.message:"Failed to render Mermaid chart";o(U)}}finally{l(!1)}})()}},[e,r,g,C,E]),!(C||c||f))return v.jsx("div",{className:a("my-4 min-h-[200px]",t),ref:M});if(u&&!c&&!f)return v.jsx("div",{className:a("my-4 flex justify-center p-4",t),ref:M,children:v.jsxs("div",{className:a("flex items-center space-x-2 text-muted-foreground"),children:[v.jsx("div",{className:a("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),v.jsx("span",{className:a("text-sm"),children:"Loading diagram..."})]})});if(s&&!c&&!f){let D=()=>y(U=>U+1);return w?v.jsx("div",{ref:M,children:v.jsx(w,{chart:e,error:s,retry:D})}):v.jsxs("div",{className:a("rounded-md bg-red-50 p-4",t),ref:M,children:[v.jsxs("p",{className:a("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),v.jsxs("details",{className:a("mt-2"),children:[v.jsx("summary",{className:a("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),v.jsx("pre",{className:a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let H=c||f;return v.jsx("div",{className:a("size-full",t),"data-streamdown":"mermaid",ref:M,children:v.jsx(Ok,{className:a(n?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:n,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:v.jsx("div",{"aria-label":"Mermaid chart",className:a("flex justify-center",n?"size-full items-center":null),dangerouslySetInnerHTML:{__html:H},role:"img"})})})};let nt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Dk(e){return J0(e)}function J0(e){return Array.isArray(e)?Pk(e):e instanceof RegExp?e:typeof e=="object"?Mk(e):e}function Pk(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=J0(e[r]);return t}function Mk(e){let t={};for(let r in e)t[r]=J0(e[r]);return t}function Rg(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function Lg(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Lg(e.substring(0,e.length-1)):e.substr(~t+1)}var _u=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,rs=class{static hasCaptures(e){return e===null?!1:(_u.lastIndex=0,_u.test(e))}static replaceCaptures(e,t,r){return e.replace(_u,(n,i,a,s)=>{let o=r[parseInt(i||a,10)];if(o){let u=t.substring(o.start,o.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return n})}};function Og(e,t){return e<t?-1:e>t?1:0}function Dg(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let i=0;i<r;i++){let a=Og(e[i],t[i]);if(a!==0)return a}return 0}return r-n}function Ld(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Pg(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Mg=class{constructor(e){j(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},js=class{constructor(e,t,r){j(this,"_cachedMatchRoot",new Mg(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(Hk(e),t)}static createFromParsedTheme(e,t){return Uk(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(i=>Bk(e.parent,i.parentScopes));return n?new Bg(n.fontStyle,n.foreground,n.background):null}},Tu=class ws{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new ws(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new ws(r,t[n]);return r}push(t){return new ws(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function Bk(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!Fk(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Fk(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Bg=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function Hk(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let i=0,a=t.length;i<a;i++){let s=t[i];if(!s.settings)continue;let o;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),o=h.split(",")}else Array.isArray(s.scope)?o=s.scope:o=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let h=s.settings.fontStyle.split(" ");for(let f=0,d=h.length;f<d;f++)switch(h[f]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let l=null;typeof s.settings.foreground=="string"&&Ld(s.settings.foreground)&&(l=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&Ld(s.settings.background)&&(c=s.settings.background);for(let h=0,f=o.length;h<f;h++){let g=o[h].trim().split(" "),y=g[g.length-1],_=null;g.length>1&&(_=g.slice(0,g.length-1),_.reverse()),r[n++]=new zk(y,_,i,u,l,c)}}return r}var zk=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},vt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(vt||{});function Uk(e,t){e.sort((u,l)=>{let c=Og(u.scope,l.scope);return c!==0||(c=Dg(u.parentScopes,l.parentScopes),c!==0)?c:u.index-l.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(n=u.foreground),u.background!==null&&(i=u.background)}let a=new $k(t),s=new Bg(r,a.getId(n),a.getId(i)),o=new Vk(new Sl(0,null,-1,0,0),[]);for(let u=0,l=e.length;u<l;u++){let c=e[u];o.insert(0,c.scope,c.parentScopes,c.fontStyle,a.getId(c.foreground),a.getId(c.background))}return new js(a,s,o)}var $k=class{constructor(e){j(this,"_isFrozen");j(this,"_lastColorId");j(this,"_id2color");j(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},jk=Object.freeze([]),Sl=class Fg{constructor(t,r,n,i,a){j(this,"scopeDepth");j(this,"parentScopes");j(this,"fontStyle");j(this,"foreground");j(this,"background");this.scopeDepth=t,this.parentScopes=r||jk,this.fontStyle=n,this.foreground=i,this.background=a}clone(){return new Fg(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},Vk=class Il{constructor(t,r=[],n={}){j(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,i=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=t.parentScopes.length||i>=r.parentScopes.length);){const a=r.parentScopes[i].length-t.parentScopes[n].length;if(a!==0)return a;n++,i++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),i,a;if(n===-1?(i=t,a=""):(i=t.substring(0,n),a=t.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(a)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Il._cmpBySpecificity),r}insert(t,r,n,i,a,s){if(r===""){this._doInsertHere(t,n,i,a,s);return}let o=r.indexOf("."),u,l;o===-1?(u=r,l=""):(u=r.substring(0,o),l=r.substring(o+1));let c;this._children.hasOwnProperty(u)?c=this._children[u]:(c=new Il(this._mainRule.clone(),Sl.cloneArr(this._rulesWithParentScopes)),this._children[u]=c),c.insert(t+1,l,n,i,a,s)}_doInsertHere(t,r,n,i,a){if(r===null){this._mainRule.acceptOverwrite(t,n,i,a);return}for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let u=this._rulesWithParentScopes[s];if(Dg(u.parentScopes,r)===0){u.acceptOverwrite(t,n,i,a);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Sl(t,r,n,i,a))}},Ti=class Qt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=Qt.getLanguageId(t),n=Qt.getTokenType(t),i=Qt.getFontStyle(t),a=Qt.getForeground(t),s=Qt.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:a,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,i,a,s,o){let u=Qt.getLanguageId(t),l=Qt.getTokenType(t),c=Qt.containsBalancedBrackets(t)?1:0,h=Qt.getFontStyle(t),f=Qt.getForeground(t),d=Qt.getBackground(t);return r!==0&&(u=r),n!==8&&(l=n),i!==null&&(c=i?1:0),a!==-1&&(h=a),s!==0&&(f=s),o!==0&&(d=o),(u<<0|l<<8|c<<10|h<<11|f<<15|d<<24)>>>0}};function Vs(e,t){const r=[],n=qk(e);let i=n.next();for(;i!==null;){let u=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=s();if(r.push({matcher:l,priority:u}),i!==",")break;i=n.next()}return r;function a(){if(i==="-"){i=n.next();const u=a();return l=>!!u&&!u(l)}if(i==="("){i=n.next();const u=o();return i===")"&&(i=n.next()),u}if(Od(i)){const u=[];do u.push(i),i=n.next();while(Od(i));return l=>t(u,l)}return null}function s(){const u=[];let l=a();for(;l;)u.push(l),l=a();return c=>u.every(h=>h(c))}function o(){const u=[];let l=s();for(;l&&(u.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=s()}return c=>u.some(h=>h(c))}}function Od(e){return!!e&&!!e.match(/[\w\.:]+/)}function qk(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function Hg(e){typeof e.dispose=="function"&&e.dispose()}var va=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Gk=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Wk=class{constructor(){j(this,"_references",[]);j(this,"_seenReferenceKeys",new Set);j(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Yk=class{constructor(e,t){j(this,"seenFullScopeRequests",new Set);j(this,"seenPartialScopeRequests",new Set);j(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new va(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new Wk;for(const r of e)Xk(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof va){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Xk(e,t,r,n){const i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=r.lookup(t);e instanceof va?ks({baseGrammar:a,selfGrammar:i},n):Nl(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);const s=r.injections(e.scopeName);if(s)for(const o of s)n.add(new va(o))}function Nl(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];qs([n],t,r)}}function ks(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&qs(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&qs(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function qs(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Rg({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&qs(n.patterns,{...t,repository:i},r);const a=n.include;if(!a)continue;const s=zg(a);switch(s.kind){case 0:ks({...t,selfGrammar:t.baseGrammar},r);break;case 1:ks(t,r);break;case 2:Nl(s.ruleName,{...t,repository:i},r);break;case 3:case 4:const o=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){const u={baseGrammar:t.baseGrammar,selfGrammar:o,repository:i};s.kind===4?Nl(s.ruleName,u,r):ks(u,r)}else s.kind===4?r.add(new Gk(s.scopeName,s.ruleName)):r.add(new va(s.scopeName));break}}}var Kk=class{constructor(){j(this,"kind",0)}},Qk=class{constructor(){j(this,"kind",1)}},Zk=class{constructor(e){j(this,"kind",2);this.ruleName=e}},Jk=class{constructor(e){j(this,"kind",3);this.scopeName=e}},eA=class{constructor(e,t){j(this,"kind",4);this.scopeName=e,this.ruleName=t}};function zg(e){if(e==="$base")return new Kk;if(e==="$self")return new Qk;const t=e.indexOf("#");if(t===-1)return new Jk(e);if(t===0)return new Zk(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new eA(r,n)}}var tA=/\\(\d+)/,Dd=/\\(\d+)/g,rA=-1,Ug=-2;var za=class{constructor(e,t,r,n){j(this,"$location");j(this,"id");j(this,"_nameIsCapturing");j(this,"_name");j(this,"_contentNameIsCapturing");j(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=rs.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=rs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Lg(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:rs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:rs.replaceCaptures(this._contentName,e,t)}},nA=class extends za{constructor(t,r,n,i,a){super(t,r,n,i);j(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,i){throw new Error("Not supported!")}},iA=class extends za{constructor(t,r,n,i,a){super(t,r,n,null);j(this,"_match");j(this,"captures");j(this,"_cachedCompiledPatterns");this._match=new wa(i,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ka,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Pd=class extends za{constructor(t,r,n,i,a){super(t,r,n,i);j(this,"hasMissingPatterns");j(this,"patterns");j(this,"_cachedCompiledPatterns");this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ka,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rl=class extends za{constructor(t,r,n,i,a,s,o,u,l,c){super(t,r,n,i);j(this,"_begin");j(this,"beginCaptures");j(this,"_end");j(this,"endHasBackReferences");j(this,"endCaptures");j(this,"applyEndPatternLast");j(this,"hasMissingPatterns");j(this,"patterns");j(this,"_cachedCompiledPatterns");this._begin=new wa(a,this.id),this.beginCaptures=s,this._end=new wa(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=u,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,i)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ka;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Gs=class extends za{constructor(t,r,n,i,a,s,o,u,l){super(t,r,n,i);j(this,"_begin");j(this,"beginCaptures");j(this,"whileCaptures");j(this,"_while");j(this,"whileHasBackReferences");j(this,"hasMissingPatterns");j(this,"patterns");j(this,"_cachedCompiledPatterns");j(this,"_cachedCompiledWhilePatterns");this._begin=new wa(a,this.id),this.beginCaptures=s,this.whileCaptures=u,this._while=new wa(o,Ug),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ka;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,i){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ka,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},$g=class Tt{static createCaptureRule(t,r,n,i,a){return t.registerRule(s=>new nA(r,s,n,i,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new iA(t.$vscodeTextmateLocation,t.id,t.name,t.match,Tt._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=Rg({},n,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new Pd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Tt._compilePatterns(a,r,n))}return t.while?new Gs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Tt._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,Tt._compileCaptures(t.whileCaptures||t.captures,r,n),Tt._compilePatterns(t.patterns,r,n)):new Rl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Tt._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,Tt._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,Tt._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let a=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);o>a&&(a=o)}for(let s=0;s<=a;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);let u=0;t[s].patterns&&(u=Tt.getCompiledRuleId(t[s],r,n)),i[o]=Tt.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){const o=t[a];let u=-1;if(o.include){const l=zg(o.include);switch(l.kind){case 0:case 1:u=Tt.getCompiledRuleId(n[o.include],r,n);break;case 2:let c=n[l.ruleName];c&&(u=Tt.getCompiledRuleId(c,r,n));break;case 3:case 4:const h=l.scopeName,f=l.kind===4?l.ruleName:null,d=r.getExternalGrammar(h,n);if(d)if(f){let g=d.repository[f];g&&(u=Tt.getCompiledRuleId(g,r,d.repository))}else u=Tt.getCompiledRuleId(d.repository.$self,r,d.repository);break}}else u=Tt.getCompiledRuleId(o,r,n);if(u!==-1){const l=r.getRule(u);let c=!1;if((l instanceof Pd||l instanceof Rl||l instanceof Gs)&&l.hasMissingPatterns&&l.patterns.length===0&&(c=!0),c)continue;i.push(u)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},wa=class jg{constructor(t,r){j(this,"source");j(this,"ruleId");j(this,"hasAnchor");j(this,"hasBackReferences");j(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let i=0,a=[],s=!1;for(let o=0;o<n;o++)if(t.charAt(o)==="\\"&&o+1<n){const l=t.charAt(o+1);l==="z"?(a.push(t.substring(i,o)),a.push("$(?!\\n)(?<!\\n)"),i=o+2):(l==="A"||l==="G")&&(s=!0),o++}this.hasAnchor=s,i===0?this.source=t:(a.push(t.substring(i,n)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=tA.test(this.source):this.hasBackReferences=!1}clone(){return new jg(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>t.substring(i.start,i.end));return Dd.lastIndex=0,this.source.replace(Dd,(i,a)=>Pg(n[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],i=[],a,s,o,u;for(a=0,s=this.source.length;a<s;a++)o=this.source.charAt(a),t[a]=o,r[a]=o,n[a]=o,i[a]=o,o==="\\"&&a+1<s&&(u=this.source.charAt(a+1),u==="A"?(t[a+1]="￿",r[a+1]="￿",n[a+1]="A",i[a+1]="A"):u==="G"?(t[a+1]="￿",r[a+1]="G",n[a+1]="￿",i[a+1]="G"):(t[a+1]=u,r[a+1]=u,n[a+1]=u,i[a+1]=u),a++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ka=class{constructor(){j(this,"_items");j(this,"_hasAnchors");j(this,"_cached");j(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new Md(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(i=>i.resolveAnchors(t,r));return new Md(e,n,this._items.map(i=>i.ruleId))}},Md=class{constructor(e,t,r){j(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
132
+ `)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},vu=class{constructor(e,t){this.languageId=e,this.tokenType=t}},$r,aA=($r=class{constructor(t,r){j(this,"_defaultAttributes");j(this,"_embeddedLanguagesMatcher");j(this,"_getBasicScopeAttributes",new Mg(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new vu(r,n)}));this._defaultAttributes=new vu(t,8),this._embeddedLanguagesMatcher=new sA(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?$r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match($r.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},j($r,"_NULL_SCOPE_METADATA",new vu(0,0)),j($r,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),$r),sA=class{constructor(e){j(this,"values");j(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>Pg(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Bd=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Vg(e,t,r,n,i,a,s,o){const u=t.content.length;let l=!1,c=-1;if(s){const d=oA(e,t,r,n,i,a);i=d.stack,n=d.linePos,r=d.isFirstLine,c=d.anchorPosition}const h=Date.now();for(;!l;){if(o!==0&&Date.now()-h>o)return new Bd(i,!0);f()}return new Bd(i,!1);function f(){const d=uA(e,t,r,n,i,c);if(!d){a.produce(i,u),l=!0;return}const g=d.captureIndices,y=d.matchedRuleId,_=g&&g.length>0?g[0].end>n:!1;if(y===rA){const E=i.getRule(e);a.produce(i,g[0].start),i=i.withContentNameScopesList(i.nameScopesList),ia(e,t,r,i,a,E.endCaptures,g),a.produce(i,g[0].end);const w=i;if(i=i.parent,c=w.getAnchorPos(),!_&&w.getEnterPos()===n){i=w,a.produce(i,u),l=!0;return}}else{const E=e.getRule(y);a.produce(i,g[0].start);const w=i,C=E.getName(t.content,g),M=i.contentNameScopesList.pushAttributed(C,e);if(i=i.push(y,n,c,g[0].end===u,null,M,M),E instanceof Rl){const H=E;ia(e,t,r,i,a,H.beginCaptures,g),a.produce(i,g[0].end),c=g[0].end;const D=H.getContentName(t.content,g),U=M.pushAttributed(D,e);if(i=i.withContentNameScopesList(U),H.endHasBackReferences&&(i=i.withEndRule(H.getEndWithResolvedBackReferences(t.content,g))),!_&&w.hasSameRuleAs(i)){i=i.pop(),a.produce(i,u),l=!0;return}}else if(E instanceof Gs){const H=E;ia(e,t,r,i,a,H.beginCaptures,g),a.produce(i,g[0].end),c=g[0].end;const D=H.getContentName(t.content,g),U=M.pushAttributed(D,e);if(i=i.withContentNameScopesList(U),H.whileHasBackReferences&&(i=i.withEndRule(H.getWhileWithResolvedBackReferences(t.content,g))),!_&&w.hasSameRuleAs(i)){i=i.pop(),a.produce(i,u),l=!0;return}}else if(ia(e,t,r,i,a,E.captures,g),a.produce(i,g[0].end),i=i.pop(),!_){i=i.safePop(),a.produce(i,u),l=!0;return}}g[0].end>n&&(n=g[0].end,r=!1)}}function oA(e,t,r,n,i,a){let s=i.beginRuleCapturedEOL?0:-1;const o=[];for(let u=i;u;u=u.pop()){const l=u.getRule(e);l instanceof Gs&&o.push({rule:l,stack:u})}for(let u=o.pop();u;u=o.pop()){const{ruleScanner:l,findOptions:c}=hA(u.rule,e,u.stack.endRule,r,n===s),h=l.findNextMatchSync(t,n,c);if(h){if(h.ruleId!==Ug){i=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(u.stack,h.captureIndices[0].start),ia(e,t,r,u.stack,a,u.rule.whileCaptures,h.captureIndices),a.produce(u.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>n&&(n=h.captureIndices[0].end,r=!1))}else{i=u.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}function uA(e,t,r,n,i,a){const s=lA(e,t,r,n,i,a),o=e.getInjections();if(o.length===0)return s;const u=cA(o,e,t,r,n,i,a);if(!u)return s;if(!s)return u;const l=s.captureIndices[0].start,c=u.captureIndices[0].start;return c<l||u.priorityMatch&&c===l?u:s}function lA(e,t,r,n,i,a){const s=i.getRule(e),{ruleScanner:o,findOptions:u}=qg(s,e,i.endRule,r,n===a),l=o.findNextMatchSync(t,n,u);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function cA(e,t,r,n,i,a,s){let o=Number.MAX_VALUE,u=null,l,c=0;const h=a.contentNameScopesList.getScopeNames();for(let f=0,d=e.length;f<d;f++){const g=e[f];if(!g.matcher(h))continue;const y=t.getRule(g.ruleId),{ruleScanner:_,findOptions:E}=qg(y,t,null,n,i===s),w=_.findNextMatchSync(r,i,E);if(!w)continue;const C=w.captureIndices[0].start;if(!(C>=o)&&(o=C,u=w.captureIndices,l=w.ruleId,c=g.priority,o===i))break}return u?{priorityMatch:c===-1,captureIndices:u,matchedRuleId:l}:null}function qg(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function hA(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function ia(e,t,r,n,i,a,s){if(a.length===0)return;const o=t.content,u=Math.min(a.length,s.length),l=[],c=s[0].end;for(let h=0;h<u;h++){const f=a[h];if(f===null)continue;const d=s[h];if(d.length===0)continue;if(d.start>c)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(n,d.start),f.retokenizeCapturedWithRuleId){const y=f.getName(o,s),_=n.contentNameScopesList.pushAttributed(y,e),E=f.getContentName(o,s),w=_.pushAttributed(E,e),C=n.push(f.retokenizeCapturedWithRuleId,d.start,-1,!1,null,_,w),M=e.createOnigString(o.substring(0,d.end));Vg(e,M,r&&d.start===0,d.start,C,i,!1,0),Hg(M);continue}const g=f.getName(o,s);if(g!==null){const _=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(g,e);l.push(new dA(_,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var dA=class{constructor(e,t){j(this,"scopes");j(this,"endPos");this.scopes=e,this.endPos=t}};function fA(e,t,r,n,i,a,s,o){return new pA(e,t,r,n,i,a,s,o)}function Fd(e,t,r,n,i){const a=Vs(t,Ws),s=$g.getCompiledRuleId(r,n,i.repository);for(const o of a)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:i,priority:o.priority})}function Ws(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let i=r;i<t.length;i++)if(mA(t[i],n))return r=i+1,!0;return!1})}function mA(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var pA=class{constructor(e,t,r,n,i,a,s,o){j(this,"_rootId");j(this,"_lastRuleId");j(this,"_ruleId2desc");j(this,"_includedGrammars");j(this,"_grammarRepository");j(this,"_grammar");j(this,"_injections");j(this,"_basicScopeAttributesProvider");j(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new aA(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Hd(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const u of Object.keys(i)){const l=Vs(u,Ws);for(const c of l)this._tokenTypeMatchers.push({matcher:c.matcher,type:i[u]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const i=n.injections;if(i)for(let s in i)Fd(t,s,i[s],this,n);const a=this._grammarRepository.injections(r);a&&a.forEach(s=>{const o=this.getExternalGrammar(s);if(o){const u=o.injectionSelector;u&&Fd(t,u,o,this,o)}})}return t.sort((i,a)=>i.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Hd(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=$g.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Ll.NULL){i=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),h=Ti.set(0,l.languageId,l.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),f=this.getRule(this._rootId).getName(null,null);let d;f?d=pa.createRootAndLookUpScopeName(f,h,this):d=pa.createRoot("unknown",h),t=new Ll(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,t.reset();e=e+`
133
+ `;const a=this.createOnigString(e),s=a.content.length,o=new bA(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=Vg(this,a,i,0,t,o,!0,n);return Hg(a),{lineLength:s,lineTokens:o,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function Hd(e,t){return e=Dk(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var pa=class br{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,i=(t==null?void 0:t.scopePath)??null;for(const a of r)i=Tu.push(i,a.scopeNames),n=new br(n,i,a.encodedTokenAttributes);return n}static createRoot(t,r){return new br(null,new Tu(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const i=n.getMetadataForScope(t),a=new Tu(null,t),s=n.themeProvider.themeMatch(a),o=br.mergeAttributes(r,i,s);return new br(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return br.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let i=-1,a=0,s=0;return n!==null&&(i=n.fontStyle,a=n.foregroundId,s=n.backgroundId),Ti.set(t,r.languageId,r.tokenType,null,i,a,s)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return br._pushAttributed(this,t,r);const n=t.split(/ /g);let i=this;for(const a of n)i=br._pushAttributed(i,a,r);return i}static _pushAttributed(t,r,n){const i=n.getMetadataForScope(r),a=t.scopePath.push(r),s=n.themeProvider.themeMatch(a),o=br.mergeAttributes(t.tokenAttributes,i,s);return new br(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var i;const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((i=n.parent)==null?void 0:i.scopePath)??null)}),n=n.parent;return n===t?r.reverse():void 0}},tr,Ll=(tr=class{constructor(t,r,n,i,a,s,o,u){j(this,"_stackElementBrand");j(this,"_enterPos");j(this,"_anchorPos");j(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(t){return t===null?!1:tr._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?pa.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){tr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,a,s,o){return new tr(this,t,r,n,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){var n,i;return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new tr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var t,r,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,r){const n=pa.fromExtension((t==null?void 0:t.nameScopesList)??null,r.nameScopesList);return new tr(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,pa.fromExtension(n,r.contentNameScopesList))}},j(tr,"NULL",new tr(null,0,0,0,!1,null,null,null)),tr),gA=class{constructor(e,t){j(this,"balancedBracketScopes");j(this,"unbalancedBracketScopes");j(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Vs(r,Ws).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Vs(r,Ws).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},bA=class{constructor(e,t,r,n){j(this,"_emitBinaryTokens");j(this,"_lineText");j(this,"_tokens");j(this,"_binaryTokens");j(this,"_lastTokenEndIndex");j(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(e==null?void 0:e.tokenAttributes)??0,a=!1;if((n=this.balancedBracketSelectors)!=null&&n.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(e==null?void 0:e.getScopeNames())??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(i=Ti.set(i,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(i=Ti.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const r=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},yA=class{constructor(e,t){j(this,"_grammars",new Map);j(this,"_rawGrammars",new Map);j(this,"_injectionGrammars",new Map);j(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,fA(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},EA=class{constructor(t){j(this,"_options");j(this,"_syncRegistry");j(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new yA(js.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(js.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new gA(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,i,a){const s=new Yk(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(o=>this._loadSingleGrammar(o.scopeName)),s.processQueue();return this._grammarForScopeName(t,r,n,i,a)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,i=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,r=0,n=null,i=null,a=null){return this._syncRegistry.grammarForScopeName(t,r,n,i,a)}},Ol=Ll.NULL;const xA=/["&'<>`]/g,_A=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,TA=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,vA=/[|\\{}()[\]^$+*?.]/g,zd=new WeakMap;function wA(e,t){if(e=e.replace(t.subset?kA(t.subset):xA,n),t.subset||t.escapeOnly)return e;return e.replace(_A,r).replace(TA,n);function r(i,a,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(i,a,s){return t.format(i.charCodeAt(0),s.charCodeAt(a+1),t)}}function kA(e){let t=zd.get(e);return t||(t=AA(e),zd.set(e,t)),t}function AA(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(vA,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const CA=/[\dA-Fa-f]/;function SA(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!CA.test(String.fromCharCode(t))?n:n+";"}const IA=/\d/;function NA(e,t,r){const n="&#"+String(e);return r&&t&&!IA.test(String.fromCharCode(t))?n:n+";"}const RA=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],wu={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},LA=["cent","copy","divide","gt","lt","not","para","times"],Gg={}.hasOwnProperty,Dl={};let ns;for(ns in wu)Gg.call(wu,ns)&&(Dl[wu[ns]]=ns);const OA=/[^\dA-Za-z]/;function DA(e,t,r,n){const i=String.fromCharCode(e);if(Gg.call(Dl,i)){const a=Dl[i],s="&"+a;return r&&RA.includes(a)&&!LA.includes(a)&&(!n||t&&t!==61&&OA.test(String.fromCharCode(t)))?s:s+";"}return""}function PA(e,t,r){let n=SA(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=DA(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=NA(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function bi(e,t){return wA(e,Object.assign({format:PA},t))}const MA=/^>|^->|<!--|-->|--!>|<!-$/g,BA=[">"],FA=["<",">"];function HA(e,t,r,n){return n.settings.bogusComments?"<?"+bi(e.value,Object.assign({},n.settings.characterReferences,{subset:BA}))+">":"<!--"+e.value.replace(MA,i)+"-->";function i(a){return bi(a,Object.assign({},n.settings.characterReferences,{subset:FA}))}}function zA(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const mt=Yg(1),Wg=Yg(-1),UA=[];function Yg(e){return t;function t(r,n,i){const a=r?r.children:UA;let s=(n||0)+e,o=a[s];if(!i)for(;o&&xo(o);)s+=e,o=a[s];return o}}const $A={}.hasOwnProperty;function Xg(e){return t;function t(r,n,i){return $A.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const ec=Xg({body:VA,caption:ku,colgroup:ku,dd:YA,dt:WA,head:ku,html:jA,li:GA,optgroup:XA,option:KA,p:qA,rp:Ud,rt:Ud,tbody:ZA,td:$d,tfoot:JA,th:$d,thead:QA,tr:eC});function ku(e,t,r){const n=mt(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&xo(n.value.charAt(0)))}function jA(e,t,r){const n=mt(r,t);return!n||n.type!=="comment"}function VA(e,t,r){const n=mt(r,t);return!n||n.type!=="comment"}function qA(e,t,r){const n=mt(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function GA(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&n.tagName==="li"}function WA(e,t,r){const n=mt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function YA(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Ud(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function XA(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function KA(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function QA(e,t,r){const n=mt(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function ZA(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function JA(e,t,r){return!mt(r,t)}function eC(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function $d(e,t,r){const n=mt(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const tC=Xg({body:iC,colgroup:aC,head:nC,html:rC,tbody:sC});function rC(e){const t=mt(e,-1);return!t||t.type!=="comment"}function nC(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function iC(e){const t=mt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&xo(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function aC(e,t,r){const n=Wg(r,t),i=mt(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&ec(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function sC(e,t,r){const n=Wg(r,t),i=mt(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ec(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const is={name:[[`
134
+ \f\r &/=>`.split(""),`
135
+ \f\r "&'/=>\``.split("")],[`\0
136
+ \f\r "&'/<=>`.split(""),`\0
137
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
138
+ \f\r &>`.split(""),`\0
139
+ \f\r "&'<=>\``.split("")],[`\0
140
+ \f\r "&'<=>\``.split(""),`\0
141
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function oC(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const o=[];let u;i.space==="html"&&e.tagName==="svg"&&(n.schema=kr);const l=uC(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(l||!a||!tC(e,t,r))&&(o.push("<",e.tagName,l?" "+l:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!s&&(!a||!ec(e,t,r))&&o.push("</"+e.tagName+">"),o.join("")}function uC(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=lC(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function lC(e,t,r){const n=Oa(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let s=e.quote,o;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=bi(n.attribute,Object.assign({},e.settings.characterReferences,{subset:is.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?p0:g0)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(o=bi(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:is.unquoted[i][a]}))),o!==r&&(e.settings.quoteSmart&&Ms(r,s)>Ms(r,e.alternative)&&(s=e.alternative),o=s+bi(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?is.single:is.double)[i][a],attribute:!0}))+s),u+(o&&"="+o))}const cC=["<","&"];function Kg(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:bi(e.value,Object.assign({},n.settings.characterReferences,{subset:cC}))}function hC(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Kg(e,t,r,n)}function dC(e,t,r,n){return n.all(e)}const fC=y0("type",{invalid:mC,unknown:pC,handlers:{comment:HA,doctype:zA,element:oC,raw:hC,root:dC,text:Kg}});function mC(e){throw new Error("Expected node, not `"+e+"`")}function pC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const gC={},bC={},yC=[];function EC(e,t){const r=t||gC,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:xC,all:_C,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||D1,characterReferences:r.characterReferences||bC,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?kr:Ci,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function xC(e,t,r){return fC(e,t,r,this)}function _C(e){const t=[],r=e&&e.children||yC;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function Ys(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[i,a]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof a=="string"?r[i]=a:i===n&&Object.assign(r,a);return r}function pn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function TC(e){return Array.isArray(e)?e:[e]}async function Qg(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function tc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Zg(e){return e==="ansi"||tc(e)}function rc(e){return e==="none"}function Jg(e){return rc(e)}function e2(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const i of r)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function wo(e,t=!1){var a;if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let n=0;const i=[];for(let s=0;s<r.length;s+=2){const o=t?r[s]+(r[s+1]||""):r[s];i.push([o,n]),n+=r[s].length,n+=((a=r[s+1])==null?void 0:a.length)||0}return i}function vC(e){const t=wo(e,!0).map(([i])=>i);function r(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=i,s=0;for(const o of t){if(a<o.length)break;a-=o.length,s++}return{line:s,character:a}}function n(i,a){let s=0;for(let o=0;o<i;o++)s+=t[o].length;return s+=a,s}return{lines:t,indexToPos:r,posToIndex:n}}const nc="light-dark()",wC=["color","background-color"];function kC(e,t){let r=0;const n=[];for(const i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function AC(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,i)=>n-i);return r.length?e.map(n=>n.flatMap(i=>{const a=r.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,o)=>s-o);return a.length?kC(i,a):i})):e}function CC(e,t,r,n,i="css-vars"){const a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(c=>Xs(e.variants[c])),o=new Set(s.flatMap(c=>Object.keys(c))),u={},l=(c,h)=>{const f=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return r+t[c]+(h==="color"?"":f)};return s.forEach((c,h)=>{for(const f of o){const d=c[f]||"inherit";if(h===0&&n&&wC.includes(f))if(n===nc&&s.length>1){const g=t.findIndex(w=>w==="light"),y=t.findIndex(w=>w==="dark");if(g===-1||y===-1)throw new nt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=s[g][f]||"inherit",E=s[y][f]||"inherit";u[f]=`light-dark(${_}, ${E})`,i==="css-vars"&&(u[l(h,f)]=d)}else u[f]=d;else i==="css-vars"&&(u[l(h,f)]=d)}}),a.htmlStyle=u,a}function Xs(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&vt.Italic&&(t["font-style"]="italic"),e.fontStyle&vt.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&vt.Underline&&r.push("underline"),e.fontStyle&vt.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function Pl(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}const t2=new WeakMap;function ko(e,t){t2.set(e,t)}function Aa(e){return t2.get(e)}class Oi{constructor(...t){j(this,"_stacks",{});j(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,i]=t;this.lang=n,this._stacks={[i]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new Oi(Object.fromEntries(TC(r).map(n=>[n,Ol])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return SC(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function SC(e){const t=[],r=new Set;function n(i){var s;if(r.has(i))return;r.add(i);const a=(s=i==null?void 0:i.nameScopesList)==null?void 0:s.scopeName;a&&t.push(a),i.parent&&n(i.parent)}return n(e),t}function IC(e,t){if(!(e instanceof Oi))throw new nt("Invalid grammar state");return e.getInternalStack(t)}function NC(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let n=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new nt(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...i.indexToPos(s),offset:s}}else{const o=i.lines[s.line];if(o===void 0)throw new nt(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let u=s.character;if(u<0&&(u=o.length+u),u<0||u>o.length)throw new nt(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${o.length}`);return{...s,character:u,offset:i.posToIndex(s.line,u)}}};const i=vC(r.source),a=(r.options.decorations||[]).map(s=>({...s,start:n(s.start),end:n(s.end)}));RC(a),e.set(r.meta,{decorations:a,converter:i,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){var s;if(!((s=this.options.decorations)!=null&&s.length))return;const i=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return AC(r,i)},code(r){var c;if(!((c=this.options.decorations)!=null&&c.length))return;const n=t(this),i=Array.from(r.children).filter(h=>h.type==="element"&&h.tagName==="span");if(i.length!==n.converter.lines.length)throw new nt(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function a(h,f,d,g){const y=i[h];let _="",E=-1,w=-1;if(f===0&&(E=0),d===0&&(w=0),d===Number.POSITIVE_INFINITY&&(w=y.children.length),E===-1||w===-1)for(let M=0;M<y.children.length;M++)_+=r2(y.children[M]),E===-1&&_.length===f&&(E=M+1),w===-1&&_.length===d&&(w=M+1);if(E===-1)throw new nt(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(w===-1)throw new nt(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const C=y.children.slice(E,w);if(!g.alwaysWrap&&C.length===y.children.length)o(y,g,"line");else if(!g.alwaysWrap&&C.length===1&&C[0].type==="element")o(C[0],g,"token");else{const M={type:"element",tagName:"span",properties:{},children:C};o(M,g,"wrapper"),y.children.splice(E,C.length,M)}}function s(h,f){i[h]=o(i[h],f,"line")}function o(h,f,d){var _;const g=f.properties||{},y=f.transform||(E=>E);return h.tagName=f.tagName||"span",h.properties={...h.properties,...g,class:h.properties.class},(_=f.properties)!=null&&_.class&&e2(h,f.properties.class),h=y(h,d)||h,h}const u=[],l=n.decorations.sort((h,f)=>f.start.offset-h.start.offset||h.end.offset-f.end.offset);for(const h of l){const{start:f,end:d}=h;if(f.line===d.line)a(f.line,f.character,d.character,h);else if(f.line<d.line){a(f.line,f.character,Number.POSITIVE_INFINITY,h);for(let g=f.line+1;g<d.line;g++)u.unshift(()=>s(g,h));a(d.line,0,d.character,h)}}u.forEach(h=>h())}}}function RC(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new nt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const i=e[n],a=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,s=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,o=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,u=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(a||s||o||u){if(a&&s||o&&u||o&&r.start.offset===r.end.offset||s&&i.start.offset===i.end.offset)continue;throw new nt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function r2(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(r2).join(""):""}const LC=[NC()];function Ks(e){const t=OC(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...LC]}function OC(e){const t=[],r=[],n=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}var Hn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Au={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function DC(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function jd(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function PC(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Au[n]&&t.push({type:"setDecoration",value:Au[n]});else if(n<=29){const i=Au[n-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Hn[n-30]}});else if(n===38){const i=jd(e);i&&t.push({type:"setForegroundColor",value:i})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Hn[n-40]}});else if(n===48){const i=jd(e);i&&t.push({type:"setBackgroundColor",value:i})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Hn[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Hn[n-100+8]}})}return t}function MC(){let e=null,t=null,r=new Set;return{parse(n){const i=[];let a=0;do{const s=DC(n,a),o=s.sequence?n.substring(a,s.startPosition):n.substring(a);if(o.length>0&&i.push({value:o,foreground:e,background:t,decorations:new Set(r)}),s.sequence){const u=PC(s.sequence);for(const l of u)l.type==="resetAll"?(e=null,t=null,r.clear()):l.type==="resetForegroundColor"?e=null:l.type==="resetBackgroundColor"?t=null:l.type==="resetDecoration"&&r.delete(l.value);for(const l of u)l.type==="setForegroundColor"?e=l.value:l.type==="setBackgroundColor"?t=l.value:l.type==="setDecoration"&&r.add(l.value)}a=s.position}while(a<n.length);return i}}}var BC={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function FC(e=BC){function t(o){return e[o]}function r(o){return`#${o.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let l=0;l<Hn.length;l++)n.push(t(Hn[l]));let o=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let c=0;c<6;c++)for(let h=0;h<6;h++)n.push(r([o[l],o[c],o[h]]));let u=8;for(let l=0;l<24;l++,u+=10)n.push(r([u,u,u]));return n}function a(o){return i()[o]}function s(o){switch(o.type){case"named":return t(o.name);case"rgb":return r(o.rgb);case"table":return a(o.index)}}return{value:s}}const HC={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function zC(e,t,r){const n=Ys(e,r),i=wo(t),a=Object.fromEntries(Hn.map(u=>{var h;const l=`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`,c=(h=e.colors)==null?void 0:h[l];return[u,c||HC[u]]})),s=FC(a),o=MC();return i.map(u=>o.parse(u[0]).map(l=>{let c,h;l.decorations.has("reverse")?(c=l.background?s.value(l.background):e.bg,h=l.foreground?s.value(l.foreground):e.fg):(c=l.foreground?s.value(l.foreground):e.fg,h=l.background?s.value(l.background):void 0),c=pn(c,n),h=pn(h,n),l.decorations.has("dim")&&(c=UC(c));let f=vt.None;return l.decorations.has("bold")&&(f|=vt.Bold),l.decorations.has("italic")&&(f|=vt.Italic),l.decorations.has("underline")&&(f|=vt.Underline),l.decorations.has("strikethrough")&&(f|=vt.Strikethrough),{content:l.value,offset:u[1],color:c,bgColor:h,fontStyle:f}}))}function UC(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const n=t[1];if(n.length===8){const i=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${i}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const i=n[0],a=n[1],s=n[2],o=n[3],u=Math.round(Number.parseInt(`${o}${o}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${a}${a}${s}${s}${u}`}else if(n.length===3){const i=n[0],a=n[1],s=n[2];return`#${i}${i}${a}${a}${s}${s}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function ic(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r,i=e.resolveLangAlias(r.lang||"text");if(tc(i)||rc(n))return wo(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:s}=e.setTheme(n);if(i==="ansi")return zC(a,t,r);const o=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==o.name)throw new nt(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${o.name}"`);if(!r.grammarState.themes.includes(a.name))throw new nt(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return jC(t,o,a,s,r)}function $C(...e){if(e.length===2)return Aa(e[1]);const[t,r,n={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=n;if(tc(i)||rc(a))throw new nt("Plain language does not have grammar state");if(i==="ansi")throw new nt("ANSI language does not have grammar state");const{theme:s,colorMap:o}=t.setTheme(a),u=t.getLanguage(i);return new Oi(ac(r,u,s,o,n).stateStack,u.name,s.name)}function jC(e,t,r,n,i){const a=ac(e,t,r,n,i),s=new Oi(a.stateStack,t.name,r.name);return ko(a.tokens,s),a.tokens}function ac(e,t,r,n,i){const a=Ys(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=i,u=wo(e);let l=i.grammarState?IC(i.grammarState,r.name)??Ol:i.grammarContextCode!=null?ac(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ol,c=[];const h=[];for(let f=0,d=u.length;f<d;f++){const[g,y]=u[f];if(g===""){c=[],h.push([]);continue}if(s>0&&g.length>=s){c=[],h.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let _,E,w;i.includeExplanation&&(_=t.tokenizeLine(g,l,o),E=_.tokens,w=0);const C=t.tokenizeLine2(g,l,o),M=C.tokens.length/2;for(let H=0;H<M;H++){const D=C.tokens[2*H],U=H+1<M?C.tokens[2*H+2]:g.length;if(D===U)continue;const $=C.tokens[2*H+1],q=pn(n[Ti.getForeground($)],a),F=Ti.getFontStyle($),Y={content:g.substring(D,U),offset:y+D,color:q,fontStyle:F};if(i.includeExplanation){const X=[];if(i.includeExplanation!=="scopeName")for(const ie of r.settings){let W;switch(typeof ie.scope){case"string":W=ie.scope.split(/,/).map(re=>re.trim());break;case"object":W=ie.scope;break;default:continue}X.push({settings:ie,selectors:W.map(re=>re.split(/ /))})}Y.explanation=[];let de=0;for(;D+de<U;){const ie=E[w],W=g.substring(ie.startIndex,ie.endIndex);de+=W.length,Y.explanation.push({content:W,scopes:i.includeExplanation==="scopeName"?VC(ie.scopes):qC(X,ie.scopes)}),w+=1}}c.push(Y)}h.push(c),c=[],l=C.ruleStack}return{tokens:h,stateStack:l}}function VC(e){return e.map(t=>({scopeName:t}))}function qC(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const a=t[n];r[n]={scopeName:a,themeMatches:WC(e,a,t.slice(0,n))}}return r}function Vd(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function GC(e,t,r){if(!Vd(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)Vd(e[n],r[i])&&(n-=1),i-=1;return n===-1}function WC(e,t,r){const n=[];for(const{selectors:i,settings:a}of e)for(const s of i)if(GC(s,t,r)){n.push(a);break}return n}function n2(e,t,r){const n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),i=n.map(u=>{const l=ic(e,t,{...r,theme:u.theme}),c=Aa(l),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:l,state:c,theme:h}}),a=YC(...i.map(u=>u.tokens)),s=a[0].map((u,l)=>u.map((c,h)=>{const f={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in r&&r.includeExplanation&&(f.explanation=c.explanation),a.forEach((d,g)=>{const{content:y,explanation:_,offset:E,...w}=d[l][h];f.variants[n[g].color]=w}),f})),o=i[0].state?new Oi(Object.fromEntries(i.map(u=>{var l;return[u.theme,(l=u.state)==null?void 0:l.getInternalStack(u.theme)]})),i[0].state.lang):void 0;return o&&ko(s,o),s}function YC(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const i=e.map(u=>u[n]),a=t.map(()=>[]);t.forEach((u,l)=>u.push(a[l]));const s=i.map(()=>0),o=i.map(u=>u[0]);for(;o.every(u=>u);){const u=Math.min(...o.map(l=>l.content.length));for(let l=0;l<r;l++){const c=o[l];c.content.length===u?(a[l].push(c),s[l]+=1,o[l]=i[l][s[l]]):(a[l].push({...c,content:c.content.slice(0,u)}),o[l]={...c,content:c.content.slice(u),offset:c.offset+u})}}}return t}function Qs(e,t,r){let n,i,a,s,o,u;if("themes"in r){const{defaultColor:l="light",cssVariablePrefix:c="--shiki-",colorsRendering:h="css-vars"}=r,f=Object.entries(r.themes).filter(E=>E[1]).map(E=>({color:E[0],theme:E[1]})).sort((E,w)=>E.color===l?-1:w.color===l?1:0);if(f.length===0)throw new nt("`themes` option must not be empty");const d=n2(e,t,r);if(u=Aa(d),l&&nc!==l&&!f.find(E=>E.color===l))throw new nt(`\`themes\` option must contain the defaultColor key \`${l}\``);const g=f.map(E=>e.getTheme(E.theme)),y=f.map(E=>E.color);a=d.map(E=>E.map(w=>CC(w,y,c,l,h))),u&&ko(a,u);const _=f.map(E=>Ys(E.theme,r));i=qd(f,g,_,c,l,"fg",h),n=qd(f,g,_,c,l,"bg",h),s=`shiki-themes ${g.map(E=>E.name).join(" ")}`,o=l?void 0:[i,n].join(";")}else if("theme"in r){const l=Ys(r.theme,r);a=ic(e,t,r);const c=e.getTheme(r.theme);n=pn(c.bg,l),i=pn(c.fg,l),s=c.name,u=Aa(a)}else throw new nt("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:n,themeName:s,rootStyle:o,grammarState:u}}function qd(e,t,r,n,i,a,s){return e.map((o,u)=>{const l=pn(t[u][a],r[u])||"inherit",c=`${n+o.color}${a==="bg"?"-bg":""}:${l}`;if(u===0&&i){if(i===nc&&e.length>1){const h=e.findIndex(y=>y.color==="light"),f=e.findIndex(y=>y.color==="dark");if(h===-1||f===-1)throw new nt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const d=pn(t[h][a],r[h])||"inherit",g=pn(t[f][a],r[f])||"inherit";return`light-dark(${d}, ${g});${c}`}return l}return s==="css-vars"?c:null}).filter(o=>!!o).join(";")}function Zs(e,t,r,n={meta:{},options:r,codeToHast:(i,a)=>Zs(e,i,a),codeToTokens:(i,a)=>Qs(e,i,a)}){var g,y;let i=t;for(const _ of Ks(r))i=((g=_.preprocess)==null?void 0:g.call(n,i,r))||i;let{tokens:a,fg:s,bg:o,themeName:u,rootStyle:l,grammarState:c}=Qs(e,i,r);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:f=!1}=r;h===!0?a=KC(a):h==="never"&&(a=QC(a)),f&&(a=ZC(a));const d={...n,get source(){return i}};for(const _ of Ks(r))a=((y=_.tokens)==null?void 0:y.call(d,a))||a;return XC(a,{...r,fg:s,bg:o,themeName:u,rootStyle:r.rootStyle===!1?!1:r.rootStyle??l},d,c)}function XC(e,t,r,n=Aa(e)){var y,_,E,w;const i=Ks(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:u="0"}=t,l={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?l.style=t.rootStyle:l.style=`background-color:${t.bg};color:${t.fg}`),u!==!1&&u!=null&&(l.tabindex=u.toString());for(const[C,M]of Object.entries(t.meta||{}))C.startsWith("_")||(l[C]=M);let c={type:"element",tagName:"pre",properties:l,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:a};const f=[],d={...r,structure:o,addClassToHast:e2,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return h},get lines(){return f}};if(e.forEach((C,M)=>{var U,$;M&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&a.push({type:"text",value:`
142
+ `}));let H={type:"element",tagName:"span",properties:{class:"line"},children:[]},D=0;for(const q of C){let F={type:"element",tagName:"span",properties:{...q.htmlAttrs},children:[{type:"text",value:q.content}]};const Y=Pl(q.htmlStyle||Xs(q));Y&&(F.properties.style=Y);for(const X of i)F=((U=X==null?void 0:X.span)==null?void 0:U.call(d,F,M+1,D,H,q))||F;o==="inline"?s.children.push(F):o==="classic"&&H.children.push(F),D+=q.content.length}if(o==="classic"){for(const q of i)H=(($=q==null?void 0:q.line)==null?void 0:$.call(d,H,M+1))||H;f.push(H),a.push(H)}else o==="inline"&&f.push(H)}),o==="classic"){for(const C of i)h=((y=C==null?void 0:C.code)==null?void 0:y.call(d,h))||h;c.children.push(h);for(const C of i)c=((_=C==null?void 0:C.pre)==null?void 0:_.call(d,c))||c;s.children.push(c)}else if(o==="inline"){const C=[];let M={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const U of s.children)U.type==="element"&&U.tagName==="br"?(C.push(M),M={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(U.type==="element"||U.type==="text")&&M.children.push(U);C.push(M);let D={type:"element",tagName:"code",properties:{},children:C};for(const U of i)D=((E=U==null?void 0:U.code)==null?void 0:E.call(d,D))||D;s.children=[];for(let U=0;U<D.children.length;U++){U>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const $=D.children[U];$.type==="element"&&s.children.push(...$.children)}}let g=s;for(const C of i)g=((w=C==null?void 0:C.root)==null?void 0:w.call(d,g))||g;return n&&ko(g,n),g}function KC(e){return e.map(t=>{const r=[];let n="",i;return t.forEach((a,s)=>{const u=!(a.fontStyle&&(a.fontStyle&vt.Underline||a.fontStyle&vt.Strikethrough));u&&a.content.match(/^\s+$/)&&t[s+1]?(i===void 0&&(i=a.offset),n+=a.content):n?(u?r.push({...a,offset:i,content:n+a.content}):r.push({content:n,offset:i},a),i=void 0,n=""):r.push(a)}),r})}function QC(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,a,s]=n;if(!i&&!s)return r;const o=[{...r,offset:r.offset+i.length,content:a}];return i&&o.unshift({content:i,offset:r.offset}),s&&o.push({content:s,offset:r.offset+i.length+a.length}),o}))}function ZC(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const i=r[r.length-1],a=Pl(i.htmlStyle||Xs(i)),s=Pl(n.htmlStyle||Xs(n)),o=i.fontStyle&&(i.fontStyle&vt.Underline||i.fontStyle&vt.Strikethrough),u=n.fontStyle&&(n.fontStyle&vt.Underline||n.fontStyle&vt.Strikethrough);!o&&!u&&a===s?i.content+=n.content:r.push({...n})}return r})}const JC=EC;function eS(e,t,r){var a;const n={meta:{},options:r,codeToHast:(s,o)=>Zs(e,s,o),codeToTokens:(s,o)=>Qs(e,s,o)};let i=JC(Zs(e,t,r,n));for(const s of Ks(r))i=((a=s.postprocess)==null?void 0:a.call(n,i,r))||i;return i}const Gd={light:"#333333",dark:"#bbbbbb"},Wd={light:"#fffffe",dark:"#1e1e1e"},Yd="__shiki_resolved";function sc(e){var o,u,l,c,h;if(e!=null&&e[Yd])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:n}=t;if(!r||!n){const f=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;(o=f==null?void 0:f.settings)!=null&&o.foreground&&(n=f.settings.foreground),(u=f==null?void 0:f.settings)!=null&&u.background&&(r=f.settings.background),!n&&((l=t==null?void 0:t.colors)!=null&&l["editor.foreground"])&&(n=t.colors["editor.foreground"]),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.background"])&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?Gd.light:Gd.dark),r||(r=t.type==="light"?Wd.light:Wd.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const a=new Map;function s(f){var g;if(a.has(f))return a.get(f);i+=1;const d=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(g=t.colorReplacements)!=null&&g[`#${d}`]?s(f):(a.set(f,d),d)}t.settings=t.settings.map(f=>{var _,E;const d=((_=f.settings)==null?void 0:_.foreground)&&!f.settings.foreground.startsWith("#"),g=((E=f.settings)==null?void 0:E.background)&&!f.settings.background.startsWith("#");if(!d&&!g)return f;const y={...f,settings:{...f.settings}};if(d){const w=s(f.settings.foreground);t.colorReplacements[w]=f.settings.foreground,y.settings.foreground=w}if(g){const w=s(f.settings.background);t.colorReplacements[w]=f.settings.background,y.settings.background=w}return y});for(const f of Object.keys(t.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((h=t.colors[f])!=null&&h.startsWith("#"))){const d=s(t.colors[f]);t.colorReplacements[d]=t.colors[f],t.colors[f]=d}return Object.defineProperty(t,Yd,{enumerable:!1,writable:!1,value:!0}),t}async function i2(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Zg(t)).map(async t=>await Qg(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function a2(e){return(await Promise.all(e.map(async r=>Jg(r)?null:sc(await Qg(r))))).filter(r=>!!r)}let tS=3;function rS(e,t=3){t>tS||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let mi=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function s2(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new mi(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class nS extends EA{constructor(r,n,i,a={}){super(r);j(this,"_resolvedThemes",new Map);j(this,"_resolvedGrammars",new Map);j(this,"_langMap",new Map);j(this,"_langGraph",new Map);j(this,"_textmateThemeCache",new WeakMap);j(this,"_loadedThemesCache",null);j(this,"_loadedLanguagesCache",null);this._resolver=r,this._themes=n,this._langs=i,this._alias=a,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const n=sc(r);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let n=this._textmateThemeCache.get(r);n||(n=js.createFromRawTheme(r),this._textmateThemeCache.set(r,n)),this._syncRegistry.setTheme(n)}getGrammar(r){return r=s2(r,this._alias),this._resolvedGrammars.get(r)}loadLanguage(r){var s,o,u,l;if(this.getGrammar(r.name))return;const n=new Set([...this._langMap.values()].filter(c=>{var h;return(h=c.embeddedLangsLazy)==null?void 0:h.includes(r.name)}));this._resolver.addLanguage(r);const i={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const a=this.loadGrammarWithConfiguration(r.scopeName,1,i);if(a.name=r.name,this._resolvedGrammars.set(r.name,a),r.aliases&&r.aliases.forEach(c=>{this._alias[c]=r.name}),this._loadedLanguagesCache=null,n.size)for(const c of n)this._resolvedGrammars.delete(c.name),this._loadedLanguagesCache=null,(o=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||o.delete(c.scopeName),(l=(u=this._syncRegistry)==null?void 0:u._grammars)==null||l.delete(c.scopeName),this.loadLanguage(this._langMap.get(c.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const a of r)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),i=n.filter(([a,s])=>!s);if(i.length){const a=n.filter(([s,o])=>{if(!o)return!1;const u=o.embeddedLanguages||o.embeddedLangs;return u==null?void 0:u.some(l=>i.map(([c])=>c).includes(l))}).filter(s=>!i.includes(s));throw new mi(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){this._langMap.set(r.name,r),this._langGraph.set(r.name,r);const n=r.embeddedLanguages??r.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}}class iS{constructor(t,r){j(this,"_langs",new Map);j(this,"_scopeToLang",new Map);j(this,"_injections",new Map);j(this,"_onigLib");this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},r.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(r=>{this._langs.set(r,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(t.scopeName)})}getInjections(t){const r=t.split(".");let n=[];for(let i=1;i<=r.length;i++){const a=r.slice(0,i).join(".");n=[...n,...this._injections.get(a)||[]]}return n}}let Ji=0;function aS(e){Ji+=1,e.warnings!==!1&&Ji>=10&&Ji%10===0&&console.warn(`[Shiki] ${Ji} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new mi("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(sc),i=new iS(e.engine,r),a=new nS(i,n,r,e.langAlias);let s;function o(C){return s2(C,e.langAlias)}function u(C){E();const M=a.getGrammar(typeof C=="string"?C:C.name);if(!M)throw new mi(`Language \`${C}\` not found, you may need to load it first`);return M}function l(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const M=a.getTheme(C);if(!M)throw new mi(`Theme \`${C}\` not found, you may need to load it first`);return M}function c(C){E();const M=l(C);s!==C&&(a.setTheme(M),s=C);const H=a.getColorMap();return{theme:M,colorMap:H}}function h(){return E(),a.getLoadedThemes()}function f(){return E(),a.getLoadedLanguages()}function d(...C){E(),a.loadLanguages(C.flat(1))}async function g(...C){return d(await i2(C))}function y(...C){E();for(const M of C.flat(1))a.loadTheme(M)}async function _(...C){return E(),y(await a2(C))}function E(){if(t)throw new mi("Shiki instance has been disposed")}function w(){t||(t=!0,a.dispose(),Ji-=1)}return{setTheme:c,getTheme:l,getLanguage:u,getLoadedThemes:h,getLoadedLanguages:f,resolveLangAlias:o,loadLanguage:g,loadLanguageSync:d,loadTheme:_,loadThemeSync:y,dispose:w,[Symbol.dispose]:w}}async function sS(e){e.engine||rS("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([a2(e.themes||[]),i2(e.langs||[]),e.engine]);return aS({...e,themes:t,langs:r,engine:n})}async function oS(e){const t=await sS(e);return{getLastGrammarState:(...r)=>$C(t,...r),codeToTokensBase:(r,n)=>ic(t,r,n),codeToTokensWithThemes:(r,n)=>n2(t,r,n),codeToTokens:(r,n)=>Qs(t,r,n),codeToHast:(r,n)=>Zs(t,r,n),codeToHtml:(r,n)=>eS(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function uS(e){const t=e.langs,r=e.themes,n=e.engine;async function i(a){function s(h){var f;if(typeof h=="string"){if(h=((f=a.langAlias)==null?void 0:f[h])||h,Zg(h))return[];const d=t[h];if(!d)throw new nt(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return d}return h}function o(h){if(Jg(h))return"none";if(typeof h=="string"){const f=r[h];if(!f)throw new nt(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return f}return h}const u=(a.themes??[]).map(h=>o(h)),l=(a.langs??[]).map(h=>s(h)),c=await oS({engine:a.engine??n(),...a,themes:u,langs:l});return{...c,loadLanguage(...h){return c.loadLanguage(...h.map(s))},loadTheme(...h){return c.loadTheme(...h.map(o))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return i}const oc=[{id:"abap",name:"ABAP",import:(()=>k(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>k(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>k(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>k(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([6,7,8,9])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>k(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([10,6,7,8,9,11])))},{id:"apache",name:"Apache Conf",import:(()=>k(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>k(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>k(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([12,7,8,9,13,14,15])))},{id:"applescript",name:"AppleScript",import:(()=>k(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>k(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>k(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>k(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>k(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([16,15,8,17,9,18,19])))},{id:"awk",name:"AWK",import:(()=>k(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>k(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>k(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>k(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>k(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>k(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>k(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>k(()=>import("./bird2-DPOp833l.js"),[]))},{id:"blade",name:"Blade",import:(()=>k(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([20,21,7,8,9,13,14,22,15])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>k(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([23,24])))},{id:"c",name:"C",import:(()=>k(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>k(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>k(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>k(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([25,26])))},{id:"clarity",name:"Clarity",import:(()=>k(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>k(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>k(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>k(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([27,7,8,9,14])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>k(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>k(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>k(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([28,8])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>k(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>k(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>k(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([29,30,31,32,22])))},{id:"crystal",name:"Crystal",import:(()=>k(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([33,7,8,9,22,32,34])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>k(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>k(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>k(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>k(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>k(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>k(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>k(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>k(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>k(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>k(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>k(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>k(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>k(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>k(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([35,17,7,8,9,21])))},{id:"elixir",name:"Elixir",import:(()=>k(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([36,7,8,9])))},{id:"elm",name:"Elm",import:(()=>k(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([37,31,32])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>k(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>k(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([38,7,8,9,39,40,13,14,22,41,17,42,19,29,30,31,32,34,43,44])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>k(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([45,46])))},{id:"fennel",name:"Fennel",import:(()=>k(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>k(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>k(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>k(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([47,48])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>k(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>k(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([49,46])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>k(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([50,51,52])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>k(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>k(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>k(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>k(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>k(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([53,54])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>k(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([55,34])))},{id:"gleam",name:"Gleam",import:(()=>k(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>k(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([56,8,17,9,7])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>k(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([57,17,9,8,7])))},{id:"glsl",name:"GLSL",import:(()=>k(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([31,32])))},{id:"gn",name:"GN",import:(()=>k(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>k(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>k(()=>import("./go-CxLEBnE3.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>k(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([41,8,17,42,19])))},{id:"groovy",name:"Groovy",import:(()=>k(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>k(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([58,7,8,9,22])))},{id:"haml",name:"Ruby Haml",import:(()=>k(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([40,8,9])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>k(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([59,7,8,9,44])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>k(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>k(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>k(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>k(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>k(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>k(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([7,8,9])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>k(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([21,7,8,9])))},{id:"http",name:"HTTP",import:(()=>k(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([60,34,15,13,14,41,8,17,42,19])))},{id:"hurl",name:"Hurl",import:(()=>k(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([61,41,8,17,42,19,13,14,62])))},{id:"hxml",name:"HXML",import:(()=>k(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([63,64])))},{id:"hy",name:"Hy",import:(()=>k(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>k(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>k(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>k(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>k(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>k(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([65,7,8,9])))},{id:"jison",name:"Jison",import:(()=>k(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([66,8])))},{id:"json",name:"JSON",import:(()=>k(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>k(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>k(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>k(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>k(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>k(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>k(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>k(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([67,29,30,31,32,22,26,8,68])))},{id:"just",name:"Just",import:(()=>k(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([69,34,8,17,70,7,9,13,14,22,26,39,40,41,42,19,29,30,31,32,43,44])))},{id:"kdl",name:"KDL",import:(()=>k(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>k(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>k(()=>import("./kusto-DZf3V79B.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>k(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([71,72,68])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>k(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>k(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>k(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([73,7,8,9,15])))},{id:"llvm",name:"LLVM IR",import:(()=>k(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>k(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>k(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>k(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([43,32])))},{id:"luau",name:"Luau",import:(()=>k(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>k(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>k(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>k(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([74,9,75,11,17])))},{id:"matlab",name:"MATLAB",import:(()=>k(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>k(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([76,46,44,21,7,8,9])))},{id:"mdx",name:"MDX",import:(()=>k(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>k(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>k(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>k(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>k(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>k(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>k(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>k(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([77,78])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>k(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>k(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([79,43,32])))},{id:"nim",name:"Nim",import:(()=>k(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([80,32,7,8,9,13,14,31,46])))},{id:"nix",name:"Nix",import:(()=>k(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>k(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>k(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>k(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>k(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>k(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>k(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>k(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>k(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([70,7,8,9,13,14,22])))},{id:"php",name:"PHP",import:(()=>k(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([81,7,8,9,13,14,22,15])))},{id:"pkl",name:"Pkl",import:(()=>k(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>k(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>k(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>k(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>k(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>k(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>k(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>k(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>k(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>k(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>k(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([82,8,9,7])))},{id:"puppet",name:"Puppet",import:(()=>k(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>k(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>k(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>k(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([83,8])))},{id:"qmldir",name:"QML Directory",import:(()=>k(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>k(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>k(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>k(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>k(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>k(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([84,7,8,9,85])))},{id:"reg",name:"Windows Registry Script",import:(()=>k(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>k(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>k(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>k(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>k(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>k(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>k(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([86,21,7,8,9,29,30,31,32,22,26,34,44,87,39,40,13,14,41,17,42,19,43])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>k(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([39,7,8,9,40,13,14,22,41,17,42,19,29,30,31,32,34,43,44])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>k(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>k(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([88,22])))},{id:"sass",name:"Sass",import:(()=>k(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>k(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>k(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>k(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([11,9])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>k(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>k(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([89,90])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>k(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>k(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([91,34])))},{id:"smalltalk",name:"Smalltalk",import:(()=>k(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>k(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>k(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([92,7,8,9])))},{id:"sparql",name:"SPARQL",import:(()=>k(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([93,94])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>k(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>k(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>k(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>k(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([95,22])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>k(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>k(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([96,8])))},{id:"svelte",name:"Svelte",import:(()=>k(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([97,8,17,9,18])))},{id:"swift",name:"Swift",import:(()=>k(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>k(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>k(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>k(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>k(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>k(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>k(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([98,99,8,9])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>k(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>k(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([72,68])))},{id:"toml",name:"TOML",import:(()=>k(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>k(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([100,17,9,8,31,32,7,22,13,14])))},{id:"tsv",name:"TSV",import:(()=>k(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>k(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>k(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>k(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([101,9,8,11,81,7,13,14,22,15,26,39,40,41,17,42,19,29,30,31,32,34,43,44])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>k(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>k(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>k(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>k(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>k(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>k(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>k(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>k(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>k(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>k(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([102,9,8,17,15,7,21])))},{id:"vue-html",name:"Vue HTML",import:(()=>k(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([103,8])))},{id:"vue-vine",name:"Vue Vine",import:(()=>k(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([104,9,11,75,105,18,8])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>k(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>k(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>k(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>k(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>k(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>k(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>k(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>k(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([13,14])))},{id:"xsl",name:"XSL",import:(()=>k(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([106,13,14])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>k(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>k(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>k(()=>import("./zig-VOosw3JB.js"),[]))}],lS=Object.fromEntries(oc.map(e=>[e.id,e.import])),cS=Object.fromEntries(oc.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(r=>[r,e.import]))||[]})),o2={...lS,...cS},hS=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>k(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>k(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>k(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>k(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>k(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>k(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>k(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>k(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>k(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>k(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>k(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>k(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>k(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>k(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>k(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>k(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>k(()=>import("./horizon-bright-Cn-bp-IR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>k(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>k(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>k(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>k(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>k(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>k(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>k(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>k(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>k(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>k(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>k(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>k(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>k(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>k(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>k(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>k(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>k(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>k(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>k(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>k(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>k(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>k(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],dS=Object.fromEntries(hS.map(e=>[e.id,e.import]));class uc extends Error{constructor(t){super(t),this.name="ShikiError"}}function fS(){return 2147483648}function mS(){return typeof performance<"u"?performance.now():Date.now()}const pS=(e,t)=>e+(t-e%t)%t;async function gS(e){let t,r;const n={};function i(d){r=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function a(d,g,y){n.HEAPU8.copyWithin(d,g,g+y)}function s(d){try{return t.grow(d-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function o(d){const g=n.HEAPU8.length;d=d>>>0;const y=fS();if(d>y)return!1;for(let _=1;_<=4;_*=2){let E=g*(1+.2/_);E=Math.min(E,d+100663296);const w=Math.min(y,pS(Math.max(d,E),65536));if(s(w))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function l(d,g,y=1024){const _=g+y;let E=g;for(;d[E]&&!(E>=_);)++E;if(E-g>16&&d.buffer&&u)return u.decode(d.subarray(g,E));let w="";for(;g<E;){let C=d[g++];if(!(C&128)){w+=String.fromCharCode(C);continue}const M=d[g++]&63;if((C&224)===192){w+=String.fromCharCode((C&31)<<6|M);continue}const H=d[g++]&63;if((C&240)===224?C=(C&15)<<12|M<<6|H:C=(C&7)<<18|M<<12|H<<6|d[g++]&63,C<65536)w+=String.fromCharCode(C);else{const D=C-65536;w+=String.fromCharCode(55296|D>>10,56320|D&1023)}}return w}function c(d,g){return d?l(n.HEAPU8,d,g):""}const h={emscripten_get_now:mS,emscripten_memcpy_big:a,emscripten_resize_heap:o,fd_write:()=>0};async function f(){const g=await e({env:h,wasi_snapshot_preview1:h});t=g.memory,i(t.buffer),Object.assign(n,g),n.UTF8ToString=c}return await f(),n}var bS=Object.defineProperty,yS=(e,t,r)=>t in e?bS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ht=(e,t,r)=>yS(e,typeof t!="symbol"?t+"":t,r);let bt=null;function ES(e){throw new uc(e.UTF8ToString(e.getLastOnigError()))}class Ao{constructor(t){ht(this,"utf16Length"),ht(this,"utf8Length"),ht(this,"utf16Value"),ht(this,"utf8Value"),ht(this,"utf16OffsetToUtf8"),ht(this,"utf8OffsetToUtf16");const r=t.length,n=Ao._utf8ByteLength(t),i=n!==r,a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const o=new Uint8Array(n);let u=0;for(let l=0;l<r;l++){const c=t.charCodeAt(l);let h=c,f=!1;if(c>=55296&&c<=56319&&l+1<r){const d=t.charCodeAt(l+1);d>=56320&&d<=57343&&(h=(c-55296<<10)+65536|d-56320,f=!0)}i&&(a[l]=u,f&&(a[l+1]=u),h<=127?s[u+0]=l:h<=2047?(s[u+0]=l,s[u+1]=l):h<=65535?(s[u+0]=l,s[u+1]=l,s[u+2]=l):(s[u+0]=l,s[u+1]=l,s[u+2]=l,s[u+3]=l)),h<=127?o[u++]=h:h<=2047?(o[u++]=192|(h&1984)>>>6,o[u++]=128|(h&63)>>>0):h<=65535?(o[u++]=224|(h&61440)>>>12,o[u++]=128|(h&4032)>>>6,o[u++]=128|(h&63)>>>0):(o[u++]=240|(h&1835008)>>>18,o[u++]=128|(h&258048)>>>12,o[u++]=128|(h&4032)>>>6,o[u++]=128|(h&63)>>>0),f&&l++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let r=0;for(let n=0,i=t.length;n<i;n++){const a=t.charCodeAt(n);let s=a,o=!1;if(a>=55296&&a<=56319&&n+1<i){const u=t.charCodeAt(n+1);u>=56320&&u<=57343&&(s=(a-55296<<10)+65536|u-56320,o=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,o&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const Co=class yr{constructor(t){if(ht(this,"id",++yr.LAST_ID),ht(this,"_onigBinding"),ht(this,"content"),ht(this,"utf16Length"),ht(this,"utf8Length"),ht(this,"utf16OffsetToUtf8"),ht(this,"utf8OffsetToUtf16"),ht(this,"ptr"),!bt)throw new uc("Must invoke loadWasm first.");this._onigBinding=bt,this.content=t;const r=new Ao(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!yr._sharedPtrInUse?(yr._sharedPtr||(yr._sharedPtr=bt.omalloc(1e4)),yr._sharedPtrInUse=!0,bt.HEAPU8.set(r.utf8Value,yr._sharedPtr),this.ptr=yr._sharedPtr):this.ptr=r.createString(bt)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===yr._sharedPtr?yr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ht(Co,"LAST_ID",0);ht(Co,"_sharedPtr",0);ht(Co,"_sharedPtrInUse",!1);let u2=Co;class xS{constructor(t){if(ht(this,"_onigBinding"),ht(this,"_ptr"),!bt)throw new uc("Must invoke loadWasm first.");const r=[],n=[];for(let o=0,u=t.length;o<u;o++){const l=new Ao(t[o]);r[o]=l.createString(bt),n[o]=l.utf8Length}const i=bt.omalloc(4*t.length);bt.HEAPU32.set(r,i/4);const a=bt.omalloc(4*t.length);bt.HEAPU32.set(n,a/4);const s=bt.createOnigScanner(i,a,t.length);for(let o=0,u=t.length;o<u;o++)bt.ofree(r[o]);bt.ofree(a),bt.ofree(i),s===0&&ES(bt),this._onigBinding=bt,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof t=="string"){t=new u2(t);const a=this._findNextMatchSync(t,r,!1,i);return t.dispose(),a}return this._findNextMatchSync(t,r,!1,i)}_findNextMatchSync(t,r,n,i){const a=this._onigBinding,s=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),i);if(s===0)return null;const o=a.HEAPU32;let u=s/4;const l=o[u++],c=o[u++],h=[];for(let f=0;f<c;f++){const d=t.convertUtf8OffsetToUtf16(o[u++]),g=t.convertUtf8OffsetToUtf16(o[u++]);h[f]={start:d,end:g,length:g-d}}return{index:l,captureIndices:h}}}function _S(e){return typeof e.instantiator=="function"}function TS(e){return typeof e.default=="function"}function vS(e){return typeof e.data<"u"}function wS(e){return typeof Response<"u"&&e instanceof Response}function kS(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let as;function AS(e){if(as)return as;async function t(){bt=await gS(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),_S(n)?n=await n.instantiator(r):TS(n)?n=await n.default(r):(vS(n)&&(n=n.data),wS(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await CS(n)(r):n=await SS(n)(r):kS(n)?n=await Cu(n)(r):n instanceof WebAssembly.Module?n=await Cu(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Cu(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return as=t(),as}function Cu(e){return t=>WebAssembly.instantiate(e,t)}function CS(e){return t=>WebAssembly.instantiateStreaming(e,t)}function SS(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}async function IS(e){return e&&await AS(e),{createScanner(t){return new xS(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new u2(t)}}}const NS=uS({langs:o2,themes:dS,engine:()=>IS(k(()=>import("./wasm-CG6Dc4jp.js"),[]))});function Di(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function RS(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const lc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Et=String.raw;function Pi(e,t){if(e==null)throw new Error(t??"Value expected");return e}const l2=Et`\[\^?`,c2=`c.? | C(?:-.?)?|${Et`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Et`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Et`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Et`o\{[^\}]*\}?`}|${Et`\d{1,3}`}`,cc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ss=new RegExp(Et`
143
+ \\ (?:
144
+ ${c2}
145
+ | [gk]<[^>]*>?
146
+ | [gk]'[^']*'?
147
+ | .
148
+ )
149
+ | \( (?:
150
+ \? (?:
151
+ [:=!>({]
152
+ | <[=!]
153
+ | <[^>]*>
154
+ | '[^']*'
155
+ | ~\|?
156
+ | #(?:[^)\\]|\\.?)*
157
+ | [^:)]*[:)]
158
+ )?
159
+ | \*[^\)]*\)?
160
+ )?
161
+ | (?:${cc.source})+
162
+ | ${l2}
163
+ | .
164
+ `.replace(/\s+/g,""),"gsu"),Su=new RegExp(Et`
165
+ \\ (?:
166
+ ${c2}
167
+ | .
168
+ )
169
+ | \[:(?:\^?\p{Alpha}+|\^):\]
170
+ | ${l2}
171
+ | &&
172
+ | .
173
+ `.replace(/\s+/g,""),"gsu");function LS(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=QS(r.flags),i=[n.extended],a={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(h){i.push(h)},replaceCurrentModX(h){i[i.length-1]=h},singleline:r.rules.singleline};let s=[],o;for(ss.lastIndex=0;o=ss.exec(e);){const h=OS(a,e,o[0],ss.lastIndex);h.tokens?s.push(...h.tokens):h.token&&s.push(h.token),h.lastIndex!==void 0&&(ss.lastIndex=h.lastIndex)}const u=[];let l=0;s.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++l:h.raw==="("&&u.push(h)}),l||u.forEach((h,f)=>{h.kind="capturing",h.number=f+1});const c=l||u.length;return{tokens:s.map(h=>h.type==="EscapedNumber"?JS(h,c):h).flat(),flags:n}}function OS(e,t,r,n){const[i,a]=r;if(r==="["||r==="[^"){const s=DS(t,r,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(a))return{token:Xd(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:VS(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:d2(r)}}if(a==="K")return{token:f2("keep",r)};if(a==="N"||a==="R")return{token:zn("newline",r,{negate:a==="N"})};if(a==="O")return{token:zn("any",r)};if(a==="X")return{token:zn("text_segment",r)};const s=h2(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(a==="*")return{token:YS(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:WS(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:hi("group",r)};if(r==="(?>")return{token:hi("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:hi(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:hi("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:hi("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:US(r)}}if(e.getCurrentModX()){if(r==="#"){const s=t.indexOf(`
174
+ `,n);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(r)){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(t)?s.lastIndex:n}}}if(r===".")return{token:zn("dot",r)};if(r==="^"||r==="$"){const s=e.singleline?{"^":Et`\A`,$:Et`\Z`}[r]:r;return{token:Xd(s,r)}}return r==="|"?{token:MS(r)}:cc.test(r)?{tokens:eI(r)}:{token:jr(Di(r),r)}}function DS(e,t,r){const n=[Kd(t[1]==="^",t)];let i=1,a;for(Su.lastIndex=r;a=Su.exec(e);){const s=a[0];if(s[0]==="["&&s[1]!==":")i++,n.push(Kd(s[1]==="^",s));else if(s==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(jr(93,s));else if(i--,n.push(BS(s)),!i)break}else{const o=PS(s);Array.isArray(o)?n.push(...o):n.push(o)}}return{tokens:n,lastIndex:Su.lastIndex||e.length}}function PS(e){if(e[0]==="\\")return h2(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!lc.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return zn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?FS(e):e==="&&"?HS(e):jr(Di(e),e)}function h2(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return GS(e);if("dDhHsSwW".includes(r))return XS(e);if(e.startsWith(Et`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return KS(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const n=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),a=new TextEncoder;return[...i].map(s=>{const o=[...a.encode(s)].map(u=>`\\x${u.toString(16)}`).join("");return jr(Di(s),o)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return jr(ZS(e),e);if(Qd.has(r))return jr(Qd.get(r),e);if(/\d/.test(r))return zS(t,e);if(e==="\\")throw new Error(Et`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return jr(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function MS(e){return{type:"Alternator",raw:e}}function Xd(e,t){return{type:"Assertion",kind:e,raw:t}}function d2(e){return{type:"Backreference",raw:e}}function jr(e,t){return{type:"Character",value:e,raw:t}}function BS(e){return{type:"CharacterClassClose",raw:e}}function FS(e){return{type:"CharacterClassHyphen",raw:e}}function HS(e){return{type:"CharacterClassIntersector",raw:e}}function Kd(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function zn(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function f2(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Pi(r.flags),raw:t}}function zS(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function US(e){return{type:"GroupClose",raw:e}}function hi(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function $S(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function jS(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function VS(e){return{type:"Subroutine",raw:e}}const qS=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Qd=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function GS(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return jr(Di(t.toUpperCase())-64,e)}function WS(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??(n="");const i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),a=Jd(r),s=Jd(n),o={};if(a&&(o.enable=a),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),f2("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,hi("group",e,{...(a||s)&&{flags:o}});throw new Error(`Unexpected flag modifier "${e}"`)}function YS(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:i}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const a=i?i.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[s,o,u]=a,l=qS.has(r)?r.toLowerCase():"custom";switch(l){case"fail":case"mismatch":case"skip":if(a.length>0)throw new Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!a.length||a.length>2)throw new Error(`Named callout must have one or two arguments "${a}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(a.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(a.length!==3)throw new Error(`Named callout must have three arguments "${a}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${l}"`)}return $S(l,n??null,(i==null?void 0:i.split(","))??null,e)}function Zd(e){let t=null,r,n;if(e[0]==="{"){const{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,s=1e5;if(+i>s||a&&+a>s)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=a===void 0?+i:a===""?1/0:+a,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return jS(t,r,n,e)}function XS(e){const t=e[1].toLowerCase();return zn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function KS(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return zn("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function Jd(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function QS(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function ZS(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function JS(e,t){const{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[d2(r)];const a=[],s=i.match(/^[0-7]+|\d/g);for(let o=0;o<s.length;o++){const u=s[o];let l;if(o===0&&u!=="8"&&u!=="9"){if(l=parseInt(u,8),l>127)throw new Error(Et`Octal encoded byte above 177 unsupported "${r}"`)}else l=Di(u);a.push(jr(l,(o===0?"\\":"")+u))}return a}function eI(e){const t=[],r=new RegExp(cc,"gy");let n;for(;n=r.exec(e);){const i=n[0];if(i[0]==="{"){const a=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(a){const{min:s,max:o}=a.groups;if(+s>+o&&i.endsWith("?")){r.lastIndex--,t.push(Zd(i.slice(0,-1)));continue}}}t.push(Zd(i))}return t}function m2(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function tI(e){return rI.has(e.type)}const rI=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function p2(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=LS(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(f,d)=>{const g=n.tokens[a.nextIndex];switch(a.parent=f,a.nextIndex++,g.type){case"Alternator":return Wn();case"Assertion":return nI(g);case"Backreference":return iI(g,a);case"Character":return So(g.value,{useLastValid:!!d.isCheckingRangeEnd});case"CharacterClassHyphen":return aI(g,a,d);case"CharacterClassOpen":return sI(g,a,d);case"CharacterSet":return oI(g,a);case"Directive":return fI(g.kind,{flags:g.flags});case"GroupOpen":return uI(g,a,d);case"NamedCallout":return pI(g.kind,g.tag,g.arguments);case"Quantifier":return lI(g,a);case"Subroutine":return cI(g,a);default:throw new Error(`Unexpected token type "${g.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},s=bI(mI(n.flags));let o=s.body[0];for(;a.nextIndex<n.tokens.length;){const f=i(o,{});f.type==="Alternative"?(s.body.push(f),o=f):o.body.push(f)}const{capturingGroups:u,hasNumberedRef:l,namedGroupsByName:c,subroutines:h}=a;if(l&&c.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:f}of h)if(typeof f=="number"){if(f>u.length)throw new Error("Subroutine uses a group number that's not defined");f&&(u[f-1].isSubroutined=!0)}else if(c.has(f)){if(c.get(f).length>1)throw new Error(Et`Subroutine uses a duplicate group name "\g<${f}>"`);c.get(f)[0].isSubroutined=!0}else throw new Error(Et`Subroutine uses a group name that's not defined "\g<${f}>"`);return s}function nI({kind:e}){return Ml(Pi({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Et`\B`||e===Et`\Y`})}function iI({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(a,s=!1)=>{const o=t.capturingGroups.length;let u=!1;if(a>o)if(t.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Bl(s?o+1-a:a,{orphan:u})};if(r){const a=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(a)return i(+a.groups.num,!!a.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Bl(n)}return i(+n)}function aI(e,t,r){const{tokens:n,walk:i}=t,a=t.parent,s=a.body.at(-1),o=n[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const u=i(a,{...r,isCheckingRangeEnd:!0});if(s.type==="Character"&&u.type==="Character")return a.body.pop(),dI(s,u);throw new Error("Invalid character class range")}return So(Di("-"))}function sI({negate:e},t,r){const{tokens:n,walk:i}=t,a=n[t.nextIndex],s=[As()];let o=rf(a);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")s.push(As()),t.nextIndex++;else{const l=s.at(-1);l.body.push(i(l,r))}o=rf(n[t.nextIndex],a)}const u=As({negate:e});return s.length===1?u.body=s[0].body:(u.kind="intersection",u.body=s.map(l=>l.body.length===1?l.body[0]:l)),t.nextIndex++,u}function oI({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s}=n;if(e==="property"){const o=Io(r);if(lc.has(o)&&!(s!=null&&s.has(o)))e="posix",r=o;else return di(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:s})}return e==="posix"?gI(r,{negate:t}):Fl(e,{negate:t})}function uI(e,t,r){const{tokens:n,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:s,walk:o}=t,u=yI(e),l=u.type==="AbsenceFunction",c=tf(u),h=c&&u.negate;if(u.type==="CapturingGroup"&&(i.push(u),u.name&&RS(a,u.name,[]).push(u)),l&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=nf(n[t.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")u.body.push(Wn()),t.nextIndex++;else{const d=u.body.at(-1),g=o(d,{...r,isInAbsenceFunction:r.isInAbsenceFunction||l,isInLookbehind:r.isInLookbehind||c,isInNegLookbehind:r.isInNegLookbehind||h});if(d.body.push(g),(c||r.isInLookbehind)&&!s){const y="Lookbehind includes a pattern not allowed by Oniguruma";if(h||r.isInNegLookbehind){if(ef(g)||g.type==="CapturingGroup")throw new Error(y)}else if(ef(g)||tf(g)&&g.negate)throw new Error(y)}}f=nf(n[t.nextIndex])}return t.nextIndex++,u}function lI({kind:e,min:t,max:r},n){const i=n.parent,a=i.body.at(-1);if(!a||!tI(a))throw new Error("Quantifier requires a repeatable token");const s=b2(e,t,r,a);return i.body.pop(),s}function cI({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let i=e.slice(3,-1);const a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){const o=+a.groups.num,u=r.length;if(t.hasNumberedRef=!0,i={"":o,"+":u+o,"-":u+1-o}[a.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const s=y2(i);return n.push(s),s}function hI(e,t){return{type:"AbsenceFunction",kind:e,body:Ua(t==null?void 0:t.body)}}function Wn(e){return{type:"Alternative",body:E2(e==null?void 0:e.body)}}function Ml(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!(t!=null&&t.negate)),r}function Bl(e,t){const r=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...r&&{orphan:r}}}function g2(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!EI(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Ua(t==null?void 0:t.body)}}function So(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function As(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:E2(e==null?void 0:e.body)}}function dI(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Fl(e,t){const r=!!(t!=null&&t.negate),n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function fI(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Pi(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function mI(e){return{type:"Flags",...e}}function cr(e){const t=e==null?void 0:e.atomic,r=e==null?void 0:e.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:Ua(e==null?void 0:e.body)}}function Mn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Ua(e==null?void 0:e.body)}}function pI(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function gI(e,t){const r=!!(t!=null&&t.negate);if(!lc.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function b2(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function bI(e,t){return{type:"Regex",body:Ua(t==null?void 0:t.body),flags:e}}function y2(e){return{type:"Subroutine",ref:e}}function di(e,t){var i;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=(i=r.unicodePropertyMap)==null?void 0:i.get(Io(e));if(!n){if(r.normalizeUnknownPropertyNames)n=xI(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(Et`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function yI({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":return hI("repeater");case"atomic":return cr({atomic:!0});case"capturing":return g2(i,{name:r});case"group":return cr({flags:e});case"lookahead":case"lookbehind":return Mn({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function Ua(e){if(e===void 0)e=[Wn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function E2(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function ef(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function tf(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function EI(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function xI(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Io(e){return e.replace(/[- _]+/g,"").toLowerCase()}function rf(e,t){return Pi(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function nf(e){return Pi(e,"Unclosed group")}function ga(e,t,r=null){function n(a,s){for(let o=0;o<a.length;o++){const u=i(a[o],s,o,a);o=Math.max(-1,o+u)}}function i(a,s=null,o=null,u=null){var E,w;let l=0,c=!1;const h={node:a,parent:s,key:o,container:u,root:e,remove(){os(u).splice(Math.max(0,si(o)+l),1),l--,c=!0},removeAllNextSiblings(){return os(u).splice(si(o)+1)},removeAllPrevSiblings(){const C=si(o)+l;return l-=C,os(u).splice(0,Math.max(0,C))},replaceWith(C,M={}){const H=!!M.traverse;u?u[Math.max(0,si(o)+l)]=C:Pi(s,"Can't replace root node")[o]=C,H&&i(C,s,o,u),c=!0},replaceWithMultiple(C,M={}){const H=!!M.traverse;if(os(u).splice(Math.max(0,si(o)+l),1,...C),l+=C.length-1,H){let D=0;for(let U=0;U<C.length;U++)D+=i(C[U],s,si(o)+U+D,u)}c=!0},skip(){c=!0}},{type:f}=a,d=t["*"],g=t[f],y=typeof d=="function"?d:d==null?void 0:d.enter,_=typeof g=="function"?g:g==null?void 0:g.enter;if(y==null||y(h,r),_==null||_(h,r),!c)switch(f){case"AbsenceFunction":case"CapturingGroup":case"Group":n(a.body,a);break;case"Alternative":case"CharacterClass":n(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"LookaroundAssertion":n(a.body,a);break;case"Quantifier":i(a.body,a,"body");break;case"Regex":n(a.body,a),i(a.flags,a,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return(E=g==null?void 0:g.exit)==null||E.call(g,h,r),(w=d==null?void 0:d.exit)==null||w.call(d,h,r),l}return i(e),e}function os(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function si(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const _I=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function TI(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function vI(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const ir=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function hc(e,t,r,n){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1];let s=0,o="";for(const u of e.matchAll(i)){const{0:l,groups:{$skip:c}}=u;if(!c&&(!n||n===ir.DEFAULT==!s)){r instanceof Function?o+=r(u,{context:s?ir.CHAR_CLASS:ir.DEFAULT,negated:a[a.length-1]}):o+=r;continue}l[0]==="["?(s++,a.push(l[1]==="^")):l==="]"&&s&&(s--,a.pop()),o+=l}return o}function x2(e,t,r,n){hc(e,t,r,n)}function wI(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let a=0,s;for(;s=i.exec(e);){const{0:o,groups:{$skip:u}}=s;if(!u&&(!n||n===ir.DEFAULT==!a))return s;o==="["?a++:o==="]"&&a&&a--,i.lastIndex==s.index&&i.lastIndex++}return null}function us(e,t,r){return!!wI(e,t,0,r)}function kI(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,i=0,a=1,s;for(;s=r.exec(e);){const[o]=s;if(o==="[")i++;else if(i)o==="]"&&i--;else if(o==="(")a++;else if(o===")"&&(a--,!a)){n=s.index;break}}return e.slice(t,n)}const af=new RegExp(String.raw`(?<noncapturingStart>${_I})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function AI(e,t){const r=(t==null?void 0:t.hiddenCaptures)??[];let n=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const i="(?>",a="(?:(?=(",s=[0],o=[];let u=0,l=0,c=NaN,h;do{h=!1;let f=0,d=0,g=!1,y;for(af.lastIndex=Number.isNaN(c)?0:c+a.length;y=af.exec(e);){const{0:_,index:E,groups:{capturingStart:w,noncapturingStart:C}}=y;if(_==="[")f++;else if(f)_==="]"&&f--;else if(_===i&&!g)c=E,g=!0;else if(g&&C)d++;else if(w)g?d++:(u++,s.push(u+l));else if(_===")"&&g){if(!d){l++;const M=u+l;if(e=`${e.slice(0,c)}${a}${e.slice(c+i.length,E)}))<$$${M}>)${e.slice(E+1)}`,h=!0,o.push(M),TI(r,M),n.size){const H=new Map;n.forEach((D,U)=>{H.set(U>=M?U+1:U,D.map($=>$>=M?$+1:$))}),n=H}break}d--}}}while(h);return r.push(...o),e=hc(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:d,wrappedBackrefNum:g}})=>{if(d){const y=+d;if(y>s.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${s[y]}`}return`\\${g}`},ir.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const _2=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Iu=new RegExp(String.raw`
175
+ \\(?: \d+
176
+ | c[A-Za-z]
177
+ | [gk]<[^>]+>
178
+ | [pPu]\{[^\}]+\}
179
+ | u[A-Fa-f\d]{4}
180
+ | x[A-Fa-f\d]{2}
181
+ )
182
+ | \((?: \? (?: [:=!>]
183
+ | <(?:[=!]|[^>]+>)
184
+ | [A-Za-z\-]+:
185
+ | \(DEFINE\)
186
+ ))?
187
+ | (?<qBase>${_2})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
188
+ | \\?.
189
+ `.replace(/\s+/g,""),"gsu");function CI(e){if(!new RegExp(`${_2}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,i="",a=0,s;for(Iu.lastIndex=0;s=Iu.exec(e);){const{0:o,index:u,groups:{qBase:l,qMod:c,invalidQ:h}}=s;if(o==="[")a||(n=u),a++;else if(o==="]")a?a--:n=null;else if(!a)if(c==="+"&&i&&!i.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${o}"`);let f=-1;if(/^\{\d+\}$/.test(l))e=vI(e,u+l.length,c,"");else{if(i===")"||i==="]"){const d=i===")"?r:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,d)}(?>${e.slice(d,u)}${l})${e.slice(u+o.length)}`}else e=`${e.slice(0,u-i.length)}(?>${i}${l})${e.slice(u+o.length)}`;f+=4}Iu.lastIndex+=f}else o[0]==="("?t.push(u):o===")"&&(r=t.length?t.pop():null);i=o}return{pattern:e}}const rr=String.raw,SI=rr`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Hl=rr`\(\?R=(?<rDepth>[^\)]+)\)|${SI}`,No=rr`\(\?<(?![=!])(?<captureName>[^>]+)>`,T2=rr`${No}|(?<unnamed>\()(?!\?)`,Rn=new RegExp(rr`${No}|${Hl}|\(\?|\\?.`,"gsu"),Nu="Cannot use multiple overlapping recursions";function II(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let i=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Hl,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&us(e,rr`\(\?\(DEFINE\)`,ir.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const a=[],s=us(e,rr`\\[1-9]`,ir.DEFAULT),o=new Map,u=[];let l=!1,c=0,h=0,f;for(Rn.lastIndex=0;f=Rn.exec(e);){const{0:d,groups:{captureName:g,rDepth:y,gRNameOrNum:_,gRDepth:E}}=f;if(d==="[")c++;else if(c)d==="]"&&c--;else if(y){if(sf(y),l)throw new Error(Nu);if(s)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=e.slice(0,f.index),C=e.slice(Rn.lastIndex);if(us(C,Hl,ir.DEFAULT))throw new Error(Nu);const M=+y-1;e=of(w,C,M,!1,r,a,h),i=lf(i,w,M,a.length,0,h);break}else if(_){sf(E);let w=!1;for(const X of u)if(X.name===_||X.num===+_){if(w=!0,X.hasRecursedWithin)throw new Error(Nu);break}if(!w)throw new Error(rr`Recursive \g cannot be used outside the referenced group "${n==="external"?_:rr`\g<${_}&R=${E}>`}"`);const C=o.get(_),M=kI(e,C);if(s&&us(M,rr`${No}|\((?!\?)`,ir.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const H=e.slice(C,f.index),D=M.slice(H.length+d.length),U=a.length,$=+E-1,q=of(H,D,$,!0,r,a,h);i=lf(i,H,$,a.length-U,U,h);const F=e.slice(0,C),Y=e.slice(C+M.length);e=`${F}${q}${Y}`,Rn.lastIndex+=q.length-d.length-H.length-D.length,u.forEach(X=>X.hasRecursedWithin=!0),l=!0}else if(g)h++,o.set(String(h),Rn.lastIndex),o.set(g,Rn.lastIndex),u.push({num:h,name:g});else if(d[0]==="("){const w=d==="(";w&&(h++,o.set(String(h),Rn.lastIndex)),u.push(w?{num:h}:{})}else d===")"&&u.pop()}return r.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:r}}function sf(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function of(e,t,r,n,i,a,s){const o=new Set;n&&x2(e+t,No,({groups:{captureName:l}})=>{o.add(l)},ir.DEFAULT);const u=[r,n?o:null,i,a,s];return`${e}${uf(`(?:${e}`,"forward",...u)}(?:)${uf(`${t})`,"backward",...u)}${t}`}function uf(e,t,r,n,i,a,s){const u=c=>t==="forward"?c+2:r-c+2-1;let l="";for(let c=0;c<r;c++){const h=u(c);l+=hc(e,rr`${T2}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:d,unnamed:g,backref:y}})=>{if(y&&n&&!n.has(y))return f;const _=`_$${h}`;if(g||d){const E=s+a.length+1;return a.push(E),NI(i,E),g?f:`(?<${d}${_}>`}return rr`\k<${y}${_}>`},ir.DEFAULT)}return l}function NI(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function lf(e,t,r,n,i,a){if(e.size&&n){let s=0;x2(t,T2,()=>s++,ir.DEFAULT);const o=a-s+i,u=new Map;return e.forEach((l,c)=>{const h=(n-s*r)/r,f=s*r,d=c>o+s?c+n:c,g=[];for(const y of l)if(y<=o)g.push(y);else if(y>o+s+h)g.push(y+n);else if(y<=o+s)for(let _=0;_<=r;_++)g.push(y+s*_);else for(let _=0;_<=r;_++)g.push(y+f+h*_);u.set(d,g)}),u}return e}var dt=String.fromCodePoint,ye=String.raw,dr={},Ro=globalThis.RegExp;dr.flagGroups=(()=>{try{new Ro("(?i:)")}catch{return!1}return!0})();dr.unicodeSets=(()=>{try{new Ro("[[]]","v")}catch{return!1}return!0})();dr.bugFlagVLiteralHyphenIsRange=dr.unicodeSets?(()=>{try{new Ro(ye`[\d\-a]`,"v")}catch{return!0}return!1})():!1;dr.bugNestedClassIgnoresNegation=dr.unicodeSets&&new Ro("[[^a]]","v").test("a");function Js(e,{enable:t,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Ca(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function zl(e,t){return cf[e]>=cf[t]}function RI(e,t){if(e==null)throw new Error(t??"Value expected");return e}var cf={ES2025:2025,ES2024:2024,ES2018:2018},LI={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function v2(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!LI[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=dr.flagGroups?"ES2025":dr.unicodeSets?"ES2024":"ES2018"),t}var OI="[ -\r ]",DI=new Set([dt(304),dt(305)]),Mr=ye`[\p{L}\p{M}\p{N}\p{Pc}]`;function w2(e){if(DI.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=BI.get(r),a=PI.get(r),s=MI.get(r);return[...n].length===1&&t.add(n),s&&t.add(s),i&&t.add(i),t.add(r),a&&t.add(a),[...t]}var dc=new Map(`C Other
190
+ Cc Control cntrl
191
+ Cf Format
192
+ Cn Unassigned
193
+ Co Private_Use
194
+ Cs Surrogate
195
+ L Letter
196
+ LC Cased_Letter
197
+ Ll Lowercase_Letter
198
+ Lm Modifier_Letter
199
+ Lo Other_Letter
200
+ Lt Titlecase_Letter
201
+ Lu Uppercase_Letter
202
+ M Mark Combining_Mark
203
+ Mc Spacing_Mark
204
+ Me Enclosing_Mark
205
+ Mn Nonspacing_Mark
206
+ N Number
207
+ Nd Decimal_Number digit
208
+ Nl Letter_Number
209
+ No Other_Number
210
+ P Punctuation punct
211
+ Pc Connector_Punctuation
212
+ Pd Dash_Punctuation
213
+ Pe Close_Punctuation
214
+ Pf Final_Punctuation
215
+ Pi Initial_Punctuation
216
+ Po Other_Punctuation
217
+ Ps Open_Punctuation
218
+ S Symbol
219
+ Sc Currency_Symbol
220
+ Sk Modifier_Symbol
221
+ Sm Math_Symbol
222
+ So Other_Symbol
223
+ Z Separator
224
+ Zl Line_Separator
225
+ Zp Paragraph_Separator
226
+ Zs Space_Separator
227
+ ASCII
228
+ ASCII_Hex_Digit AHex
229
+ Alphabetic Alpha
230
+ Any
231
+ Assigned
232
+ Bidi_Control Bidi_C
233
+ Bidi_Mirrored Bidi_M
234
+ Case_Ignorable CI
235
+ Cased
236
+ Changes_When_Casefolded CWCF
237
+ Changes_When_Casemapped CWCM
238
+ Changes_When_Lowercased CWL
239
+ Changes_When_NFKC_Casefolded CWKCF
240
+ Changes_When_Titlecased CWT
241
+ Changes_When_Uppercased CWU
242
+ Dash
243
+ Default_Ignorable_Code_Point DI
244
+ Deprecated Dep
245
+ Diacritic Dia
246
+ Emoji
247
+ Emoji_Component EComp
248
+ Emoji_Modifier EMod
249
+ Emoji_Modifier_Base EBase
250
+ Emoji_Presentation EPres
251
+ Extended_Pictographic ExtPict
252
+ Extender Ext
253
+ Grapheme_Base Gr_Base
254
+ Grapheme_Extend Gr_Ext
255
+ Hex_Digit Hex
256
+ IDS_Binary_Operator IDSB
257
+ IDS_Trinary_Operator IDST
258
+ ID_Continue IDC
259
+ ID_Start IDS
260
+ Ideographic Ideo
261
+ Join_Control Join_C
262
+ Logical_Order_Exception LOE
263
+ Lowercase Lower
264
+ Math
265
+ Noncharacter_Code_Point NChar
266
+ Pattern_Syntax Pat_Syn
267
+ Pattern_White_Space Pat_WS
268
+ Quotation_Mark QMark
269
+ Radical
270
+ Regional_Indicator RI
271
+ Sentence_Terminal STerm
272
+ Soft_Dotted SD
273
+ Terminal_Punctuation Term
274
+ Unified_Ideograph UIdeo
275
+ Uppercase Upper
276
+ Variation_Selector VS
277
+ White_Space space
278
+ XID_Continue XIDC
279
+ XID_Start XIDS`.split(/\s/).map(e=>[Io(e),e])),PI=new Map([["s",dt(383)],[dt(383),"s"]]),MI=new Map([[dt(223),dt(7838)],[dt(107),dt(8490)],[dt(229),dt(8491)],[dt(969),dt(8486)]]),BI=new Map([un(453),un(456),un(459),un(498),...Ru(8072,8079),...Ru(8088,8095),...Ru(8104,8111),un(8124),un(8140),un(8188)]),FI=new Map([["alnum",ye`[\p{Alpha}\p{Nd}]`],["alpha",ye`\p{Alpha}`],["ascii",ye`\p{ASCII}`],["blank",ye`[\p{Zs}\t]`],["cntrl",ye`\p{Cc}`],["digit",ye`\p{Nd}`],["graph",ye`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ye`\p{Lower}`],["print",ye`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ye`[\p{P}\p{S}]`],["space",ye`\p{space}`],["upper",ye`\p{Upper}`],["word",ye`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ye`\p{AHex}`]]);function HI(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function un(e){const t=dt(e);return[t.toLowerCase(),t]}function Ru(e,t){return HI(e,t).map(r=>un(r))}var k2=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function zI(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};A2(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:zl(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ga(e,UI,n);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};ga(e,$I,a);const s={groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer};return ga(e,jI,s),e._originMap=a.groupOriginByCopy,e._strategy=n.strategy,e}var UI={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:i}=e;if(i==="repeater"){const a=cr();a.body[0].body.push(Mn({negate:!0,body:n}),di("Any"));const s=cr();s.body[0].body.push(b2("greedy",0,1/0,a)),r(et(s,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const i=e.body.filter(a=>a.kind==="flags");for(let a=r+1;a<t.body.length;a++){const s=t.body[a];Ca(n,s,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){var r;if((r=t.get(e))!=null&&r.length){const n=S2(t.get(e));if(n){const i=cr({flags:n});i.body[0].body=e.body,e.body=[et(i,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:a,replaceWith:s},o){const{kind:u,negate:l}=e,{asciiWordBoundaries:c,avoidSubclass:h,supportedGNodes:f,wordIsAscii:d}=o;if(u==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${l?"Y":"y"}"`);if(u==="line_end")s(et(Mn({body:[Wn({body:[Ml("string_end")]}),Wn({body:[So(10)]})]}),t));else if(u==="line_start")s(et(Br(ye`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(u==="search_start")if(f.has(e))i.flags.sticky=!0,a();else{const g=n[r-1];if(g&&XI(g))s(et(Mn({negate:!0}),t));else{if(h)throw new Error(ye`Uses "\G" in a way that requires a subclass`);s(ln(Ml("string_start"),t)),o.strategy="clip_search"}}else if(!(u==="string_end"||u==="string_start"))if(u==="string_end_newline")s(et(Br(ye`(?=\n?\z)`),t));else if(u==="word_boundary"){if(!d&&!c){const g=`(?:(?<=${Mr})(?!${Mr})|(?<!${Mr})(?=${Mr}))`,y=`(?:(?<=${Mr})(?=${Mr})|(?<!${Mr})(?!${Mr}))`;s(et(Br(l?y:g),t))}}else throw new Error(`Unexpected assertion kind "${u}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ou(r)&&(r=Lu(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!Ou(n)&&(n=Lu(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=As({body:[e]});r(et(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:s,wordIsAscii:o}){const{kind:u,negate:l,value:c}=e;if(a&&(u==="digit"||c==="digit")){r(ln(Fl("digit",{negate:l}),t));return}if(s&&(u==="space"||c==="space")){r(et(Du(Br(OI),l),t));return}if(o&&(u==="word"||c==="word")){r(ln(Fl("word",{negate:l}),t));return}if(u==="any")r(ln(di("Any"),t));else if(u==="digit")r(ln(di("Nd",{negate:l}),t));else if(u!=="dot")if(u==="text_segment"){if(n==="strict")throw new Error(ye`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=ye`\p{RI}{2}|${h}(?:\u200D${h})*`;r(et(Br(ye`(?>\r\n|${i?ye`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(u==="hex")r(ln(di("AHex",{negate:l}),t));else if(u==="newline")r(et(Br(l?`[^
280
+ ]`:`(?>\r
281
+ ?|[
282
+ \v\f…\u2028\u2029])`),t));else if(u==="posix")if(!i&&(c==="graph"||c==="print")){if(n==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[c];l&&(h=`\0-${dt(h.codePointAt(0)-1)}${dt(h.codePointAt(2)+1)}-􏿿`),r(et(Br(`[${h}]`),t))}else r(et(Du(Br(FI.get(c)),l),t));else if(u==="property")dc.has(Io(c))||(e.key="sc");else if(u==="space")r(ln(di("space",{negate:l}),t));else if(u==="word")r(et(Du(Br(Mr),l),t));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:s}){const{kind:o,flags:u}=e;if(o==="flags")if(!u.enable&&!u.disable)n();else{const l=cr({flags:u});l.body[0].body=s(),i(et(l,t),{traverse:!0})}else if(o==="keep"){const l=r.body[0],h=r.body.length===1&&m2(l,{type:"Group"})&&l.body[0].body.length===1?l.body[0]:r;if(t.parent!==h||h.body.length>1)throw new Error(ye`Uses "\K" in a way that's unsupported`);const f=Mn({behind:!0});f.body[0].body=a(),i(et(f,t))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:r}=e.flags;t!=null&&t.extended&&delete t.extended,r!=null&&r.extended&&delete r.extended,t!=null&&t.dotAll&&(r!=null&&r.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(r!=null&&r.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(et(Mn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=cr();t.body[0].body.push(e.body),e.body=et(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,i=!1;for(const a of e.body)if(a.body.length===1&&a.body[0].kind==="search_start")a.body.pop();else{const s=N2(a.body);s?(n=!0,Array.isArray(s)?r.push(...s):r.push(s)):i=!0}n&&!i&&r.forEach(a=>t.add(a))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(ye`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Ou(r)&&(r=Lu(r,t),e.ref=r)}},$I={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:a})=>a)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:u}){const l=i.get(e);if(l&&o.has(e.number)){const h=ln(hf(e.number),t);u.set(h,o.get(e.number)),r(h);return}o.set(e.number,e),s.set(e.number,[]),e.name&&Ca(s,e.name,[]);const c=s.get(e.name??e.number);for(let h=0;h<c.length;h++){const f=c[h];if(l===f.node||l&&l===f.origin||e===f.origin){c.splice(h,1);break}}if(s.get(e.number).push({node:e,origin:l}),e.name&&s.get(e.name).push({node:e,origin:l}),e.name){const h=Ca(a,e.name,new Map);let f=!1;if(l)f=!0;else for(const d of h.values())if(!d.hasDuplicateNameToRemove){f=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:f})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Js(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:i,ref:a}=e;if(i){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===a||c.number===a)););n.reffedNodesByReferencer.set(e,c);return}const s=n.subroutineRefMap.get(a),o=a===0,u=o?hf(0):C2(s,n.groupOriginByCopy,null);let l=u;if(!o){const c=S2(GI(s,f=>f.type==="Group"&&!!f.flags)),h=c?Js(n.globalFlags,c):n.globalFlags;VI(h,n.currentFlags)||(l=cr({flags:WI(h)}),l.body[0].body.push(u))}r(et(l,t),{traverse:!o})}},jI={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const a=n.reffedNodesByReferencer.get(e).filter(s=>qI(s,e));if(!a.length)r(et(Mn({negate:!0}),t));else if(a.length>1){const s=cr({atomic:!0,body:a.reverse().map(o=>Wn({body:[Bl(o.number)]}))});r(et(s,t))}else e.ref=a[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=g2();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function A2(e){ga(e,{"*"({node:t,parent:r}){t.parent=r}})}function VI(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function qI(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=I2(r.parent);for(const i of n){if(i===r)break;if(i===e||R2(i,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function C2(e,t,r,n){const i=Array.isArray(e)?[]:{};for(const[a,s]of Object.entries(e))a==="parent"?i.parent=Array.isArray(r)?n:r:s&&typeof s=="object"?i[a]=C2(s,t,i,r):(a==="type"&&s==="CapturingGroup"&&t.set(i,t.get(e)??e),i[a]=s);return i}function hf(e){const t=y2(e);return t.isRecursive=!0,t}function GI(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function Lu(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function S2(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(i=>{var a,s;(a=n.enable)!=null&&a[i]&&(delete r.disable[i],r.enable[i]=!0),(s=n.disable)!=null&&s[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function WI({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function I2(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function N2(e){const t=e.find(r=>r.kind==="search_start"||KI(r,{negate:!1})||!YI(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const r=[];for(const n of t.body){const i=N2(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function R2(e,t){const r=I2(e)??[];for(const n of r)if(n===t||R2(n,t))return!0;return!1}function YI({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function XI(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function KI(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&m2(e.body[0],{type:"Assertion",kind:"search_start"})}function Ou(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Br(e,t){const n=p2(e,{...t,unicodePropertyMap:dc}).body;return n.length>1||n[0].body.length>1?cr({body:n}):n[0].body[0]}function Du(e,t){return e.negate=t,e}function ln(e,t){return e.parent=t,e}function et(e,t){return A2(e),e.parent=t,e}function QI(e,t){const r=v2(t),n=zl(r.target,"ES2024"),i=zl(r.target,"ES2025"),a=r.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!i){const d=[e.flags.ignoreCase];ga(e,ZI,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(g){d.push(g)},setHasCasedChar(){d.at(-1)?s=!0:o=!0}})}const u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)};let l=e;const c={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&s&&o),useFlagMods:i,useFlagV:n,verbose:r.verbose};function h(d){return c.lastNode=l,l=d,RI(JI[d.type],`Unexpected node type "${d.type}"`)(d,c,h)}const f={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return n||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],c.captureMap.forEach((d,g)=>{d.hidden&&f._hiddenCaptures.push(g),d.transferTo&&Ca(f._captureTransfers,d.transferTo,[]).push(g)}),f}var ZI={"*":{enter({node:e},t){if(ff(e)){const r=t.getCurrentModI();t.pushModI(e.flags?Js({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){ff(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){fc(dt(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),L2(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&k2.has(e.value)&&t.setHasCasedChar()}},JI={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ye`\B`:ye`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:i,number:a}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,a>o.number&&(s.transferTo=o.number)),t.captureMap.set(a,s),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=dt(e),n=oi(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&fc(r)){const i=w2(r);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:i,parent:a}=e;let{body:s}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");dr.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(mf)&&(s=[So(45),...s.filter(l=>!mf(l))]);const o=()=>`[${i?"^":""}${s.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||dr.bugNestedClassIgnoresNegation)&&!i){const c=s.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(c.length){const h=cr(),f=h.body[0];return h.parent=a,f.parent=h,s=s.filter(d=>!c.includes(d)),e.body=s,s.length?(e.parent=f,f.body.push(e)):h.body.pop(),c.forEach(d=>{const g=Wn({body:[d]});d.parent=g,g.parent=h,h.body.push(g)}),r(h)}}t.inCharClass=!0;const l=o();return t.inCharClass=!1,l}const u=s[0];if(n==="union"&&!i&&u&&((!t.useFlagV||!t.verbose)&&a.kind==="union"&&!(dr.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind==="intersection"&&s.length===1&&u.type!=="CharacterClassRange"))return s.map(r).join("");if(!t.useFlagV&&a.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=oi(r,i),s=oi(n,i),o=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const u=L2(e);iN(u).forEach(c=>{o.add(Array.isArray(c)?`${oi(c[0],i)}-${oi(c[1],i)}`:oi(c,i))})}return`${a}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":ye`[^\n]`;if(e==="digit")return t?ye`\D`:ye`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&k2.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?ye`\P`:ye`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?ye`\W`:ye`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},i,a){const s=i.currentFlags;r&&(i.currentFlags=Js(s,r));const o=t.map(a).join("|"),u=!i.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!i.useFlagMods||!r)?o:`(?${aN(e,r,i.useFlagMods)}${o})`;return i.currentFlags=s,u},LookaroundAssertion({body:e,kind:t,negate:r},n,i){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,r){return r(e.body)+sN(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:ye`\g<${t}&R=${n}>`}},eN=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),tN=new Set(["-","\\","]","^","["]),rN=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),df=new Map([[9,ye`\t`],[10,ye`\n`],[11,ye`\v`],[12,ye`\f`],[13,ye`\r`],[8232,ye`\u2028`],[8233,ye`\u2029`],[65279,ye`\uFEFF`]]),nN=new RegExp("^\\p{Cased}$","u");function fc(e){return nN.test(e)}function L2(e,t){const r=!!(t!=null&&t.firstOnly),n=e.min.value,i=e.max.value,a=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return a;for(let s=n;s<=i;s++){const o=dt(s);if(!fc(o))continue;const u=w2(o).filter(l=>{const c=l.codePointAt(0);return c<n||c>i});if(u.length&&(a.push(...u),r))break}return a}function oi(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(df.has(e))return df.get(e);if(e<32||e>126&&e<160||e>262143||t&&oN(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?rN:tN:eN,a=dt(e);return(i.has(a)?"\\":"")+a}function iN(e){const t=e.map(i=>i.codePointAt(0)).sort((i,a)=>i-a),r=[];let n=null;for(let i=0;i<t.length;i++)t[i+1]===t[i]+1?n??(n=t[i]):n===null?r.push(t[i]):(r.push([n,t[i]]),n=null);return r}function aN(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:i,disable:a}=t;n=(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")+(a?"-":"")+(a!=null&&a.ignoreCase?"i":"")+(a!=null&&a.dotAll?"s":"")}return`${n}:`}function sN({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function ff({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function oN(e){return e>47&&e<58}function mf({type:e,value:t}){return e==="Character"&&t===45}var hn,zr,Un,dn,$n,Na,Ul,gn,uN=(gn=class extends RegExp{constructor(r,n,i){var t=(...xP)=>(super(...xP),Cn(this,Na),Cn(this,hn,new Map),Cn(this,zr,null),Cn(this,Un),Cn(this,dn,null),Cn(this,$n,null),j(this,"rawOptions",{}),this);const a=!!(i!=null&&i.lazyCompile);if(r instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const s=r;t(s,n),ur(this,Un,s.source),s instanceof gn&&(ur(this,hn,It(s,hn)),ur(this,dn,It(s,dn)),ur(this,$n,It(s,$n)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...i};t(a?"":r,n),ur(this,Un,r),ur(this,hn,cN(s.hiddenCaptures,s.transfers)),ur(this,$n,s.strategy),this.rawOptions=i??{}}a||ur(this,zr,this)}get source(){return It(this,Un)||"(?:)"}exec(r){if(!It(this,zr)){const{lazyCompile:a,...s}=this.rawOptions;ur(this,zr,new gn(It(this,Un),this.flags,s))}const n=this.global||this.sticky,i=this.lastIndex;if(It(this,$n)==="clip_search"&&n&&i){this.lastIndex=0;const a=Ko(this,Na,Ul).call(this,r.slice(i));return a&&(lN(a,i,r,this.hasIndices),this.lastIndex+=i),a}return Ko(this,Na,Ul).call(this,r)}},hn=new WeakMap,zr=new WeakMap,Un=new WeakMap,dn=new WeakMap,$n=new WeakMap,Na=new WeakSet,Ul=function(r){It(this,zr).lastIndex=this.lastIndex;const n=Mc(gn.prototype,this,"exec").call(It(this,zr),r);if(this.lastIndex=It(this,zr).lastIndex,!n||!It(this,hn).size)return n;const i=[...n];n.length=1;let a;this.hasIndices&&(a=[...n.indices],n.indices.length=1);const s=[0];for(let o=1;o<i.length;o++){const{hidden:u,transferTo:l}=It(this,hn).get(o)??{};if(u?s.push(null):(s.push(n.length),n.push(i[o]),this.hasIndices&&n.indices.push(a[o])),l&&i[o]!==void 0){const c=s[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=i[o],this.hasIndices&&(n.indices[c]=a[o]),n.groups){It(this,dn)||ur(this,dn,hN(this.source));const h=It(this,dn).get(l);h&&(n.groups[h]=i[o],this.hasIndices&&(n.indices.groups[h]=a[o]))}}}return n},gn);function lN(e,t,r,n){if(e.index+=t,e.input=r,n){const i=e.indices;for(let s=0;s<i.length;s++){const o=i[s];o&&(i[s]=[o[0]+t,o[1]+t])}const a=i.groups;a&&Object.keys(a).forEach(s=>{const o=a[s];o&&(a[s]=[o[0]+t,o[1]+t])})}}function cN(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,i]of t)for(const a of i)Ca(r,a,{}).transferTo=n;return r}function hN(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,a;for(;a=t.exec(e);){const{0:s,groups:{capture:o,name:u}}=a;s==="["?n++:n?s==="]"&&n--:o&&(i++,u&&r.set(i,u))}return r}function dN(e,t){const r=fN(e,t);return r.options?new uN(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function fN(e,t){const r=v2(t),n=p2(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:dc}),i=zI(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),a=QI(i,r),s=II(a.pattern,{captureTransfers:a._captureTransfers,hiddenCaptures:a._hiddenCaptures,mode:"external"}),o=CI(s.pattern),u=AI(o.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),l={pattern:u.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${a.flags}${a.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=u.hiddenCaptures.sort((g,y)=>g-y),h=Array.from(u.captureTransfers),f=i._strategy,d=l.pattern.length>=r.lazyCompileLength;(c.length||h.length||f||d)&&(l.options={...c.length&&{hiddenCaptures:c},...h.length&&{transfers:h},...f&&{strategy:f},...d&&{lazyCompile:d}})}return l}const pf=4294967295;class mN{constructor(t,r={}){j(this,"regexps");this.patterns=t,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:a}=r;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(s=>{if(typeof s!="string")return s;const o=i==null?void 0:i.get(s);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const u=a(s);return i==null||i.set(s,u),u}catch(u){if(i==null||i.set(s,u),n)return null;throw u}})}findNextMatchSync(t,r,n){const i=typeof t=="string"?t:t.content,a=[];function s(o,u,l=0){return{index:o,captureIndices:u.indices.map(c=>c==null?{start:pf,end:pf,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[0]})}}for(let o=0;o<this.regexps.length;o++){const u=this.regexps[o];if(u)try{u.lastIndex=r;const l=u.exec(i);if(!l)continue;if(l.index===r)return s(o,l,0);a.push([o,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(a.length){const o=Math.min(...a.map(u=>u[1].index));for(const[u,l,c]of a)if(l.index===o)return s(u,l,c)}return null}}function pN(e,t){return dN(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function gN(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=r=>pN(r,{target:t.target})),{createScanner(r){return new mN(r,t)},createString(r){return{content:r}}}}var bN=gN({forgiving:!0}),yN=Object.fromEntries(oc.flatMap(e=>{var t;return((t=e.aliases)!=null?t:[]).map(r=>[r,e.id])})),Cs=new Set(Object.keys(o2)),gf=e=>{let t=e.trim().toLowerCase();return yN[t]||(Cs.has(t),t)},Pu=new Map,Mu=new Map,ui=new Map,eo=e=>{var t;return typeof e=="string"?e:(t=e.name)!=null?t:"custom"},EN=(e,t)=>`${e}-${eo(t[0])}-${eo(t[1])}`,xN=(e,t,r)=>{let n=e.slice(0,100),i=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${n}:${i}`},_N=(e,t)=>{let r=EN(e,t);if(Pu.has(r))return Pu.get(r);let n=NS({themes:t,langs:[e],engine:bN});return Pu.set(r,n),n};function TN(e={}){var t;let r=(t=e.themes)!=null?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(n){let i=gf(n);return Cs.has(i)},getSupportedLanguages(){return Array.from(Cs)},getThemes(){return r},highlight({code:n,language:i,themes:a},s){let o=gf(i),u=[eo(a[0]),eo(a[1])],l=xN(n,o,u);if(Mu.has(l))return Mu.get(l);s&&(ui.has(l)||ui.set(l,new Set),ui.get(l).add(s));let c=Cs.has(o)?o:"text";return _N(c,a).then(h=>{let f=h.getLoadedLanguages().includes(o)?o:"text",d=h.codeToTokens(n,{lang:f,themes:{light:u[0],dark:u[1]}});Mu.set(l,d);let g=ui.get(l);if(g){for(let y of g)y(d);ui.delete(l)}}).catch(h=>{console.error("[Streamdown Code] Failed to highlight code:",h),ui.delete(l)}),null}}}var vN=TN();function wN(e,t){return O2(e,{})||{type:"root",children:[]}}function O2(e,t){const r=kN(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function kN(e,t){switch(e.nodeType){case 1:return IN(e,t);case 3:return CN(e);case 8:return SN(e);case 9:return bf(e,t);case 10:return AN();case 11:return bf(e,t);default:return}}function bf(e,t){return{type:"root",children:D2(e,t)}}function AN(){return{type:"doctype"}}function CN(e){return{type:"text",value:e.nodeValue||""}}function SN(e){return{type:"comment",value:e.nodeValue||""}}function IN(e,t){const r=e.namespaceURI,n=r===Tr.svg?N1:I1,i=r===Tr.html?e.tagName.toLowerCase():e.tagName,a=r===Tr.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let u=-1;for(;++u<s.length;)o[s[u]]=e.getAttribute(s[u])||"";return n(i,o,D2(a,t))}function D2(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=O2(r[i],t);a!==void 0&&n.push(a)}return n}new DOMParser;function NN(e,t){const r=RN(e);return wN(r)}function RN(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const yf=(function(e,t,r){const n=Ra(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),ei=(function(e){if(e==null)return DN;if(typeof e=="string")return ON(e);if(typeof e=="object")return LN(e);if(typeof e=="function")return mc(e);throw new Error("Expected function, string, or array as `test`")});function LN(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ei(e[r]);return mc(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ON(e){return mc(t);function t(r){return r.tagName===e}}function mc(e){return t;function t(r,n,i){return!!(PN(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function DN(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function PN(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Ef=/\n/g,xf=/[\t ]+/g,$l=ei("br"),_f=ei(jN),MN=ei("p"),Tf=ei("tr"),BN=ei(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",$N,VN]),P2=ei(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function FN(e,t){const r=t||{},n="children"in e?e.children:[],i=P2(e),a=F2(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...B2(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...M2(n[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<n.length-1?$l(n[o+1]):i}));const u=[];let l;for(o=-1;++o<s.length;){const c=s[o];typeof c=="number"?l!==void 0&&c>l&&(l=c):c&&(l!==void 0&&l>-1&&u.push(`
283
+ `.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function M2(e,t,r){return e.type==="element"?HN(e,t,r):e.type==="text"?r.whitespace==="normal"?B2(e,r):zN(e):[]}function HN(e,t,r){const n=F2(e,r),i=e.children||[];let a=-1,s=[];if(BN(e))return s;let o,u;for($l(e)||Tf(e)&&yf(t,e,Tf)?u=`
284
+ `:MN(e)?(o=2,u=2):P2(e)&&(o=1,u=1);++a<i.length;)s=s.concat(M2(i[a],e,{whitespace:n,breakBefore:a?void 0:o,breakAfter:a<i.length-1?$l(i[a+1]):u}));return _f(e)&&yf(t,e,_f)&&s.push(" "),o&&s.unshift(o),u&&s.push(u),s}function B2(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){Ef.lastIndex=a;const u=Ef.exec(r),l=u&&"index"in u?u.index:r.length;n.push(UN(r.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===r.length?t.breakAfter:!0)),a=l+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(i.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&i.push(o),i.push(n[s]),o=0):(s===0||s===n.length-1)&&i.push(0);return i}function zN(e){return[String(e.value)]}function UN(e,t,r){const n=[];let i=0,a;for(;i<e.length;){xf.lastIndex=i;const s=xf.exec(e);a=s?s.index:e.length,!i&&!a&&s&&!t&&n.push(""),i!==a&&n.push(e.slice(i,a)),i=s?a+s[0].length:a}return i!==a&&!r&&n.push(""),n.join(" ")}function F2(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function $N(e){return!!(e.properties||{}).hidden}function jN(e){return e.tagName==="td"||e.tagName==="th"}function VN(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class ee extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=o.slice(i,a).replace(/[^]/g,"$&̲"),l;i>15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15<o.length?c=o.slice(a,a+15)+"…":c=o.slice(a),n+=l+u+c}super(n),this.name="ParseError",Object.setPrototypeOf(this,ee.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var qN=/([A-Z])/g,pc=e=>e.replace(qN,"-$1").toLowerCase(),GN={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},WN=/[&><"']/g,kt=e=>String(e).replace(WN,t=>GN[t]),Ss=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Ss(e.body[0]):e:e.type==="font"?Ss(e.body):e,YN=new Set(["mathord","textord","atom"]),Kr=e=>YN.has(Ss(e).type),XN=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},jl={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function KN(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class gc{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(jl)){var n=jl[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:KN(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new ee("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=XN(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class nn{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return _r[QN[this.id]]}sub(){return _r[ZN[this.id]]}fracNum(){return _r[JN[this.id]]}fracDen(){return _r[eR[this.id]]}cramp(){return _r[tR[this.id]]}text(){return _r[rR[this.id]]}isTight(){return this.size>=2}}var bc=0,to=1,yi=2,Gr=3,Sa=4,ar=5,vi=6,Pt=7,_r=[new nn(bc,0,!1),new nn(to,0,!0),new nn(yi,1,!1),new nn(Gr,1,!0),new nn(Sa,2,!1),new nn(ar,2,!0),new nn(vi,3,!1),new nn(Pt,3,!0)],QN=[Sa,ar,Sa,ar,vi,Pt,vi,Pt],ZN=[ar,ar,ar,ar,Pt,Pt,Pt,Pt],JN=[yi,Gr,Sa,ar,vi,Pt,vi,Pt],eR=[Gr,Gr,ar,ar,Pt,Pt,Pt,Pt],tR=[to,to,Gr,Gr,ar,ar,Pt,Pt],rR=[bc,to,yi,Gr,yi,Gr,yi,Gr],be={DISPLAY:_r[bc],TEXT:_r[yi],SCRIPT:_r[Sa],SCRIPTSCRIPT:_r[vi]},Vl=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function nR(e){for(var t=0;t<Vl.length;t++)for(var r=Vl[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Is=[];Vl.forEach(e=>e.blocks.forEach(t=>Is.push(...t)));function H2(e){for(var t=0;t<Is.length;t+=2)if(e>=Is[t]&&e<=Is[t+1])return!0;return!1}var ct=e=>e+" "+e,li=80,iR=function(t,r){return"M95,"+(622+t+r)+`
285
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
286
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
287
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
288
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
289
+ c69,-144,104.5,-217.7,106.5,-221
290
+ l`+t/2.075+" -"+t+`
291
+ c5.3,-9.3,12,-14,20,-14
292
+ H400000v`+(40+t)+`H845.2724
293
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
294
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
295
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},aR=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
296
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
297
+ c340,-704.7,510.7,-1060.3,512,-1067
298
+ l`+t/2.084+" -"+t+`
299
+ c4.7,-7.3,11,-11,19,-11
300
+ H40000v`+(40+t)+`H1012.3
301
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
302
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
303
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
304
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
305
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},sR=function(t,r){return"M983 "+(10+t+r)+`
306
+ l`+t/3.13+" -"+t+`
307
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
308
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
309
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
310
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
311
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
312
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
313
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
314
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},oR=function(t,r){return"M424,"+(2398+t+r)+`
315
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
316
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
317
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
318
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
319
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
320
+ v`+(40+t)+`H1014.6
321
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
322
+ c-2,6,-10,9,-24,9
323
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
324
+ h400000v`+(40+t)+"h-400000z"},uR=function(t,r){return"M473,"+(2713+t+r)+`
325
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
326
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
327
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
328
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
329
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
330
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
331
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},lR=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},cR=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
332
+ H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
333
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
334
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
335
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},hR=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=iR(r,li);break;case"sqrtSize1":i=aR(r,li);break;case"sqrtSize2":i=sR(r,li);break;case"sqrtSize3":i=oR(r,li);break;case"sqrtSize4":i=uR(r,li);break;case"sqrtTall":i=cR(r,li,n)}return i},dR=function(t,r){switch(t){case"⎜":return ct("M291 0 H417 V"+r+" H291z");case"∣":return ct("M145 0 H188 V"+r+" H145z");case"∥":return ct("M145 0 H188 V"+r+" H145z")+ct("M367 0 H410 V"+r+" H367z");case"⎟":return ct("M457 0 H583 V"+r+" H457z");case"⎢":return ct("M319 0 H403 V"+r+" H319z");case"⎥":return ct("M263 0 H347 V"+r+" H263z");case"⎪":return ct("M384 0 H504 V"+r+" H384z");case"⏐":return ct("M312 0 H355 V"+r+" H312z");case"‖":return ct("M257 0 H300 V"+r+" H257z")+ct("M478 0 H521 V"+r+" H478z");default:return""}},vf={doubleleftarrow:`M262 157
336
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
337
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
338
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
339
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
340
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
341
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
342
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
343
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
344
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
345
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
346
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
347
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
348
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
349
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
350
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
351
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
352
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
353
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
354
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
355
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
356
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
357
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
358
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
359
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
360
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
361
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
362
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
363
+ 435 0h399565z`,leftgroupunder:`M400000 262
364
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
365
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
366
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
367
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
368
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
369
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
370
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
371
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
372
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
373
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
374
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
375
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
376
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
377
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
378
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
379
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
380
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
381
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:ct("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:ct("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:ct("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:ct("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
382
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
383
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
384
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:ct("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
385
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
386
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
387
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
388
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
389
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
390
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
391
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
392
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
393
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
394
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
395
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
396
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
397
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
398
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
399
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
400
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
401
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
402
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
403
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
404
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
405
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
406
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
407
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
408
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
409
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
410
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
411
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
412
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
413
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
414
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
415
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
416
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
417
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
418
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
419
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
420
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
421
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
422
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
423
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
424
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
425
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
426
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
427
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
428
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
429
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
430
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
431
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
432
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
433
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:ct("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:ct("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:ct("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
434
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
435
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
436
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
437
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
438
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
439
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
440
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
441
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
442
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
443
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
444
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
445
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
446
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
447
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
448
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
449
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
450
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
451
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
452
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
453
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
454
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
455
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
456
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
457
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
458
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
459
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
460
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
461
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
462
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
463
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
464
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
465
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
466
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
467
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
468
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
469
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
470
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
471
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
472
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
473
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
474
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
475
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
476
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
477
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
478
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
479
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
480
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
481
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
482
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
483
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
484
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
485
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
486
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
487
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
488
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
489
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
490
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
491
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
492
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
493
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
494
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
495
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
496
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
497
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
498
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
499
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
500
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
501
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
502
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
503
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
504
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
505
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
506
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},fR=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
507
+ H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
508
+ M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
509
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
510
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
511
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
512
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
513
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
514
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
515
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
516
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
517
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
518
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
519
+ M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
520
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
521
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
522
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
523
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
524
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
525
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
526
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
527
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
528
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
529
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
530
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
531
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
532
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
533
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
534
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Mi{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var ql={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},mR={ex:!0,em:!0,mu:!0},z2=function(t){return typeof t!="string"&&(t=t.unit),t in ql||t in mR||t==="ex"},Xe=function(t,r){var n;if(t.unit in ql)n=ql[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new ee("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},ae=function(t){return+t.toFixed(4)+"em"},En=function(t){return t.filter(r=>r).join(" ")},U2=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},$2=function(t){var r=document.createElement(t);r.className=En(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},pR=/[\s"'>/=\x00-\x1f]/,j2=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+kt(En(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=pc(i)+":"+this.style[i]+";";n&&(r+=' style="'+kt(n)+'"');for(var a of Object.keys(this.attributes)){if(pR.test(a))throw new ee("Invalid attribute name '"+a+"'");r+=" "+a+'="'+kt(this.attributes[a])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Bi{constructor(t,r,n,i){U2.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $2.call(this,"span")}toMarkup(){return j2.call(this,"span")}}let Lo=class{constructor(t,r,n,i){U2.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $2.call(this,"a")}toMarkup(){return j2.call(this,"a")}};class gR{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+kt(this.src)+'"'+(' alt="'+kt(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=pc(n)+":"+this.style[n]+";";return r&&(t+=' style="'+kt(r)+'"'),t+="'/>",t}}var bR={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Wt{constructor(t,r,n,i,a,s,o,u){this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=u||{},this.maxFontSize=0;var l=nR(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=bR[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=ae(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=En(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=kt(En(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+ae(this.italic)+";");for(var i of Object.keys(this.style))n+=pc(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+kt(n)+'"');var a=kt(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class Wr{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+kt(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class xn{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",vf[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+kt(this.alternate)+'"/>':'<path d="'+kt(vf[this.pathName])+'"/>'}}class Gl{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+kt(this.attributes[r])+'"';return t+="/>",t}}function yR(e){if(e instanceof Wt)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function ER(e){if(e instanceof Bi)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var xR=e=>e instanceof Bi||e instanceof Lo||e instanceof Mi,vr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ls={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},wf={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function _R(e,t){vr[e]=t}function yc(e,t,r){if(!vr[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=vr[t][n];if(!i&&e[0]in wf&&(n=wf[e[0]].charCodeAt(0),i=vr[t][n]),!i&&r==="text"&&H2(n)&&(i=vr[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Bu={};function TR(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Bu[t]){var r=Bu[t]={cssEmPerMu:ls.quad[t]/18};for(var n in ls)ls.hasOwnProperty(n)&&(r[n]=ls[n][t])}return Bu[t]}var vR={bin:1,close:1,inner:1,open:1,punct:1,rel:1},wR={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ge={math:{},text:{}};function p(e,t,r,n,i,a){Ge[e][i]={font:t,group:r,replace:n},a&&n&&(Ge[e][n]=Ge[e][i])}var b="math",K="text",x="main",R="ams",We="accent-token",ue="bin",Bt="close",Fi="inner",me="mathord",st="op-token",Yt="open",$a="punct",L="rel",Qr="spacing",B="textord";p(b,x,L,"≡","\\equiv",!0);p(b,x,L,"≺","\\prec",!0);p(b,x,L,"≻","\\succ",!0);p(b,x,L,"∼","\\sim",!0);p(b,x,L,"⊥","\\perp");p(b,x,L,"⪯","\\preceq",!0);p(b,x,L,"⪰","\\succeq",!0);p(b,x,L,"≃","\\simeq",!0);p(b,x,L,"∣","\\mid",!0);p(b,x,L,"≪","\\ll",!0);p(b,x,L,"≫","\\gg",!0);p(b,x,L,"≍","\\asymp",!0);p(b,x,L,"∥","\\parallel");p(b,x,L,"⋈","\\bowtie",!0);p(b,x,L,"⌣","\\smile",!0);p(b,x,L,"⊑","\\sqsubseteq",!0);p(b,x,L,"⊒","\\sqsupseteq",!0);p(b,x,L,"≐","\\doteq",!0);p(b,x,L,"⌢","\\frown",!0);p(b,x,L,"∋","\\ni",!0);p(b,x,L,"∝","\\propto",!0);p(b,x,L,"⊢","\\vdash",!0);p(b,x,L,"⊣","\\dashv",!0);p(b,x,L,"∋","\\owns");p(b,x,$a,".","\\ldotp");p(b,x,$a,"⋅","\\cdotp");p(b,x,$a,"⋅","·");p(K,x,B,"⋅","·");p(b,x,B,"#","\\#");p(K,x,B,"#","\\#");p(b,x,B,"&","\\&");p(K,x,B,"&","\\&");p(b,x,B,"ℵ","\\aleph",!0);p(b,x,B,"∀","\\forall",!0);p(b,x,B,"ℏ","\\hbar",!0);p(b,x,B,"∃","\\exists",!0);p(b,x,B,"∇","\\nabla",!0);p(b,x,B,"♭","\\flat",!0);p(b,x,B,"ℓ","\\ell",!0);p(b,x,B,"♮","\\natural",!0);p(b,x,B,"♣","\\clubsuit",!0);p(b,x,B,"℘","\\wp",!0);p(b,x,B,"♯","\\sharp",!0);p(b,x,B,"♢","\\diamondsuit",!0);p(b,x,B,"ℜ","\\Re",!0);p(b,x,B,"♡","\\heartsuit",!0);p(b,x,B,"ℑ","\\Im",!0);p(b,x,B,"♠","\\spadesuit",!0);p(b,x,B,"§","\\S",!0);p(K,x,B,"§","\\S");p(b,x,B,"¶","\\P",!0);p(K,x,B,"¶","\\P");p(b,x,B,"†","\\dag");p(K,x,B,"†","\\dag");p(K,x,B,"†","\\textdagger");p(b,x,B,"‡","\\ddag");p(K,x,B,"‡","\\ddag");p(K,x,B,"‡","\\textdaggerdbl");p(b,x,Bt,"⎱","\\rmoustache",!0);p(b,x,Yt,"⎰","\\lmoustache",!0);p(b,x,Bt,"⟯","\\rgroup",!0);p(b,x,Yt,"⟮","\\lgroup",!0);p(b,x,ue,"∓","\\mp",!0);p(b,x,ue,"⊖","\\ominus",!0);p(b,x,ue,"⊎","\\uplus",!0);p(b,x,ue,"⊓","\\sqcap",!0);p(b,x,ue,"∗","\\ast");p(b,x,ue,"⊔","\\sqcup",!0);p(b,x,ue,"◯","\\bigcirc",!0);p(b,x,ue,"∙","\\bullet",!0);p(b,x,ue,"‡","\\ddagger");p(b,x,ue,"≀","\\wr",!0);p(b,x,ue,"⨿","\\amalg");p(b,x,ue,"&","\\And");p(b,x,L,"⟵","\\longleftarrow",!0);p(b,x,L,"⇐","\\Leftarrow",!0);p(b,x,L,"⟸","\\Longleftarrow",!0);p(b,x,L,"⟶","\\longrightarrow",!0);p(b,x,L,"⇒","\\Rightarrow",!0);p(b,x,L,"⟹","\\Longrightarrow",!0);p(b,x,L,"↔","\\leftrightarrow",!0);p(b,x,L,"⟷","\\longleftrightarrow",!0);p(b,x,L,"⇔","\\Leftrightarrow",!0);p(b,x,L,"⟺","\\Longleftrightarrow",!0);p(b,x,L,"↦","\\mapsto",!0);p(b,x,L,"⟼","\\longmapsto",!0);p(b,x,L,"↗","\\nearrow",!0);p(b,x,L,"↩","\\hookleftarrow",!0);p(b,x,L,"↪","\\hookrightarrow",!0);p(b,x,L,"↘","\\searrow",!0);p(b,x,L,"↼","\\leftharpoonup",!0);p(b,x,L,"⇀","\\rightharpoonup",!0);p(b,x,L,"↙","\\swarrow",!0);p(b,x,L,"↽","\\leftharpoondown",!0);p(b,x,L,"⇁","\\rightharpoondown",!0);p(b,x,L,"↖","\\nwarrow",!0);p(b,x,L,"⇌","\\rightleftharpoons",!0);p(b,R,L,"≮","\\nless",!0);p(b,R,L,"","\\@nleqslant");p(b,R,L,"","\\@nleqq");p(b,R,L,"⪇","\\lneq",!0);p(b,R,L,"≨","\\lneqq",!0);p(b,R,L,"","\\@lvertneqq");p(b,R,L,"⋦","\\lnsim",!0);p(b,R,L,"⪉","\\lnapprox",!0);p(b,R,L,"⊀","\\nprec",!0);p(b,R,L,"⋠","\\npreceq",!0);p(b,R,L,"⋨","\\precnsim",!0);p(b,R,L,"⪹","\\precnapprox",!0);p(b,R,L,"≁","\\nsim",!0);p(b,R,L,"","\\@nshortmid");p(b,R,L,"∤","\\nmid",!0);p(b,R,L,"⊬","\\nvdash",!0);p(b,R,L,"⊭","\\nvDash",!0);p(b,R,L,"⋪","\\ntriangleleft");p(b,R,L,"⋬","\\ntrianglelefteq",!0);p(b,R,L,"⊊","\\subsetneq",!0);p(b,R,L,"","\\@varsubsetneq");p(b,R,L,"⫋","\\subsetneqq",!0);p(b,R,L,"","\\@varsubsetneqq");p(b,R,L,"≯","\\ngtr",!0);p(b,R,L,"","\\@ngeqslant");p(b,R,L,"","\\@ngeqq");p(b,R,L,"⪈","\\gneq",!0);p(b,R,L,"≩","\\gneqq",!0);p(b,R,L,"","\\@gvertneqq");p(b,R,L,"⋧","\\gnsim",!0);p(b,R,L,"⪊","\\gnapprox",!0);p(b,R,L,"⊁","\\nsucc",!0);p(b,R,L,"⋡","\\nsucceq",!0);p(b,R,L,"⋩","\\succnsim",!0);p(b,R,L,"⪺","\\succnapprox",!0);p(b,R,L,"≆","\\ncong",!0);p(b,R,L,"","\\@nshortparallel");p(b,R,L,"∦","\\nparallel",!0);p(b,R,L,"⊯","\\nVDash",!0);p(b,R,L,"⋫","\\ntriangleright");p(b,R,L,"⋭","\\ntrianglerighteq",!0);p(b,R,L,"","\\@nsupseteqq");p(b,R,L,"⊋","\\supsetneq",!0);p(b,R,L,"","\\@varsupsetneq");p(b,R,L,"⫌","\\supsetneqq",!0);p(b,R,L,"","\\@varsupsetneqq");p(b,R,L,"⊮","\\nVdash",!0);p(b,R,L,"⪵","\\precneqq",!0);p(b,R,L,"⪶","\\succneqq",!0);p(b,R,L,"","\\@nsubseteqq");p(b,R,ue,"⊴","\\unlhd");p(b,R,ue,"⊵","\\unrhd");p(b,R,L,"↚","\\nleftarrow",!0);p(b,R,L,"↛","\\nrightarrow",!0);p(b,R,L,"⇍","\\nLeftarrow",!0);p(b,R,L,"⇏","\\nRightarrow",!0);p(b,R,L,"↮","\\nleftrightarrow",!0);p(b,R,L,"⇎","\\nLeftrightarrow",!0);p(b,R,L,"△","\\vartriangle");p(b,R,B,"ℏ","\\hslash");p(b,R,B,"▽","\\triangledown");p(b,R,B,"◊","\\lozenge");p(b,R,B,"Ⓢ","\\circledS");p(b,R,B,"®","\\circledR");p(K,R,B,"®","\\circledR");p(b,R,B,"∡","\\measuredangle",!0);p(b,R,B,"∄","\\nexists");p(b,R,B,"℧","\\mho");p(b,R,B,"Ⅎ","\\Finv",!0);p(b,R,B,"⅁","\\Game",!0);p(b,R,B,"‵","\\backprime");p(b,R,B,"▲","\\blacktriangle");p(b,R,B,"▼","\\blacktriangledown");p(b,R,B,"■","\\blacksquare");p(b,R,B,"⧫","\\blacklozenge");p(b,R,B,"★","\\bigstar");p(b,R,B,"∢","\\sphericalangle",!0);p(b,R,B,"∁","\\complement",!0);p(b,R,B,"ð","\\eth",!0);p(K,x,B,"ð","ð");p(b,R,B,"╱","\\diagup");p(b,R,B,"╲","\\diagdown");p(b,R,B,"□","\\square");p(b,R,B,"□","\\Box");p(b,R,B,"◊","\\Diamond");p(b,R,B,"¥","\\yen",!0);p(K,R,B,"¥","\\yen",!0);p(b,R,B,"✓","\\checkmark",!0);p(K,R,B,"✓","\\checkmark");p(b,R,B,"ℶ","\\beth",!0);p(b,R,B,"ℸ","\\daleth",!0);p(b,R,B,"ℷ","\\gimel",!0);p(b,R,B,"ϝ","\\digamma",!0);p(b,R,B,"ϰ","\\varkappa");p(b,R,Yt,"┌","\\@ulcorner",!0);p(b,R,Bt,"┐","\\@urcorner",!0);p(b,R,Yt,"└","\\@llcorner",!0);p(b,R,Bt,"┘","\\@lrcorner",!0);p(b,R,L,"≦","\\leqq",!0);p(b,R,L,"⩽","\\leqslant",!0);p(b,R,L,"⪕","\\eqslantless",!0);p(b,R,L,"≲","\\lesssim",!0);p(b,R,L,"⪅","\\lessapprox",!0);p(b,R,L,"≊","\\approxeq",!0);p(b,R,ue,"⋖","\\lessdot");p(b,R,L,"⋘","\\lll",!0);p(b,R,L,"≶","\\lessgtr",!0);p(b,R,L,"⋚","\\lesseqgtr",!0);p(b,R,L,"⪋","\\lesseqqgtr",!0);p(b,R,L,"≑","\\doteqdot");p(b,R,L,"≓","\\risingdotseq",!0);p(b,R,L,"≒","\\fallingdotseq",!0);p(b,R,L,"∽","\\backsim",!0);p(b,R,L,"⋍","\\backsimeq",!0);p(b,R,L,"⫅","\\subseteqq",!0);p(b,R,L,"⋐","\\Subset",!0);p(b,R,L,"⊏","\\sqsubset",!0);p(b,R,L,"≼","\\preccurlyeq",!0);p(b,R,L,"⋞","\\curlyeqprec",!0);p(b,R,L,"≾","\\precsim",!0);p(b,R,L,"⪷","\\precapprox",!0);p(b,R,L,"⊲","\\vartriangleleft");p(b,R,L,"⊴","\\trianglelefteq");p(b,R,L,"⊨","\\vDash",!0);p(b,R,L,"⊪","\\Vvdash",!0);p(b,R,L,"⌣","\\smallsmile");p(b,R,L,"⌢","\\smallfrown");p(b,R,L,"≏","\\bumpeq",!0);p(b,R,L,"≎","\\Bumpeq",!0);p(b,R,L,"≧","\\geqq",!0);p(b,R,L,"⩾","\\geqslant",!0);p(b,R,L,"⪖","\\eqslantgtr",!0);p(b,R,L,"≳","\\gtrsim",!0);p(b,R,L,"⪆","\\gtrapprox",!0);p(b,R,ue,"⋗","\\gtrdot");p(b,R,L,"⋙","\\ggg",!0);p(b,R,L,"≷","\\gtrless",!0);p(b,R,L,"⋛","\\gtreqless",!0);p(b,R,L,"⪌","\\gtreqqless",!0);p(b,R,L,"≖","\\eqcirc",!0);p(b,R,L,"≗","\\circeq",!0);p(b,R,L,"≜","\\triangleq",!0);p(b,R,L,"∼","\\thicksim");p(b,R,L,"≈","\\thickapprox");p(b,R,L,"⫆","\\supseteqq",!0);p(b,R,L,"⋑","\\Supset",!0);p(b,R,L,"⊐","\\sqsupset",!0);p(b,R,L,"≽","\\succcurlyeq",!0);p(b,R,L,"⋟","\\curlyeqsucc",!0);p(b,R,L,"≿","\\succsim",!0);p(b,R,L,"⪸","\\succapprox",!0);p(b,R,L,"⊳","\\vartriangleright");p(b,R,L,"⊵","\\trianglerighteq");p(b,R,L,"⊩","\\Vdash",!0);p(b,R,L,"∣","\\shortmid");p(b,R,L,"∥","\\shortparallel");p(b,R,L,"≬","\\between",!0);p(b,R,L,"⋔","\\pitchfork",!0);p(b,R,L,"∝","\\varpropto");p(b,R,L,"◀","\\blacktriangleleft");p(b,R,L,"∴","\\therefore",!0);p(b,R,L,"∍","\\backepsilon");p(b,R,L,"▶","\\blacktriangleright");p(b,R,L,"∵","\\because",!0);p(b,R,L,"⋘","\\llless");p(b,R,L,"⋙","\\gggtr");p(b,R,ue,"⊲","\\lhd");p(b,R,ue,"⊳","\\rhd");p(b,R,L,"≂","\\eqsim",!0);p(b,x,L,"⋈","\\Join");p(b,R,L,"≑","\\Doteq",!0);p(b,R,ue,"∔","\\dotplus",!0);p(b,R,ue,"∖","\\smallsetminus");p(b,R,ue,"⋒","\\Cap",!0);p(b,R,ue,"⋓","\\Cup",!0);p(b,R,ue,"⩞","\\doublebarwedge",!0);p(b,R,ue,"⊟","\\boxminus",!0);p(b,R,ue,"⊞","\\boxplus",!0);p(b,R,ue,"⋇","\\divideontimes",!0);p(b,R,ue,"⋉","\\ltimes",!0);p(b,R,ue,"⋊","\\rtimes",!0);p(b,R,ue,"⋋","\\leftthreetimes",!0);p(b,R,ue,"⋌","\\rightthreetimes",!0);p(b,R,ue,"⋏","\\curlywedge",!0);p(b,R,ue,"⋎","\\curlyvee",!0);p(b,R,ue,"⊝","\\circleddash",!0);p(b,R,ue,"⊛","\\circledast",!0);p(b,R,ue,"⋅","\\centerdot");p(b,R,ue,"⊺","\\intercal",!0);p(b,R,ue,"⋒","\\doublecap");p(b,R,ue,"⋓","\\doublecup");p(b,R,ue,"⊠","\\boxtimes",!0);p(b,R,L,"⇢","\\dashrightarrow",!0);p(b,R,L,"⇠","\\dashleftarrow",!0);p(b,R,L,"⇇","\\leftleftarrows",!0);p(b,R,L,"⇆","\\leftrightarrows",!0);p(b,R,L,"⇚","\\Lleftarrow",!0);p(b,R,L,"↞","\\twoheadleftarrow",!0);p(b,R,L,"↢","\\leftarrowtail",!0);p(b,R,L,"↫","\\looparrowleft",!0);p(b,R,L,"⇋","\\leftrightharpoons",!0);p(b,R,L,"↶","\\curvearrowleft",!0);p(b,R,L,"↺","\\circlearrowleft",!0);p(b,R,L,"↰","\\Lsh",!0);p(b,R,L,"⇈","\\upuparrows",!0);p(b,R,L,"↿","\\upharpoonleft",!0);p(b,R,L,"⇃","\\downharpoonleft",!0);p(b,x,L,"⊶","\\origof",!0);p(b,x,L,"⊷","\\imageof",!0);p(b,R,L,"⊸","\\multimap",!0);p(b,R,L,"↭","\\leftrightsquigarrow",!0);p(b,R,L,"⇉","\\rightrightarrows",!0);p(b,R,L,"⇄","\\rightleftarrows",!0);p(b,R,L,"↠","\\twoheadrightarrow",!0);p(b,R,L,"↣","\\rightarrowtail",!0);p(b,R,L,"↬","\\looparrowright",!0);p(b,R,L,"↷","\\curvearrowright",!0);p(b,R,L,"↻","\\circlearrowright",!0);p(b,R,L,"↱","\\Rsh",!0);p(b,R,L,"⇊","\\downdownarrows",!0);p(b,R,L,"↾","\\upharpoonright",!0);p(b,R,L,"⇂","\\downharpoonright",!0);p(b,R,L,"⇝","\\rightsquigarrow",!0);p(b,R,L,"⇝","\\leadsto");p(b,R,L,"⇛","\\Rrightarrow",!0);p(b,R,L,"↾","\\restriction");p(b,x,B,"‘","`");p(b,x,B,"$","\\$");p(K,x,B,"$","\\$");p(K,x,B,"$","\\textdollar");p(b,x,B,"%","\\%");p(K,x,B,"%","\\%");p(b,x,B,"_","\\_");p(K,x,B,"_","\\_");p(K,x,B,"_","\\textunderscore");p(b,x,B,"∠","\\angle",!0);p(b,x,B,"∞","\\infty",!0);p(b,x,B,"′","\\prime");p(b,x,B,"△","\\triangle");p(b,x,B,"Γ","\\Gamma",!0);p(b,x,B,"Δ","\\Delta",!0);p(b,x,B,"Θ","\\Theta",!0);p(b,x,B,"Λ","\\Lambda",!0);p(b,x,B,"Ξ","\\Xi",!0);p(b,x,B,"Π","\\Pi",!0);p(b,x,B,"Σ","\\Sigma",!0);p(b,x,B,"Υ","\\Upsilon",!0);p(b,x,B,"Φ","\\Phi",!0);p(b,x,B,"Ψ","\\Psi",!0);p(b,x,B,"Ω","\\Omega",!0);p(b,x,B,"A","Α");p(b,x,B,"B","Β");p(b,x,B,"E","Ε");p(b,x,B,"Z","Ζ");p(b,x,B,"H","Η");p(b,x,B,"I","Ι");p(b,x,B,"K","Κ");p(b,x,B,"M","Μ");p(b,x,B,"N","Ν");p(b,x,B,"O","Ο");p(b,x,B,"P","Ρ");p(b,x,B,"T","Τ");p(b,x,B,"X","Χ");p(b,x,B,"¬","\\neg",!0);p(b,x,B,"¬","\\lnot");p(b,x,B,"⊤","\\top");p(b,x,B,"⊥","\\bot");p(b,x,B,"∅","\\emptyset");p(b,R,B,"∅","\\varnothing");p(b,x,me,"α","\\alpha",!0);p(b,x,me,"β","\\beta",!0);p(b,x,me,"γ","\\gamma",!0);p(b,x,me,"δ","\\delta",!0);p(b,x,me,"ϵ","\\epsilon",!0);p(b,x,me,"ζ","\\zeta",!0);p(b,x,me,"η","\\eta",!0);p(b,x,me,"θ","\\theta",!0);p(b,x,me,"ι","\\iota",!0);p(b,x,me,"κ","\\kappa",!0);p(b,x,me,"λ","\\lambda",!0);p(b,x,me,"μ","\\mu",!0);p(b,x,me,"ν","\\nu",!0);p(b,x,me,"ξ","\\xi",!0);p(b,x,me,"ο","\\omicron",!0);p(b,x,me,"π","\\pi",!0);p(b,x,me,"ρ","\\rho",!0);p(b,x,me,"σ","\\sigma",!0);p(b,x,me,"τ","\\tau",!0);p(b,x,me,"υ","\\upsilon",!0);p(b,x,me,"ϕ","\\phi",!0);p(b,x,me,"χ","\\chi",!0);p(b,x,me,"ψ","\\psi",!0);p(b,x,me,"ω","\\omega",!0);p(b,x,me,"ε","\\varepsilon",!0);p(b,x,me,"ϑ","\\vartheta",!0);p(b,x,me,"ϖ","\\varpi",!0);p(b,x,me,"ϱ","\\varrho",!0);p(b,x,me,"ς","\\varsigma",!0);p(b,x,me,"φ","\\varphi",!0);p(b,x,ue,"∗","*",!0);p(b,x,ue,"+","+");p(b,x,ue,"−","-",!0);p(b,x,ue,"⋅","\\cdot",!0);p(b,x,ue,"∘","\\circ",!0);p(b,x,ue,"÷","\\div",!0);p(b,x,ue,"±","\\pm",!0);p(b,x,ue,"×","\\times",!0);p(b,x,ue,"∩","\\cap",!0);p(b,x,ue,"∪","\\cup",!0);p(b,x,ue,"∖","\\setminus",!0);p(b,x,ue,"∧","\\land");p(b,x,ue,"∨","\\lor");p(b,x,ue,"∧","\\wedge",!0);p(b,x,ue,"∨","\\vee",!0);p(b,x,B,"√","\\surd");p(b,x,Yt,"⟨","\\langle",!0);p(b,x,Yt,"∣","\\lvert");p(b,x,Yt,"∥","\\lVert");p(b,x,Bt,"?","?");p(b,x,Bt,"!","!");p(b,x,Bt,"⟩","\\rangle",!0);p(b,x,Bt,"∣","\\rvert");p(b,x,Bt,"∥","\\rVert");p(b,x,L,"=","=");p(b,x,L,":",":");p(b,x,L,"≈","\\approx",!0);p(b,x,L,"≅","\\cong",!0);p(b,x,L,"≥","\\ge");p(b,x,L,"≥","\\geq",!0);p(b,x,L,"←","\\gets");p(b,x,L,">","\\gt",!0);p(b,x,L,"∈","\\in",!0);p(b,x,L,"","\\@not");p(b,x,L,"⊂","\\subset",!0);p(b,x,L,"⊃","\\supset",!0);p(b,x,L,"⊆","\\subseteq",!0);p(b,x,L,"⊇","\\supseteq",!0);p(b,R,L,"⊈","\\nsubseteq",!0);p(b,R,L,"⊉","\\nsupseteq",!0);p(b,x,L,"⊨","\\models");p(b,x,L,"←","\\leftarrow",!0);p(b,x,L,"≤","\\le");p(b,x,L,"≤","\\leq",!0);p(b,x,L,"<","\\lt",!0);p(b,x,L,"→","\\rightarrow",!0);p(b,x,L,"→","\\to");p(b,R,L,"≱","\\ngeq",!0);p(b,R,L,"≰","\\nleq",!0);p(b,x,Qr," ","\\ ");p(b,x,Qr," ","\\space");p(b,x,Qr," ","\\nobreakspace");p(K,x,Qr," ","\\ ");p(K,x,Qr," "," ");p(K,x,Qr," ","\\space");p(K,x,Qr," ","\\nobreakspace");p(b,x,Qr,null,"\\nobreak");p(b,x,Qr,null,"\\allowbreak");p(b,x,$a,",",",");p(b,x,$a,";",";");p(b,R,ue,"⊼","\\barwedge",!0);p(b,R,ue,"⊻","\\veebar",!0);p(b,x,ue,"⊙","\\odot",!0);p(b,x,ue,"⊕","\\oplus",!0);p(b,x,ue,"⊗","\\otimes",!0);p(b,x,B,"∂","\\partial",!0);p(b,x,ue,"⊘","\\oslash",!0);p(b,R,ue,"⊚","\\circledcirc",!0);p(b,R,ue,"⊡","\\boxdot",!0);p(b,x,ue,"△","\\bigtriangleup");p(b,x,ue,"▽","\\bigtriangledown");p(b,x,ue,"†","\\dagger");p(b,x,ue,"⋄","\\diamond");p(b,x,ue,"⋆","\\star");p(b,x,ue,"◃","\\triangleleft");p(b,x,ue,"▹","\\triangleright");p(b,x,Yt,"{","\\{");p(K,x,B,"{","\\{");p(K,x,B,"{","\\textbraceleft");p(b,x,Bt,"}","\\}");p(K,x,B,"}","\\}");p(K,x,B,"}","\\textbraceright");p(b,x,Yt,"{","\\lbrace");p(b,x,Bt,"}","\\rbrace");p(b,x,Yt,"[","\\lbrack",!0);p(K,x,B,"[","\\lbrack",!0);p(b,x,Bt,"]","\\rbrack",!0);p(K,x,B,"]","\\rbrack",!0);p(b,x,Yt,"(","\\lparen",!0);p(b,x,Bt,")","\\rparen",!0);p(K,x,B,"<","\\textless",!0);p(K,x,B,">","\\textgreater",!0);p(b,x,Yt,"⌊","\\lfloor",!0);p(b,x,Bt,"⌋","\\rfloor",!0);p(b,x,Yt,"⌈","\\lceil",!0);p(b,x,Bt,"⌉","\\rceil",!0);p(b,x,B,"\\","\\backslash");p(b,x,B,"∣","|");p(b,x,B,"∣","\\vert");p(K,x,B,"|","\\textbar",!0);p(b,x,B,"∥","\\|");p(b,x,B,"∥","\\Vert");p(K,x,B,"∥","\\textbardbl");p(K,x,B,"~","\\textasciitilde");p(K,x,B,"\\","\\textbackslash");p(K,x,B,"^","\\textasciicircum");p(b,x,L,"↑","\\uparrow",!0);p(b,x,L,"⇑","\\Uparrow",!0);p(b,x,L,"↓","\\downarrow",!0);p(b,x,L,"⇓","\\Downarrow",!0);p(b,x,L,"↕","\\updownarrow",!0);p(b,x,L,"⇕","\\Updownarrow",!0);p(b,x,st,"∐","\\coprod");p(b,x,st,"⋁","\\bigvee");p(b,x,st,"⋀","\\bigwedge");p(b,x,st,"⨄","\\biguplus");p(b,x,st,"⋂","\\bigcap");p(b,x,st,"⋃","\\bigcup");p(b,x,st,"∫","\\int");p(b,x,st,"∫","\\intop");p(b,x,st,"∬","\\iint");p(b,x,st,"∭","\\iiint");p(b,x,st,"∏","\\prod");p(b,x,st,"∑","\\sum");p(b,x,st,"⨂","\\bigotimes");p(b,x,st,"⨁","\\bigoplus");p(b,x,st,"⨀","\\bigodot");p(b,x,st,"∮","\\oint");p(b,x,st,"∯","\\oiint");p(b,x,st,"∰","\\oiiint");p(b,x,st,"⨆","\\bigsqcup");p(b,x,st,"∫","\\smallint");p(K,x,Fi,"…","\\textellipsis");p(b,x,Fi,"…","\\mathellipsis");p(K,x,Fi,"…","\\ldots",!0);p(b,x,Fi,"…","\\ldots",!0);p(b,x,Fi,"⋯","\\@cdots",!0);p(b,x,Fi,"⋱","\\ddots",!0);p(b,x,B,"⋮","\\varvdots");p(K,x,B,"⋮","\\varvdots");p(b,x,We,"ˊ","\\acute");p(b,x,We,"ˋ","\\grave");p(b,x,We,"¨","\\ddot");p(b,x,We,"~","\\tilde");p(b,x,We,"ˉ","\\bar");p(b,x,We,"˘","\\breve");p(b,x,We,"ˇ","\\check");p(b,x,We,"^","\\hat");p(b,x,We,"⃗","\\vec");p(b,x,We,"˙","\\dot");p(b,x,We,"˚","\\mathring");p(b,x,me,"","\\@imath");p(b,x,me,"","\\@jmath");p(b,x,B,"ı","ı");p(b,x,B,"ȷ","ȷ");p(K,x,B,"ı","\\i",!0);p(K,x,B,"ȷ","\\j",!0);p(K,x,B,"ß","\\ss",!0);p(K,x,B,"æ","\\ae",!0);p(K,x,B,"œ","\\oe",!0);p(K,x,B,"ø","\\o",!0);p(K,x,B,"Æ","\\AE",!0);p(K,x,B,"Œ","\\OE",!0);p(K,x,B,"Ø","\\O",!0);p(K,x,We,"ˊ","\\'");p(K,x,We,"ˋ","\\`");p(K,x,We,"ˆ","\\^");p(K,x,We,"˜","\\~");p(K,x,We,"ˉ","\\=");p(K,x,We,"˘","\\u");p(K,x,We,"˙","\\.");p(K,x,We,"¸","\\c");p(K,x,We,"˚","\\r");p(K,x,We,"ˇ","\\v");p(K,x,We,"¨",'\\"');p(K,x,We,"˝","\\H");p(K,x,We,"◯","\\textcircled");var V2={"--":!0,"---":!0,"``":!0,"''":!0};p(K,x,B,"–","--",!0);p(K,x,B,"–","\\textendash");p(K,x,B,"—","---",!0);p(K,x,B,"—","\\textemdash");p(K,x,B,"‘","`",!0);p(K,x,B,"‘","\\textquoteleft");p(K,x,B,"’","'",!0);p(K,x,B,"’","\\textquoteright");p(K,x,B,"“","``",!0);p(K,x,B,"“","\\textquotedblleft");p(K,x,B,"”","''",!0);p(K,x,B,"”","\\textquotedblright");p(b,x,B,"°","\\degree",!0);p(K,x,B,"°","\\degree");p(K,x,B,"°","\\textdegree",!0);p(b,x,B,"£","\\pounds");p(b,x,B,"£","\\mathsterling",!0);p(K,x,B,"£","\\pounds");p(K,x,B,"£","\\textsterling",!0);p(b,R,B,"✠","\\maltese");p(K,R,B,"✠","\\maltese");var kf='0123456789/@."';for(var Fu=0;Fu<kf.length;Fu++){var Af=kf.charAt(Fu);p(b,x,B,Af,Af)}var Cf='0123456789!@*()-=+";:?/.,';for(var Hu=0;Hu<Cf.length;Hu++){var Sf=Cf.charAt(Hu);p(K,x,B,Sf,Sf)}var ro="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var zu=0;zu<ro.length;zu++){var cs=ro.charAt(zu);p(b,x,me,cs,cs),p(K,x,B,cs,cs)}p(b,R,B,"C","ℂ");p(K,R,B,"C","ℂ");p(b,R,B,"H","ℍ");p(K,R,B,"H","ℍ");p(b,R,B,"N","ℕ");p(K,R,B,"N","ℕ");p(b,R,B,"P","ℙ");p(K,R,B,"P","ℙ");p(b,R,B,"Q","ℚ");p(K,R,B,"Q","ℚ");p(b,R,B,"R","ℝ");p(K,R,B,"R","ℝ");p(b,R,B,"Z","ℤ");p(K,R,B,"Z","ℤ");p(b,x,me,"h","ℎ");p(K,x,me,"h","ℎ");var ge="";for(var Nt=0;Nt<ro.length;Nt++){var Qe=ro.charAt(Nt);ge=String.fromCharCode(55349,56320+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56372+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56424+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56580+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56684+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56736+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56788+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56840+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56944+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),Nt<26&&(ge=String.fromCharCode(55349,56632+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge),ge=String.fromCharCode(55349,56476+Nt),p(b,x,me,Qe,ge),p(K,x,B,Qe,ge))}ge="𝕜";p(b,x,me,"k",ge);p(K,x,B,"k",ge);for(var Ln=0;Ln<10;Ln++){var an=Ln.toString();ge=String.fromCharCode(55349,57294+Ln),p(b,x,me,an,ge),p(K,x,B,an,ge),ge=String.fromCharCode(55349,57314+Ln),p(b,x,me,an,ge),p(K,x,B,an,ge),ge=String.fromCharCode(55349,57324+Ln),p(b,x,me,an,ge),p(K,x,B,an,ge),ge=String.fromCharCode(55349,57334+Ln),p(b,x,me,an,ge),p(K,x,B,an,ge)}var Wl="ÐÞþ";for(var Uu=0;Uu<Wl.length;Uu++){var hs=Wl.charAt(Uu);p(b,x,me,hs,hs),p(K,x,B,hs,hs)}var ds=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],If=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],kR=(e,t)=>{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[ds[s][2],ds[s][a]]}else if(120782<=i&&i<=120831){var o=Math.floor((i-120782)/10);return[If[o][2],If[o][a]]}else{if(i===120485||i===120486)return[ds[0][2],ds[0][a]];if(120486<i&&i<120782)return["",""];throw new ee("Unsupported character: "+e)}},Oo=function(t,r,n){if(Ge[n][t]){var i=Ge[n][t].replace;i&&(t=i)}return{value:t,metrics:yc(t,r,n)}},Lt=function(t,r,n,i,a){var s=Oo(t,r,n),o=s.metrics;t=s.value;var u;if(o){var l=o.italic;(n==="text"||i&&i.font==="mathit")&&(l=0),u=new Wt(t,o.height,o.depth,l,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),u=new Wt(t,0,0,0,0,0,a);if(i){u.maxFontSize=i.sizeMultiplier,i.style.isTight()&&u.classes.push("mtight");var c=i.getColor();c&&(u.style.color=c)}return u},Ec=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Oo(t,"Main-Bold",r).metrics?Lt(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||Ge[r][t].font==="main"?Lt(t,"Main-Regular",r,n,i):Lt(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},AR=function(t,r,n,i,a){return a!=="textord"&&Oo(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Do=function(t,r,n){var i=t.mode,a=t.text,s=["mord"],o=i==="math"||i==="text"&&r.font,u=o?r.font:r.fontFamily,l="",c="";if(a.charCodeAt(0)===55349&&([l,c]=kR(a,i)),l.length>0)return Lt(a,l,i,r,s.concat(c));if(u){var h,f;if(u==="boldsymbol"){var d=AR(a,i,r,s,n);h=d.fontName,f=[d.fontClass]}else o?(h=Yl[u].fontName,f=[u]):(h=fs(u,r.fontWeight,r.fontShape),f=[u,r.fontWeight,r.fontShape]);if(Oo(a,h,i).metrics)return Lt(a,h,i,r,s.concat(f));if(V2.hasOwnProperty(a)&&h.slice(0,10)==="Typewriter"){for(var g=[],y=0;y<a.length;y++)g.push(Lt(a[y],h,i,r,s.concat(f)));return Zr(g)}}if(n==="mathord")return Lt(a,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var _=Ge[i][a]&&Ge[i][a].font;if(_==="ams"){var E=fs("amsrm",r.fontWeight,r.fontShape);return Lt(a,E,i,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(_==="main"||!_){var w=fs("textrm",r.fontWeight,r.fontShape);return Lt(a,w,i,r,s.concat(r.fontWeight,r.fontShape))}else{var C=fs(_,r.fontWeight,r.fontShape);return Lt(a,C,i,r,s.concat(C,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},CR=(e,t)=>{if(En(e.classes)!==En(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},q2=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Wt&&n instanceof Wt&&CR(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},xc=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var s=t.children[a];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Z=function(t,r,n,i){var a=new Bi(t,r,n,i);return xc(a),a},_n=(e,t,r,n)=>new Bi(e,t,r,n),wi=function(t,r,n){var i=Z([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=ae(i.height),i.maxFontSize=1,i},SR=function(t,r,n,i){var a=new Lo(t,r,n,i);return xc(a),a},Zr=function(t){var r=new Mi(t);return xc(r),r},ki=function(t,r){return t instanceof Mi?Z([],[t],r):t},IR=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,u=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,n.push({type:"kern",size:u}),n.push(r[s])}return{children:n,depth:i}}var l;if(t.positionType==="top"){for(var c=t.positionData,h=0;h<t.children.length;h++){var f=t.children[h];c-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}l=c}else if(t.positionType==="bottom")l=-t.positionData;else{var d=t.children[0];if(d.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")l=-d.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")l=-d.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:l}},Pe=function(t,r){for(var{children:n,depth:i}=IR(t),a=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var u=o.elem;a=Math.max(a,u.maxFontSize,u.height)}}a+=2;var l=Z(["pstrut"],[]);l.style.height=ae(a);for(var c=[],h=i,f=i,d=i,g=0;g<n.length;g++){var y=n[g];if(y.type==="kern")d+=y.size;else{var _=y.elem,E=y.wrapperClasses||[],w=y.wrapperStyle||{},C=Z(E,[l,_],void 0,w);C.style.top=ae(-a-d-_.depth),y.marginLeft&&(C.style.marginLeft=y.marginLeft),y.marginRight&&(C.style.marginRight=y.marginRight),c.push(C),d+=_.height+_.depth}h=Math.min(h,d),f=Math.max(f,d)}var M=Z(["vlist"],c);M.style.height=ae(f);var H;if(h<0){var D=Z([],[]),U=Z(["vlist"],[D]);U.style.height=ae(-h);var $=Z(["vlist-s"],[new Wt("​")]);H=[Z(["vlist-r"],[M,$]),Z(["vlist-r"],[U])]}else H=[Z(["vlist-r"],[M])];var q=Z(["vlist-t"],H);return H.length===2&&q.classes.push("vlist-t2"),q.height=f,q.depth=-h,q},G2=(e,t)=>{var r=Z(["mspace"],[],t),n=Xe(e,t);return r.style.marginRight=ae(n),r},fs=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},Yl={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},W2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Y2=function(t,r){var[n,i,a]=W2[t],s=new xn(n),o=new Wr([s],{width:ae(i),height:ae(a),style:"width:"+ae(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=_n(["overlay"],[o],r);return u.height=a,u.style.height=ae(a),u.style.width=ae(i),u},Ye={number:3,unit:"mu"},On={number:4,unit:"mu"},Fr={number:5,unit:"mu"},NR={mord:{mop:Ye,mbin:On,mrel:Fr,minner:Ye},mop:{mord:Ye,mop:Ye,mrel:Fr,minner:Ye},mbin:{mord:On,mop:On,mopen:On,minner:On},mrel:{mord:Fr,mop:Fr,mopen:Fr,minner:Fr},mopen:{},mclose:{mop:Ye,mbin:On,mrel:Fr,minner:Ye},mpunct:{mord:Ye,mop:Ye,mrel:Fr,mopen:Ye,mclose:Ye,mpunct:Ye,minner:Ye},minner:{mord:Ye,mop:Ye,mbin:On,mrel:Fr,mopen:Ye,mpunct:Ye,minner:Ye}},RR={mord:{mop:Ye},mop:{mord:Ye,mop:Ye},mbin:{},mrel:{},mopen:{},mclose:{mop:Ye},mpunct:{},minner:{mop:Ye}},X2={},no={},io={};function oe(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u<r.length;++u)X2[r[u]]=o;t&&(a&&(no[t]=a),s&&(io[t]=s))}function ti(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;oe({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var ao=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},it=function(t){return t.type==="ordgroup"?t.body:[t]},LR=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),OR=new Set(["rightmost","mrel","mclose","mpunct"]),DR={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT},PR={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ft=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<t.length;s++){var o=Me(t[s],r);if(o instanceof Mi){var u=o.children;a.push(...u)}else a.push(o)}if(q2(a),!n)return a;var l=r;if(t.length===1){var c=t[0];c.type==="sizing"?l=r.havingSize(c.size):c.type==="styling"&&(l=r.havingStyle(DR[c.style]))}var h=Z([i[0]||"leftmost"],[],r),f=Z([i[1]||"rightmost"],[],r),d=n==="root";return Xl(a,(g,y)=>{var _=y.classes[0],E=g.classes[0];_==="mbin"&&OR.has(E)?y.classes[0]="mord":E==="mbin"&&LR.has(_)&&(g.classes[0]="mord")},{node:h},f,d),Xl(a,(g,y)=>{var _,E,w=Ql(y),C=Ql(g),M=w&&C?g.hasClass("mtight")?(_=RR[w])==null?void 0:_[C]:(E=NR[w])==null?void 0:E[C]:null;if(M)return G2(M,l)},{node:h},f,d),a},Xl=function(t,r,n,i,a){i&&t.push(i);for(var s=0;s<t.length;s++){var o=t[s],u=K2(o);if(u){Xl(u.children,r,n,null,a);continue}var l=!o.hasClass("mspace");if(l){var c=r(o,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),s++))}l?n.node=o:a&&o.hasClass("newline")&&(n.node=Z(["leftmost"])),n.insertAfter=(h=>f=>{t.splice(h+1,0,f),s++})(s)}i&&t.pop()},K2=function(t){return t instanceof Mi||t instanceof Lo||t instanceof Bi&&t.hasClass("enclosing")?t:null},Kl=function(t,r){var n=K2(t);if(n){var i=n.children;if(i.length){if(r==="right")return Kl(i[i.length-1],"right");if(r==="left")return Kl(i[0],"left")}}return t},Ql=function(t,r){if(!t)return null;r&&(t=Kl(t,r));var n=t.classes[0];return PR[n]||null},Ia=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Z(r.concat(n))},Me=function(t,r,n){if(!t)return Z();if(no[t.type]){var i=no[t.type](t,r);if(n&&r.size!==n.size){i=Z(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new ee("Got group of unknown type: '"+t.type+"'")};function ms(e,t){var r=Z(["base"],e,t),n=Z(["strut"]);return n.style.height=ae(r.height+r.depth),r.depth&&(n.style.verticalAlign=ae(-r.depth)),r.children.unshift(n),r}function Zl(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=ft(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var u=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(u=!0);u||(a.push(ms(s,t)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(ms(s,t)),s=[]),a.push(n[o]));s.length>0&&a.push(ms(s,t));var l;r?(l=ms(ft(r,t,!0),t),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Z(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var h=l.children[0];h.style.height=ae(c.height+c.depth),c.depth&&(h.style.verticalAlign=ae(-c.depth))}return c}function Q2(e){return new Mi(e)}class te{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=En(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof at&&this.children[n+1]instanceof at){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof at;)i+=this.children[++n].toText();t.appendChild(new at(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=kt(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+kt(En(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class at{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return kt(this.toText())}toText(){return this.text}}class Z2{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",ae(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ae(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var MR=new Set(["\\imath","\\jmath"]),BR=new Set(["mrow","mtable"]),sr=function(t,r,n){return Ge[r][t]&&Ge[r][t].replace&&t.charCodeAt(0)!==55349&&!(V2.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Ge[r][t].replace),new at(t)},_c=function(t){return t.length===1?t[0]:new te("mrow",t)},Tc=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(MR.has(a))return null;if(Ge[i][a]){var s=Ge[i][a].replace;s&&(a=s)}var o=Yl[n].fontName;return yc(a,o,i)?Yl[n].variant:null};function $u(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof at&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof at&&r.text===","}else return!1}var Xt=function(t,r,n){if(t.length===1){var i=ze(t[0],r);return n&&i instanceof te&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o<t.length;o++){var u=ze(t[o],r);if(u instanceof te&&s instanceof te){if(u.type==="mtext"&&s.type==="mtext"&&u.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...u.children);continue}else if(u.type==="mn"&&s.type==="mn"){s.children.push(...u.children);continue}else if($u(u)&&s.type==="mn"){s.children.push(...u.children);continue}else if(u.type==="mn"&&$u(s))u.children=[...s.children,...u.children],a.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(s.type==="mn"||$u(s))){var l=u.children[0];l instanceof te&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof at&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var h=u.children[0];h instanceof at&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Tn=function(t,r,n){return _c(Xt(t,r,n))},ze=function(t,r){if(!t)return new te("mrow");if(io[t.type]){var n=io[t.type](t,r);return n}else throw new ee("Got group of unknown type: '"+t.type+"'")};function Nf(e,t,r,n,i){var a=Xt(e,r),s;a.length===1&&a[0]instanceof te&&BR.has(a[0].type)?s=a[0]:s=new te("mrow",a);var o=new te("annotation",[new at(t)]);o.setAttribute("encoding","application/x-tex");var u=new te("semantics",[s,o]),l=new te("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return Z([c],[l])}var FR=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Rf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lf=function(t,r){return r.size<2?t:FR[t-1][r.size-1]};class Hr{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||Hr.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Rf[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new Hr(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Lf(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Rf[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Lf(Hr.BASESIZE,t);return this.size===r&&this.textSize===Hr.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Hr.BASESIZE?["sizing","reset-size"+this.size,"size"+Hr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=TR(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Hr.BASESIZE=6;var J2=function(t){return new Hr({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},e4=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Z(n,[t])}return t},HR=function(t,r,n){var i=J2(n),a;if(n.output==="mathml")return Nf(t,r,i,n.displayMode,!0);if(n.output==="html"){var s=Zl(t,i);a=Z(["katex"],[s])}else{var o=Nf(t,r,i,n.displayMode,!1),u=Zl(t,i);a=Z(["katex"],[o,u])}return e4(a,n)},zR=function(t,r,n){var i=J2(n),a=Zl(t,i),s=Z(["katex"],[a]);return e4(s,n)},UR={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Po=function(t){var r=new te("mo",[new at(UR[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$R={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},jR=new Set(["widehat","widecheck","widetilde","utilde"]),Mo=function(t,r){function n(){var o=4e5,u=t.label.slice(1);if(jR.has(u)){var l=t,c=l.base.type==="ordgroup"?l.base.body.length:1,h,f,d;if(c>5)u==="widehat"||u==="widecheck"?(h=420,o=2364,d=.42,f=u+"4"):(h=312,o=2340,d=.34,f="tilde4");else{var g=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][g],h=[0,239,300,360,420][g],d=[0,.24,.3,.3,.36,.42][g],f=u+g):(o=[0,600,1033,2339,2340][g],h=[0,260,286,306,312][g],d=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var y=new xn(f),_=new Wr([y],{width:"100%",height:ae(d),viewBox:"0 0 "+o+" "+h,preserveAspectRatio:"none"});return{span:_n([],[_],r),minWidth:0,height:d}}else{var E=[],w=$R[u],[C,M,H]=w,D=H/1e3,U=C.length,$,q;if(U===1){var F=w[3];$=["hide-tail"],q=[F]}else if(U===2)$=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(U===3)$=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
535
+ `+U+" children.");for(var Y=0;Y<U;Y++){var X=new xn(C[Y]),de=new Wr([X],{width:"400em",height:ae(D),viewBox:"0 0 "+o+" "+H,preserveAspectRatio:q[Y]+" slice"}),ie=_n([$[Y]],[de],r);if(U===1)return{span:ie,minWidth:M,height:D};ie.style.height=ae(D),E.push(ie)}return{span:Z(["stretchy"],E,r),minWidth:M,height:D}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=ae(s),a>0&&(i.style.minWidth=ae(a)),i},VR=function(t,r,n,i,a){var s,o=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Z(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(r)&&l.push(new Gl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&l.push(new Gl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Wr(l,{width:"100%",height:ae(o)});s=_n([],[c],a)}return s.height=o,s.style.height=ae(o),s};function Te(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Bo(e){var t=Fo(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Fo(e){return e&&(e.type==="atom"||wR.hasOwnProperty(e.type))?e:null}var t4=e=>{if(e instanceof Wt)return e;if(xR(e)&&e.children.length===1)return t4(e.children[0])},vc=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Te(e.base,"accent"),r=n.base,e.base=r,i=ER(Me(e,t)),e.base=n):(n=Te(e,"accent"),r=n.base);var a=Me(r,t.havingCrampedStyle()),s=n.isShifty&&Kr(r),o=0;if(s){var u,l;o=(u=(l=t4(a))==null?void 0:l.skew)!=null?u:0}var c=n.label==="\\c",h=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(n.isStretchy)f=Mo(n,t),f=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ae(2*o)+")",marginLeft:ae(2*o)}:void 0}]});else{var d,g;n.label==="\\vec"?(d=Y2("vec",t),g=W2.vec[1]):(d=Do({mode:n.mode,text:n.label},t,"textord"),d=yR(d),d.italic=0,g=d.width,c&&(h+=d.depth)),f=Z(["accent-body"],[d]);var y=n.label==="\\textcircled";y&&(f.classes.push("accent-full"),h=a.height);var _=o;y||(_-=g/2),f.style.left=ae(_),n.label==="\\textcircled"&&(f.style.top=".2em"),f=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var E=Z(["mord","accent"],[f],t);return i?(i.children[0]=E,i.height=Math.max(E.height,i.height),i.classes[0]="mord",i):E},r4=(e,t)=>{var r=e.isStretchy?Po(e.label):new te("mo",[sr(e.label,e.mode)]),n=new te("mover",[ze(e.base,t),r]);return n.setAttribute("accent","true"),n},qR=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));oe({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=ao(t[0]),n=!qR.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:vc,mathmlBuilder:r4});oe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:vc,mathmlBuilder:r4});oe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=Me(e.base,t),n=Mo(e,t),i=e.label==="\\utilde"?.12:0,a=Pe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Z(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Po(e.label),n=new te("munder",[ze(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var ps=e=>{var t=new te("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};oe({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=ki(Me(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=ki(Me(e.below,n,t),t),s.classes.push(a+"-arrow-pad"));var o=Mo(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var h=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=Pe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:h}]})}else c=Pe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]});return c.children[0].children[0].children[1].classes.push("svg-align"),Z(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=Po(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=ps(ze(e.body,t));if(e.below){var a=ps(ze(e.below,t));n=new te("munderover",[r,a,i])}else n=new te("mover",[r,i])}else if(e.below){var s=ps(ze(e.below,t));n=new te("munder",[r,s])}else n=ps(),n=new te("mover",[r,n]);return n}});function n4(e,t){var r=ft(e.body,t,!0);return Z([e.mclass],r,t)}function i4(e,t){var r,n=Xt(e.body,t);return e.mclass==="minner"?r=new te("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new te("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new te("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}oe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:it(i),isCharacterBox:Kr(i)}},htmlBuilder:n4,mathmlBuilder:i4});var Ho=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};oe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ho(t[0]),body:it(t[1]),isCharacterBox:Kr(t[1])}}});oe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],s;n!=="\\stackrel"?s=Ho(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:it(i)},u={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:Kr(u)}},htmlBuilder:n4,mathmlBuilder:i4});oe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ho(t[0]),body:it(t[0])}},htmlBuilder(e,t){var r=ft(e.body,t,!0),n=Z([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Xt(e.body,t),n=new te("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var GR={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Of=()=>({type:"styling",body:[],mode:"math",style:"display"}),Df=e=>e.type==="textord"&&e.text==="@",WR=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function YR(e,t,r){var n=GR[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function XR(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new ee("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var s=t[a],o=Of(),u=0;u<s.length;u++)if(!Df(s[u]))o.body.push(s[u]);else{n.push(o),u+=1;var l=Bo(s[u]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(l))if("<>AV".includes(l))for(var h=0;h<2;h++){for(var f=!0,d=u+1;d<s.length;d++){if(WR(s[d],l)){f=!1,u=d;break}if(Df(s[d]))throw new ee("Missing a "+l+" character to complete a CD arrow.",s[d]);c[h].body.push(s[d])}if(f)throw new ee("Missing a "+l+" character to complete a CD arrow.",s[u])}else throw new ee('Expected one of "<>AV=|." after @',s[u]);var g=YR(l,c,e),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),o=Of()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}oe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=ki(Me(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=ae(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new te("mrow",[ze(e.label,t)]);return r=new te("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new te("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});oe({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=ki(Me(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new te("mrow",[ze(e.fragment,t)])}});oe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Te(t[0],"ordgroup"),i=n.body,a="",s=0;s<i.length;s++){var o=Te(i[s],"textord");a+=o.text}var u=parseInt(a),l;if(isNaN(u))throw new ee("\\@char has non-numeric argument "+a);if(u<0||u>=1114111)throw new ee("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:l}}});var a4=(e,t)=>{var r=ft(e.body,t.withColor(e.color),!1);return Zr(r)},s4=(e,t)=>{var r=Xt(e.body,t.withColor(e.color)),n=new te("mstyle",r);return n.setAttribute("mathcolor",e.color),n};oe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Te(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:it(i)}},htmlBuilder:a4,mathmlBuilder:s4});oe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=Te(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:a4,mathmlBuilder:s4});oe({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&Te(i,"size").value}},htmlBuilder(e,t){var r=Z(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=ae(Xe(e.size,t)))),r},mathmlBuilder(e,t){var r=new te("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",ae(Xe(e.size,t)))),r}});var Jl={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},o4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ee("Expected a control sequence",e);return t},KR=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},u4=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};oe({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Jl[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Jl[n.text]),Te(t.parseFunction(),"internal");throw new ee("Invalid token after macro prefix",n)}});oe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new ee("Expected a control sequence",n);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new ee('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new ee('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new ee("Expected a macro definition");o[a].push(n.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},r===Jl[r]),{type:"internal",mode:t.mode}}});oe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=o4(t.gullet.popToken());t.gullet.consumeSpaces();var i=KR(t);return u4(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});oe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=o4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return u4(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var aa=function(t,r,n){var i=Ge.math[t]&&Ge.math[t].replace,a=yc(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},wc=function(t,r,n,i){var a=n.havingBaseStyle(r),s=Z(i.concat(a.sizingClasses(n)),[t],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},l4=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ae(a),t.height-=a,t.depth+=a},QR=function(t,r,n,i,a,s){var o=Lt(t,"Main-Regular",a,i),u=wc(o,r,i,s);return l4(u,i,r),u},ZR=function(t,r,n,i){return Lt(t,"Size"+r+"-Regular",n,i)},c4=function(t,r,n,i,a,s){var o=ZR(t,r,a,i),u=wc(Z(["delimsizing","size"+r],[o],i),be.TEXT,i,s);return n&&l4(u,i,be.TEXT),u},ju=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Z(["delimsizinginner",i],[Z([],[Lt(t,r,n)])]);return{type:"elem",elem:a}},Vu=function(t,r,n){var i=vr["Size4-Regular"][t.charCodeAt(0)]?vr["Size4-Regular"][t.charCodeAt(0)][4]:vr["Size1-Regular"][t.charCodeAt(0)][4],a=new xn("inner",dR(t,Math.round(1e3*r))),s=new Wr([a],{width:ae(i),height:ae(r),style:"width:"+ae(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=_n([],[s],n);return o.height=r,o.style.height=ae(r),o.style.width=ae(i),{type:"elem",elem:o}},e0=.008,gs={type:"kern",size:-1*e0},JR=new Set(["|","\\lvert","\\rvert","\\vert"]),eL=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),h4=function(t,r,n,i,a,s){var o,u,l,c,h="",f=0;o=l=c=t,u=null;var d="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):JR.has(t)?(l="∣",h="vert",f=333):eL.has(t)?(l="∥",h="doublevert",f=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",d="Size4-Regular",h="lbrack",f=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",d="Size4-Regular",h="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",d="Size4-Regular",h="lfloor",f=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",d="Size4-Regular",h="lceil",f=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",d="Size4-Regular",h="rfloor",f=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",d="Size4-Regular",h="rceil",f=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",d="Size4-Regular",h="lparen",f=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",d="Size4-Regular",h="rparen",f=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",d="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",d="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",d="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",d="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",d="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",d="Size4-Regular");var g=aa(o,d,a),y=g.height+g.depth,_=aa(l,d,a),E=_.height+_.depth,w=aa(c,d,a),C=w.height+w.depth,M=0,H=1;if(u!==null){var D=aa(u,d,a);M=D.height+D.depth,H=2}var U=y+C+M,$=Math.max(0,Math.ceil((r-U)/(H*E))),q=U+$*H*E,F=i.fontMetrics().axisHeight;n&&(F*=i.sizeMultiplier);var Y=q/2-F,X=[];if(h.length>0){var de=q-y-C,ie=Math.round(q*1e3),W=fR(h,Math.round(de*1e3)),re=new xn(h,W),fe=ae(f/1e3),Ne=ae(ie/1e3),Ve=new Wr([re],{width:fe,height:Ne,viewBox:"0 0 "+f+" "+ie}),S=_n([],[Ve],i);S.height=ie/1e3,S.style.width=fe,S.style.height=Ne,X.push({type:"elem",elem:S})}else{if(X.push(ju(c,d,a)),X.push(gs),u===null){var De=q-y-C+2*e0;X.push(Vu(l,De,i))}else{var Ue=(q-y-C-M)/2+2*e0;X.push(Vu(l,Ue,i)),X.push(gs),X.push(ju(u,d,a)),X.push(gs),X.push(Vu(l,Ue,i))}X.push(gs),X.push(ju(o,d,a))}var P=i.havingBaseStyle(be.TEXT),je=Pe({positionType:"bottom",positionData:Y,children:X});return wc(Z(["delimsizing","mult"],[je],P),be.TEXT,i,s)},qu=80,Gu=.08,Wu=function(t,r,n,i,a){var s=hR(t,i,n),o=new xn(t,s),u=new Wr([o],{width:"400em",height:ae(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return _n(["hide-tail"],[u],a)},tL=function(t,r){var n=r.havingBaseSizing(),i=g4("\\surd",t*n.sizeMultiplier,p4,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,h;return i.type==="small"?(c=1e3+1e3*s+qu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Gu)/a,l=(1+s)/a,o=Wu("sqrtMain",u,c,s,r),o.style.minWidth="0.853em",h=.833/a):i.type==="large"?(c=(1e3+qu)*ba[i.size],l=(ba[i.size]+s)/a,u=(ba[i.size]+s+Gu)/a,o=Wu("sqrtSize"+i.size,u,c,s,r),o.style.minWidth="1.02em",h=1/a):(u=t+s+Gu,l=t+s,c=Math.floor(1e3*t+s)+qu,o=Wu("sqrtTall",u,c,s,r),o.style.minWidth="0.742em",h=1.056),o.height=l,o.style.height=ae(u),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},d4=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),rL=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),f4=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ba=[0,1.2,1.8,2.4,3],m4=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),d4.has(t)||f4.has(t))return c4(t,r,!1,n,i,a);if(rL.has(t))return h4(t,ba[r],!1,n,i,a);throw new ee("Illegal delimiter: '"+t+"'")},nL=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],iL=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],p4=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],aL=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},g4=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var u=aa(t,aL(o),"math"),l=u.height+u.depth;if(o.type==="small"){var c=i.havingBaseStyle(o.style);l*=c.sizeMultiplier}if(l>r)return o}return n[n.length-1]},t0=function(t,r,n,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;f4.has(t)?o=nL:d4.has(t)?o=p4:o=iL;var u=g4(t,r,o,i);return u.type==="small"?QR(t,u.style,n,i,a,s):u.type==="large"?c4(t,u.size,n,i,a,s):h4(t,r,n,i,a,s)},Yu=function(t,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(r-o,n+o),h=Math.max(c/500*u,2*c-l);return t0(t,h,!0,i,a,s)},Pf={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},sL=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function zo(e,t){var r=Fo(e);if(r&&sL.has(r.text))return r;throw r?new ee("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new ee("Invalid delimiter type '"+e.type+"'",e)}oe({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=zo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Pf[e.funcName].size,mclass:Pf[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Z([e.mclass]):m4(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(sr(e.delim,e.mode));var r=new te("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=ae(ba[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Mf(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}oe({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new ee("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:zo(t[0],e).text,color:r}}});oe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=zo(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=Te(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Mf(e);for(var r=ft(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s<r.length;s++)r[s].isMiddle?a=!0:(n=Math.max(r[s].height,n),i=Math.max(r[s].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var o;if(e.left==="."?o=Ia(t,["mopen"]):o=Yu(e.left,n,i,t,e.mode,["mopen"]),r.unshift(o),a)for(var u=1;u<r.length;u++){var l=r[u],c=l.isMiddle;c&&(r[u]=Yu(c.delim,n,i,c.options,e.mode,[]))}var h;if(e.right===".")h=Ia(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;h=Yu(e.right,n,i,f,e.mode,["mclose"])}return r.push(h),Z(["minner"],r,t)},mathmlBuilder:(e,t)=>{Mf(e);var r=Xt(e.body,t);if(e.left!=="."){var n=new te("mo",[sr(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new te("mo",[sr(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return _c(r)}});oe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=zo(t[0],e);if(!e.parser.leftrightDepth)throw new ee("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Ia(t,[]);else{r=m4(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?sr("|","text"):sr(e.delim,e.mode),n=new te("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Uo=(e,t)=>{var r=ki(Me(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Kr(e.body);if(n==="sout")a=Z(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var u=Xe({number:.6,unit:"pt"},t),l=Xe({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var h=r.height+r.depth+u+l;r.style.paddingLeft=ae(h/2+u);var f=Math.floor(1e3*h*i),d=lR(f),g=new Wr([new xn("phase",d)],{width:"400em",height:ae(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=_n(["hide-tail"],[g],t),a.style.height=ae(h),s=r.depth+u+l}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,_=0,E=0;/box/.test(n)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:E),_=y):n==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*E,_=Math.max(0,.25-r.depth)):(y=o?.2:0,_=y),a=VR(r,n,y,_,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=ae(E)):n==="angl"&&E!==.049&&(a.style.borderTopWidth=ae(E),a.style.borderRightWidth=ae(E)),s=r.depth+_,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=Pe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var C=/cancel|phase/.test(n)?["svg-align"]:[];w=Pe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:C}]})}return/cancel/.test(n)&&(w.height=r.height,w.depth=r.depth),/cancel/.test(n)&&!o?Z(["mord","cancel-lap"],[w],t):Z(["mord"],[w],t)},$o=(e,t)=>{var r=0,n=new te(e.label.includes("colorbox")?"mpadded":"menclose",[ze(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+ae(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};oe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Te(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:Uo,mathmlBuilder:$o});oe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=Te(t[0],"color-token").color,s=Te(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:Uo,mathmlBuilder:$o});oe({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});oe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:Uo,mathmlBuilder:$o});oe({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:Uo,mathmlBuilder:$o});oe({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var b4={};function Sr(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u<r.length;++u)b4[r[u]]=o;a&&(no[t]=a),s&&(io[t]=s)}var y4={};function T(e,t){y4[e]=t}class zt{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new zt(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class qt{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new qt(r,zt.range(this,t))}}function Bf(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var jo=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ee("{"+e.envName+"} can be used only in display mode.")},oL=new Set(["gather","gather*"]);function kc(e){if(!e.includes("ed"))return!e.includes("*")}function kn(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:h,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var d=e.gullet.expandMacroAsText("\\arraystretch");if(d==null)s=1;else if(s=parseFloat(d),!s||s<0)throw new ee("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var g=[],y=[g],_=[],E=[],w=u!=null?[]:void 0;function C(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function M(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new qt("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(C(),E.push(Bf(e));;){var H=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var D={type:"ordgroup",mode:e.mode,body:H};r&&(D={type:"styling",mode:e.mode,style:r,body:[D]}),g.push(D);var U=e.fetch().text;if(U==="&"){if(h&&g.length===h){if(l||o)throw new ee("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){M(),g.length===1&&D.type==="styling"&&D.body.length===1&&D.body[0].type==="ordgroup"&&D.body[0].body.length===0&&(y.length>1||!c)&&y.pop(),E.length<y.length+1&&E.push([]);break}else if(U==="\\\\"){e.consume();var $=void 0;e.gullet.future().text!==" "&&($=e.parseSizeGroup(!0)),_.push($?$.value:null),M(),E.push(Bf(e)),g=[],y.push(g),C()}else throw new ee("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:y,cols:a,rowGaps:_,hskipBeforeAndAfter:n,hLinesBeforeRow:E,colSeparationType:o,tags:w,leqno:f}}function Ac(e){return e.slice(0,1)==="d"?"display":"text"}var Ir=function(t,r){var n,i,a=t.body.length,s=t.hLinesBeforeRow,o=0,u=new Array(a),l=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),h=1/r.fontMetrics().ptPerEm,f=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var d=r.havingStyle(be.SCRIPT).sizeMultiplier;f=.2778*(d/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?Xe({number:3,unit:"ex"},r):12*h,y=3*h,_=t.arraystretch*g,E=.7*_,w=.3*_,C=0;function M(pe){for(var we=0;we<pe.length;++we)we>0&&(C+=.25),l.push({pos:C,isDashed:pe[we]})}for(M(s[0]),n=0;n<t.body.length;++n){var H=t.body[n],D=E,U=w;o<H.length&&(o=H.length);var $=new Array(H.length);for(i=0;i<H.length;++i){var q=Me(H[i],r);U<q.depth&&(U=q.depth),D<q.height&&(D=q.height),$[i]=q}var F=t.rowGaps[n],Y=0;F&&(Y=Xe(F,r),Y>0&&(Y+=w,U<Y&&(U=Y),Y=0)),t.addJot&&n<t.body.length-1&&(U+=y),$.height=D,$.depth=U,C+=D,$.pos=C,C+=U+Y,u[n]=$,M(s[n+1])}var X=C/2+r.fontMetrics().axisHeight,de=t.cols||[],ie=[],W,re,fe=[];if(t.tags&&t.tags.some(pe=>pe))for(n=0;n<a;++n){var Ne=u[n],Ve=Ne.pos-X,S=t.tags[n],De=void 0;S===!0?De=Z(["eqn-num"],[],r):S===!1?De=Z([],[],r):De=Z([],ft(S,r,!0),r),De.depth=Ne.depth,De.height=Ne.height,fe.push({type:"elem",elem:De,shift:Ve})}for(i=0,re=0;i<o||re<de.length;++i,++re){for(var Ue,P=de[re],je=!0;((ke=P)==null?void 0:ke.type)==="separator";){var ke;if(je||(W=Z(["arraycolsep"],[]),W.style.width=ae(r.fontMetrics().doubleRuleSep),ie.push(W)),P.separator==="|"||P.separator===":"){var ve=P.separator==="|"?"solid":"dashed",Ke=Z(["vertical-separator"],[],r);Ke.style.height=ae(C),Ke.style.borderRightWidth=ae(c),Ke.style.borderRightStyle=ve,Ke.style.margin="0 "+ae(-c/2);var Je=C-X;Je&&(Ke.style.verticalAlign=ae(-Je)),ie.push(Ke)}else throw new ee("Invalid separator type: "+P.separator);re++,P=de[re],je=!1}if(!(i>=o)){var Ee=void 0;if(i>0||t.hskipBeforeAndAfter){var pt,xt;Ee=(pt=(xt=P)==null?void 0:xt.pregap)!=null?pt:f,Ee!==0&&(W=Z(["arraycolsep"],[]),W.style.width=ae(Ee),ie.push(W))}var St=[];for(n=0;n<a;++n){var ot=u[n],_t=ot[i];if(_t){var Rr=ot.pos-X;_t.depth=ot.depth,_t.height=ot.height,St.push({type:"elem",elem:_t,shift:Rr})}}var pr=Pe({positionType:"individualShift",children:St}),Jr=Z(["col-align-"+(((Ue=P)==null?void 0:Ue.align)||"c")],[pr]);if(ie.push(Jr),i<o-1||t.hskipBeforeAndAfter){var xe,Le;Ee=(xe=(Le=P)==null?void 0:Le.postgap)!=null?xe:f,Ee!==0&&(W=Z(["arraycolsep"],[]),W.style.width=ae(Ee),ie.push(W))}}}var ut=Z(["mtable"],ie);if(l.length>0){for(var Kt=wi("hline",r,c),Lr=wi("hdashline",r,c),Ui=[{type:"elem",elem:ut,shift:0}];l.length>0;){var Va=l.pop(),qa=Va.pos-X;Va.isDashed?Ui.push({type:"elem",elem:Lr,shift:qa}):Ui.push({type:"elem",elem:Kt,shift:qa})}ut=Pe({positionType:"individualShift",children:Ui})}if(fe.length===0)return Z(["mord"],[ut],r);var G=Pe({positionType:"individualShift",children:fe}),se=Z(["tag"],[G],r);return Zr([ut,se])},uL={c:"center ",l:"left ",r:"right "},Nr=function(t,r){for(var n=[],i=new te("mtd",[],["mtr-glue"]),a=new te("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],u=[],l=0;l<o.length;l++)u.push(new te("mtd",[ze(o[l],r)]));t.tags&&t.tags[s]&&(u.unshift(i),u.push(i),t.leqno?u.unshift(a):u.push(a)),n.push(new te("mtr",u))}var c=new te("mtable",n),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",ae(h));var f="",d="";if(t.cols&&t.cols.length>0){var g=t.cols,y="",_=!1,E=0,w=g.length;g[0].type==="separator"&&(f+="top ",E=1),g[g.length-1].type==="separator"&&(f+="bottom ",w-=1);for(var C=E;C<w;C++){var M=g[C];M.type==="align"?(d+=uL[M.align],_&&(y+="none "),_=!0):M.type==="separator"&&_&&(y+=M.separator==="|"?"solid ":"dashed ",_=!1)}c.setAttribute("columnalign",d.trim()),/[sd]/.test(y)&&c.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var H=t.cols||[],D="",U=1;U<H.length;U++)D+=U%2?"0em ":"1em ";c.setAttribute("columnspacing",D.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var $="",q=t.hLinesBeforeRow;f+=q[0].length>0?"left ":"",f+=q[q.length-1].length>0?"right ":"";for(var F=1;F<q.length-1;F++)$+=q[F].length===0?"none ":q[F][0]?"dashed ":"solid ";return/[sd]/.test($)&&c.setAttribute("rowlines",$.trim()),f!==""&&(c=new te("menclose",[c]),c.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(c=new te("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},E4=function(t,r){t.envName.includes("ed")||jo(t);var n=[],i=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",s=kn(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:kc(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o=0,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",h=0;h<r[0].body.length;h++){var f=Te(r[0].body[h],"textord");c+=f.text}o=Number(c),u=o*2}var d=!u;s.body.forEach(function(E){for(var w=1;w<E.length;w+=2){var C=Te(E[w],"styling"),M=Te(C.body[0],"ordgroup");M.body.unshift(l)}if(d)u<E.length&&(u=E.length);else{var H=E.length/2;if(o<H)throw new ee("Too many math in a row: "+("expected "+o+", but got "+H),E[0])}});for(var g=0;g<u;++g){var y="r",_=0;g%2===1?y="l":g>0&&d&&(_=1),n[g]={type:"align",align:y,pregap:_,postgap:0}}return s.colSeparationType=d?"align":"alignat",s};Sr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Fo(t[0]),n=r?[t[0]]:Te(t[0],"ordgroup").body,i=n.map(function(s){var o=Bo(s),u=o.text;if("lcr".includes(u))return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new ee("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return kn(e.parser,a,Ac(e.envName))},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new ee("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=kn(e.parser,n,Ac(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=kn(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Fo(t[0]),n=r?[t[0]]:Te(t[0],"ordgroup").body,i=n.map(function(o){var u=Bo(o),l=u.text;if("lc".includes(l))return{type:"align",align:l};throw new ee("Unknown column alignment: "+l,o)});if(i.length>1)throw new ee("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=kn(e.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new ee("{subarray} can contain only one column");return s},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=kn(e.parser,t,Ac(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:E4,htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){oL.has(e.envName)&&jo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:kc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return kn(e.parser,t,"display")},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:E4,htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){jo(e);var t={autoTag:kc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return kn(e.parser,t,"display")},htmlBuilder:Ir,mathmlBuilder:Nr});Sr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return jo(e),XR(e.parser)},htmlBuilder:Ir,mathmlBuilder:Nr});T("\\nonumber","\\gdef\\@eqnsw{0}");T("\\notag","\\nonumber");oe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ee(e.funcName+" valid only within array environment")}});var Ff=b4;oe({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new ee("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Te(i.body[s],"textord").text;if(n==="\\begin"){if(!Ff.hasOwnProperty(a))throw new ee("No such environment: "+a,i);var o=Ff[a],{args:u,optArgs:l}=r.parseArguments("\\begin{"+a+"}",o),c={mode:r.mode,envName:a,parser:r},h=o.handler(c,u,l);r.expect("\\end",!1);var f=r.nextToken,d=Te(r.parseFunction(),"environment");if(d.name!==a)throw new ee("Mismatch: \\begin{"+a+"} matched by \\end{"+d.name+"}",f);return h}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var x4=(e,t)=>{var r=e.font,n=t.withFont(r);return Me(e.body,n)},_4=(e,t)=>{var r=e.font,n=t.withFont(r);return ze(e.body,n)},Hf={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};oe({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=ao(t[0]),a=n;return a in Hf&&(a=Hf[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:x4,mathmlBuilder:_4});oe({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Ho(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Kr(n)}}});oe({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:x4,mathmlBuilder:_4});var lL=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var s=Me(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<u?u:s.depth}a=t.havingStyle(i);var l=Me(e.denom,a,t),c,h,f;e.hasBarLine?(e.barSize?(h=Xe(e.barSize,t),c=wi("frac-line",t,h)):c=wi("frac-line",t),h=c.height,f=c.height):(c=null,h=0,f=t.fontMetrics().defaultRuleThickness);var d,g,y;r.size===be.DISPLAY.size?(d=t.fontMetrics().num1,h>0?g=3*f:g=7*f,y=t.fontMetrics().denom1):(h>0?(d=t.fontMetrics().num2,g=f):(d=t.fontMetrics().num3,g=3*f),y=t.fontMetrics().denom2);var _;if(c){var w=t.fontMetrics().axisHeight;d-s.depth-(w+.5*h)<g&&(d+=g-(d-s.depth-(w+.5*h))),w-.5*h-(l.height-y)<g&&(y+=g-(w-.5*h-(l.height-y)));var C=-(w-.5*h);_=Pe({positionType:"individualShift",children:[{type:"elem",elem:l,shift:y},{type:"elem",elem:c,shift:C},{type:"elem",elem:s,shift:-d}]})}else{var E=d-s.depth-(l.height-y);E<g&&(d+=.5*(g-E),y+=.5*(g-E)),_=Pe({positionType:"individualShift",children:[{type:"elem",elem:l,shift:y},{type:"elem",elem:s,shift:-d}]})}a=t.havingStyle(r),_.height*=a.sizeMultiplier/t.sizeMultiplier,_.depth*=a.sizeMultiplier/t.sizeMultiplier;var M;r.size===be.DISPLAY.size?M=t.fontMetrics().delim1:r.size===be.SCRIPTSCRIPT.size?M=t.havingStyle(be.SCRIPT).fontMetrics().delim2:M=t.fontMetrics().delim2;var H,D;return e.leftDelim==null?H=Ia(t,["mopen"]):H=t0(e.leftDelim,M,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?D=Z([]):e.rightDelim==null?D=Ia(t,["mclose"]):D=t0(e.rightDelim,M,!0,t.havingStyle(r),e.mode,["mclose"]),Z(["mord"].concat(a.sizingClasses(t)),[H,Z(["mfrac"],[_]),D],t)},cL=(e,t)=>{var r=new te("mfrac",[ze(e.numer,t),ze(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Xe(e.barSize,t);r.setAttribute("linethickness",ae(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new te("mo",[new at(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var s=new te("mo",[new at(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return _c(i)}return r},T4=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};oe({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],s,o=null,u=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}var l=n==="\\cfrac",c=null;return l||n.startsWith("\\d")?c="display":n.startsWith("\\t")&&(c="text"),T4({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:l,hasBarLine:s,leftDelim:o,rightDelim:u,barSize:null},c)},htmlBuilder:lL,mathmlBuilder:cL});oe({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var zf=["display","text","script","scriptscript"],Uf=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};oe({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=ao(t[0]),s=a.type==="atom"&&a.family==="open"?Uf(a.text):null,o=ao(t[1]),u=o.type==="atom"&&o.family==="close"?Uf(o.text):null,l=Te(t[2],"size"),c,h=null;l.isBlank?c=!0:(h=l.value,c=h.number>0);var f=null,d=t[3];if(d.type==="ordgroup"){if(d.body.length>0){var g=Te(d.body[0],"textord");f=zf[Number(g.text)]}}else d=Te(d,"textord"),f=zf[Number(d.text)];return T4({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:c,barSize:h,leftDelim:s,rightDelim:u},f)}});oe({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Te(t[0],"size").value,token:i}}});oe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=Te(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var v4=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?Me(e.sup,t.havingStyle(r.sup()),t):Me(e.sub,t.havingStyle(r.sub()),t),i=Te(e.base,"horizBrace")):i=Te(e,"horizBrace");var a=Me(i.base,t.havingBaseStyle(be.DISPLAY)),s=Mo(i,t),o;if(i.isOver?(o=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Pe({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),n){var u=Z(["minner",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=Pe({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]})}return Z(["minner",i.isOver?"mover":"munder"],[o],t)},hL=(e,t)=>{var r=Po(e.label);return new te(e.isOver?"mover":"munder",[ze(e.base,t),r])};oe({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:v4,mathmlBuilder:hL});oe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=Te(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:it(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=ft(e.body,t,!1);return SR(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Tn(e.body,t);return r instanceof te||(r=new te("mrow",[r])),r.setAttribute("href",e.href),r}});oe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Te(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:it(o)}}});oe({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:it(t[0])}},htmlBuilder(e,t){var r=ft(e.body,t,!1);return Zr(r)},mathmlBuilder(e,t){return new te("mrow",Xt(e.body,t))}});oe({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=Te(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(n){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c<l.length;c++){var h=l[c],f=h.indexOf("=");if(f<0)throw new ee("\\htmlData key/value '"+h+"' missing equals sign");var d=h.slice(0,f),g=h.slice(f+1);u["data-"+d.trim()]=g}o={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:u,body:it(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=ft(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Z(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Tn(e.body,t)});oe({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:it(t[0]),mathml:it(t[1])}},htmlBuilder:(e,t)=>{var r=ft(e.html,t,!1);return Zr(r)},mathmlBuilder:(e,t)=>Tn(e.mathml,t)});var Xu=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new ee("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!z2(n))throw new ee("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};oe({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var u=Te(r[0],"raw").string,l=u.split(","),c=0;c<l.length;c++){var h=l[c].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":o=f;break;case"width":i=Xu(f);break;case"height":a=Xu(f);break;case"totalheight":s=Xu(f);break;default:throw new ee("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var d=Te(t[0],"url").url;return o===""&&(o=d,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:d})?{type:"includegraphics",mode:n.mode,alt:o,width:i,height:a,totalheight:s,src:d}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Xe(e.height,t),n=0;e.totalheight.number>0&&(n=Xe(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=Xe(e.width,t));var a={height:ae(r+n)};i>0&&(a.width=ae(i)),n>0&&(a.verticalAlign=ae(-n));var s=new gR(e.src,e.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new te("mglyph",[]);r.setAttribute("alt",e.alt);var n=Xe(e.height,t),i=0;if(e.totalheight.number>0&&(i=Xe(e.totalheight,t)-n,r.setAttribute("valign",ae(-i))),r.setAttribute("height",ae(n+i)),e.width.number>0){var a=Xe(e.width,t);r.setAttribute("width",ae(a))}return r.setAttribute("src",e.src),r}});oe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Te(t[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return G2(e.dimension,t)},mathmlBuilder(e,t){var r=Xe(e.dimension,t);return new Z2(r)}});oe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Z([],[Me(e.body,t)]),r=Z(["inner"],[r],t)):r=Z(["inner"],[Me(e.body,t)]);var n=Z(["fix"],[]),i=Z([e.alignment],[r,n],t),a=Z(["strut"]);return a.style.height=ae(i.height+i.depth),i.depth&&(a.style.verticalAlign=ae(-i.depth)),i.children.unshift(a),i=Z(["thinbox"],[i],t),Z(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new te("mpadded",[ze(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});oe({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});oe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ee("Mismatched "+e.funcName)}});var $f=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};oe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:it(t[0]),text:it(t[1]),script:it(t[2]),scriptscript:it(t[3])}},htmlBuilder:(e,t)=>{var r=$f(e,t),n=ft(r,t,!1);return Zr(n)},mathmlBuilder:(e,t)=>{var r=$f(e,t);return Tn(r,t)}});var w4=(e,t,r,n,i,a,s)=>{e=Z([],[e]);var o=r&&Kr(r),u,l;if(t){var c=Me(t,n.havingStyle(i.sup()),n);l={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var h=Me(r,n.havingStyle(i.sub()),n);u={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var f;if(l&&u){var d=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;f=Pe({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ae(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ae(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(u){var g=e.height-s;f=Pe({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ae(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]})}else if(l){var y=e.depth+s;f=Pe({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ae(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var _=[f];if(u&&a!==0&&!o){var E=Z(["mspace"],[],n);E.style.marginRight=ae(a),_.unshift(E)}return Z(["mop","op-limits"],_,n)},k4=new Set(["\\smallint"]),Hi=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=Te(e.base,"op"),i=!0):a=Te(e,"op");var s=t.style,o=!1;s.size===be.DISPLAY.size&&a.symbol&&!k4.has(a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=Lt(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var h=u.italic,f=Y2(c+"Size"+(o?"2":"1"),t);u=Pe({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+c,u.classes.unshift("mop"),u.italic=h}}else if(a.body){var d=ft(a.body,t,!0);d.length===1&&d[0]instanceof Wt?(u=d[0],u.classes[0]="mop"):u=Z(["mop"],d,t)}else{for(var g=[],y=1;y<a.name.length;y++)g.push(Ec(a.name[y],a.mode,t));u=Z(["mop"],g,t)}var _=0,E=0;return(u instanceof Wt||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(_=(u.height-u.depth)/2-t.fontMetrics().axisHeight,E=u.italic||0),i?w4(u,r,n,t,s,E,_):(_&&(u.style.position="relative",u.style.top=ae(_)),u)},ja=(e,t)=>{var r;if(e.symbol)r=new te("mo",[sr(e.name,e.mode)]),k4.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new te("mo",Xt(e.body,t));else{r=new te("mi",[new at(e.name.slice(1))]);var n=new te("mo",[sr("⁡","text")]);e.parentIsSupSub?r=new te("mrow",[r,n]):r=Q2([r,n])}return r},dL={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};oe({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=dL[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Hi,mathmlBuilder:ja});oe({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:it(n)}},htmlBuilder:Hi,mathmlBuilder:ja});var fL={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};oe({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Hi,mathmlBuilder:ja});oe({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Hi,mathmlBuilder:ja});oe({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=fL[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Hi,mathmlBuilder:ja});var A4=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=Te(e.base,"operatorname"),i=!0):a=Te(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),u=ft(o,t.withFont("mathrm"),!0),l=0;l<u.length;l++){var c=u[l];c instanceof Wt&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Z(["mop"],u,t)}else s=Z(["mop"],[],t);return i?w4(s,r,n,t,t.style,0,0):s},mL=(e,t)=>{for(var r=Xt(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof Z2))if(a instanceof te)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof at?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(c=>c.toText()).join("");r=[new at(o)]}var u=new te("mi",r);u.setAttribute("mathvariant","normal");var l=new te("mo",[sr("⁡","text")]);return e.parentIsSupSub?new te("mrow",[u,l]):Q2([u,l])};oe({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:it(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:A4,mathmlBuilder:mL});T("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ti({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Zr(ft(e.body,t,!1)):Z(["mord"],ft(e.body,t,!0),t)},mathmlBuilder(e,t){return Tn(e.body,t,!0)}});oe({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Me(e.body,t.havingCrampedStyle()),n=wi("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Z(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new te("mo",[new at("‾")]);r.setAttribute("stretchy","true");var n=new te("mover",[ze(e.body,t),r]);return n.setAttribute("accent","true"),n}});oe({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:it(n)}},htmlBuilder:(e,t)=>{var r=ft(e.body,t.withPhantom(),!1);return Zr(r)},mathmlBuilder:(e,t)=>{var r=Xt(e.body,t);return new te("mphantom",r)}});T("\\hphantom","\\smash{\\phantom{#1}}");oe({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Z(["inner"],[Me(e.body,t.withPhantom())]),n=Z(["fix"],[]);return Z(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Xt(it(e.body),t),n=new te("mphantom",r),i=new te("mpadded",[n]);return i.setAttribute("width","0px"),i}});oe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Te(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=Me(e.body,t),n=Xe(e.dy,t);return Pe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new te("mpadded",[ze(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});oe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});oe({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=Te(t[0],"size"),s=Te(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Te(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=Z(["mord","rule"],[],t),n=Xe(e.width,t),i=Xe(e.height,t),a=e.shift?Xe(e.shift,t):0;return r.style.borderRightWidth=ae(n),r.style.borderTopWidth=ae(i),r.style.bottom=ae(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Xe(e.width,t),n=Xe(e.height,t),i=e.shift?Xe(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new te("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",ae(r)),s.setAttribute("height",ae(n));var o=new te("mpadded",[s]);return i>=0?o.setAttribute("height",ae(i)):(o.setAttribute("height",ae(i)),o.setAttribute("depth",ae(-i))),o.setAttribute("voffset",ae(i)),o}});function C4(e,t,r){for(var n=ft(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var s=n[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[s+1]==="reset-size"+t.size&&(n[a].classes[s+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return Zr(n)}var jf=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],pL=(e,t)=>{var r=t.havingSize(e.size);return C4(e.body,r,t)};oe({type:"sizing",names:jf,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:jf.indexOf(n)+1,body:a}},htmlBuilder:pL,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Xt(e.body,r),i=new te("mstyle",n);return i.setAttribute("mathsize",ae(r.sizeMultiplier)),i}});oe({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,s=r[0]&&Te(r[0],"ordgroup");if(s)for(var o="",u=0;u<s.body.length;++u){var l=s.body[u];if(o=Bo(l).text,o==="t")i=!0;else if(o==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=Z([],[Me(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Z(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Z(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new te("mpadded",[ze(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});oe({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=Me(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=ki(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<be.TEXT.id&&(a=t.fontMetrics().xHeight);var s=i+a/4,o=r.height+r.depth+s+i,{span:u,ruleWidth:l,advanceWidth:c}=tL(o,t),h=u.height-l;h>r.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=u.height-r.height-s-l;r.style.paddingLeft=ae(c);var d=Pe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:u},{type:"kern",size:l}]});if(e.index){var g=t.havingStyle(be.SCRIPTSCRIPT),y=Me(e.index,g,t),_=.6*(d.height-d.depth),E=Pe({positionType:"shift",positionData:-_,children:[{type:"elem",elem:y}]}),w=Z(["root"],[E]);return Z(["mord","sqrt"],[w,d],t)}else return Z(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new te("mroot",[ze(r,t),ze(n,t)]):new te("msqrt",[ze(r,t)])}});var Vf={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};oe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var r=Vf[e.style],n=t.havingStyle(r).withFont("");return C4(e.body,n,t)},mathmlBuilder(e,t){var r=Vf[e.style],n=t.havingStyle(r),i=Xt(e.body,n),a=new te("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var gL=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===be.DISPLAY.size||n.alwaysHandleSupSub);return i?Hi:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===be.DISPLAY.size||n.limits);return a?A4:null}else{if(n.type==="accent")return Kr(n.base)?vc:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?v4:null}else return null}else return null};ti({type:"supsub",htmlBuilder(e,t){var r=gL(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,s=Me(n,t),o,u,l=t.fontMetrics(),c=0,h=0,f=n&&Kr(n);if(i){var d=t.havingStyle(t.style.sup());o=Me(i,d,t),f||(c=s.height-d.fontMetrics().supDrop*d.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());u=Me(a,g,t),f||(h=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===be.DISPLAY?y=l.sup1:t.style.cramped?y=l.sup3:y=l.sup2;var _=t.sizeMultiplier,E=ae(.5/l.ptPerEm/_),w=null;if(u){var C=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Wt||C)&&(w=ae(-s.italic))}var M;if(o&&u){c=Math.max(c,y,o.depth+.25*l.xHeight),h=Math.max(h,l.sub2);var H=l.defaultRuleThickness,D=4*H;if(c-o.depth-(u.height-h)<D){h=D-(c-o.depth)+u.height;var U=.8*l.xHeight-(c-o.depth);U>0&&(c+=U,h-=U)}var $=[{type:"elem",elem:u,shift:h,marginRight:E,marginLeft:w},{type:"elem",elem:o,shift:-c,marginRight:E}];M=Pe({positionType:"individualShift",children:$})}else if(u){h=Math.max(h,l.sub1,u.height-.8*l.xHeight);var q=[{type:"elem",elem:u,marginLeft:w,marginRight:E}];M=Pe({positionType:"shift",positionData:h,children:q})}else if(o)c=Math.max(c,y,o.depth+.25*l.xHeight),M=Pe({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:E}]});else throw new Error("supsub must have either sup or sub.");var F=Ql(s,"right")||"mord";return Z([F],[s,Z(["msupsub"],[M])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[ze(e.base,t)];e.sub&&a.push(ze(e.sub,t)),e.sup&&a.push(ze(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===be.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===be.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===be.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===be.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===be.DISPLAY)?s="mover":s="msup"}return new te(s,a)}});ti({type:"atom",htmlBuilder(e,t){return Ec(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new te("mo",[sr(e.text,e.mode)]);if(e.family==="bin"){var n=Tc(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var S4={mi:"italic",mn:"normal",mtext:"normal"};ti({type:"mathord",htmlBuilder(e,t){return Do(e,t,"mathord")},mathmlBuilder(e,t){var r=new te("mi",[sr(e.text,e.mode,t)]),n=Tc(e,t)||"italic";return n!==S4[r.type]&&r.setAttribute("mathvariant",n),r}});ti({type:"textord",htmlBuilder(e,t){return Do(e,t,"textord")},mathmlBuilder(e,t){var r=sr(e.text,e.mode,t),n=Tc(e,t)||"normal",i;return e.mode==="text"?i=new te("mtext",[r]):/[0-9]/.test(e.text)?i=new te("mn",[r]):e.text==="\\prime"?i=new te("mo",[r]):i=new te("mi",[r]),n!==S4[i.type]&&i.setAttribute("mathvariant",n),i}});var Ku={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Qu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ti({type:"spacing",htmlBuilder(e,t){if(Qu.hasOwnProperty(e.text)){var r=Qu[e.text].className||"";if(e.mode==="text"){var n=Do(e,t,"textord");return n.classes.push(r),n}else return Z(["mspace",r],[Ec(e.text,e.mode,t)],t)}else{if(Ku.hasOwnProperty(e.text))return Z(["mspace",Ku[e.text]],[],t);throw new ee('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Qu.hasOwnProperty(e.text))r=new te("mtext",[new at(" ")]);else{if(Ku.hasOwnProperty(e.text))return new te("mspace");throw new ee('Unknown type of space "'+e.text+'"')}return r}});var qf=()=>{var e=new te("mtd",[]);return e.setAttribute("width","50%"),e};ti({type:"tag",mathmlBuilder(e,t){var r=new te("mtable",[new te("mtr",[qf(),new te("mtd",[Tn(e.body,t)]),qf(),new te("mtd",[Tn(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Gf={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Wf={"\\textbf":"textbf","\\textmd":"textmd"},bL={"\\textit":"textit","\\textup":"textup"},Yf=(e,t)=>{var r=e.font;if(r){if(Gf[r])return t.withTextFontFamily(Gf[r]);if(Wf[r])return t.withTextFontWeight(Wf[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(bL[r])};oe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:it(i),font:n}},htmlBuilder(e,t){var r=Yf(e,t),n=ft(e.body,r,!0);return Z(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Yf(e,t);return Tn(e.body,r)}});oe({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Me(e.body,t),n=wi("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Pe({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Z(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new te("mo",[new at("‾")]);r.setAttribute("stretchy","true");var n=new te("munder",[ze(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});oe({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Me(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Pe({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new te("mpadded",[ze(e.body,t)],["vcenter"]);return new te("mrow",[r])}});oe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new ee("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Xf(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),n.push(Lt(s,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Z(["mord","text"].concat(i.sizingClasses(t)),q2(n),i)},mathmlBuilder(e,t){var r=new at(Xf(e)),n=new te("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Xf=e=>e.body.replace(/ /g,e.star?"␣":" "),mn=X2,I4=`[ \r
536
+ ]`,yL="\\\\[a-zA-Z@]+",EL="\\\\[^\uD800-\uDFFF]",xL="("+yL+")"+I4+"*",_L=`\\\\(
537
+ |[ \r ]+
538
+ ?)[ \r ]*`,r0="[̀-ͯ]",TL=new RegExp(r0+"+$"),vL="("+I4+"+)|"+(_L+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(r0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(r0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+xL)+("|"+EL+")");class Kf{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(vL,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new qt("EOF",new zt(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new ee("Unexpected character: '"+t[r]+"'",new qt(t[r],new zt(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
539
+ `,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new qt(i,new zt(this,r,this.tokenRegex.lastIndex))}}class wL{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ee("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var kL=y4;T("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});T("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});T("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});T("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});T("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});T("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");T("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Qf={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};T("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ee("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Qf[t.text],n==null||n>=r)throw new ee("Invalid base-"+r+" digit "+t.text);for(var i;(i=Qf[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Cc=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new ee("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new ee("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new ee("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new ee("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:o}),""};T("\\newcommand",e=>Cc(e,!1,!0,!1));T("\\renewcommand",e=>Cc(e,!0,!1,!1));T("\\providecommand",e=>Cc(e,!0,!0,!0));T("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});T("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});T("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),mn[r],Ge.math[r],Ge.text[r]),""});T("\\bgroup","{");T("\\egroup","}");T("~","\\nobreakspace");T("\\lq","`");T("\\rq","'");T("\\aa","\\r a");T("\\AA","\\r A");T("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");T("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");T("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");T("ℬ","\\mathscr{B}");T("ℰ","\\mathscr{E}");T("ℱ","\\mathscr{F}");T("ℋ","\\mathscr{H}");T("ℐ","\\mathscr{I}");T("ℒ","\\mathscr{L}");T("ℳ","\\mathscr{M}");T("ℛ","\\mathscr{R}");T("ℭ","\\mathfrak{C}");T("ℌ","\\mathfrak{H}");T("ℨ","\\mathfrak{Z}");T("\\Bbbk","\\Bbb{k}");T("\\llap","\\mathllap{\\textrm{#1}}");T("\\rlap","\\mathrlap{\\textrm{#1}}");T("\\clap","\\mathclap{\\textrm{#1}}");T("\\mathstrut","\\vphantom{(}");T("\\underbar","\\underline{\\text{#1}}");T("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');T("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");T("\\ne","\\neq");T("≠","\\neq");T("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");T("∉","\\notin");T("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");T("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");T("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");T("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");T("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");T("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");T("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");T("⟂","\\perp");T("‼","\\mathclose{!\\mkern-0.8mu!}");T("∌","\\notni");T("⌜","\\ulcorner");T("⌝","\\urcorner");T("⌞","\\llcorner");T("⌟","\\lrcorner");T("©","\\copyright");T("®","\\textregistered");T("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');T("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');T("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');T("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');T("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");T("⋮","\\vdots");T("\\varGamma","\\mathit{\\Gamma}");T("\\varDelta","\\mathit{\\Delta}");T("\\varTheta","\\mathit{\\Theta}");T("\\varLambda","\\mathit{\\Lambda}");T("\\varXi","\\mathit{\\Xi}");T("\\varPi","\\mathit{\\Pi}");T("\\varSigma","\\mathit{\\Sigma}");T("\\varUpsilon","\\mathit{\\Upsilon}");T("\\varPhi","\\mathit{\\Phi}");T("\\varPsi","\\mathit{\\Psi}");T("\\varOmega","\\mathit{\\Omega}");T("\\substack","\\begin{subarray}{c}#1\\end{subarray}");T("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");T("\\boxed","\\fbox{$\\displaystyle{#1}$}");T("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");T("\\implies","\\DOTSB\\;\\Longrightarrow\\;");T("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");T("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");T("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Zf={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},AL=new Set(["bin","rel"]);T("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Zf?t=Zf[r]:(r.slice(0,4)==="\\not"||r in Ge.math&&AL.has(Ge.math[r].group))&&(t="\\dotsb"),t});var Sc={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};T("\\dotso",function(e){var t=e.future().text;return t in Sc?"\\ldots\\,":"\\ldots"});T("\\dotsc",function(e){var t=e.future().text;return t in Sc&&t!==","?"\\ldots\\,":"\\ldots"});T("\\cdots",function(e){var t=e.future().text;return t in Sc?"\\@cdots\\,":"\\@cdots"});T("\\dotsb","\\cdots");T("\\dotsm","\\cdots");T("\\dotsi","\\!\\cdots");T("\\dotsx","\\ldots\\,");T("\\DOTSI","\\relax");T("\\DOTSB","\\relax");T("\\DOTSX","\\relax");T("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");T("\\,","\\tmspace+{3mu}{.1667em}");T("\\thinspace","\\,");T("\\>","\\mskip{4mu}");T("\\:","\\tmspace+{4mu}{.2222em}");T("\\medspace","\\:");T("\\;","\\tmspace+{5mu}{.2777em}");T("\\thickspace","\\;");T("\\!","\\tmspace-{3mu}{.1667em}");T("\\negthinspace","\\!");T("\\negmedspace","\\tmspace-{4mu}{.2222em}");T("\\negthickspace","\\tmspace-{5mu}{.277em}");T("\\enspace","\\kern.5em ");T("\\enskip","\\hskip.5em\\relax");T("\\quad","\\hskip1em\\relax");T("\\qquad","\\hskip2em\\relax");T("\\tag","\\@ifstar\\tag@literal\\tag@paren");T("\\tag@paren","\\tag@literal{({#1})}");T("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ee("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});T("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");T("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");T("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");T("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");T("\\newline","\\\\\\relax");T("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var N4=ae(vr["Main-Regular"][84][1]-.7*vr["Main-Regular"][65][1]);T("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+N4+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");T("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+N4+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");T("\\hspace","\\@ifstar\\@hspacer\\@hspace");T("\\@hspace","\\hskip #1\\relax");T("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");T("\\ordinarycolon",":");T("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");T("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');T("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');T("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');T("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');T("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');T("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');T("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');T("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');T("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');T("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');T("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');T("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');T("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');T("∷","\\dblcolon");T("∹","\\eqcolon");T("≔","\\coloneqq");T("≕","\\eqqcolon");T("⩴","\\Coloneqq");T("\\ratio","\\vcentcolon");T("\\coloncolon","\\dblcolon");T("\\colonequals","\\coloneqq");T("\\coloncolonequals","\\Coloneqq");T("\\equalscolon","\\eqqcolon");T("\\equalscoloncolon","\\Eqqcolon");T("\\colonminus","\\coloneq");T("\\coloncolonminus","\\Coloneq");T("\\minuscolon","\\eqcolon");T("\\minuscoloncolon","\\Eqcolon");T("\\coloncolonapprox","\\Colonapprox");T("\\coloncolonsim","\\Colonsim");T("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");T("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");T("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");T("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");T("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");T("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");T("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");T("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");T("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");T("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");T("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");T("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");T("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");T("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");T("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");T("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");T("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");T("\\nleqq","\\html@mathml{\\@nleqq}{≰}");T("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");T("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");T("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");T("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");T("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");T("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");T("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");T("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");T("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");T("\\imath","\\html@mathml{\\@imath}{ı}");T("\\jmath","\\html@mathml{\\@jmath}{ȷ}");T("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");T("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");T("⟦","\\llbracket");T("⟧","\\rrbracket");T("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");T("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");T("⦃","\\lBrace");T("⦄","\\rBrace");T("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");T("⦵","\\minuso");T("\\darr","\\downarrow");T("\\dArr","\\Downarrow");T("\\Darr","\\Downarrow");T("\\lang","\\langle");T("\\rang","\\rangle");T("\\uarr","\\uparrow");T("\\uArr","\\Uparrow");T("\\Uarr","\\Uparrow");T("\\N","\\mathbb{N}");T("\\R","\\mathbb{R}");T("\\Z","\\mathbb{Z}");T("\\alef","\\aleph");T("\\alefsym","\\aleph");T("\\Alpha","\\mathrm{A}");T("\\Beta","\\mathrm{B}");T("\\bull","\\bullet");T("\\Chi","\\mathrm{X}");T("\\clubs","\\clubsuit");T("\\cnums","\\mathbb{C}");T("\\Complex","\\mathbb{C}");T("\\Dagger","\\ddagger");T("\\diamonds","\\diamondsuit");T("\\empty","\\emptyset");T("\\Epsilon","\\mathrm{E}");T("\\Eta","\\mathrm{H}");T("\\exist","\\exists");T("\\harr","\\leftrightarrow");T("\\hArr","\\Leftrightarrow");T("\\Harr","\\Leftrightarrow");T("\\hearts","\\heartsuit");T("\\image","\\Im");T("\\infin","\\infty");T("\\Iota","\\mathrm{I}");T("\\isin","\\in");T("\\Kappa","\\mathrm{K}");T("\\larr","\\leftarrow");T("\\lArr","\\Leftarrow");T("\\Larr","\\Leftarrow");T("\\lrarr","\\leftrightarrow");T("\\lrArr","\\Leftrightarrow");T("\\Lrarr","\\Leftrightarrow");T("\\Mu","\\mathrm{M}");T("\\natnums","\\mathbb{N}");T("\\Nu","\\mathrm{N}");T("\\Omicron","\\mathrm{O}");T("\\plusmn","\\pm");T("\\rarr","\\rightarrow");T("\\rArr","\\Rightarrow");T("\\Rarr","\\Rightarrow");T("\\real","\\Re");T("\\reals","\\mathbb{R}");T("\\Reals","\\mathbb{R}");T("\\Rho","\\mathrm{P}");T("\\sdot","\\cdot");T("\\sect","\\S");T("\\spades","\\spadesuit");T("\\sub","\\subset");T("\\sube","\\subseteq");T("\\supe","\\supseteq");T("\\Tau","\\mathrm{T}");T("\\thetasym","\\vartheta");T("\\weierp","\\wp");T("\\Zeta","\\mathrm{Z}");T("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");T("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");T("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");T("\\bra","\\mathinner{\\langle{#1}|}");T("\\ket","\\mathinner{|{#1}\\rangle}");T("\\braket","\\mathinner{\\langle{#1}\\rangle}");T("\\Bra","\\left\\langle#1\\right|");T("\\Ket","\\left|#1\\right\\rangle");var R4=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=h=>f=>{e&&(f.macros.set("|",s),i.length&&f.macros.set("\\|",o));var d=h;if(!h&&i.length){var g=f.future();g.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?i:n,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};T("\\bra@ket",R4(!1));T("\\bra@set",R4(!0));T("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");T("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");T("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");T("\\angln","{\\angl n}");T("\\blue","\\textcolor{##6495ed}{#1}");T("\\orange","\\textcolor{##ffa500}{#1}");T("\\pink","\\textcolor{##ff00af}{#1}");T("\\red","\\textcolor{##df0030}{#1}");T("\\green","\\textcolor{##28ae7b}{#1}");T("\\gray","\\textcolor{gray}{#1}");T("\\purple","\\textcolor{##9d38bd}{#1}");T("\\blueA","\\textcolor{##ccfaff}{#1}");T("\\blueB","\\textcolor{##80f6ff}{#1}");T("\\blueC","\\textcolor{##63d9ea}{#1}");T("\\blueD","\\textcolor{##11accd}{#1}");T("\\blueE","\\textcolor{##0c7f99}{#1}");T("\\tealA","\\textcolor{##94fff5}{#1}");T("\\tealB","\\textcolor{##26edd5}{#1}");T("\\tealC","\\textcolor{##01d1c1}{#1}");T("\\tealD","\\textcolor{##01a995}{#1}");T("\\tealE","\\textcolor{##208170}{#1}");T("\\greenA","\\textcolor{##b6ffb0}{#1}");T("\\greenB","\\textcolor{##8af281}{#1}");T("\\greenC","\\textcolor{##74cf70}{#1}");T("\\greenD","\\textcolor{##1fab54}{#1}");T("\\greenE","\\textcolor{##0d923f}{#1}");T("\\goldA","\\textcolor{##ffd0a9}{#1}");T("\\goldB","\\textcolor{##ffbb71}{#1}");T("\\goldC","\\textcolor{##ff9c39}{#1}");T("\\goldD","\\textcolor{##e07d10}{#1}");T("\\goldE","\\textcolor{##a75a05}{#1}");T("\\redA","\\textcolor{##fca9a9}{#1}");T("\\redB","\\textcolor{##ff8482}{#1}");T("\\redC","\\textcolor{##f9685d}{#1}");T("\\redD","\\textcolor{##e84d39}{#1}");T("\\redE","\\textcolor{##bc2612}{#1}");T("\\maroonA","\\textcolor{##ffbde0}{#1}");T("\\maroonB","\\textcolor{##ff92c6}{#1}");T("\\maroonC","\\textcolor{##ed5fa6}{#1}");T("\\maroonD","\\textcolor{##ca337c}{#1}");T("\\maroonE","\\textcolor{##9e034e}{#1}");T("\\purpleA","\\textcolor{##ddd7ff}{#1}");T("\\purpleB","\\textcolor{##c6b9fc}{#1}");T("\\purpleC","\\textcolor{##aa87ff}{#1}");T("\\purpleD","\\textcolor{##7854ab}{#1}");T("\\purpleE","\\textcolor{##543b78}{#1}");T("\\mintA","\\textcolor{##f5f9e8}{#1}");T("\\mintB","\\textcolor{##edf2df}{#1}");T("\\mintC","\\textcolor{##e0e5cc}{#1}");T("\\grayA","\\textcolor{##f6f7f7}{#1}");T("\\grayB","\\textcolor{##f0f1f2}{#1}");T("\\grayC","\\textcolor{##e3e5e6}{#1}");T("\\grayD","\\textcolor{##d6d8da}{#1}");T("\\grayE","\\textcolor{##babec2}{#1}");T("\\grayF","\\textcolor{##888d93}{#1}");T("\\grayG","\\textcolor{##626569}{#1}");T("\\grayH","\\textcolor{##3b3e40}{#1}");T("\\grayI","\\textcolor{##21242c}{#1}");T("\\kaBlue","\\textcolor{##314453}{#1}");T("\\kaGreen","\\textcolor{##71B307}{#1}");var L4={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class CL{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new wL(kL,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Kf(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new qt("EOF",n.loc)),this.pushTokens(i),new qt("",zt.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new ee("Extra }",a)}else if(a.text==="EOF")throw new ee("Unexpected end of input in a macro argument, expected '"+(t&&n?t[o]:"}")+"'",a);if(t&&n)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new ee("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new ee("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ee("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new ee("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new ee("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new ee("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new qt(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new Kf(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||mn.hasOwnProperty(t)||Ge.math.hasOwnProperty(t)||Ge.text.hasOwnProperty(t)||L4.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:mn.hasOwnProperty(t)&&!mn[t].primitive}}var Jf=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,bs=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Zu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},e1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Vo{constructor(t,r){this.mode="math",this.gullet=new CL(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new ee("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new qt("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Vo.endOfExpression.has(i.text)||r&&i.text===r||t&&mn[i.text]&&mn[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var a=t[i];if(a.type==="infix"){if(r!==-1)throw new ee("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var s,o,u=t.slice(0,r),l=t.slice(r+1);u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u},l.length===1&&l[0].type==="ordgroup"?o=l[0]:o={type:"ordgroup",mode:this.mode,body:l};var c;return n==="\\\\abovefrac"?c=this.callFunction(n,[s,t[r],o],[]):c=this.callFunction(n,[s,o],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new ee("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new ee("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new ee("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new ee("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new ee("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},u=[o];for(this.consume();this.fetch().text==="'";)u.push(o),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:u}}else if(bs[a.text]){var l=Jf.test(a.text),c=[];for(c.push(new qt(bs[a.text])),this.consume();;){var h=this.fetch().text;if(!bs[h]||Jf.test(h)!==l)break;c.unshift(new qt(bs[h])),this.consume()}var f=this.subparse(c);l?i={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=mn[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new ee("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new ee("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new ee("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(i,a);return this.callFunction(i,s,o,n,t)}callFunction(t,r,n,i,a){var s={funcName:t,parser:this,token:i,breakOnTokenText:a},o=mn[t];if(o&&o.handler)return o.handler(s,r,n);throw new ee("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],u=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var l=this.parseGroupOfType("argument to '"+t+"'",o,u);if(u)a.push(l);else if(l!=null)i.push(l);else throw new ee("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new ee("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new ee("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new ee("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new ee("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new ee("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new ee("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!z2(a))throw new ee("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),u=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:zt.range(n,u),body:o,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!L4.hasOwnProperty(i)){if(this.settings.throwOnError)throw new ee("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var a=i.text,s=t[n+1];if(!(!s||s.type!=="textord")){if(a==="-"&&s.text==="-"){var o=t[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:zt.range(i,o),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:zt.range(i,s),text:"--"}),r-=1)}(a==="'"||a==="`")&&s.text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:zt.range(i,s),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new ee(`\\verb assertion failed --
540
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}e1.hasOwnProperty(r[0])&&!Ge[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=e1[r[0]]+r.slice(1));var a=TL.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ge[this.mode][r]){this.settings.strict&&this.mode==="math"&&Wl.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=Ge[this.mode][r].group,u=zt.range(t),l;if(vR.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:r}}else l={type:o,mode:this.mode,loc:u,text:r};s=l}else if(r.charCodeAt(0)>=128)this.settings.strict&&(H2(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:zt.range(t),text:r};else return null;if(this.consume(),a)for(var h=0;h<a[0].length;h++){var f=a[0][h];if(!Zu[f])throw new ee("Unknown accent ' "+f+"'",t);var d=Zu[f][this.mode]||Zu[f].text;if(!d)throw new ee("Accent "+f+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:zt.range(t),label:d,isStretchy:!1,isShifty:!0,base:s}}return s}}Vo.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Ic=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Vo(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new ee("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new qt("\\df@tag")])}]}return i},O4=function(t,r,n){r.textContent="";var i=Nc(t,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),O4=function(){throw new ee("KaTeX doesn't work in quirks mode.")});var SL=function(t,r){var n=Nc(t,r).toMarkup();return n},IL=function(t,r){var n=new gc(r);return Ic(t,n)},D4=function(t,r,n){if(n.throwOnError||!(t instanceof ee))throw t;var i=Z(["katex-error"],[new Wt(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},Nc=function(t,r){var n=new gc(r);try{var i=Ic(t,n);return HR(i,t,n)}catch(a){return D4(a,t,n)}},NL=function(t,r){var n=new gc(r);try{var i=Ic(t,n);return zR(i,t,n)}catch(a){return D4(a,t,n)}},RL="0.16.45",LL={Span:Bi,Anchor:Lo,SymbolNode:Wt,SvgNode:Wr,PathNode:xn,LineNode:Gl},t1={version:RL,render:O4,renderToString:SL,ParseError:ee,SETTINGS_SCHEMA:jl,__parse:IL,__renderToDomTree:Nc,__renderToHTMLTree:NL,__setFontMetrics:_R,__defineSymbol:p,__defineFunction:oe,__defineMacro:T,__domTree:LL};const OL={},DL=[];function PL(e){const t=e||OL;return function(r,n){lo(r,"element",function(i,a){const s=Array.isArray(i.properties.className)?i.properties.className:DL,o=s.includes("language-math"),u=s.includes("math-display"),l=s.includes("math-inline");let c=u;if(!o&&!u&&!l)return;let h=a[a.length-1],f=i;if(i.tagName==="code"&&o&&h&&h.type==="element"&&h.tagName==="pre"&&(f=h,h=a[a.length-2],c=!0),!h)return;const d=FN(f,{whitespace:"pre"});let g;try{g=t1.renderToString(d,{...t,displayMode:c,throwOnError:!0})}catch(_){const E=_,w=E.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:E,place:i.position,ruleId:w,source:"rehype-katex"});try{g=t1.renderToString(d,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(_)},children:[{type:"text",value:d}]}]}}typeof g=="string"&&(g=NN(g).children);const y=h.children.indexOf(f);return h.children.splice(y,1,...g),Fn})}}function ML(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function r(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const h=c.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function BL(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
541
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,s,o,u){const l=a.value||"",c=o.createTracker(u),h="$".repeat(Math.max(Tm(l,"$")+1,2)),f=o.enter("mathFlow");let d=c.move(h);if(a.meta){const g=o.enter("mathFlowMeta");d+=c.move(o.safe(a.meta,{after:`
542
+ `,before:d,encode:["$"],...c.current()})),g()}return d+=c.move(`
543
+ `),l&&(d+=c.move(l+`
544
+ `)),d+=c.move(h),f(),d}function n(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let h=-1;for(;++h<o.unsafe.length;){const f=o.unsafe[h];if(!f.atBreak)continue;const d=o.compilePattern(f);let g;for(;g=d.exec(u);){let y=g.index;u.codePointAt(y)===10&&u.codePointAt(y-1)===13&&y--,u=u.slice(0,y)+" "+u.slice(g.index+1)}}return c+u+c}function i(){return"$"}}const FL={tokenize:HL,concrete:!0,name:"mathFlow"},r1={tokenize:zL,partial:!0};function HL(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return o;function o(w){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(w)}function u(w){return w===36?(e.consume(w),s++,u):s<2?r(w):(e.exit("mathFlowFenceSequence"),Se(e,l,"whitespace")(w))}function l(w){return w===null||he(w)?h(w):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(w))}function c(w){return w===null||he(w)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(w)):w===36?r(w):(e.consume(w),c)}function h(w){return e.exit("mathFlowFence"),n.interrupt?t(w):e.attempt(r1,f,_)(w)}function f(w){return e.attempt({tokenize:E,partial:!0},_,d)(w)}function d(w){return(a?Se(e,g,"linePrefix",a+1):g)(w)}function g(w){return w===null?_(w):he(w)?e.attempt(r1,f,_)(w):(e.enter("mathFlowValue"),y(w))}function y(w){return w===null||he(w)?(e.exit("mathFlowValue"),g(w)):(e.consume(w),y)}function _(w){return e.exit("mathFlow"),t(w)}function E(w,C,M){let H=0;return Se(w,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(q){return w.enter("mathFlowFence"),w.enter("mathFlowFenceSequence"),U(q)}function U(q){return q===36?(H++,w.consume(q),U):H<s?M(q):(w.exit("mathFlowFenceSequence"),Se(w,$,"whitespace")(q))}function $(q){return q===null||he(q)?(w.exit("mathFlowFence"),C(q)):M(q)}}}function zL(e,t,r){const n=this;return i;function i(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function UL(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:$L,previous:jL,name:"mathText"};function n(i,a,s){let o=0,u,l;return c;function c(y){return i.enter("mathText"),i.enter("mathTextSequence"),h(y)}function h(y){return y===36?(i.consume(y),o++,h):o<2&&!r?s(y):(i.exit("mathTextSequence"),f(y))}function f(y){return y===null?s(y):y===36?(l=i.enter("mathTextSequence"),u=0,g(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),f):he(y)?(i.enter("lineEnding"),i.consume(y),i.exit("lineEnding"),f):(i.enter("mathTextData"),d(y))}function d(y){return y===null||y===32||y===36||he(y)?(i.exit("mathTextData"),f(y)):(i.consume(y),d)}function g(y){return y===36?(i.consume(y),u++,g):u===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(y)):(l.type="mathTextData",d(y))}}}function $L(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function jL(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function VL(e){return{flow:{36:FL},text:{36:UL(e)}}}const qL={};function GL(e){const t=this,r=e||qL,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(VL(r)),a.push(ML()),s.push(BL(r))}function P4(e={}){var t,r;let n=[GL,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],i=[PL,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:n,rehypePlugin:i,getStyles(){return"katex/dist/katex.min.css"}}}P4();const WL=I.memo(function({url:t,onClose:r,onConfirm:n}){return I.useEffect(()=>{const i=a=>{a.key==="Enter"&&(a.preventDefault(),n())};return window.addEventListener("keydown",i,!0),()=>window.removeEventListener("keydown",i,!0)},[n]),v.jsxs(I3,{open:!0,title:"External Link",onClose:r,width:600,children:[v.jsx("div",{className:"text-body-sm text-[var(--color-brand-default)] break-all bg-[var(--color-surface-canvas)] rounded-[4px] px-3.5 py-2.5 border border-[var(--color-border-subtle)]",children:t}),v.jsxs("div",{className:"flex justify-end gap-2.5 mt-4",children:[v.jsx("button",{onClick:r,className:"bg-transparent border border-[var(--color-border-default)] rounded-[4px] px-5 py-2 text-[var(--color-text-secondary)] text-body-sm cursor-pointer transition-colors duration-base ease-out hover:bg-white/5 focus-visible:bg-white/5",children:"Cancel"}),v.jsx("button",{onClick:n,className:"bg-[var(--color-brand-subtle)] border border-[var(--color-brand-soft)] rounded-[4px] px-5 py-2 text-[var(--color-brand-default)] text-body-sm-medium cursor-pointer transition-colors duration-base ease-out hover:bg-[var(--color-brand-soft)] focus-visible:bg-[var(--color-brand-soft)]",children:"Open in new tab"})]})]})});function YL({children:e}){const[t,r]=I.useState(()=>new Map),n=I.useCallback(s=>t.get(s),[t]),i=I.useCallback(s=>{for(const o of t.values())if(s(o))return o},[t]),a=I.useCallback((s,o)=>{r(u=>{if(u.get(s)===o)return u;const l=new Map(u);return l.set(s,o),l})},[]);return v.jsx(N3.Provider,{value:{get:n,find:i,set:a},children:e})}const M4={ema:{kind:"overlay",label:"EMA",color:"#f5c842"},bb:{kind:"overlay",label:"Bollinger Bands",color:"#7c4dff"},ichimoku:{kind:"overlay",label:"Ichimoku Cloud",color:"var(--color-success-default)"},keltner:{kind:"overlay",label:"Keltner Channel",color:"#ff7043"},rsi:{kind:"subpane",label:"RSI",color:"#ab47bc"},macd:{kind:"subpane",label:"MACD",color:"#42a5f5"},adx:{kind:"subpane",label:"ADX",color:"#ffa726"},stochrsi:{kind:"subpane",label:"StochRSI",color:"#ba68c8"},obv:{kind:"subpane",label:"OBV",color:"#4fc3f7"},williamsr:{kind:"subpane",label:"WilliamsR",color:"#ec407a"},cci:{kind:"subpane",label:"CCI",color:"#9ccc65"},atr:{kind:"subpane",label:"ATR",color:"#ffd54f"},vwap:{kind:"overlay",label:"VWAP",color:"#80deea"}},XL=new Set(Object.keys(M4));function KL(e){return M4[e.toLowerCase()]}function nr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function B4(e,t=[]){let r=[];function n(a,s){const o=I.createContext(s),u=r.length;r=[...r,s];const l=h=>{var E;const{scope:f,children:d,...g}=h,y=((E=f==null?void 0:f[e])==null?void 0:E[u])||o,_=I.useMemo(()=>g,Object.values(g));return v.jsx(y.Provider,{value:_,children:d})};l.displayName=a+"Provider";function c(h,f){var y;const d=((y=f==null?void 0:f[e])==null?void 0:y[u])||o,g=I.useContext(d);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,c]}const i=()=>{const a=r.map(s=>I.createContext(s));return function(o){const u=(o==null?void 0:o[e])||a;return I.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[n,QL(i,...t)]}function QL(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=n.reduce((o,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...o,...h}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Yn=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},ZL=y3[" useInsertionEffect ".trim().toString()]||Yn;function JL({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,s]=eO({defaultProp:t,onChange:r}),o=e!==void 0,u=o?e:i;{const c=I.useRef(e!==void 0);I.useEffect(()=>{const h=c.current;h!==o&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,n])}const l=I.useCallback(c=>{var h;if(o){const f=tO(c)?c(e):c;f!==e&&((h=s.current)==null||h.call(s,f))}else a(c)},[o,e,a,s]);return[u,l]}function eO({defaultProp:e,onChange:t}){const[r,n]=I.useState(e),i=I.useRef(r),a=I.useRef(t);return ZL(()=>{a.current=t},[t]),I.useEffect(()=>{var s;i.current!==r&&((s=a.current)==null||s.call(a,r),i.current=r)},[r,i]),[r,n,a]}function tO(e){return typeof e=="function"}function n1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function F4(...e){return t=>{let r=!1;const n=e.map(i=>{const a=n1(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():n1(e[i],null)}}}}function zi(...e){return I.useCallback(F4(...e),e)}function rO(e){const t=nO(e),r=I.forwardRef((n,i)=>{const{children:a,...s}=n,o=I.Children.toArray(a),u=o.find(aO);if(u){const l=u.props.children,c=o.map(h=>h===u?I.Children.count(l)>1?I.Children.only(null):I.isValidElement(l)?l.props.children:null:h);return v.jsx(t,{...s,ref:i,children:I.isValidElement(l)?I.cloneElement(l,void 0,c):null})}return v.jsx(t,{...s,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function nO(e){const t=I.forwardRef((r,n)=>{const{children:i,...a}=r;if(I.isValidElement(i)){const s=oO(i),o=sO(a,i.props);return i.type!==I.Fragment&&(o.ref=n?F4(n,s):s),I.cloneElement(i,o)}return I.Children.count(i)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iO=Symbol("radix.slottable");function aO(e){return I.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iO}function sO(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...o)=>{const u=a(...o);return i(...o),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function oO(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var uO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ri=uO.reduce((e,t)=>{const r=rO(`Primitive.${t}`),n=I.forwardRef((i,a)=>{const{asChild:s,...o}=i,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(u,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function lO(e,t){e&&s0.flushSync(()=>e.dispatchEvent(t))}var cO="Arrow",H4=I.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return v.jsx(ri.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});H4.displayName=cO;var hO=H4;function qo(e){const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function dO(e){const[t,r]=I.useState(void 0);return Yn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,o=l.blockSize}else s=e.offsetWidth,o=e.offsetHeight;r({width:s,height:o})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Rc="Popper",[z4,U4]=B4(Rc),[fO,$4]=z4(Rc),j4=e=>{const{__scopePopper:t,children:r}=e,[n,i]=I.useState(null);return v.jsx(fO,{scope:t,anchor:n,onAnchorChange:i,children:r})};j4.displayName=Rc;var V4="PopperAnchor",q4=I.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=$4(V4,r),s=I.useRef(null),o=zi(t,s),u=I.useRef(null);return I.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||s.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:v.jsx(ri.div,{...i,ref:o})});q4.displayName=V4;var Lc="PopperContent",[mO,pO]=z4(Lc),G4=I.forwardRef((e,t)=>{var Ke,Je,Ee,pt,xt,St;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:g,...y}=e,_=$4(Lc,r),[E,w]=I.useState(null),C=zi(t,ot=>w(ot)),[M,H]=I.useState(null),D=dO(M),U=(D==null?void 0:D.width)??0,$=(D==null?void 0:D.height)??0,q=n+(a!=="center"?"-"+a:""),F=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(l)?l:[l],X=Y.length>0,de={padding:F,boundary:Y.filter(bO),altBoundary:X},{refs:ie,floatingStyles:W,placement:re,isPositioned:fe,middlewareData:Ne}=E3({strategy:"fixed",placement:q,whileElementsMounted:(...ot)=>A3(...ot,{animationFrame:d==="always"}),elements:{reference:_.anchor},middleware:[x3({mainAxis:i+$,alignmentAxis:s}),u&&_3({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?C3():void 0,...de}),u&&T3({...de}),v3({...de,apply:({elements:ot,rects:_t,availableWidth:Rr,availableHeight:pr})=>{const{width:Jr,height:xe}=_t.reference,Le=ot.floating.style;Le.setProperty("--radix-popper-available-width",`${Rr}px`),Le.setProperty("--radix-popper-available-height",`${pr}px`),Le.setProperty("--radix-popper-anchor-width",`${Jr}px`),Le.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),M&&w3({element:M,padding:o}),yO({arrowWidth:U,arrowHeight:$}),f&&k3({strategy:"referenceHidden",...de})]}),[Ve,S]=X4(re),De=qo(g);Yn(()=>{fe&&(De==null||De())},[fe,De]);const Ue=(Ke=Ne.arrow)==null?void 0:Ke.x,P=(Je=Ne.arrow)==null?void 0:Je.y,je=((Ee=Ne.arrow)==null?void 0:Ee.centerOffset)!==0,[ke,ve]=I.useState();return Yn(()=>{E&&ve(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:fe?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[(pt=Ne.transformOrigin)==null?void 0:pt.x,(xt=Ne.transformOrigin)==null?void 0:xt.y].join(" "),...((St=Ne.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(mO,{scope:r,placedSide:Ve,onArrowChange:H,arrowX:Ue,arrowY:P,shouldHideArrow:je,children:v.jsx(ri.div,{"data-side":Ve,"data-align":S,...y,ref:C,style:{...y.style,animation:fe?void 0:"none"}})})})});G4.displayName=Lc;var W4="PopperArrow",gO={top:"bottom",right:"left",bottom:"top",left:"right"},Y4=I.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=pO(W4,n),s=gO[a.placedSide];return v.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:v.jsx(hO,{...i,ref:r,style:{...i.style,display:"block"}})})});Y4.displayName=W4;function bO(e){return e!==null}var yO=e=>({name:"transformOrigin",options:e,fn(t){var _,E,w;const{placement:r,rects:n,middlewareData:i}=t,s=((_=i.arrow)==null?void 0:_.centerOffset)!==0,o=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,c]=X4(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((E=i.arrow)==null?void 0:E.x)??0)+o/2,d=(((w=i.arrow)==null?void 0:w.y)??0)+u/2;let g="",y="";return l==="bottom"?(g=s?h:`${f}px`,y=`${-u}px`):l==="top"?(g=s?h:`${f}px`,y=`${n.floating.height+u}px`):l==="right"?(g=`${-u}px`,y=s?h:`${d}px`):l==="left"&&(g=`${n.floating.width+u}px`,y=s?h:`${d}px`),{data:{x:g,y}}}});function X4(e){const[t,r="center"]=e.split("-");return[t,r]}var EO=j4,xO=q4,_O=G4,TO=Y4,vO="Portal",K4=I.forwardRef((e,t)=>{var o;const{container:r,...n}=e,[i,a]=I.useState(!1);Yn(()=>a(!0),[]);const s=r||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return s?S3.createPortal(v.jsx(ri.div,{...n,ref:t}),s):null});K4.displayName=vO;function wO(e,t){return I.useReducer((r,n)=>t[r][n]??r,e)}var Oc=e=>{const{present:t,children:r}=e,n=kO(t),i=typeof r=="function"?r({present:n.isPresent}):I.Children.only(r),a=zi(n.ref,AO(i));return typeof r=="function"||n.isPresent?I.cloneElement(i,{ref:a}):null};Oc.displayName="Presence";function kO(e){const[t,r]=I.useState(),n=I.useRef(null),i=I.useRef(e),a=I.useRef("none"),s=e?"mounted":"unmounted",[o,u]=wO(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const l=ys(n.current);a.current=o==="mounted"?l:"none"},[o]),Yn(()=>{const l=n.current,c=i.current;if(c!==e){const f=a.current,d=ys(l);e?u("MOUNT"):d==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Yn(()=>{if(t){let l;const c=t.ownerDocument.defaultView??window,h=d=>{const y=ys(n.current).includes(CSS.escape(d.animationName));if(d.target===t&&y&&(u("ANIMATION_END"),!i.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",l=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},f=d=>{d.target===t&&(a.current=ys(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{c.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:I.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function ys(e){return(e==null?void 0:e.animationName)||"none"}function AO(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function CO(e,t=globalThis==null?void 0:globalThis.document){const r=qo(e);I.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var SO="DismissableLayer",n0="dismissableLayer.update",IO="dismissableLayer.pointerDownOutside",NO="dismissableLayer.focusOutside",i1,Q4=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Z4=I.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...u}=e,l=I.useContext(Q4),[c,h]=I.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=I.useState({}),g=zi(t,U=>h(U)),y=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),E=y.indexOf(_),w=c?y.indexOf(c):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,M=w>=E,H=OO(U=>{const $=U.target,q=[...l.branches].some(F=>F.contains($));!M||q||(i==null||i(U),s==null||s(U),U.defaultPrevented||o==null||o())},f),D=DO(U=>{const $=U.target;[...l.branches].some(F=>F.contains($))||(a==null||a(U),s==null||s(U),U.defaultPrevented||o==null||o())},f);return CO(U=>{w===l.layers.size-1&&(n==null||n(U),!U.defaultPrevented&&o&&(U.preventDefault(),o()))},f),I.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(i1=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),a1(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=i1)}},[c,f,r,l]),I.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),a1())},[c,l]),I.useEffect(()=>{const U=()=>d({});return document.addEventListener(n0,U),()=>document.removeEventListener(n0,U)},[]),v.jsx(ri.div,{...u,ref:g,style:{pointerEvents:C?M?"auto":"none":void 0,...e.style},onFocusCapture:nr(e.onFocusCapture,D.onFocusCapture),onBlurCapture:nr(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:nr(e.onPointerDownCapture,H.onPointerDownCapture)})});Z4.displayName=SO;var RO="DismissableLayerBranch",LO=I.forwardRef((e,t)=>{const r=I.useContext(Q4),n=I.useRef(null),i=zi(t,n);return I.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),v.jsx(ri.div,{...e,ref:i})});LO.displayName=RO;function OO(e,t=globalThis==null?void 0:globalThis.document){const r=qo(e),n=I.useRef(!1),i=I.useRef(()=>{});return I.useEffect(()=>{const a=o=>{if(o.target&&!n.current){let u=function(){J4(IO,r,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function DO(e,t=globalThis==null?void 0:globalThis.document){const r=qo(e),n=I.useRef(!1);return I.useEffect(()=>{const i=a=>{a.target&&!n.current&&J4(NO,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function a1(){const e=new CustomEvent(n0);document.dispatchEvent(e)}function J4(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?lO(i,a):i.dispatchEvent(a)}var Ju,Go="HoverCard",[e3]=B4(Go,[U4]),Wo=U4(),[PO,Yo]=e3(Go),t3=e=>{const{__scopeHoverCard:t,children:r,open:n,defaultOpen:i,onOpenChange:a,openDelay:s=700,closeDelay:o=300}=e,u=Wo(t),l=I.useRef(0),c=I.useRef(0),h=I.useRef(!1),f=I.useRef(!1),[d,g]=JL({prop:n,defaultProp:i??!1,onChange:a,caller:Go}),y=I.useCallback(()=>{clearTimeout(c.current),l.current=window.setTimeout(()=>g(!0),s)},[s,g]),_=I.useCallback(()=>{clearTimeout(l.current),!h.current&&!f.current&&(c.current=window.setTimeout(()=>g(!1),o))},[o,g]),E=I.useCallback(()=>g(!1),[g]);return I.useEffect(()=>()=>{clearTimeout(l.current),clearTimeout(c.current)},[]),v.jsx(PO,{scope:t,open:d,onOpenChange:g,onOpen:y,onClose:_,onDismiss:E,hasSelectionRef:h,isPointerDownOnContentRef:f,children:v.jsx(EO,{...u,children:r})})};t3.displayName=Go;var r3="HoverCardTrigger",n3=I.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=Yo(r3,r),a=Wo(r);return v.jsx(xO,{asChild:!0,...a,children:v.jsx(ri.a,{"data-state":i.open?"open":"closed",...n,ref:t,onPointerEnter:nr(e.onPointerEnter,oo(i.onOpen)),onPointerLeave:nr(e.onPointerLeave,oo(i.onClose)),onFocus:nr(e.onFocus,i.onOpen),onBlur:nr(e.onBlur,i.onClose),onTouchStart:nr(e.onTouchStart,s=>s.preventDefault())})})});n3.displayName=r3;var Dc="HoverCardPortal",[MO,BO]=e3(Dc,{forceMount:void 0}),i3=e=>{const{__scopeHoverCard:t,forceMount:r,children:n,container:i}=e,a=Yo(Dc,t);return v.jsx(MO,{scope:t,forceMount:r,children:v.jsx(Oc,{present:r||a.open,children:v.jsx(K4,{asChild:!0,container:i,children:n})})})};i3.displayName=Dc;var so="HoverCardContent",a3=I.forwardRef((e,t)=>{const r=BO(so,e.__scopeHoverCard),{forceMount:n=r.forceMount,...i}=e,a=Yo(so,e.__scopeHoverCard);return v.jsx(Oc,{present:n||a.open,children:v.jsx(FO,{"data-state":a.open?"open":"closed",...i,onPointerEnter:nr(e.onPointerEnter,oo(a.onOpen)),onPointerLeave:nr(e.onPointerLeave,oo(a.onClose)),ref:t})})});a3.displayName=so;var FO=I.forwardRef((e,t)=>{const{__scopeHoverCard:r,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,...o}=e,u=Yo(so,r),l=Wo(r),c=I.useRef(null),h=zi(t,c),[f,d]=I.useState(!1);return I.useEffect(()=>{if(f){const g=document.body;return Ju=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=Ju,g.style.webkitUserSelect=Ju}}},[f]),I.useEffect(()=>{if(c.current){const g=()=>{d(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var _;((_=document.getSelection())==null?void 0:_.toString())!==""&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),I.useEffect(()=>{c.current&&UO(c.current).forEach(y=>y.setAttribute("tabindex","-1"))}),v.jsx(Z4,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:nr(a,g=>{g.preventDefault()}),onDismiss:u.onDismiss,children:v.jsx(_O,{...l,...o,onPointerDown:nr(o.onPointerDown,g=>{g.currentTarget.contains(g.target)&&d(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:h,style:{...o.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),HO="HoverCardArrow",zO=I.forwardRef((e,t)=>{const{__scopeHoverCard:r,...n}=e,i=Wo(r);return v.jsx(TO,{...i,...n,ref:t})});zO.displayName=HO;function oo(e){return t=>t.pointerType==="touch"?void 0:e()}function UO(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t}var s3=t3,o3=n3,u3=i3,l3=a3;const c3=300,h3=180,$O=300,d3=140,jO=d3+l1+4;function i0(e,t){return{height:e,width:c3,layout:{background:{type:p1.Solid,color:f1},textColor:d1,fontFamily:h1,fontSize:c1},grid:{vertLines:{color:Ns},horzLines:{color:Ns}},crosshair:{mode:m1.Normal},rightPriceScale:{borderColor:ya,scaleMargins:{top:.05,bottom:.05}},timeScale:{borderColor:ya,timeVisible:!0,secondsVisible:!1,visible:t},handleScroll:{vertTouchDrag:!1}}}function VO(e){return e.startsWith("rgba(")||e.startsWith("#")?e:e.startsWith("rgb(")?e.replace("rgb(","rgba(").replace(")",", 0.5)"):e}function s1(e,t,r){const n=Rs(e,i0(h3,!0));n.addSeries(l0,{upColor:Vr,downColor:qr,borderDownColor:qr,borderUpColor:Vr,wickDownColor:qr,wickUpColor:Vr}).setData(t.candles);const a=r.toLowerCase();if(a==="ema")for(const u of t.lineOverlays)u.label.toLowerCase().startsWith("ema")&&n.addSeries(Bn,{color:u.color,lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(u.data);else{const u=t.lineOverlays.find(l=>l.label.toLowerCase()===a);u&&n.addSeries(Bn,{color:u.color,lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(u.data);for(const l of t.bandOverlays)if(l.label.toLowerCase()===a){const c=VO(l.color);n.addSeries(Bn,{color:c,lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(l.upperData),n.addSeries(Bn,{color:c,lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(l.lowerData)}}const s=t.candles.length,o=Math.min(50,s);return n.timeScale().setVisibleLogicalRange({from:s-o,to:s-1}),n}function qO(e,t,r,n){const i=Rs(e,i0(d3,!1));i.addSeries(l0,{upColor:Vr,downColor:qr,borderDownColor:qr,borderUpColor:Vr,wickDownColor:qr,wickUpColor:Vr}).setData(r.candles);const s=Rs(t,{...i0(l1,!0),rightPriceScale:{borderColor:ya,scaleMargins:{top:.1,bottom:.1}}});n.type==="macd"?(n.histogramData&&n.histogramData.length>0&&s.addSeries(O3,{priceFormat:{type:"price",precision:2,minMove:.01},priceLineVisible:!1,lastValueVisible:!1}).setData(n.histogramData),n.data.length>0&&s.addSeries(Bn,{color:n.color,lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(n.data),n.signalData&&n.signalData.length>0&&s.addSeries(Bn,{color:"#ff9800",lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(n.signalData)):s.addSeries(Bn,{color:n.color,lineWidth:1,priceLineVisible:!1,lastValueVisible:!1,crosshairMarkerVisible:!1}).setData(n.data);const o=r.candles.length,u=Math.min(50,o),l={from:o-u,to:o-1};return i.timeScale().setVisibleLogicalRange(l),s.timeScale().setVisibleLogicalRange(l),[i,s]}const GO=I.memo(function({data:t,indicatorName:r,indicatorKind:n}){const i=I.useRef(null),a=I.useRef(null);I.useEffect(()=>{const l=i.current;if(!l||t.candles.length===0)return;if(n==="overlay"){const y=s1(l,t,r);return()=>{y.remove()}}const c=r.toLowerCase(),h=t.subPanes.find(y=>y.label.toLowerCase()===c);if(!h){const y=s1(l,t,r);return()=>{y.remove()}}const f=a.current;if(!f)return;const[d,g]=qO(l,f,t,h);return()=>{d.remove(),g.remove()}},[t,r,n]);const s=n==="subpane",o=s?$O:c3,u=s?jO:h3;return v.jsxs("div",{className:"overflow-hidden rounded-[4px] bg-[var(--color-surface-canvas)]",style:{width:o,height:u},children:[v.jsx("div",{ref:i,style:{width:o}}),s&&v.jsx("div",{ref:a,className:"mt-1",style:{width:o}})]})});function WO({data:e,indicatorName:t,indicatorKind:r,children:n}){return v.jsxs(s3,{openDelay:300,closeDelay:100,children:[v.jsx(o3,{asChild:!0,children:n}),v.jsx(u3,{children:v.jsx(l3,{side:"top",align:"center",sideOffset:6,className:"z-[9998] overflow-hidden rounded-[2px] border border-[rgba(121,121,121,0.15)] bg-[var(--color-surface-canvas)] shadow-[0_8px_32px_rgba(0,0,0,0.6)]",children:v.jsx(GO,{data:e,indicatorName:t,indicatorKind:r})})})]})}const YO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAE/UlEQVR4nO1YW0xcRRj+Zs5eD8uyuyDXUiMVsUCJpl7iJVobKyleaIi3mvCoibExjTEhfZDoqokxXtBAok9GqalJjSkt+KA0VoigPogCQg0SJIRyv+yye/Z6zphzoJRl4ezuWVhe9ksmm/n239n/m5n/n38GSCONNNJIIwkQtS8HBwcNglFwAqyegBQKXi/4jIwIm93iGNg1gLTyAb6xsrIyuJ2POjUBfqPgpIQ0XNdJCFHaRuwWR0AKATT4jQIDcGY7H6maABBSvz7gHjVQUq/mouoKcJQr3Dw7lERq3m0uLKFIswBB8EYNnkqOMaC5ywfNAiyWzIi+1+tBRoYlZdwXvSvoHAlrF0CxxfKmiOsYFPD1716QTVssIQGpyjgbIfd/Gw+i6YobiOF8HAKiZ2e3uZE5hje/d0FkVMneZXl6zGkV4PG5NynaXW7KzeDsDCAgKuqQl0nxxjE9qrUKyMqwRfTdggtWPmtXOJdPgvPHRSz7iOK81UTxUZ0D++26JLbQFgGmlWv9Q0Tb4BwO5ulx9FYTHjpghG7NzhdieP2iCxMuCaAUJh3BByccuNmuV3U+pgC6RYBp4abcIs7/JUFiBH2TYfRNetDU7UV5HsFjZT70/BfAP3OiEg8cAd4+bkNlviGm8zEF7FR2uTDohySvyAYzkQED03JbO8jWgvml+zg8WGKKy/mYAtx+V5RjiXIhEbg4FFp38EQFxdgiw8AMgyRF/t8Ld1LUVnJR42kWYOcdEf1l3xJsZntCXMdVP9xBOacDRVkcGo5mgxJgySehY3gJPeMcRubCqK0w4ZX7LXD5o8fb0y307YB/ffbrDmWAk70H4OA5PFnOof6wPeZ4alA96uQMsbHJs6h8MoqmbgFHPl9Ecy+DKG1td3VGwvCspASnUU9RW27e0o7E4jQL2KZGb/nVh3P9AfjCBJeGCV6+4IIrwKLszv+9NvuE4sgBCpuZ03YnUIHqt/0Tf8q3oQi0DQHNPdG2RVbgnWpg39pZ5QkAz58DAmvFZHMtUHYTNKGq+A6iKQayzZH/+M3APFp6lTVWUJrD4d95EbLKyRXgtXaKj5/IxD7bMn4esyAgehXbijwdbs8NwWHKiRhv0T8fF7cjW6h7PIQPf6FgchBSgsPFBpx91o7GRwlMBqpwS0GGF9vcuDxK8N2QX+Hk9lyVOblrZbIncf9MGGd+ECAxKpcpKM3m8EmNVTnyHy6R+1k43eHBgk+Sr4B4r2v193LwZpkIjt9mwkrIo/lkTyoLjS4ynGoX4BPlrUNRbNPhs6eyYDVyq1mCEFTlGdD6tA23OHTrQXu91ZXzMHKrdpuzC4mTU/dRBZdHhtir7RwWhNW+3czw6ePieqBuhicINHZy6JtaHVbeQWefCaMg8maaMA7mVxBNAu5uGWVKhQgg00jQVBPCvQWRgT0fmEWOMXe9HxIZ3upaxE9jOpysNOLUPaYt7RLhcmw52rLQhHzXkA8hHdBSY8H+7IXooFLK9xucQUdw+gER7x7NUbVLiEumlJDL2/eP8birSI+5QOpe5uJFzDux8xEe1SWGlL9KxAtVqc4ro+zkIfV3mVSgNLtMWxC7Pe6IUmI2OI1cQz5SzVktVm1BTAiZIiAFe/k2ysCm1XxU3WwU9KtkSoCdaBT0SzUfVVeA5/lGwS/IQ8lP3AWpyDjkBneNgbXyZr5Rzcc00kgjjTSQDP4H+Yvkqb5uHfkAAAAASUVORK5CYII=";function f3({size:e=18}){return v.jsx("img",{src:YO,width:e,height:e,alt:"","aria-hidden":"true"})}function XO(e,t){const r=t.toLowerCase();return r==="ema"?e.lineOverlays.some(n=>n.label.toLowerCase().startsWith("ema")):e.lineOverlays.some(n=>n.label.toLowerCase()===r)||e.bandOverlays.some(n=>n.label.toLowerCase()===r)||e.subPanes.some(n=>n.label.toLowerCase()===r)}function KO({name:e,children:t}){const r=o0(),n=u0(),i=(e==null?void 0:e.toLowerCase().trim().replace(/^user-content-/,""))??"",a=KL(i);if(!XL.has(i)||!a)return v.jsx(v.Fragment,{children:t});let s;if(r&&(s=r.find(u=>XO(u,i))),!s)return v.jsx(v.Fragment,{children:t});const o=()=>{!n||!s||n.open({symbol:s.symbol,interval:s.interval,focus:{kind:"indicator",name:i}})};return v.jsxs("span",{className:"inline-flex items-center gap-1",children:[v.jsx("span",{className:"font-semibold text-[#42a5f5]",children:t}),v.jsx(WO,{data:s,indicatorName:i,indicatorKind:a.kind,children:v.jsx("span",{onClick:o,className:"cursor-pointer",children:v.jsx(f3,{})})})]})}const el=300,o1=180,QO="#ffeb3b",ZO=I.memo(function({data:t,price:r,side:n}){const i=I.useRef(null);return I.useEffect(()=>{const a=i.current;if(!a||t.candles.length===0)return;const s=Rs(a,{height:o1,width:el,layout:{background:{type:p1.Solid,color:f1},textColor:d1,fontFamily:h1,fontSize:c1},grid:{vertLines:{color:Ns},horzLines:{color:Ns}},crosshair:{mode:m1.Normal},rightPriceScale:{borderColor:ya,scaleMargins:{top:.05,bottom:.05}},timeScale:{borderColor:ya,timeVisible:!0,secondsVisible:!1},handleScroll:{vertTouchDrag:!1}}),o=s.addSeries(l0,{upColor:Vr,downColor:qr,borderDownColor:qr,borderUpColor:Vr,wickDownColor:qr,wickUpColor:Vr});o.setData(t.candles);const u=t.candles.length,l=Math.min(50,u),c=u-l,h=u-1;s.timeScale().setVisibleLogicalRange({from:c,to:h});const f=t.candles.slice(c,h+1),d=Math.min(...f.map(w=>w.low)),g=Math.max(...f.map(w=>w.high)),y=g-d||g*.01;if((r>g?r-g:r<d?d-r:0)>0){const w=y*.08,C=Math.min(d,r)-w,M=Math.max(g,r)+w;o.applyOptions({autoscaleInfoProvider:()=>({priceRange:{minValue:C,maxValue:M}})})}const E=n==="support"?Bc:n==="resistance"?Fc:QO;o.createPriceLine({price:r,color:E,lineWidth:2,lineStyle:Hc.Solid,axisLabelVisible:!0,title:""});for(const w of t.levels){if(Math.abs(w.price-r)<1e-4)continue;const C=w.side==="support"?Bc:Fc;o.createPriceLine({price:w.price,color:C+"55",lineWidth:1,lineStyle:Hc.Dashed,axisLabelVisible:!1,title:""})}return()=>{s.remove()}},[t,r,n]),v.jsx("div",{className:"overflow-hidden rounded-[4px] bg-[var(--color-surface-canvas)]",style:{width:el,height:o1},children:v.jsx("div",{ref:i,style:{width:el}})})});function JO({data:e,price:t,side:r,children:n}){return v.jsxs(s3,{openDelay:300,closeDelay:100,children:[v.jsx(o3,{asChild:!0,children:n}),v.jsx(u3,{children:v.jsx(l3,{side:"top",align:"center",sideOffset:6,className:"z-[9998] overflow-hidden rounded-[2px] border border-[rgba(121,121,121,0.15)] bg-[var(--color-surface-canvas)] shadow-[0_8px_32px_rgba(0,0,0,0.6)]",children:v.jsx(ZO,{data:e,price:t,side:r})})})]})}const eD=.005;function tD(e){if(!e)return null;const t=e.replace(/[,_\s$]/g,""),r=Number.parseFloat(t);return Number.isFinite(r)?r:null}function rD(e,t){const r=t*eD,n=e.find(a=>a.levels.some(s=>Math.abs(s.price-t)<=r));if(n){const a=n.levels.find(s=>Math.abs(s.price-t)<=r);return{data:n,level:a}}const i=e.find(a=>{if(a.candles.length===0)return!1;const s=a.candles.flatMap(l=>[l.low,l.high]),o=Math.min(...s),u=Math.max(...s);return t>=o*.9&&t<=u*1.1});return i?{data:i}:null}function nD({price:e,children:t}){var u;const r=o0(),n=u0(),i=tD(e);if(i===null||!r)return v.jsx(v.Fragment,{children:t});const a=rD(r,i);if(!a)return v.jsx(v.Fragment,{children:t});const s=(u=a.level)==null?void 0:u.side,o=()=>{n&&n.open({symbol:a.data.symbol,interval:a.data.interval,focus:{kind:"level",price:i}})};return v.jsxs("span",{className:"inline-flex items-center gap-1",children:[v.jsx("span",{className:"font-semibold text-[#42a5f5]",children:t}),v.jsx(JO,{data:a.data,price:i,side:s,children:v.jsx("span",{onClick:o,className:"cursor-pointer",children:v.jsx(f3,{})})})]})}const iD=/(```[\s\S]*?```|`[^`\n]+`)/g,aD=/\\\[([\s\S]*?)\\\]/g,sD=/\\\(([\s\S]*?)\\\)/g,oD=/\$(\d{1,3}(?:,\d{3})+(?:\.\d+)?|\d+\.\d+|\d+[KMBkmb])/g;function uD(e){return lD(e)?e.split(iD).map((t,r)=>r%2===1?t:cD(t)).join(""):e}function lD(e){return e.includes("\\[")||e.includes("\\(")||e.includes("$")}function cD(e){return e.replace(oD,"\\$$$1").replace(aD,(t,r)=>`
545
+
546
+ $$
547
+ ${r.trim()}
548
+ $$
549
+
550
+ `).replace(sD,(t,r)=>`$${r.trim()}$`)}const hD=P4({singleDollarTextMath:!0});function dD(e){const t=a0(e);if(!t)return null;const r={};for(const n of t.split(/\r?\n/)){const i=/^\s*(symbol|interval|indicators)\s*:\s*(.+?)\s*$/i.exec(n);if(!i)continue;const a=i[1].toLowerCase();r[a]||(r[a]=i[2])}return r.symbol?r:null}function a0(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return String(e);if(Array.isArray(e))return e.map(a0).join("");if(I.isValidElement(e)){const t=e.props.children;return I.Children.toArray(t).map(a0).join("")}return""}function fD({symbol:e,interval:t,indicators:r,children:n}){const{data:i,loading:a,error:s}=R3(e,t,r),o=o0(),u=u0();I.useEffect(()=>{i&&o&&o.set(L3(e,t,r),i)},[i,o,e,t,r]);const l=t?`${e.toUpperCase()} · ${t}`:e.toUpperCase(),c=()=>{i&&u&&u.open({symbol:i.symbol,interval:i.interval})},h=!i||a||!!s,f=v.jsxs("button",{type:"button",onClick:c,disabled:h,"aria-label":`Open ${l} chart`,className:"my-1.5 inline-flex items-center gap-1.5 px-2 py-1 rounded-[4px] bg-[var(--color-surface-base)] border border-[var(--color-border-default)] text-footnote transition-colors duration-fast ease-out "+(h?"text-[var(--color-text-secondary)] cursor-default opacity-70":"text-[var(--color-text-primary)] cursor-pointer hover:border-[var(--color-brand-default)] hover:text-[var(--color-brand-default)] focus-visible:border-[var(--color-brand-default)] focus-visible:text-[var(--color-brand-default)]"),children:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[v.jsx("path",{d:"M3 3v18h18"}),v.jsx("path",{d:"M7 14l4-4 4 4 5-5"})]}),v.jsx("span",{children:a?"Loading chart…":s?`${l} (unavailable)`:l}),!h&&v.jsx("span",{"aria-hidden":"true",children:"→"})]});return v.jsxs(v.Fragment,{children:[n,f]})}const mD={pct:["dir"],price:[],pnl:["dir"],lev:[],side:["dir"],tag:["type"],risk:["level"],verdict:["type"],chart:["symbol","interval","indicators","levels","focus-time","focus-price"],ind:["name"],lvl:["price"],asks:[],question:[],title:[],options:[],option:[]},pD={pct:({dir:e,children:t})=>v.jsx("span",{className:e==="up"?"trade-pct-up":"trade-pct-down",children:t}),price:({children:e})=>v.jsx("span",{className:"trade-price",children:e}),pnl:({dir:e,children:t})=>v.jsx("span",{className:e==="up"?"trade-pnl-up":"trade-pnl-down",children:t}),lev:({children:e})=>v.jsx("span",{className:"trade-leverage",children:e}),side:({dir:e,children:t})=>v.jsx("span",{className:e==="long"?"trade-long":"trade-short",children:t}),tag:({type:e,children:t})=>v.jsx("span",{className:`trade-tag trade-tag-${e??"entry"}`,children:t}),risk:({level:e,children:t})=>v.jsx("span",{className:`trade-risk trade-risk-${e??"medium"}`,children:t}),verdict:({type:e,children:t})=>v.jsx("span",{className:`trade-verdict trade-verdict-${e??"neutral"}`,children:t}),ind:({name:e,children:t})=>v.jsx(KO,{name:e,children:t}),lvl:({price:e,children:t})=>v.jsx(nD,{price:e,children:t}),chart:({children:e,...t})=>{const r=t.symbol?null:dD(e),n=String(t.symbol??(r==null?void 0:r.symbol)??""),i=t.interval?String(t.interval):r==null?void 0:r.interval,a=t.indicators?String(t.indicators):r==null?void 0:r.indicators;return v.jsx(fD,{symbol:n,interval:i,indicators:a,children:r?null:e})}},gD={asks:({children:e})=>v.jsx(v.Fragment,{children:e}),question:({children:e})=>v.jsx(v.Fragment,{children:e}),title:({children:e})=>v.jsx(v.Fragment,{children:e}),options:()=>null,option:()=>null},bD={table:({children:e})=>v.jsx("div",{className:"overflow-x-auto my-3",children:v.jsx("table",{className:"w-full border-collapse text-body-md border border-white/[0.08] rounded-[4px]",children:e})}),th:({children:e})=>v.jsx("th",{className:"px-3 py-1.5 text-left text-label-sm uppercase tracking-wider text-slate-400 border-b border-white/10 bg-white/5",children:e}),td:({children:e})=>v.jsx("td",{className:"px-3 py-1.5 text-left text-body-md tabular-nums border-b border-white/[0.06]",children:e})},yD={code:vN,math:hD},ED={...pD,...gD,...bD},xD={enabled:!0,renderModal:({isOpen:e,onClose:t,onConfirm:r,url:n})=>e?v.jsx(WL,{url:n,onClose:t,onConfirm:r}):null},_D=["ind","lvl"];function TD({content:e,streaming:t}){const r=uD(e);return v.jsx(YL,{children:v.jsx("div",{className:"chat-md",children:v.jsx(Ig,{mode:t?"streaming":"static",components:ED,allowedTags:mD,literalTagContent:_D,plugins:yD,linkSafety:xD,isAnimating:t,caret:"block",children:r})})})}const zD=Object.freeze(Object.defineProperty({__proto__:null,StreamingMarkdown:TD},Symbol.toStringTag,{value:"Module"})),vD=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:Ng},Symbol.toStringTag,{value:"Module"}));export{gw as A,PD as L,Gt as R,zD as S};