@wangcansun/cc-config 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +364 -0
  2. package/cli.mjs +40202 -0
  3. package/dashboard/dist/client/assets/activity-DS5YBWMm.js +1 -0
  4. package/dashboard/dist/client/assets/commands-DhNv8XVR.js +1 -0
  5. package/dashboard/dist/client/assets/dashboard-DIyDYrl6.js +1 -0
  6. package/dashboard/dist/client/assets/detail-panel-C8SGLgm-.js +1 -0
  7. package/dashboard/dist/client/assets/header-CBzSNzdI.js +1 -0
  8. package/dashboard/dist/client/assets/index-CFEz1CGb.js +14 -0
  9. package/dashboard/dist/client/assets/index-CHtRMAMT.css +1 -0
  10. package/dashboard/dist/client/assets/index-CaDf51H6.js +76 -0
  11. package/dashboard/dist/client/assets/markdown-viewer-Bj8nSOSJ.js +17 -0
  12. package/dashboard/dist/client/assets/mcp-BX69kbwu.js +1 -0
  13. package/dashboard/dist/client/assets/plugins-BslRzmVr.js +2 -0
  14. package/dashboard/dist/client/assets/profiles-CfOCpDPJ.js +2 -0
  15. package/dashboard/dist/client/assets/recommended-BAj0agKu.js +1 -0
  16. package/dashboard/dist/client/assets/search-box-CqaIZ9mR.js +1 -0
  17. package/dashboard/dist/client/assets/select-BtWQJMup.js +1 -0
  18. package/dashboard/dist/client/assets/settings-CicCcNf_.js +1 -0
  19. package/dashboard/dist/client/assets/skills-DML4G4BP.js +1 -0
  20. package/dashboard/dist/client/assets/tag-Q3V7Jugn.js +1 -0
  21. package/dashboard/dist/client/favicon.ico +0 -0
  22. package/dashboard/dist/client/icon-192.png +0 -0
  23. package/dashboard/dist/client/icon-32.png +0 -0
  24. package/dashboard/dist/client/icon-512.png +0 -0
  25. package/dashboard/dist/client/icon.png +0 -0
  26. package/dashboard/dist/client/index.html +19 -0
  27. package/dashboard/dist/server.mjs +41832 -0
  28. package/mcp/server.mjs +26607 -0
  29. package/package.json +36 -0
@@ -0,0 +1 @@
1
+ import{u as A,a as P,r as m,j as e,N as $}from"./index-CaDf51H6.js";import{H as B}from"./header-CBzSNzdI.js";import{S as M}from"./search-box-CqaIZ9mR.js";import{T as p}from"./tag-Q3V7Jugn.js";function S(t){if(!t)return"unknown";const r=Date.now()-t,n=Math.floor(r/1e3);if(n<30)return"just now";if(n<60)return`${n}s ago`;const c=Math.floor(n/60);if(c<60)return`${c}m ago`;const i=Math.floor(c/60);if(i<24)return`${i}h ago`;const o=Math.floor(i/24);if(o<30)return`${o}d ago`;const d=new Date(t);return`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][d.getMonth()]} ${d.getDate()}`}function R(t,a=60){return t.length<=a?t:"..."+t.slice(t.length-a+3)}function T(t,a=120){if(!t)return"";const r=t.replace(/\n/g," ").trim();return r.length<=a?r:r.slice(0,a)+"..."}function k(t){return`claude --resume ${t}`}function L({sessionId:t,size:a="sm"}){const[r,n]=m.useState(!1),c=o=>{o.stopPropagation(),navigator.clipboard.writeText(k(t)),n(!0),window.setTimeout(()=>n(!1),1500)},i=a==="sm";return e.jsx("button",{onClick:c,className:"inline-flex items-center gap-1 rounded transition-colors hover:bg-bg-hover",style:{padding:i?"2px 6px":"4px 10px",fontSize:i?"11px":"12px",color:r?"var(--status-green)":"var(--text-muted)",border:"1px solid var(--card-border)"},title:r?"Copied!":`Copy: ${k(t)}`,children:r?e.jsxs(e.Fragment,{children:[e.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Copied"]}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Resume"]})})}function C({icon:t,label:a,count:r,defaultOpen:n,labelColor:c,children:i}){const[o,d]=m.useState(n??!0);return e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsxs("button",{className:"w-full flex items-center justify-between px-5 py-3 text-left transition-colors hover:bg-bg-hover",style:{borderBottom:o?"1px solid var(--border)":"none"},onClick:()=>d(!o),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-base",children:t}),e.jsx("span",{className:"text-sm font-medium",style:{color:c??"var(--text-muted)"},children:a}),e.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--border)",color:"var(--text-secondary)"},children:r})]}),e.jsx("svg",{className:"w-4 h-4 transition-transform",style:{color:"var(--text-muted)",transform:o?"rotate(0deg)":"rotate(-90deg)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),o&&e.jsx("div",{children:i})]})}function b({session:t,isLast:a,onClick:r}){var n,c,i;return e.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer transition-colors hover:bg-bg-hover",style:{borderBottom:a?"none":"1px solid var(--border)"},onClick:r,children:[e.jsx("span",{className:"inline-block w-2.5 h-2.5 rounded-full shrink-0 mt-1.5",style:{backgroundColor:t.alive?"var(--status-green)":"var(--text-muted)"}}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[t.name?e.jsx("span",{className:"text-sm font-medium truncate max-w-full",style:{color:"var(--text-primary)"},title:t.name,children:t.name}):e.jsx("span",{className:"font-mono text-sm font-medium",style:{color:"var(--accent-light)"},children:t.sessionId}),t.pid>0&&e.jsx(p,{label:`PID ${t.pid}`,variant:"gray"}),t.ide&&e.jsx(p,{label:`${t.ide.name} (${t.ide.transport})`,variant:"purple"}),((n=t.projectConfig)==null?void 0:n.hasClaudeMd)&&e.jsx("span",{className:"text-xs",style:{color:"var(--text-secondary)"},title:"CLAUDE.md",children:"📄"}),((c=t.projectConfig)==null?void 0:c.hasMcpJson)&&e.jsx("span",{className:"text-xs",style:{color:"var(--text-secondary)"},title:".mcp.json",children:"🔌"}),((i=t.projectConfig)==null?void 0:i.hasProjectSettings)&&e.jsx("span",{className:"text-xs",style:{color:"var(--text-secondary)"},title:"Project Settings",children:"⚙️"}),e.jsx("span",{className:"ml-auto",children:e.jsx(L,{sessionId:t.sessionId})})]}),t.name&&e.jsx("p",{className:"font-mono text-xs truncate",style:{color:"var(--text-muted)"},children:t.sessionId}),e.jsx("p",{className:"font-mono text-xs truncate",style:{color:"var(--text-secondary)"},children:t.cwd}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[e.jsx("span",{className:"text-xs shrink-0",style:{color:"var(--text-muted)"},children:S(t.startedAt)}),t.lastMessage&&e.jsxs("span",{className:"text-sm truncate",style:{color:"var(--text-secondary)"},children:["💬 ",T(t.lastMessage)]})]})]}),e.jsx("svg",{className:"w-4 h-4 shrink-0 mt-0.5",style:{color:"var(--text-muted)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})}function E({session:t,onClose:a}){const r=t!==null,n=m.useCallback(c=>{c.key==="Escape"&&a()},[a]);return m.useEffect(()=>{if(r)return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r,n]),e.jsxs(e.Fragment,{children:[r&&e.jsx("div",{className:"fixed inset-0 z-40",style:{backgroundColor:"var(--overlay-bg)"},onClick:a}),e.jsx("div",{className:"fixed top-0 right-0 z-50 h-full flex flex-col",style:{width:"60%",minWidth:"480px",maxWidth:"900px",backgroundColor:"var(--bg-secondary)",borderLeft:"1px solid var(--card-border)",transform:r?"translateX(0)":"translateX(100%)",transition:"transform 0.25s ease-in-out",boxShadow:r?"-8px 0 32px rgba(0, 0, 0, 0.4)":"none"},children:t&&e.jsx(F,{session:t,onClose:a})})]})}function F({session:t,onClose:a}){const{data:r,isLoading:n}=$(t.historyFile??null),[c,i]=m.useState(""),o=m.useMemo(()=>{if(!r)return[];if(!c.trim())return r;const d=c.toLowerCase();return r.filter(u=>u.text.toLowerCase().includes(d))},[r,c]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 shrink-0 gap-3",style:{borderBottom:"1px solid var(--border)"},children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[e.jsx("span",{className:"inline-block w-3 h-3 rounded-full shrink-0",style:{backgroundColor:t.alive?"var(--status-green)":"var(--text-muted)"}}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-base font-medium truncate",style:{color:"var(--text-primary)"},title:t.name??void 0,children:t.name??(t.pid>0?`PID ${t.pid}`:"Session")}),e.jsx(p,{label:t.alive?"Running":"Terminated",variant:t.alive?"green":"gray"}),t.ide&&e.jsx(p,{label:`${t.ide.name} (${t.ide.transport})`,variant:"purple"})]}),t.name&&t.pid>0&&e.jsxs("p",{className:"text-xs mt-0.5",style:{color:"var(--text-muted)"},children:["PID ",t.pid]})]})]}),e.jsx(L,{sessionId:t.sessionId,size:"md"}),e.jsx("button",{className:"w-8 h-8 rounded-lg flex items-center justify-center shrink-0 transition-colors hover:bg-bg-hover",style:{color:"var(--text-secondary)"},onClick:a,children:e.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-5 space-y-6",children:[e.jsxs("section",{children:[e.jsx("h3",{className:"text-xs font-medium uppercase tracking-wider mb-3",style:{color:"var(--text-muted)"},children:"Metadata"}),e.jsxs("div",{className:"rounded-lg p-4 space-y-3",style:{backgroundColor:"var(--bg-tertiary)",border:"1px solid var(--border)"},children:[e.jsx(j,{label:"Session ID",children:e.jsx("code",{className:"text-xs font-mono break-all",style:{color:"var(--accent-light)"},children:t.sessionId})}),t.pid>0&&e.jsx(j,{label:"PID",children:e.jsx("code",{className:"text-xs font-mono",style:{color:"var(--accent-light)"},children:t.pid})}),e.jsx(j,{label:"Working Directory",children:e.jsx("code",{className:"text-xs font-mono break-all",style:{color:"var(--text-secondary)"},children:t.cwd})}),t.projectDir&&t.projectDir!==t.cwd&&e.jsx(j,{label:"Project Directory",children:e.jsx("code",{className:"text-xs font-mono break-all",style:{color:"var(--text-secondary)"},children:t.projectDir})}),e.jsx(j,{label:"Started",children:e.jsx("span",{className:"text-xs",style:{color:"var(--text-secondary)"},children:t.startedAt?`${new Date(t.startedAt).toLocaleString()} (${S(t.startedAt)})`:"Unknown"})}),t.ide&&e.jsx(j,{label:"IDE",children:e.jsxs("span",{className:"text-xs",style:{color:"var(--text-secondary)"},children:[t.ide.name,e.jsx("span",{style:{color:"var(--text-muted)"},children:" via "}),t.ide.transport]})}),t.projectConfig&&e.jsx(j,{label:"Project Config",children:e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.projectConfig.hasClaudeMd&&e.jsx(p,{label:"CLAUDE.md",variant:"blue"}),t.projectConfig.hasMcpJson&&e.jsx(p,{label:".mcp.json",variant:"purple"}),t.projectConfig.hasProjectSettings&&e.jsx(p,{label:"Project Settings",variant:"orange"}),!t.projectConfig.hasClaudeMd&&!t.projectConfig.hasMcpJson&&!t.projectConfig.hasProjectSettings&&e.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"None detected"})]})})]})]}),e.jsxs("section",{children:[e.jsx("h3",{className:"text-xs font-medium uppercase tracking-wider mb-3",style:{color:"var(--text-muted)"},children:"Instruction History"}),t.historyFile?n?e.jsxs("div",{className:"flex items-center gap-2 py-4",children:[e.jsx("span",{className:"inline-block w-4 h-4 rounded-full border-2 animate-spin",style:{borderColor:"var(--card-border)",borderTopColor:"var(--accent-light)"}}),e.jsx("span",{className:"text-xs",style:{color:"var(--text-secondary)"},children:"Loading history..."})]}):!r||r.length===0?e.jsx("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:"No user messages found in session history."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mb-3",children:e.jsx(M,{value:c,onChange:i,placeholder:"Filter instructions..."})}),e.jsxs("p",{className:"text-xs mb-3",style:{color:"var(--text-muted)"},children:[o.length," of ",r.length," message",r.length!==1?"s":""]}),e.jsx("div",{className:"space-y-2",children:o.length===0?e.jsx("p",{className:"text-xs py-4 text-center",style:{color:"var(--text-muted)"},children:"No messages match your filter."}):o.map((d,u)=>e.jsxs("div",{className:"rounded-lg p-3",style:{backgroundColor:"var(--bg-tertiary)",border:"1px solid var(--border)"},children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx(p,{label:d.role??"user",variant:"blue"}),d.timestamp&&e.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:new Date(d.timestamp).toLocaleString()})]}),e.jsx("p",{className:"text-xs whitespace-pre-wrap break-words mt-2",style:{color:"var(--text-secondary)"},children:d.text.length>800?d.text.slice(0,800)+"...":d.text})]},u))})]}):e.jsx("p",{className:"text-xs",style:{color:"var(--text-muted)"},children:"No history file available for this session."})]})]})]})}function j({label:t,children:a}){return e.jsxs("div",{className:"flex items-start justify-between gap-6",children:[e.jsx("span",{className:"text-xs shrink-0",style:{color:"var(--text-muted)"},children:t}),e.jsx("div",{className:"text-right",children:a})]})}function U(){const{t}=A(),{data:a,isLoading:r}=P(),n=a??[],[c,i]=m.useState(null),[o,d]=m.useState(""),[u,N]=m.useState("all"),v=m.useMemo(()=>{if(!o.trim())return n;const s=o.toLowerCase();return n.filter(l=>l.cwd.toLowerCase().includes(s)||l.sessionId.toLowerCase().includes(s)||String(l.pid).includes(s)||(l.lastMessage??"").toLowerCase().includes(s)||(l.projectDir??"").toLowerCase().includes(s))},[n,o]),f=m.useMemo(()=>v.filter(s=>s.alive).sort((s,l)=>l.startedAt-s.startedAt),[v]),w=m.useMemo(()=>{const s=v.filter(x=>!x.alive).sort((x,h)=>h.startedAt-x.startedAt),l={};for(const x of s){const h=x.projectDir||x.cwd||"Unknown";l[h]||(l[h]=[]),l[h].push(x)}return Object.entries(l).sort(([,x],[,h])=>{const I=Math.max(...x.map(y=>y.startedAt||0));return Math.max(...h.map(y=>y.startedAt||0))-I})},[v]),g=m.useMemo(()=>[...v].sort((s,l)=>l.startedAt-s.startedAt).slice(0,10),[v]),D=n.length;return e.jsxs("div",{children:[e.jsxs("div",{className:"sticky top-0 z-10 bg-bg-primary",children:[e.jsx(B,{title:t("activity.title"),subtitle:r?"Loading sessions...":t("activity.subtitle",{running:f.length,total:D})}),e.jsxs("div",{className:"flex items-center gap-1 mb-4",children:[e.jsx("button",{className:"px-4 py-1.5 rounded-lg text-sm font-medium transition-colors",style:{backgroundColor:u==="recent"?"var(--accent)":"transparent",color:u==="recent"?"#fff":"var(--text-muted)"},onClick:()=>N("recent"),children:t("activity.recent",{count:10})}),e.jsx("button",{className:"px-4 py-1.5 rounded-lg text-sm font-medium transition-colors",style:{backgroundColor:u==="all"?"var(--accent)":"transparent",color:u==="all"?"#fff":"var(--text-muted)"},onClick:()=>N("all"),children:t("activity.allSessions")}),e.jsx("div",{className:"flex-1"}),e.jsx("div",{className:"w-72",children:e.jsx(M,{value:o,onChange:d,placeholder:t("activity.searchPlaceholder")})})]})]}),r?e.jsx("p",{style:{color:"var(--text-secondary)"},children:"Loading..."}):u==="recent"?g.length===0?e.jsx("div",{className:"rounded-lg p-8 text-center",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No recent sessions."})}):e.jsx("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:g.map((s,l)=>e.jsx(b,{session:s,isLast:l===g.length-1,onClick:()=>i(s)},s.sessionId))}):v.length===0?e.jsxs("div",{className:"rounded-lg p-8 text-center",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsx("p",{className:"text-lg mb-2",style:{color:"var(--text-muted)"},children:o?"No matching sessions":"No sessions found"}),e.jsx("p",{className:"text-sm",style:{color:"var(--text-faint)"},children:o?"Try a different search term.":"Sessions appear here when Claude Code instances are running or have conversation history."})]}):e.jsxs("div",{className:"space-y-6",children:[f.length>0&&e.jsx(C,{icon:"🟢",label:"Running",count:f.length,defaultOpen:!0,labelColor:"var(--status-green)",children:f.map((s,l)=>e.jsx(b,{session:s,isLast:l===f.length-1,onClick:()=>i(s)},s.sessionId))}),w.map(([s,l])=>e.jsx(C,{icon:"📁",label:R(s),count:l.length,defaultOpen:w.length<=3,children:l.map((x,h)=>e.jsx(b,{session:x,isLast:h===l.length-1,onClick:()=>i(x)},x.sessionId))},s))]}),e.jsx(E,{session:c,onClose:()=>i(null)})]})}export{U as default};
@@ -0,0 +1 @@
1
+ import{u as w,D as S,r as a,j as e,k as L,A as B}from"./index-CaDf51H6.js";import{H as E}from"./header-CBzSNzdI.js";import{T as M}from"./tag-Q3V7Jugn.js";import{M as P}from"./markdown-viewer-Bj8nSOSJ.js";function N({icon:o,label:r,count:l,children:c}){const[n,s]=a.useState(!0);return e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsxs("button",{className:"w-full flex items-center justify-between px-5 py-3 text-left transition-colors hover:bg-bg-hover",style:{borderBottom:n?"1px solid var(--border)":"none"},onClick:()=>s(!n),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-base",children:o}),e.jsx("span",{className:"text-sm font-medium",style:{color:r==="User"?"var(--accent-light)":"var(--text-muted)"},children:r}),e.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--border)",color:"var(--text-secondary)"},children:l})]}),e.jsx("svg",{className:"w-4 h-4 transition-transform",style:{color:"var(--text-muted)",transform:n?"rotate(0deg)":"rotate(-90deg)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),n&&e.jsx("div",{children:c})]})}function k({cmd:o,isLast:r,onClick:l}){return e.jsxs("div",{className:"flex items-start gap-4 px-5 py-4 cursor-pointer transition-colors hover:bg-bg-hover",style:{borderBottom:r?"none":"1px solid var(--border)"},onClick:l,children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsxs("code",{className:"text-sm font-mono font-medium",style:{color:"var(--accent-light)"},children:["/",o.name]}),o.args&&o.args.length>0&&e.jsx("span",{className:"text-xs font-mono",style:{color:"var(--text-muted)"},children:o.args.map(c=>`[${c}]`).join(" ")})]}),o.description&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:o.description})]}),e.jsx("svg",{className:"w-4 h-4 shrink-0 mt-0.5",style:{color:"var(--text-muted)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})}function z(){const{t:o}=w(),{data:r,isLoading:l,mutate:c}=S(),n=r??[],[s,p]=a.useState(null),[g,i]=a.useState(null),[f,v]=a.useState(!1),[j,x]=a.useState(!1),[h,y]=a.useState(""),m=n.filter(t=>t.source==="user"),u=n.filter(t=>t.source!=="user");async function b(t){p(t),i(null),v(!0);try{const{content:d}=await L(t.filePath);i(d)}catch{i("*Failed to load content*")}finally{v(!1)}}async function C(){if(s)try{await B(s.filePath,h),i(h),x(!1),c()}catch(t){console.error("Failed to save",t)}}return e.jsxs("div",{children:[e.jsx(E,{title:o("config.commands.title",{n:n.length})}),l?e.jsx("p",{style:{color:"var(--text-secondary)"},children:"Loading..."}):n.length===0?e.jsx("div",{className:"rounded-lg p-10 text-center",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No custom commands found."})}):e.jsxs("div",{className:"space-y-6",children:[m.length>0&&e.jsx(N,{icon:"👤",label:"User",count:m.length,children:m.map((t,d)=>e.jsx(k,{cmd:t,isLast:d===m.length-1,onClick:()=>b(t)},t.name))}),u.length>0&&e.jsx(N,{icon:"🔧",label:"System",count:u.length,children:u.map((t,d)=>e.jsx(k,{cmd:t,isLast:d===u.length-1,onClick:()=>b(t)},t.name))})]}),s&&e.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col",style:{backgroundColor:"var(--bg-primary)"},children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 shrink-0",style:{borderBottom:"1px solid var(--border)",backgroundColor:"var(--bg-secondary)"},children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsxs("code",{className:"text-base font-mono font-medium",style:{color:"var(--accent-light)"},children:["/",s.name]}),e.jsx(M,{label:s.source==="user"?"User":"System",variant:s.source==="user"?"purple":"gray"}),s.description&&e.jsxs("span",{className:"text-xs truncate",style:{color:"var(--text-muted)"},children:["— ",s.description]})]}),e.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[e.jsx("code",{className:"text-xs font-mono hidden lg:block",style:{color:"var(--text-muted)"},children:s.filePath}),s.source==="user"&&!j&&!f&&e.jsx("button",{onClick:()=>{x(!0),y(g??"")},className:"px-3 py-1.5 rounded-lg text-sm font-medium transition-colors hover:bg-bg-hover",style:{color:"var(--accent-light)"},children:"Edit"}),e.jsx("button",{className:"w-8 h-8 rounded-lg flex items-center justify-center transition-colors hover:bg-bg-hover",style:{color:"var(--text-secondary)"},onClick:()=>{p(null),x(!1),i(null)},children:"✕"})]})]}),e.jsx("div",{className:"flex-1 overflow-auto px-8 py-6",children:j?e.jsxs("div",{className:"max-w-4xl mx-auto flex flex-col h-full",children:[e.jsx("textarea",{value:h,onChange:t=>y(t.target.value),className:"flex-1 w-full p-4 rounded-lg font-mono text-sm resize-none outline-none",style:{backgroundColor:"var(--bg-secondary)",color:"var(--text-secondary)",border:"1px solid var(--card-border)",minHeight:"500px"}}),e.jsxs("div",{className:"flex gap-3 mt-4 justify-end",children:[e.jsx("button",{onClick:()=>x(!1),className:"px-4 py-2 rounded-lg text-sm btn-secondary",children:"Cancel"}),e.jsx("button",{onClick:C,className:"px-4 py-2 rounded-lg text-sm btn-primary",children:"Save"})]})]}):f?e.jsx("div",{className:"max-w-4xl mx-auto text-center py-12",children:e.jsx("p",{style:{color:"var(--text-muted)"},children:"Loading content..."})}):e.jsx(P,{content:g??"*No content available*",className:"max-w-4xl mx-auto skill-markdown"})})]})]})}export{z as default};
@@ -0,0 +1 @@
1
+ import{j as e,u as g,a as k,b as N,c as M,d as j,e as C,r as b}from"./index-CaDf51H6.js";import{H as L}from"./header-CBzSNzdI.js";function h({title:r,value:n,subtitle:s}){return e.jsxs("div",{className:"rounded-lg p-5",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsx("p",{className:"text-xs uppercase tracking-wider mb-2",style:{color:"var(--text-muted)",fontWeight:510},children:r}),e.jsx("p",{className:"text-3xl mb-1",style:{color:"var(--text-primary)",fontWeight:510},children:n}),s&&e.jsx("p",{className:"text-sm",style:{color:"var(--text-secondary)"},children:s})]})}function $(r){if(!r)return"";const n=Date.now()-r,s=Math.floor(n/1e3);if(s<30)return"just now";if(s<60)return`${s}s ago`;const a=Math.floor(s/60);if(a<60)return`${a}m ago`;const o=Math.floor(a/60);if(o<24)return`${o}h ago`;const l=Math.floor(o/24);if(l<30)return`${l}d ago`;const t=new Date(r);return`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]} ${t.getDate()}`}function p({title:r,entries:n,barColor:s,maxItems:a=8}){const o=n.slice(0,a),l=o.length>0?o[0].usageCount:0;return e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsx("div",{className:"px-5 py-3",style:{borderBottom:"1px solid var(--border)"},children:e.jsx("h3",{className:"text-lg",style:{color:"var(--text-primary)",fontWeight:510},children:r})}),o.length===0?e.jsx("div",{className:"px-5 py-6 text-center",children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No data yet."})}):e.jsx("div",{className:"py-1",children:o.map(t=>{const c=l>0?t.usageCount/l*100:0,i=$(t.lastUsedAt);return e.jsxs("div",{className:"flex items-center gap-3 px-5 py-2.5 transition-colors",onMouseEnter:d=>{d.currentTarget.style.backgroundColor="var(--bg-hover)"},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent"},children:[e.jsx("span",{className:"font-mono text-xs shrink-0 truncate",style:{color:"var(--accent-light)",width:"180px"},title:t.name,children:t.name.length>26?t.name.slice(0,24)+"...":t.name}),e.jsx("div",{className:"flex-1 h-5 rounded overflow-hidden",style:{backgroundColor:"var(--border)"},children:e.jsx("div",{className:"h-full rounded",style:{width:`${Math.max(c,2)}%`,backgroundColor:s,opacity:.85,transition:"width 0.3s ease"}})}),e.jsx("span",{className:"text-xs shrink-0 text-right",style:{color:"var(--text-secondary)",width:"44px",fontWeight:510},children:t.usageCount}),i&&e.jsx("span",{className:"text-xs shrink-0 text-right",style:{color:"var(--text-faint)",width:"64px"},children:i})]},t.name)})})]})}function S(r){if(!r)return"";const n=Date.now()-r,s=Math.floor(n/1e3);if(s<30)return"just now";if(s<60)return`${s}s ago`;const a=Math.floor(s/60);if(a<60)return`${a}m ago`;const o=Math.floor(a/60);if(o<24)return`${o}h ago`;const l=Math.floor(o/24);if(l<30)return`${l}d ago`;const t=new Date(r);return`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]} ${t.getDate()}`}function B(r,n=48){return r?r.length<=n?r:"..."+r.slice(r.length-n+3):""}function W(r,n=80){if(!r)return"";const s=r.replace(/\n/g," ").trim();return s.length<=n?s:s.slice(0,n)+"..."}function D(){const{t:r}=g(),{data:n,isLoading:s}=k(),a=N(),o=(n??[]).slice().sort((l,t)=>t.startedAt-l.startedAt).slice(0,5);return e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsxs("div",{className:"px-5 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--border)"},children:[e.jsx("h3",{className:"text-lg",style:{color:"var(--text-primary)",fontWeight:510},children:r("overview.recentSessions")}),e.jsx("button",{className:"text-xs transition-colors",style:{color:"var(--text-muted)"},onClick:()=>a("/activity"),children:r("overview.viewAll")})]}),s?e.jsx("div",{className:"px-5 py-6",children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Loading..."})}):o.length===0?e.jsx("div",{className:"px-5 py-6 text-center",children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"No sessions found."})}):e.jsx("div",{children:o.map((l,t)=>e.jsxs("div",{className:"flex items-start gap-3 px-5 py-3 cursor-pointer transition-colors",style:{borderBottom:t<o.length-1?"1px solid var(--border)":"none"},onClick:()=>a("/activity"),onMouseEnter:c=>{c.currentTarget.style.backgroundColor="var(--bg-hover)"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="transparent"},children:[e.jsx("span",{className:"inline-block w-2 h-2 rounded-full shrink-0 mt-1.5",style:{backgroundColor:l.alive?"var(--status-green)":"var(--text-muted)"}}),e.jsxs("div",{className:"flex-1 min-w-0",children:[l.name&&e.jsx("p",{className:"text-sm font-medium truncate mb-0.5",style:{color:"var(--text-primary)"},title:l.name,children:l.name}),e.jsx("p",{className:"font-mono text-xs truncate mb-0.5",style:{color:"var(--text-secondary)"},title:l.projectDir??l.cwd,children:B(l.projectDir??l.cwd)}),e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("span",{className:"text-xs shrink-0",style:{color:"var(--text-faint)"},children:S(l.startedAt)}),l.lastMessage&&e.jsx("span",{className:"text-xs truncate",style:{color:"var(--text-faint)"},children:W(l.lastMessage)})]})]})]},l.sessionId))})]})}function v({icon:r,label:n,children:s}){return e.jsxs("div",{className:"flex items-center justify-between px-5 py-3 transition-colors",onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--bg-hover)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="transparent"},children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"shrink-0 w-5 h-5 flex items-center justify-center",style:{color:"var(--text-muted)"},children:r}),e.jsx("span",{className:"text-sm",style:{color:"var(--text-secondary)"},children:n})]}),e.jsx("div",{className:"flex items-center gap-2",children:s})]})}function x({label:r,color:n}){const a={green:{bg:"rgba(39, 166, 68, 0.15)",text:"var(--status-green)"},blue:{bg:"rgba(94, 106, 210, 0.15)",text:"var(--accent-light)"},yellow:{bg:"rgba(138, 143, 152, 0.15)",text:"var(--text-secondary)"},gray:{bg:"var(--border)",text:"var(--text-muted)"}}[n];return e.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:a.bg,color:a.text,fontWeight:510},children:r})}function T(){return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",style:{color:"var(--status-green)"},children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}function A(){return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}function H(){return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 10h16M4 14h16M4 18h16"})})}function R(){return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2"})})}function I(){return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}function J(){return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})})}function E(){const{t:r}=g(),{data:n,isLoading:s}=M(),{data:a,isLoading:o}=j(),l=s||o,t=n??{},c=a,i=t.model??"",d=t.hooks??{},u=Object.values(d).reduce((w,f)=>w+(Array.isArray(f)?f.length:0),0),y=t.env??{},m=Object.keys(y).length;return e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsx("div",{className:"px-5 py-3",style:{borderBottom:"1px solid var(--border)"},children:e.jsx("h3",{className:"text-lg",style:{color:"var(--text-primary)",fontWeight:510},children:r("overview.environmentHealth")})}),l?e.jsx("div",{className:"px-5 py-6",children:e.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Loading..."})}):e.jsxs("div",{children:[e.jsx(v,{icon:e.jsx(A,{}),label:"Model",children:i?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm font-mono",style:{color:"var(--accent-light)"},children:i.length>30?i.slice(0,28)+"...":i}),e.jsx(T,{})]}):e.jsx("span",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Not configured"})}),e.jsx(v,{icon:e.jsx(H,{}),label:r("overview.plugins"),children:c&&c.plugins>0?e.jsx(x,{label:r("overview.active",{count:c.plugins}),color:"green"}):e.jsx(x,{label:r("overview.hooksNone"),color:"gray"})}),e.jsx(v,{icon:e.jsx(R,{}),label:r("overview.mcpServers"),children:c&&c.mcpServers>0?e.jsx(x,{label:r("overview.configured",{count:c.mcpServers}),color:"blue"}):e.jsx(x,{label:r("overview.hooksNone"),color:"gray"})}),e.jsx(v,{icon:e.jsx(I,{}),label:"Hooks",children:u>0?e.jsx(x,{label:`${u} hook${u!==1?"s":""}`,color:"yellow"}):e.jsx(x,{label:r("overview.hooksNone"),color:"gray"})}),e.jsx(v,{icon:e.jsx(J,{}),label:"Env Vars",children:m>0?e.jsx(x,{label:r("overview.envSet",{count:m}),color:"blue"}):e.jsx(x,{label:r("overview.hooksNone"),color:"gray"})})]})]})}function O(r){if(!r)return"";const n=Date.now()-r,s=Math.floor(n/1e3);if(s<30)return"just now";if(s<60)return`${s}s ago`;const a=Math.floor(s/60);if(a<60)return`${a}m ago`;const o=Math.floor(a/60);if(o<24)return`${o}h ago`;const l=Math.floor(o/24);if(l<30)return`${l}d ago`;const t=new Date(r);return`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]} ${t.getDate()}`}function U({entry:r,maxCount:n,barColor:s}){const a=n>0?r.usageCount/n*100:0,o=O(r.lastUsedAt);return e.jsxs("div",{className:"flex items-center gap-3 px-5 py-2.5 transition-colors hover:bg-bg-hover",children:[e.jsx("span",{className:"font-mono text-xs shrink-0",style:{color:"var(--accent-light)",width:"200px"},title:r.name,children:r.name.length>28?r.name.slice(0,26)+"...":r.name}),e.jsx("div",{className:"flex-1 h-5 rounded overflow-hidden",style:{backgroundColor:"var(--border)"},children:e.jsx("div",{className:"h-full rounded",style:{width:`${Math.max(a,2)}%`,backgroundColor:s,opacity:.85,transition:"width 0.3s ease"}})}),e.jsx("span",{className:"text-xs shrink-0 text-right",style:{color:"var(--text-secondary)",width:"44px",fontWeight:510},children:r.usageCount}),o&&e.jsx("span",{className:"text-xs shrink-0 text-right",style:{color:"var(--text-faint)",width:"64px"},children:o})]})}function V({server:r,tools:n,totalCalls:s,toolCount:a}){const[o,l]=b.useState(!1),t=n.length>0?n[0].usageCount:0;return e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsxs("button",{className:"w-full flex items-center justify-between px-5 py-3 text-left transition-colors hover:bg-bg-hover",style:{borderBottom:o?"1px solid var(--border)":"none"},onClick:()=>l(!o),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"font-mono text-sm",style:{color:"var(--text-secondary)",fontWeight:510},children:r}),e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--border)",color:"var(--text-secondary)"},children:[s," calls"]}),e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--border)",color:"var(--text-muted)"},children:[a," tools"]})]}),e.jsx("svg",{className:"w-4 h-4 transition-transform",style:{color:"var(--text-faint)",transform:o?"rotate(0deg)":"rotate(-90deg)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),o&&e.jsx("div",{className:"py-1",children:n.map(c=>e.jsx(U,{entry:c,maxCount:t,barColor:"var(--accent)"},c.name))})]})}function F({metrics:r,mcpToolsByServer:n}){const[s,a]=b.useState(!0);return r.mcpServerBreakdown.length===0?null:e.jsxs("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:"var(--card-bg)",border:"1px solid var(--card-border)"},children:[e.jsxs("button",{className:"w-full flex items-center justify-between px-5 py-3 text-left transition-colors hover:bg-bg-hover",style:{borderBottom:s?"1px solid var(--border)":"none"},onClick:()=>a(!s),children:[e.jsx("h2",{className:"text-lg",style:{color:"var(--text-primary)",fontWeight:510},children:"MCP Server Usage"}),e.jsx("svg",{className:"w-4 h-4 transition-transform",style:{color:"var(--text-faint)",transform:s?"rotate(0deg)":"rotate(-90deg)"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),s&&e.jsx("div",{className:"p-5 space-y-3",children:r.mcpServerBreakdown.map(o=>e.jsx(V,{server:o.server,tools:n[o.server]??[],totalCalls:o.totalCalls,toolCount:o.toolCount},o.server))})]})}function q(){const{t:r}=g(),{data:n,isLoading:s}=j(),{data:a,isLoading:o}=C(),l=s||o,t=n,c=a,i={};if(c!=null&&c.mcpTools)for(const d of c.mcpTools){const u=d.mcpServer??"unknown";i[u]||(i[u]=[]),i[u].push(d)}return e.jsxs("div",{children:[e.jsx(L,{title:r("overview.title")}),l?e.jsx("p",{style:{color:"var(--text-secondary)"},children:"Loading..."}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-5 gap-4",children:[e.jsx(h,{title:r("overview.plugins"),value:(t==null?void 0:t.plugins)??0,color:"purple"}),e.jsx(h,{title:r("overview.mcpServers"),value:(t==null?void 0:t.mcpServers)??0,color:"blue"}),e.jsx(h,{title:r("overview.skills"),value:(t==null?void 0:t.skills)??0,color:"green"}),e.jsx(h,{title:r("overview.profiles"),value:(t==null?void 0:t.profiles)??0,color:"orange"}),e.jsx(h,{title:r("overview.sessions"),value:(t==null?void 0:t.sessions)??0,color:"blue"})]}),c&&e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsx(p,{title:r("overview.topSkills"),entries:c.topSkills,barColor:"var(--accent)",maxItems:8}),e.jsx(p,{title:r("overview.topTools"),entries:c.topTools,barColor:"var(--accent-light)",maxItems:8})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsx(D,{}),e.jsx(E,{})]}),c&&e.jsx(F,{metrics:c,mcpToolsByServer:i})]})]})}export{q as default};
@@ -0,0 +1 @@
1
+ import{j as e}from"./index-CaDf51H6.js";import{T as c}from"./tag-Q3V7Jugn.js";function p({open:r,onClose:a,title:n,subtitle:l,icon:t,tags:s,children:d,actions:o}){return e.jsxs(e.Fragment,{children:[r&&e.jsx("div",{className:"fixed inset-0 z-40",style:{backgroundColor:"var(--overlay-bg)"},onClick:a}),e.jsxs("div",{className:"fixed top-0 right-0 z-50 h-full flex flex-col",style:{width:"440px",backgroundColor:"var(--bg-secondary)",borderLeft:"1px solid var(--card-border)",transform:r?"translateX(0)":"translateX(100%)",transition:"transform 0.25s ease-in-out",boxShadow:r?"-8px 0 32px rgba(0, 0, 0, 0.4)":"none"},children:[e.jsxs("div",{className:"flex items-start justify-between p-5 shrink-0",style:{borderBottom:"1px solid var(--border)"},children:[e.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[t&&e.jsx("div",{className:"shrink-0 mt-0.5 text-xl",children:t}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{className:"truncate",style:{color:"var(--text-primary)",fontWeight:510},children:n}),l&&e.jsx("p",{className:"text-sm mt-0.5 truncate",style:{color:"var(--text-secondary)"},children:l}),s&&s.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5 mt-2",children:s.map((i,x)=>e.jsx(c,{label:i.label,variant:i.variant},x))})]})]}),e.jsx("button",{onClick:a,className:"shrink-0 ml-3 p-1 rounded transition-colors",style:{color:"var(--text-muted)"},"aria-label":"Close panel",children:e.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-5",children:d}),o&&e.jsx("div",{className:"shrink-0 flex items-center justify-end gap-3 p-4",style:{borderTop:"1px solid var(--border)"},children:o})]})]})}export{p as D};
@@ -0,0 +1 @@
1
+ import{j as e}from"./index-CaDf51H6.js";function i({title:r,subtitle:s,children:t}){return e.jsxs("div",{className:"sticky top-0 z-10 pb-4 flex items-start justify-between mb-6",style:{backgroundColor:"var(--bg-primary)"},children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl",style:{color:"var(--text-primary)",fontWeight:510,letterSpacing:"-0.288px"},children:r}),s&&e.jsx("p",{className:"text-sm mt-1",style:{color:"var(--text-secondary)"},children:s})]}),t&&e.jsx("div",{className:"flex items-center gap-3 shrink-0 ml-6",children:t})]})}export{i as H};
@@ -0,0 +1,14 @@
1
+ import{a as ee,c as Wn,p as te,r as En,s as de,b as ue,d as hn,e as Sr,m as _,f as B,g as Er,h as Cr,i as fn,j as T,k as ne,n as Ce,l as Je,o as Oe,q as Ir,t as Tr,v as Ot,u as Pr}from"./markdown-viewer-Bj8nSOSJ.js";import{O as Xe,P as _t,r as He,j as $e}from"./index-CaDf51H6.js";const Yn=document.createElement("i");function Cn(e){const n="&"+e+";";Yn.innerHTML=n;const t=Yn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Nt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}const Ar=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vr(e){return e.replace(Ar,zr)}function zr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Nt(t.slice(l?2:1),l?16:10)}return Cn(t)||e}function Te(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ee(e.charCodeAt(t+1))&&ee(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}const mn={name:"attention",resolveAll:Lr,tokenize:Dr};function Lr(e,n){let t=-1,r,i,l,o,a,c,s,u;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[t][1].start};Xn(h,-c),Xn(d,c),o={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=te(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=te(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=te(s,En(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=te(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(u=2,s=te(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):u=0,de(e,r-1,t-r+3,s),t=r+s.length-u-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Dr(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Wn(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===l)return e.consume(c),a;const s=e.exit("attentionSequence"),u=Wn(c),h=!u||u===2&&i||t.includes(c),d=!i||i===2&&u||t.includes(r);return s._open=!!(l===42?h:h&&(i||!d)),s._close=!!(l===42?d:d&&(u||!h)),n(c)}}function Xn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Or={name:"autolink",tokenize:_r};function _r(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ue(p)?(e.consume(p),o):p===64?t(p):s(p)}function o(p){return p===43||p===45||p===46||ee(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||ee(p))&&r++<32?(e.consume(p),a):(r=0,s(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||hn(p)?t(p):(e.consume(p),c)}function s(p){return p===64?(e.consume(p),u):Sr(p)?(e.consume(p),s):t(p)}function u(p){return ee(p)?h(p):t(p)}function h(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||ee(p))&&r++<63){const x=p===45?d:h;return e.consume(p),x}return t(p)}}const Ft={continuation:{tokenize:Fr},exit:Rr,name:"blockQuote",tokenize:Nr};function Nr(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return _(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Fr(e,n,t){const r=this;return i;function i(o){return _(o)?B(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Ft,n,t)(o)}}function Rr(e){e.exit("blockQuote")}const Rt={name:"characterEscape",tokenize:Mr};function Mr(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Er(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Mt={name:"characterReference",tokenize:Br};function Br(e,n,t){const r=this;let i=0,l,o;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),l=31,o=ee,u(h))}function s(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Cr,u):(e.enter("characterReferenceValue"),l=7,o=fn,u(h))}function u(h){if(h===59&&i){const d=e.exit("characterReferenceValue");return o===ee&&!Cn(r.sliceSerialize(d))?t(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(h)&&i++<l?(e.consume(h),u):t(h)}}const Qn={partial:!0,tokenize:Hr},Gn={concrete:!0,name:"codeFenced",tokenize:jr};function jr(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,o=0,a;return c;function c(y){return s(y)}function s(y){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(y)}function u(y){return y===a?(o++,e.consume(y),u):o<3?t(y):(e.exit("codeFencedFenceSequence"),_(y)?B(e,h,"whitespace")(y):h(y))}function h(y){return y===null||T(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Qn,b,j)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(y)):_(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),d)}function p(y){return y===null||T(y)?h(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(y))}function x(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(y)):y===96&&y===a?t(y):(e.consume(y),x)}function b(y){return e.attempt(i,j,P)(y)}function P(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),S}function S(y){return l>0&&_(y)?B(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||T(y)?e.check(Qn,b,j)(y):(e.enter("codeFlowValue"),E(y))}function E(y){return y===null||T(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),E)}function j(y){return e.exit("codeFenced"),n(y)}function U(y,O,V){let N=0;return M;function M(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),I}function I(D){return y.enter("codeFencedFence"),_(D)?B(y,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):C(D)}function C(D){return D===a?(y.enter("codeFencedFenceSequence"),H(D)):V(D)}function H(D){return D===a?(N++,y.consume(D),H):N>=o?(y.exit("codeFencedFenceSequence"),_(D)?B(y,q,"whitespace")(D):q(D)):V(D)}function q(D){return D===null||T(D)?(y.exit("codeFencedFence"),O(D)):V(D)}}}function Hr(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const en={name:"codeIndented",tokenize:Vr},Ur={partial:!0,tokenize:qr};function Vr(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,l,"linePrefix",5)(s)}function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?c(s):T(s)?e.attempt(Ur,o,c)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function c(s){return e.exit("codeIndented"),n(s)}}function qr(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):B(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):T(o)?i(o):t(o)}}const $r={name:"codeText",previous:Yr,resolve:Wr,tokenize:Xr};function Wr(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Yr(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Xr(e,n,t){let r=0,i,l;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(l=e.enter("codeTextSequence"),i=0,u(h)):T(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),s(h))}function s(h){return h===null||h===32||h===96||T(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),s)}function u(h){return h===96?(e.consume(h),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(l.type="codeTextData",s(h))}}class Qr{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Le(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Le(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Le(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Le(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Le(this.left,t.reverse())}}}function Le(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Bt(e){const n={};let t=-1,r,i,l,o,a,c,s;const u=new Qr(e);for(;++t<u.length;){for(;t in n;)t=n[t];if(r=u.get(t),t&&r[1].type==="chunkFlow"&&u.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Gr(u,t)),t=n[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=u.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},a=u.slice(i,t),a.unshift(r),u.splice(i,t-i+1,a))}}return de(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Gr(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,c=[],s={};let u,h,d=-1,p=t,x=0,b=0;const P=[b];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(b=d+1,P.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):P.pop(),d=P.length;d--;){const S=a.slice(P[d],P[d+1]),L=l.pop();c.push([L,L+S.length-1]),e.splice(L,2,S)}for(c.reverse(),d=-1;++d<c.length;)s[x+c[d][0]]=x+c[d][1],x+=c[d][1]-c[d][0]-1;return s}const Jr={resolve:Zr,tokenize:ei},Kr={partial:!0,tokenize:ni};function Zr(e){return Bt(e),e}function ei(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?e.check(Kr,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ni(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),B(e,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function jt(e,n,t,r,i,l,o,a,c){const s=c||Number.POSITIVE_INFINITY;let u=0;return h;function h(S){return S===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(S),e.exit(l),d):S===null||S===32||S===41||hn(S)?t(S):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(S))}function d(S){return S===62?(e.enter(l),e.consume(S),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===62?(e.exit("chunkString"),e.exit(a),d(S)):S===null||S===60||T(S)?t(S):(e.consume(S),S===92?x:p)}function x(S){return S===60||S===62||S===92?(e.consume(S),p):p(S)}function b(S){return!u&&(S===null||S===41||ne(S))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(S)):u<s&&S===40?(e.consume(S),u++,b):S===41?(e.consume(S),u--,b):S===null||S===32||S===40||hn(S)?t(S):(e.consume(S),S===92?P:b)}function P(S){return S===40||S===41||S===92?(e.consume(S),b):b(S)}}function Ht(e,n,t,r,i,l){const o=this;let a=0,c;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),u}function u(p){return a>999||p===null||p===91||p===93&&!c||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),u(p)):(e.consume(p),c||(c=!_(p)),p===92?d:h)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,h):h(p)}}function Ut(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,c):t(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),c(o)):d===null?t(d):T(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===o||d===null||T(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?h:u)}function h(d){return d===o||d===92?(e.consume(d),u):u(d)}}function _e(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):_(i)?B(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ti={name:"definition",tokenize:ii},ri={partial:!0,tokenize:li};function ii(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Ht.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return ne(p)?_e(e,s)(p):s(p)}function s(p){return jt(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(ri,h,h)(p)}function h(p){return _(p)?B(e,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function li(e,n,t){return r;function r(a){return ne(a)?_e(e,i)(a):t(a)}function i(a){return Ut(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return _(a)?B(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}const oi={name:"hardBreakEscape",tokenize:ai};function ai(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const ui={name:"headingAtx",resolve:si,tokenize:ci};function si(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},de(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function ci(e,n,t){let r=0;return i;function i(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||ne(u)?(e.exit("atxHeadingSequence"),a(u)):t(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||T(u)?(e.exit("atxHeading"),n(u)):_(u)?B(e,a,"whitespace")(u):(e.enter("atxHeadingText"),s(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),a(u))}function s(u){return u===null||u===35||ne(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),s)}}const pi=["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"],Jn=["pre","script","style","textarea"],hi={concrete:!0,name:"htmlFlow",resolveTo:di,tokenize:gi},fi={partial:!0,tokenize:xi},mi={partial:!0,tokenize:yi};function di(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function gi(e,n,t){const r=this;let i,l,o,a,c;return s;function s(m){return u(m)}function u(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),h}function h(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,b):m===63?(e.consume(m),i=3,r.interrupt?n:f):ue(m)?(e.consume(m),o=String.fromCharCode(m),P):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,x):ue(m)?(e.consume(m),i=4,r.interrupt?n:f):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:f):t(m)}function x(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:C:x):t(m)}function b(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),P):t(m)}function P(m){if(m===null||m===47||m===62||ne(m)){const le=m===47,ge=o.toLowerCase();return!le&&!l&&Jn.includes(ge)?(i=1,r.interrupt?n(m):C(m)):pi.includes(o.toLowerCase())?(i=6,le?(e.consume(m),S):r.interrupt?n(m):C(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ee(m)?(e.consume(m),o+=String.fromCharCode(m),P):t(m)}function S(m){return m===62?(e.consume(m),r.interrupt?n:C):t(m)}function L(m){return _(m)?(e.consume(m),L):M(m)}function E(m){return m===47?(e.consume(m),M):m===58||m===95||ue(m)?(e.consume(m),j):_(m)?(e.consume(m),E):M(m)}function j(m){return m===45||m===46||m===58||m===95||ee(m)?(e.consume(m),j):U(m)}function U(m){return m===61?(e.consume(m),y):_(m)?(e.consume(m),U):E(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,O):_(m)?(e.consume(m),y):V(m)}function O(m){return m===c?(e.consume(m),c=null,N):m===null||T(m)?t(m):(e.consume(m),O)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ne(m)?U(m):(e.consume(m),V)}function N(m){return m===47||m===62||_(m)?E(m):t(m)}function M(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||T(m)?C(m):_(m)?(e.consume(m),I):t(m)}function C(m){return m===45&&i===2?(e.consume(m),X):m===60&&i===1?(e.consume(m),W):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),f):m===93&&i===5?(e.consume(m),se):T(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(fi,ce,H)(m)):m===null||T(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),C)}function H(m){return e.check(mi,q,ce)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),D}function D(m){return m===null||T(m)?H(m):(e.enter("htmlFlowData"),C(m))}function X(m){return m===45?(e.consume(m),f):C(m)}function W(m){return m===47?(e.consume(m),o="",re):C(m)}function re(m){if(m===62){const le=o.toLowerCase();return Jn.includes(le)?(e.consume(m),ie):C(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):C(m)}function se(m){return m===93?(e.consume(m),f):C(m)}function f(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),f):C(m)}function ie(m){return m===null||T(m)?(e.exit("htmlFlowData"),ce(m)):(e.consume(m),ie)}function ce(m){return e.exit("htmlFlow"),n(m)}}function yi(e,n,t){const r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function xi(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Je,n,t)}}const ki={name:"htmlText",tokenize:bi};function bi(e,n,t){const r=this;let i,l,o;return a;function a(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),c}function c(f){return f===33?(e.consume(f),s):f===47?(e.consume(f),U):f===63?(e.consume(f),E):ue(f)?(e.consume(f),V):t(f)}function s(f){return f===45?(e.consume(f),u):f===91?(e.consume(f),l=0,x):ue(f)?(e.consume(f),L):t(f)}function u(f){return f===45?(e.consume(f),p):t(f)}function h(f){return f===null?t(f):f===45?(e.consume(f),d):T(f)?(o=h,W(f)):(e.consume(f),h)}function d(f){return f===45?(e.consume(f),p):h(f)}function p(f){return f===62?X(f):f===45?d(f):h(f)}function x(f){const ie="CDATA[";return f===ie.charCodeAt(l++)?(e.consume(f),l===ie.length?b:x):t(f)}function b(f){return f===null?t(f):f===93?(e.consume(f),P):T(f)?(o=b,W(f)):(e.consume(f),b)}function P(f){return f===93?(e.consume(f),S):b(f)}function S(f){return f===62?X(f):f===93?(e.consume(f),S):b(f)}function L(f){return f===null||f===62?X(f):T(f)?(o=L,W(f)):(e.consume(f),L)}function E(f){return f===null?t(f):f===63?(e.consume(f),j):T(f)?(o=E,W(f)):(e.consume(f),E)}function j(f){return f===62?X(f):E(f)}function U(f){return ue(f)?(e.consume(f),y):t(f)}function y(f){return f===45||ee(f)?(e.consume(f),y):O(f)}function O(f){return T(f)?(o=O,W(f)):_(f)?(e.consume(f),O):X(f)}function V(f){return f===45||ee(f)?(e.consume(f),V):f===47||f===62||ne(f)?N(f):t(f)}function N(f){return f===47?(e.consume(f),X):f===58||f===95||ue(f)?(e.consume(f),M):T(f)?(o=N,W(f)):_(f)?(e.consume(f),N):X(f)}function M(f){return f===45||f===46||f===58||f===95||ee(f)?(e.consume(f),M):I(f)}function I(f){return f===61?(e.consume(f),C):T(f)?(o=I,W(f)):_(f)?(e.consume(f),I):N(f)}function C(f){return f===null||f===60||f===61||f===62||f===96?t(f):f===34||f===39?(e.consume(f),i=f,H):T(f)?(o=C,W(f)):_(f)?(e.consume(f),C):(e.consume(f),q)}function H(f){return f===i?(e.consume(f),i=void 0,D):f===null?t(f):T(f)?(o=H,W(f)):(e.consume(f),H)}function q(f){return f===null||f===34||f===39||f===60||f===61||f===96?t(f):f===47||f===62||ne(f)?N(f):(e.consume(f),q)}function D(f){return f===47||f===62||ne(f)?N(f):t(f)}function X(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),n):t(f)}function W(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),re}function re(f){return _(f)?B(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):se(f)}function se(f){return e.enter("htmlTextData"),o(f)}}const In={name:"labelEnd",resolveAll:Ci,resolveTo:Ii,tokenize:Ti},wi={tokenize:Pi},Si={tokenize:Ai},Ei={tokenize:vi};function Ci(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&de(e,0,e.length,t),e}function Ii(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",c,n],["enter",s,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",u,n]]),a=te(a,En(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",u,n],e[o-2],e[o-1],["exit",s,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",c,n]]),de(e,l,e.length,a),e}function Ti(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(d){return l?l._inactive?h(d):(o=r.parser.defined.includes(Ce(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(wi,u,o?u:h)(d):d===91?e.attempt(Si,u,o?s:h)(d):o?u(d):h(d)}function s(d){return e.attempt(Ei,u,h)(d)}function u(d){return n(d)}function h(d){return l._balanced=!0,t(d)}}function Pi(e,n,t){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return ne(h)?_e(e,l)(h):l(h)}function l(h){return h===41?u(h):jt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ne(h)?_e(e,c)(h):u(h)}function a(h){return t(h)}function c(h){return h===34||h===39||h===40?Ut(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):u(h)}function s(h){return ne(h)?_e(e,u)(h):u(h)}function u(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):t(h)}}function Ai(e,n,t){const r=this;return i;function i(a){return Ht.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function vi(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const zi={name:"labelStartImage",resolveAll:In.resolveAll,tokenize:Li};function Li(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Di={name:"labelStartLink",resolveAll:In.resolveAll,tokenize:Oi};function Oi(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const nn={name:"lineEnding",tokenize:_i};function _i(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:Ni};function Ni(e,n,t){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),c(s)):r>=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function c(s){return s===i?(e.consume(s),r++,c):(e.exit("thematicBreakSequence"),_(s)?B(e,a,"whitespace")(s):a(s))}}const G={continuation:{tokenize:Bi},exit:Hi,name:"list",tokenize:Mi},Fi={partial:!0,tokenize:Ui},Ri={partial:!0,tokenize:ji};function Mi(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:fn(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return fn(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Je,r.interrupt?t:u,e.attempt(Fi,d,h))}function u(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function h(p){return _(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function Bi(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Je,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!_(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ri,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(G,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ji(e,n,t){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Hi(e){e.exit(this.containerState.type)}function Ui(e,n,t){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!_(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Kn={name:"setextUnderline",resolveTo:Vi,tokenize:qi};function Vi(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function qi(e,n,t){const r=this;let i;return l;function l(s){let u=r.events.length,h;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){h=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),_(s)?B(e,c,"lineSuffix")(s):c(s))}function c(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}function $i(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Wi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xi={};function Zn(e,n){return(Xi.jsx?Yi:Wi).test(e)}const Qi=/[ \t\n\f\r]/g;function Gi(e){return typeof e=="object"?e.type==="text"?et(e.value):!1:et(e)}function et(e){return e.replace(Qi,"")===""}class Me{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Me.prototype.normal={};Me.prototype.property={};Me.prototype.space=void 0;function Vt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Me(t,r,n)}function dn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Ji=0;const v=ke(),$=ke(),gn=ke(),k=ke(),R=ke(),Ie=ke(),Z=ke();function ke(){return 2**++Ji}const yn=Object.freeze(Object.defineProperty({__proto__:null,boolean:v,booleanish:$,commaOrSpaceSeparated:Z,commaSeparated:Ie,number:k,overloadedBoolean:gn,spaceSeparated:R},Symbol.toStringTag,{value:"Module"})),tn=Object.keys(yn);class Tn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),nt(this,"space",i),typeof r=="number")for(;++l<tn.length;){const o=tn[l];nt(this,tn[l],(r&yn[o])===yn[o])}}}Tn.prototype.defined=!0;function nt(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Tn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[dn(r)]=r,t[dn(l.attribute)]=r}return new Me(n,t,e.space)}const qt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:$,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:R,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:R,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function $t(e,n){return n in e?e[n]:n}function Wt(e,n){return $t(e,n.toLowerCase())}const Ki=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:R,autoFocus:v,autoPlay:v,blocking:R,capture:null,charSet:null,checked:v,cite:null,className:R,cols:k,colSpan:null,content:null,contentEditable:$,controls:v,controlsList:R,coords:k|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:gn,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:R,height:k,hidden:gn,high:k,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:R,itemRef:R,itemScope:v,itemType:R,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,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:v,optimum:k,pattern:null,ping:R,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:R,required:v,reversed:v,rows:k,rowSpan:k,sandbox:R,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:v,disableRemotePlayback:v,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Wt}),Zi=Pe({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:Z,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:R,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:Z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,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:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Z,rev:Z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Z,requiredFeatures:Z,requiredFonts:Z,requiredFormats:Z,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:Z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Z,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$t}),Yt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Xt=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Wt}),Qt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),el={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"},nl=/[A-Z]/g,tt=/-[a-z]/g,tl=/^data[-\w.:]+$/i;function rl(e,n){const t=dn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&tl.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(tt,ll);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!tt.test(l)){let o=l.replace(nl,il);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Tn}return new i(r,n)}function il(e){return"-"+e.toLowerCase()}function ll(e){return e.charAt(1).toUpperCase()}const ol=Vt([qt,Ki,Yt,Xt,Qt],"html"),Pn=Vt([qt,Zi,Yt,Xt,Qt],"svg");function al(e){return e.join(" ").trim()}var An={},rt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ul=/\n/g,sl=/^\s*/,cl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pl=/^:\s*/,hl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fl=/^[;\s]*/,ml=/^\s+|\s+$/g,dl=`
2
+ `,it="/",lt="*",xe="",gl="comment",yl="declaration";function xl(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(x){var b=x.match(ul);b&&(t+=b.length);var P=x.lastIndexOf(dl);r=~P?x.length-P:r+x.length}function l(){var x={line:t,column:r};return function(b){return b.position=new o(x),s(),b}}function o(x){this.start=x,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function a(x){var b=new Error(n.source+":"+t+":"+r+": "+x);if(b.reason=x,b.filename=n.source,b.line=t,b.column=r,b.source=e,!n.silent)throw b}function c(x){var b=x.exec(e);if(b){var P=b[0];return i(P),e=e.slice(P.length),b}}function s(){c(sl)}function u(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=l();if(!(it!=e.charAt(0)||lt!=e.charAt(1))){for(var b=2;xe!=e.charAt(b)&&(lt!=e.charAt(b)||it!=e.charAt(b+1));)++b;if(b+=2,xe===e.charAt(b-1))return a("End of comment missing");var P=e.slice(2,b-2);return r+=2,i(P),e=e.slice(b),r+=2,x({type:gl,comment:P})}}function d(){var x=l(),b=c(cl);if(b){if(h(),!c(pl))return a("property missing ':'");var P=c(hl),S=x({type:yl,property:ot(b[0].replace(rt,xe)),value:P?ot(P[0].replace(rt,xe)):xe});return c(fl),S}}function p(){var x=[];u(x);for(var b;b=d();)b!==!1&&(x.push(b),u(x));return x}return s(),p()}function ot(e){return e?e.replace(ml,xe):xe}var kl=xl,bl=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(An,"__esModule",{value:!0});An.default=Sl;const wl=bl(kl);function Sl(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,wl.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?n(o,a,l):a&&(t=t||{},t[o]=a)}),t}var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.camelCase=void 0;var El=/^--[a-zA-Z0-9_-]+$/,Cl=/-([a-z])/g,Il=/^[^-]+$/,Tl=/^-(webkit|moz|ms|o|khtml)-/,Pl=/^-(ms)-/,Al=function(e){return!e||Il.test(e)||El.test(e)},vl=function(e,n){return n.toUpperCase()},at=function(e,n){return"".concat(n,"-")},zl=function(e,n){return n===void 0&&(n={}),Al(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Pl,at):e=e.replace(Tl,at),e.replace(Cl,vl))};Ke.camelCase=zl;var Ll=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Dl=Ll(An),Ol=Ke;function xn(e,n){var t={};return!e||typeof e!="string"||(0,Dl.default)(e,function(r,i){r&&i&&(t[(0,Ol.camelCase)(r,n)]=i)}),t}xn.default=xn;var _l=xn;const Nl=_t(_l),Gt=Jt("end"),vn=Jt("start");function Jt(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Fl(e){const n=vn(e),t=Gt(e);if(n&&t)return{start:n,end:t}}function Ne(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ut(e.position):"start"in e||"end"in e?ut(e):"line"in e||"column"in e?kn(e):""}function kn(e){return st(e&&e.line)+":"+st(e&&e.column)}function ut(e){return kn(e&&e.start)+"-"+kn(e&&e.end)}function st(e){return e&&typeof e=="number"?e:1}class Q extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ne(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;const zn={}.hasOwnProperty,Rl=new Map,Ml=/[A-Z]/g,Bl=new Set(["table","tbody","thead","tfoot","tr"]),jl=new Set(["td","th"]),Kt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Hl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ql(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Xl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Pn:ol,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Zt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Zt(e,n,t){if(n.type==="element")return Ul(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Vl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return $l(e,n,t);if(n.type==="mdxjsEsm")return ql(e,n);if(n.type==="root")return Wl(e,n,t);if(n.type==="text")return Yl(e,n)}function Ul(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Pn,e.schema=i),e.ancestors.push(n);const l=nr(e,n.tagName,!1),o=Gl(e,n);let a=Dn(e,n);return Bl.has(n.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!Gi(c):!0})),er(e,o,l,n),Ln(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Vl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return Oe(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Re(e,n.position)}function ql(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Re(e,n.position)}function $l(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Pn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:nr(e,n.name,!0),o=Jl(e,n),a=Dn(e,n);return er(e,o,l,n),Ln(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Wl(e,n,t){const r={};return Ln(r,Dn(e,n)),e.create(n,e.Fragment,r,t)}function Yl(e,n){return n.value}function er(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Ln(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Xl(e,n,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:n;return a?s(l,o,a):s(l,o)}}function Ql(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),c=vn(r);return n(i,l,o,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Gl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&zn.call(n.properties,i)){const l=Kl(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&jl.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Jl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];Oe(l.type==="ExpressionStatement");const o=l.expression;Oe(o.type==="ObjectExpression");const a=o.properties[0];Oe(a.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Re(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];Oe(a.type==="ExpressionStatement"),l=e.evaluater.evaluateExpression(a.expression)}else Re(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Dn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Rl;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const s=i.get(c)||0;o=c+"-"+s,i.set(c,s+1)}}const a=Zt(e,l,o);a!==void 0&&t.push(a)}return t}function Kl(e,n,t){const r=rl(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?$i(t):al(t)),r.property==="style"){let i=typeof t=="object"?t:Zl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=eo(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?el[r.property]||r.property:r.attribute,t]}}function Zl(e,n){try{return Nl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Kt+"#cannot-parse-style-attribute",i}}function nr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Zn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Zn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return zn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Re(e)}function Re(e,n){const t=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Kt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function eo(e){const n={};let t;for(t in e)zn.call(e,t)&&(n[no(t)]=e[t]);return n}function no(e){let n=e.replace(Ml,to);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function to(e){return"-"+e.toLowerCase()}const rn={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"]},ro={tokenize:io};function io(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return T(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const lo={tokenize:oo},ct={tokenize:ao};function oo(e){const n=this,t=[];let r=0,i,l,o;return a;function a(E){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,c,s)(E)}return s(E)}function c(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const j=n.events.length;let U=j,y;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){y=n.events[U][1].end;break}S(r);let O=j;for(;O<n.events.length;)n.events[O][1].end={...y},O++;return de(n.events,U+1,0,n.events.slice(j)),n.events.length=O,s(E)}return a(E)}function s(E){if(r===t.length){if(!i)return d(E);if(i.currentConstruct&&i.currentConstruct.concrete)return x(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ct,u,h)(E)}function u(E){return i&&L(),S(r),d(E)}function h(E){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,x(E)}function d(E){return n.containerState={},e.attempt(ct,p,x)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),d(E)}function x(E){if(E===null){i&&L(),S(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),b(E)}function b(E){if(E===null){P(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return T(E)?(e.consume(E),P(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),b)}function P(E,j){const U=n.sliceStream(E);if(j&&U.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(U),n.parser.lazy[E.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const O=n.events.length;let V=O,N,M;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(N){M=n.events[V][1].end;break}N=!0}for(S(r),y=O;y<n.events.length;)n.events[y][1].end={...M},y++;de(n.events,V+1,0,n.events.slice(O)),n.events.length=y}}function S(E){let j=t.length;for(;j-- >E;){const U=t[j];n.containerState=U[1],U[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function ao(e,n,t){return B(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const uo={tokenize:so};function so(e){const n=this,t=e.attempt(Je,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jr,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const co={resolveAll:rr()},po=tr("string"),ho=tr("text");function tr(e){return{resolveAll:rr(e==="text"?fo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(u){return s(u)?l(u):a(u)}function a(u){if(u===null){t.consume(u);return}return t.enter("data"),t.consume(u),c}function c(u){return s(u)?(t.exit("data"),l(u)):(t.consume(u),c)}function s(u){if(u===null)return!0;const h=i[u];let d=-1;if(h)for(;++d<h.length;){const p=h[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function rr(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function fo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,c;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)c=!0,a++;else if(s!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const mo={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Ft},go={91:ti},yo={[-2]:en,[-1]:en,32:en},xo={35:ui,42:We,45:[Kn,We],60:hi,61:Kn,95:We,96:Gn,126:Gn},ko={38:Mt,92:Rt},bo={[-5]:nn,[-4]:nn,[-3]:nn,33:zi,38:Mt,42:mn,60:[Or,ki],91:Di,92:[oi,Rt],93:In,95:mn,96:$r},wo={null:[mn,co]},So={null:[42,95]},Eo={null:[]},Co=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:So,contentInitial:go,disable:Eo,document:mo,flow:xo,flowInitial:yo,insideSpan:wo,string:ko,text:bo},Symbol.toStringTag,{value:"Module"}));function Io(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const c={attempt:O(U),check:O(y),consume:L,enter:E,exit:j,interrupt:O(y,{interrupt:!0})},s={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:h};let u=n.tokenize.call(s,c);return n.resolveAll&&l.push(n),s;function h(I){return o=te(o,I),P(),o[o.length-1]!==null?[]:(V(n,0),s.events=En(l,s.events,s),s.events)}function d(I,C){return Po(p(I),C)}function p(I){return To(o,I)}function x(){const{_bufferIndex:I,_index:C,line:H,column:q,offset:D}=r;return{_bufferIndex:I,_index:C,line:H,column:q,offset:D}}function b(I){i[I.line]=I.column,M()}function P(){let I;for(;r._index<o.length;){const C=o[r._index];if(typeof C=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<C.length;)S(C.charCodeAt(r._bufferIndex));else S(C)}}function S(I){u=u(I)}function L(I){T(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,M()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=I}function E(I,C){const H=C||{};return H.type=I,H.start=x(),s.events.push(["enter",H,s]),a.push(H),H}function j(I){const C=a.pop();return C.end=x(),s.events.push(["exit",C,s]),C}function U(I,C){V(I,C.from)}function y(I,C){C.restore()}function O(I,C){return H;function H(q,D,X){let W,re,se,f;return Array.isArray(q)?ce(q):"tokenize"in q?ce([q]):ie(q);function ie(Y){return Ae;function Ae(fe){const be=fe!==null&&Y[fe],we=fe!==null&&Y.null,je=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(we)?we:we?[we]:[]];return ce(je)(fe)}}function ce(Y){return W=Y,re=0,Y.length===0?X:m(Y[re])}function m(Y){return Ae;function Ae(fe){return f=N(),se=Y,Y.partial||(s.currentConstruct=Y),Y.name&&s.parser.constructs.disable.null.includes(Y.name)?ge():Y.tokenize.call(C?Object.assign(Object.create(s),C):s,c,le,ge)(fe)}}function le(Y){return I(se,f),D}function ge(Y){return f.restore(),++re<W.length?m(W[re]):X}}}function V(I,C){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&de(s.events,C,s.events.length-C,I.resolve(s.events.slice(C),s)),I.resolveTo&&(s.events=I.resolveTo(s.events,s))}function N(){const I=x(),C=s.previous,H=s.currentConstruct,q=s.events.length,D=Array.from(a);return{from:q,restore:X};function X(){r=I,s.previous=C,s.currentConstruct=H,s.events.length=q,a=D,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function To(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Po(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
3
+ `;break}case-3:{o=`\r
4
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function Ao(e){const r={constructs:Ir([Co,...(e||{}).extensions||[]]),content:i(ro),defined:[],document:i(lo),flow:i(uo),lazy:{},string:i(po),text:i(ho)};return r;function i(l){return o;function o(a){return Io(r,l,a)}}}function vo(e){for(;!Bt(e););return e}const pt=/[\0\t\n\r]/g;function zo(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const c=[];let s,u,h,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),h=0,n="",t&&(l.charCodeAt(0)===65279&&h++,t=void 0);h<l.length;){if(pt.lastIndex=h,s=pt.exec(l),d=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(d),!s){n=l.slice(h);break}if(p===10&&h===d&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<d&&(c.push(l.slice(h,d)),e+=d-h),p){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=d+1}return a&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const ir={}.hasOwnProperty;function Lo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Do(t)(vo(Ao(t).document().write(zo()(e,n,!0))))}function Do(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(qn),autolinkProtocol:N,autolinkEmail:N,atxHeading:l(Hn),blockQuote:l(we),characterEscape:N,characterReference:N,codeFenced:l(je),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(je,o),codeText:l(fr,o),codeTextData:N,data:N,codeFlowValue:N,definition:l(mr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(dr),hardBreakEscape:l(Un),hardBreakTrailing:l(Un),htmlFlow:l(Vn,o),htmlFlowData:N,htmlText:l(Vn,o),htmlTextData:N,image:l(gr),label:o,link:l(qn),listItem:l(yr),listItemValue:d,listOrdered:l($n,h),listUnordered:l($n),paragraph:l(xr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Hn),strong:l(kr),thematicBreak:l(wr)},exit:{atxHeading:c(),atxHeadingSequence:U,autolink:c(),autolinkEmail:be,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:Y,characterReference:Ae,codeFenced:c(P),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:M,codeIndented:c(S),codeText:c(D),codeTextData:M,data:M,definition:c(),definitionDestinationString:j,definitionLabelString:L,definitionTitleString:E,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(H),htmlFlowData:M,htmlText:c(q),htmlTextData:M,image:c(W),label:se,labelText:re,lineEnding:I,link:c(X),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:f,resourceTitleString:ie,resource:ce,setextHeading:c(V),setextHeadingLineSequence:O,setextHeadingText:y,strong:c(),thematicBreak:c()}};lr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let w={type:"root",children:[]};const A={stack:[w],tokenStack:[],config:n,enter:a,exit:s,buffer:o,resume:u,data:t},z=[];let F=-1;for(;++F<g.length;)if(g[F][1].type==="listOrdered"||g[F][1].type==="listUnordered")if(g[F][0]==="enter")z.push(F);else{const oe=z.pop();F=i(g,oe,F)}for(F=-1;++F<g.length;){const oe=n[g[F][0]];ir.call(oe,g[F][1].type)&&oe[g[F][1].type].call(Object.assign({sliceSerialize:g[F][2].sliceSerialize},A),g[F][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||ht).call(A,void 0,oe[0])}for(w.position={start:me(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:me(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},F=-1;++F<n.transforms.length;)w=n.transforms[F](w)||w;return w}function i(g,w,A){let z=w-1,F=-1,oe=!1,ye,pe,ve,ze;for(;++z<=A;){const K=g[z];switch(K[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{K[0]==="enter"?F++:F--,ze=void 0;break}case"lineEndingBlank":{K[0]==="enter"&&(ye&&!ze&&!F&&!ve&&(ve=z),ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ze=void 0}if(!F&&K[0]==="enter"&&K[1].type==="listItemPrefix"||F===-1&&K[0]==="exit"&&(K[1].type==="listUnordered"||K[1].type==="listOrdered")){if(ye){let Se=z;for(pe=void 0;Se--;){const he=g[Se];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;pe&&(g[pe][1].type="lineEndingBlank",oe=!0),he[1].type="lineEnding",pe=Se}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}ve&&(!pe||ve<pe)&&(ye._spread=!0),ye.end=Object.assign({},pe?g[pe][1].start:K[1].end),g.splice(pe||z,0,["exit",ye,K[2]]),z++,A++}if(K[1].type==="listItemPrefix"){const Se={type:"listItem",_spread:!1,start:Object.assign({},K[1].start),end:void 0};ye=Se,g.splice(z,0,["enter",Se,K[2]]),z++,A++,ve=void 0,ze=!0}}}return g[w][1]._spread=oe,A}function l(g,w){return A;function A(z){a.call(this,g(z),z),w&&w.call(this,z)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(g,w,A){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([w,A||void 0]),g.position={start:me(w.start),end:void 0}}function c(g){return w;function w(A){g&&g.call(this,A),s.call(this,A)}}function s(g,w){const A=this.stack.pop(),z=this.tokenStack.pop();if(z)z[0].type!==g.type&&(w?w.call(this,g,z[0]):(z[1]||ht).call(this,g,z[0]));else throw new Error("Cannot close `"+g.type+"` ("+Ne({start:g.start,end:g.end})+"): it’s not open");A.position.end=me(g.end)}function u(){return Tr(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),w=this.stack[this.stack.length-1];w.lang=g}function x(){const g=this.resume(),w=this.stack[this.stack.length-1];w.meta=g}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g.replace(/(\r?\n|\r)$/g,"")}function L(g){const w=this.resume(),A=this.stack[this.stack.length-1];A.label=w,A.identifier=Ce(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function j(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function U(g){const w=this.stack[this.stack.length-1];if(!w.depth){const A=this.sliceSerialize(g).length;w.depth=A}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function O(g){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function N(g){const A=this.stack[this.stack.length-1].children;let z=A[A.length-1];(!z||z.type!=="text")&&(z=br(),z.position={start:me(g.start),end:void 0},A.push(z)),this.stack.push(z)}function M(g){const w=this.stack.pop();w.value+=this.sliceSerialize(g),w.position.end=me(g.end)}function I(g){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=w.children[w.children.length-1];A.position.end=me(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(N.call(this,g),M.call(this,g))}function C(){this.data.atHardBreak=!0}function H(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function q(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function D(){const g=this.resume(),w=this.stack[this.stack.length-1];w.value=g}function X(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function W(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=w,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const w=this.sliceSerialize(g),A=this.stack[this.stack.length-2];A.label=vr(w),A.identifier=Ce(w).toLowerCase()}function se(){const g=this.stack[this.stack.length-1],w=this.resume(),A=this.stack[this.stack.length-1];if(this.data.inReference=!0,A.type==="link"){const z=g.children;A.children=z}else A.alt=w}function f(){const g=this.resume(),w=this.stack[this.stack.length-1];w.url=g}function ie(){const g=this.resume(),w=this.stack[this.stack.length-1];w.title=g}function ce(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const w=this.resume(),A=this.stack[this.stack.length-1];A.label=w,A.identifier=Ce(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ge(g){this.data.characterReferenceType=g.type}function Y(g){const w=this.sliceSerialize(g),A=this.data.characterReferenceType;let z;A?(z=Nt(w,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):z=Cn(w);const F=this.stack[this.stack.length-1];F.value+=z}function Ae(g){const w=this.stack.pop();w.position.end=me(g.end)}function fe(g){M.call(this,g);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(g)}function be(g){M.call(this,g);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(g)}function we(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function fr(){return{type:"inlineCode",value:""}}function mr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dr(){return{type:"emphasis",children:[]}}function Hn(){return{type:"heading",depth:0,children:[]}}function Un(){return{type:"break"}}function Vn(){return{type:"html",value:""}}function gr(){return{type:"image",title:null,url:"",alt:null}}function qn(){return{type:"link",title:null,url:"",children:[]}}function $n(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function yr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function xr(){return{type:"paragraph",children:[]}}function kr(){return{type:"strong",children:[]}}function br(){return{type:"text",value:""}}function wr(){return{type:"thematicBreak"}}}function me(e){return{line:e.line,column:e.column,offset:e.offset}}function lr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?lr(e,r):Oo(e,r)}}function Oo(e,n){let t;for(t in n)if(ir.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ht(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ne({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ne({start:n.start,end:n.end})+") is still open")}function _o(e){const n=this;n.parser=t;function t(r){return Lo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function No(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Fo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
+ `}]}function Ro(e,n){const t=n.value?n.value+`
6
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Mo(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Bo(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function jo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Te(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,c);const s={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,s),e.applyData(n,s)}function Ho(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Uo(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function or(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Vo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return or(e,n);const i={src:Te(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function qo(e,n){const t={src:Te(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function $o(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Wo(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return or(e,n);const i={href:Te(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Yo(e,n){const t={href:Te(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Xo(e,n,t){const r=e.all(n),i=t?Qo(t):ar(n),l={},o=[];if(typeof n.checked=="boolean"){const u=r[0];let h;u&&u.type==="element"&&u.tagName==="p"?h=u:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(i||a!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
7
+ `}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
8
+ `});const s={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,s),e.applyData(n,s)}function Qo(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=ar(t[r])}return n}function ar(e){const n=e.spread;return n??e.children.length>1}function Go(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function Jo(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ko(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Zo(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ea(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=vn(n.children[1]),c=Gt(n.children[n.children.length-1]);a&&c&&(o.position={start:a,end:c}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function na(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let c=-1;const s=[];for(;++c<a;){const h=n.children[c],d={},p=o?o[c]:void 0;p&&(d.align=p);let x={type:"element",tagName:l,properties:d,children:[]};h&&(x.children=e.all(h),e.patch(h,x),x=e.applyData(h,x)),s.push(x)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,u),e.applyData(n,u)}function ta(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const ft=9,mt=32;function ra(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(dt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(dt(n.slice(i),i>0,!1)),l.join("")}function dt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===ft||l===mt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===ft||l===mt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ia(e,n){const t={type:"text",value:ra(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function la(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const oa={blockquote:No,break:Fo,code:Ro,delete:Mo,emphasis:Bo,footnoteReference:jo,heading:Ho,html:Uo,imageReference:Vo,image:qo,inlineCode:$o,linkReference:Wo,link:Yo,listItem:Xo,list:Go,paragraph:Jo,root:Ko,strong:Zo,table:ea,tableCell:ta,tableRow:na,text:ia,thematicBreak:la,toml:Ue,yaml:Ue,definition:Ue,footnoteDefinition:Ue};function Ue(){}const ur=-1,Ze=0,Fe=1,Qe=2,On=3,_n=4,Nn=5,Fn=6,sr=7,cr=8,gt=typeof self=="object"?self:globalThis,aa=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Ze:case ur:return t(o,i);case Fe:{const a=t([],i);for(const c of o)a.push(r(c));return a}case Qe:{const a=t({},i);for(const[c,s]of o)a[r(c)]=r(s);return a}case On:return t(new Date(o),i);case _n:{const{source:a,flags:c}=o;return t(new RegExp(a,c),i)}case Nn:{const a=t(new Map,i);for(const[c,s]of o)a.set(r(c),r(s));return a}case Fn:{const a=t(new Set,i);for(const c of o)a.add(r(c));return a}case sr:{const{name:a,message:c}=o;return t(new gt[a](c),i)}case cr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new gt[l](o),i)};return r},yt=e=>aa(new Map,e)(0),Ee="",{toString:ua}={},{keys:sa}=Object,De=e=>{const n=typeof e;if(n!=="object"||!e)return[Ze,n];const t=ua.call(e).slice(8,-1);switch(t){case"Array":return[Fe,Ee];case"Object":return[Qe,Ee];case"Date":return[On,Ee];case"RegExp":return[_n,Ee];case"Map":return[Nn,Ee];case"Set":return[Fn,Ee];case"DataView":return[Fe,t]}return t.includes("Array")?[Fe,t]:t.includes("Error")?[sr,t]:[Qe,t]},Ve=([e,n])=>e===Ze&&(n==="function"||n==="symbol"),ca=(e,n,t,r)=>{const i=(o,a)=>{const c=r.push(o)-1;return t.set(a,c),c},l=o=>{if(t.has(o))return t.get(o);let[a,c]=De(o);switch(a){case Ze:{let u=o;switch(c){case"bigint":a=cr,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([ur],o)}return i([a,u],o)}case Fe:{if(c){let d=o;return c==="DataView"?d=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(o)),i([c,[...d]],o)}const u=[],h=i([a,u],o);for(const d of o)u.push(l(d));return h}case Qe:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const u=[],h=i([a,u],o);for(const d of sa(o))(e||!Ve(De(o[d])))&&u.push([l(d),l(o[d])]);return h}case On:return i([a,o.toISOString()],o);case _n:{const{source:u,flags:h}=o;return i([a,{source:u,flags:h}],o)}case Nn:{const u=[],h=i([a,u],o);for(const[d,p]of o)(e||!(Ve(De(d))||Ve(De(p))))&&u.push([l(d),l(p)]);return h}case Fn:{const u=[],h=i([a,u],o);for(const d of o)(e||!Ve(De(d)))&&u.push(l(d));return h}}const{message:s}=o;return i([a,{name:c,message:s}],o)};return l},xt=(e,{json:n,lossy:t}={})=>{const r=[];return ca(!(n||t),!!n,new Map,r)(e),r},Ge=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?yt(xt(e,n)):structuredClone(e):(e,n)=>yt(xt(e,n));function pa(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function ha(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function fa(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||pa,r=e.options.footnoteBackLabel||ha,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[c]);if(!s)continue;const u=e.all(s),h=String(s.identifier).toUpperCase(),d=Te(h.toLowerCase());let p=0;const x=[],b=e.footnoteCounts.get(h);for(;b!==void 0&&++p<=b;){x.length>0&&x.push({type:"text",value:" "});let L=typeof t=="string"?t:t(c,p);typeof L=="string"&&(L={type:"text",value:L}),x.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const P=u[u.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const L=P.children[P.children.length-1];L&&L.type==="text"?L.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...x)}else u.push(...x);const S={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(u,!0)};e.patch(s,S),a.push(S)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ge(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
+ `}]}}const bn={}.hasOwnProperty,ma={};function da(e,n){const t=n||ma,r=new Map,i=new Map,l=new Map,o={...oa,...t.handlers},a={all:s,applyData:ya,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:c,options:t,patch:ga,wrap:ka};return Ot(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const h=u.type==="definition"?r:i,d=String(u.identifier).toUpperCase();h.has(d)||h.set(d,u)}}),a;function c(u,h){const d=u.type,p=a.handlers[d];if(bn.call(a.handlers,d)&&p)return p(a,u,h);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in u){const{children:b,...P}=u,S=Ge(P);return S.children=a.all(u),S}return Ge(u)}return(a.options.unknownHandler||xa)(a,u,h)}function s(u){const h=[];if("children"in u){const d=u.children;let p=-1;for(;++p<d.length;){const x=a.one(d[p],u);if(x){if(p&&d[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=kt(x.value)),!Array.isArray(x)&&x.type==="element")){const b=x.children[0];b&&b.type==="text"&&(b.value=kt(b.value))}Array.isArray(x)?h.push(...x):h.push(x)}}}return h}}function ga(e,n){e.position&&(n.position=Fl(e))}function ya(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Ge(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function xa(e,n){const t=n.data||{},r="value"in n&&!(bn.call(t,"hProperties")||bn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function ka(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
+ `});++r<e.length;)r&&t.push({type:"text",value:`
12
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13
+ `}),t}function kt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function bt(e,n){const t=da(e,n),r=t.one(e,void 0),i=fa(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14
+ `},i),l}function ba(e,n){return e&&"run"in e?async function(t,r){const i=bt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return bt(t,{file:r,...e||n})}}function wt(e){if(e)throw e}var Ye=Object.prototype.hasOwnProperty,pr=Object.prototype.toString,St=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,Ct=function(n){return typeof Array.isArray=="function"?Array.isArray(n):pr.call(n)==="[object Array]"},It=function(n){if(!n||pr.call(n)!=="[object Object]")return!1;var t=Ye.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Ye.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Ye.call(n,i)},Tt=function(n,t){St&&t.name==="__proto__"?St(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Pt=function(n,t){if(t==="__proto__")if(Ye.call(n,t)){if(Et)return Et(n,t).value}else return;return n[t]},wa=function e(){var n,t,r,i,l,o,a=arguments[0],c=1,s=arguments.length,u=!1;for(typeof a=="boolean"&&(u=a,a=arguments[1]||{},c=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});c<s;++c)if(n=arguments[c],n!=null)for(t in n)r=Pt(a,t),i=Pt(n,t),a!==i&&(u&&i&&(It(i)||(l=Ct(i)))?(l?(l=!1,o=r&&Ct(r)?r:[]):o=r&&It(r)?r:{},Tt(a,{name:t,newValue:e(u,o,i)})):typeof i<"u"&&Tt(a,{name:t,newValue:i}));return a};const ln=_t(wa);function wn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Sa(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(c,...s){const u=e[++l];let h=-1;if(c){o(c);return}for(;++h<i.length;)(s[h]===null||s[h]===void 0)&&(s[h]=i[h]);i=s,u?Ea(u,a)(...s):o(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Ea(e,n){let t;return r;function r(...o){const a=e.length>o.length;let c;a&&o.push(i);try{c=e.apply(this,o)}catch(s){const u=s;if(a&&t)throw u;return i(u)}a||(c&&c.then&&typeof c.then=="function"?c.then(l,i):c instanceof Error?i(c):l(c))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ae={basename:Ca,dirname:Ia,extname:Ta,join:Pa,sep:"/"};function Ca(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Be(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Ia(e){if(Be(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ta(e){Be(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Pa(...e){let n=-1,t;for(;++n<e.length;)Be(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Aa(t)}function Aa(e){Be(e);const n=e.codePointAt(0)===47;let t=va(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function va(e,n){let t="",r=0,i=-1,l=0,o=-1,a,c;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(c=t.lastIndexOf("/"),c!==t.length-1){c<0?(t="",r=0):(t=t.slice(0,c),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Be(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const za={cwd:La};function La(){return"/"}function Sn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Da(e){if(typeof e=="string")e=new URL(e);else if(!Sn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Oa(e)}function Oa(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const on=["history","path","basename","stem","extname","dirname"];class hr{constructor(n){let t;n?Sn(n)?t={path:n}:typeof n=="string"||_a(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":za.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<on.length;){const l=on[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)on.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ae.basename(this.path):void 0}set basename(n){un(n,"basename"),an(n,"basename"),this.path=ae.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ae.dirname(this.path):void 0}set dirname(n){At(this.basename,"dirname"),this.path=ae.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ae.extname(this.path):void 0}set extname(n){if(an(n,"extname"),At(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ae.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Sn(n)&&(n=Da(n)),un(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ae.basename(this.path,this.extname):void 0}set stem(n){un(n,"stem"),an(n,"stem"),this.path=ae.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new Q(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function an(e,n){if(e&&e.includes(ae.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ae.sep+"`")}function un(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function At(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function _a(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Na=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},Fa={}.hasOwnProperty;class Rn extends Na{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=Sa()}copy(){const n=new Rn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(ln(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(pn("data",this.frozen),this.namespace[n]=t,this):Fa.call(this.namespace,n)&&this.namespace[n]||void 0:n?(pn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=qe(n),r=this.parser||this.Parser;return sn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),sn("process",this.parser||this.Parser),cn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=qe(n),c=r.parse(a);r.run(c,a,function(u,h,d){if(u||!h||!d)return s(u);const p=h,x=r.stringify(p,d);Ba(x)?d.value=x:d.result=x,s(u,d)});function s(u,h){u||!h?o(u):l?l(h):t(void 0,h)}}}processSync(n){let t=!1,r;return this.freeze(),sn("processSync",this.parser||this.Parser),cn("processSync",this.compiler||this.Compiler),this.process(n,i),zt("processSync","process",t),r;function i(l,o){t=!0,wt(l),r=o}}run(n,t,r){vt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){const c=qe(t);i.run(n,c,s);function s(u,h,d){const p=h||n;u?a(u):o?o(p):r(void 0,p,d)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),zt("runSync","run",r),i;function l(o,a){wt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=qe(t),i=this.compiler||this.Compiler;return cn("stringify",i),vt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(pn("use",this.frozen),n!=null)if(typeof n=="function")c(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(s){if(typeof s=="function")c(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[u,...h]=s;c(u,h)}else o(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function o(s){if(!("plugins"in s)&&!("settings"in s))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");a(s.plugins),s.settings&&(i.settings=ln(!0,i.settings,s.settings))}function a(s){let u=-1;if(s!=null)if(Array.isArray(s))for(;++u<s.length;){const h=s[u];l(h)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function c(s,u){let h=-1,d=-1;for(;++h<r.length;)if(r[h][0]===s){d=h;break}if(d===-1)r.push([s,...u]);else if(u.length>0){let[p,...x]=u;const b=r[d][1];wn(b)&&wn(p)&&(p=ln(!0,b,p)),r[d]=[s,p,...x]}}}}const Ra=new Rn().freeze();function sn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vt(e){if(!wn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function qe(e){return Ma(e)?e:new hr(e)}function Ma(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ba(e){return typeof e=="string"||ja(e)}function ja(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ha="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],Dt={allowDangerousHtml:!0},Ua=/^(https?|ircs?|mailto|xmpp)$/i,Va=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ya(e){const n=Mn(e),t=Bn(e);return jn(n.runSync(n.parse(t),t),e)}async function Xa(e){const n=Mn(e),t=Bn(e),r=await n.run(n.parse(t),t);return jn(r,e)}function Qa(e){const n=Mn(e),[t,r]=He.useState(void 0),[i,l]=He.useState(void 0);if(He.useEffect(function(){const o=Bn(e);n.run(n.parse(o),o,function(a,c){r(a),l(c)})},[e.children,e.rehypePlugins,e.remarkPlugins,e.remarkRehypeOptions]),t)throw t;return i?jn(i,e):He.createElement($e.Fragment)}function Mn(e){const n=e.rehypePlugins||Lt,t=e.remarkPlugins||Lt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Dt}:Dt;return Ra().use(_o).use(t).use(ba,r).use(n)}function Bn(e){const n=e.children||"",t=new hr;return typeof n=="string"&&(t.value=n),t}function jn(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,c=n.urlTransform||qa;for(const u of Va)Object.hasOwn(n,u.from)&&Pr("Unexpected `"+u.from+"` prop, "+(u.to?"use `"+u.to+"` instead":"remove it")+" (see <"+Ha+"#"+u.id+"> for more info)");return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Ot(e,s),Hl(e,{Fragment:$e.Fragment,components:i,ignoreInvalidStyle:!0,jsx:$e.jsx,jsxs:$e.jsxs,passKeys:!0,passNode:!0});function s(u,h,d){if(u.type==="raw"&&d&&typeof h=="number")return o?d.children.splice(h,1):d.children[h]={type:"text",value:u.value},h;if(u.type==="element"){let p;for(p in rn)if(Object.hasOwn(rn,p)&&Object.hasOwn(u.properties,p)){const x=u.properties[p],b=rn[p];(b===null||b.includes(u.tagName))&&(u.properties[p]=c(String(x||""),p,u))}}if(u.type==="element"){let p=t?!t.includes(u.tagName):l?l.includes(u.tagName):!1;if(!p&&r&&typeof h=="number"&&(p=!r(u,h,d)),p&&d&&typeof h=="number")return a&&u.children?d.children.splice(h,1,...u.children):d.children.splice(h,1),h}}}function qa(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Ua.test(e.slice(0,n))?e:""}export{Xa as MarkdownAsync,Qa as MarkdownHooks,Ya as default,qa as defaultUrlTransform};
@@ -0,0 +1 @@
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-6{bottom:1.5rem}.left-3{left:.75rem}.right-0{right:0}.right-6{right:1.5rem}.top-0{top:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-48{max-height:12rem}.max-h-60{max-height:15rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.bg-bg-primary{background-color:var(--bg-primary)}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pl-9{padding-left:2.25rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-text-primary{color:var(--text-primary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-50{opacity:.5}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root,[data-theme=dark]{--bg-primary: #08090a;--bg-secondary: #0f1011;--bg-tertiary: #191a1b;--bg-hover: #28282c;--text-primary: #f7f8f8;--text-secondary: #d0d6e0;--text-muted: #8a8f98;--text-faint: #62666d;--accent: #5e6ad2;--accent-light: #7170ff;--accent-hover: #828fff;--border: rgba(255, 255, 255, .05);--border-strong: #23252a;--status-green: #27a644;--status-red: #ff4757;--status-yellow: #d29922;--card-bg: rgba(255, 255, 255, .02);--card-border: rgba(255, 255, 255, .08);--overlay-bg: rgba(0, 0, 0, .85);--input-bg: rgba(255, 255, 255, .05);--input-border: #33363b}[data-theme=light]{--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--bg-tertiary: #f0f1f3;--bg-hover: #e8e9ec;--text-primary: #1a1a2e;--text-secondary: #4a4a5a;--text-muted: #8a8a9a;--text-faint: #b0b0b8;--accent: #5e6ad2;--accent-light: #7170ff;--accent-hover: #4a56c0;--border: rgba(0, 0, 0, .08);--border-strong: #e0e0e5;--status-green: #27a644;--status-red: #ff4757;--status-yellow: #d29922;--card-bg: rgba(0, 0, 0, .02);--card-border: rgba(0, 0, 0, .08);--overlay-bg: rgba(0, 0, 0, .5);--input-bg: rgba(0, 0, 0, .04);--input-border: #d0d0d5}body{background-color:var(--bg-primary);color:var(--text-primary);font-family:Inter Variable,SF Pro Display,-apple-system,system-ui,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-feature-settings:"cv01","ss03"}.btn-primary{background-color:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background-color:var(--accent-hover)}.btn-secondary{background-color:var(--input-bg);color:var(--text-secondary);border:1px solid var(--card-border)}.btn-secondary:hover:not(:disabled){background-color:var(--bg-hover)}.btn-danger{background-color:var(--status-red);color:#fff}.btn-danger:hover:not(:disabled){background-color:#e03547}.btn-ghost{background-color:transparent;color:var(--text-secondary)}.btn-ghost:hover:not(:disabled){background-color:var(--border)}.search-input{border-color:var(--card-border)}.search-input:focus{border-color:var(--accent)}.profile-input{border-color:var(--card-border)}.profile-input:focus{border-color:var(--accent)}.skill-markdown h1{font-size:1.5rem;font-weight:590;color:var(--text-primary);margin:1.5rem 0 .75rem;padding-bottom:.5rem;border-bottom:1px solid var(--card-border)}.skill-markdown h2{font-size:1.25rem;font-weight:590;color:var(--text-primary);margin:1.25rem 0 .5rem}.skill-markdown h3{font-size:1.1rem;font-weight:590;color:var(--text-secondary);margin:1rem 0 .5rem}.skill-markdown h4{font-size:1rem;font-weight:590;color:var(--text-secondary);margin:.75rem 0 .25rem}.skill-markdown p{color:var(--text-secondary);line-height:1.7;margin:.5rem 0;font-size:.875rem}.skill-markdown ul,.skill-markdown ol{color:var(--text-secondary);padding-left:1.5rem;margin:.5rem 0;font-size:.875rem}.skill-markdown li{margin:.25rem 0;line-height:1.6}.skill-markdown ul{list-style:disc}.skill-markdown ol{list-style:decimal}.skill-markdown code{background:var(--border);color:var(--accent-light);padding:.15rem .4rem;border-radius:4px;font-size:.8125rem}.skill-markdown pre{background:var(--bg-secondary);border:1px solid var(--card-border);border-radius:8px;padding:1rem;overflow-x:auto;margin:.75rem 0}.skill-markdown pre code{background:none;padding:0;color:var(--text-secondary);font-size:.8125rem;line-height:1.6}.skill-markdown blockquote{border-left:3px solid var(--accent);padding-left:1rem;margin:.75rem 0;color:var(--text-muted);font-style:italic}.skill-markdown strong{color:var(--text-primary);font-weight:590}.skill-markdown em{color:var(--text-secondary)}.skill-markdown a{color:var(--accent-light);text-decoration:underline}.skill-markdown a:hover{color:var(--accent-hover)}.skill-markdown hr{border:none;border-top:1px solid var(--card-border);margin:1.5rem 0}.skill-markdown table{width:100%;border-collapse:collapse;margin:.75rem 0;font-size:.875rem}.skill-markdown th{text-align:left;padding:.5rem;border-bottom:2px solid var(--card-border);color:var(--text-primary);font-weight:590}.skill-markdown td{padding:.5rem;border-bottom:1px solid var(--border);color:var(--text-secondary)}.skill-markdown img{max-width:100%;border-radius:8px}.hover\:bg-bg-hover:hover{background-color:var(--bg-hover)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}@media (min-width: 1024px){.lg\:block{display:block}}