clitrigger 0.2.67 → 0.2.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AnalyticsPanel-DQ9grCp0.js → AnalyticsPanel-Dr9Zypd4.js} +1 -1
- package/dist/client/assets/{CalendarGrid-Fk99r9nq.js → CalendarGrid-BRVf7WJK.js} +1 -1
- package/dist/client/assets/{DiscussionDetail-HcG3ohsQ.js → DiscussionDetail-DetjETsr.js} +4 -4
- package/dist/client/assets/{DiscussionForm-BZfnK2EV.js → DiscussionForm-Bi4L47Ly.js} +1 -1
- package/dist/client/assets/{EmptyState-GADfcNs7.js → EmptyState--9RqKIk6.js} +1 -1
- package/dist/client/assets/{FloatingComposerController-5A3GJtK4-CTCqYxNF.js → FloatingComposerController-5A3GJtK4-85zrcVy6.js} +1 -1
- package/dist/client/assets/{LogViewer-Di7SxByZ.js → LogViewer-BDuckIDB.js} +1 -1
- package/dist/client/assets/{MarkdownContent-WshMOH5P.js → MarkdownContent-CwGbW814.js} +1 -1
- package/dist/client/assets/{PersonalAgenda-DrfVGibs.js → PersonalAgenda-JNpWPEDQ.js} +3 -3
- package/dist/client/assets/{PlannerPageEditor-B2m5SwtT.js → PlannerPageEditor-9_jJ-l98.js} +3 -3
- package/dist/client/assets/ProjectDetail-DwN6S3uf.js +183 -0
- package/dist/client/assets/{ProjectList-D2tf2Kfp.js → ProjectList-LeZ7mrEM.js} +1 -1
- package/dist/client/assets/{ReviewQueue-UrhgwrGk.js → ReviewQueue-DzTHqZdO.js} +1 -1
- package/dist/client/assets/{TaskGraph-Bp62pL5V.js → TaskGraph-BrHxqYJn.js} +1 -1
- package/dist/client/assets/{VaultLayout-ClyLfQdP.js → VaultLayout-DftlF-Gd.js} +1 -1
- package/dist/client/assets/{folder-git-2-CntWBh-U.js → folder-git-2-DocDG5LN.js} +1 -1
- package/dist/client/assets/index--CryAcdA.js +427 -0
- package/dist/client/assets/index-xIZH9sMw.css +32 -0
- package/dist/client/assets/{rotate-ccw-DRnyCt5y.js → rotate-ccw-CY6Wl56G.js} +1 -1
- package/dist/client/assets/{style-DcT-60Dn.js → style-D7Mv0Jex.js} +1 -1
- package/dist/client/assets/{with-selector-QmxTx8WM.js → with-selector-bSOP5zTp.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/services/cli-adapters.js +1 -1
- package/dist/server/services/cli-adapters.js.map +1 -1
- package/dist/server/services/cli-status.d.ts.map +1 -1
- package/dist/server/services/cli-status.js +12 -1
- package/dist/server/services/cli-status.js.map +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ProjectDetail-B96iIeaz.js +0 -183
- package/dist/client/assets/index-DB7C6wx1.js +0 -427
- package/dist/client/assets/index-gug7OXWO.css +0 -32
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{c as Ms,
|
|
1
|
+
import{c as Ms,aV as Is,u as Ds,a as Ls,aX as $s,r as l,j as s,i as x,L as ss,D as zs,O as Fs,U as Rs,v as Ps,M as z,J as Ts}from"./index--CryAcdA.js";import{h as j,g as Os,i as Us,s as Hs,e as Vs,j as Js,k as Gs,t as Ks,m as Xs,l as qs,n as Bs,o as Qs,p as Ws,P as Ys,G as Zs,C as se,D as ee}from"./DiscussionForm-Bi4L47Ly.js";import{M as te}from"./MarkdownContent-CwGbW814.js";import{C as ae,R as ne}from"./rotate-ccw-CY6Wl56G.js";/**
|
|
2
2
|
* @license lucide-react v1.8.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const re=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],ie=Ms("code",re),ce={pending:"bg-warm-200 text-warm-600",running:"bg-status-success/10 text-status-success",paused:"bg-status-warning/10 text-status-warning",completed:"bg-accent/10 text-accent",failed:"bg-status-error/10 text-status-error",merged:"bg-accent/10 text-accent"};function le(p){try{const y=JSON.parse(p);return Array.isArray(y)?y:[]}catch{return[]}}function es(p){return p==="pending"||p==="failed"?{canEdit:!0,allowAdvancedFields:!0}:p==="paused"||p==="completed"?{canEdit:!0,allowAdvancedFields:!1}:{canEdit:!1,allowAdvancedFields:!1}}function xe({onEvent:p,connected:y}){const{id:f,discussionId:r}=Is(),F=Ds(),{t:n,lang:h}=Ls(),{sendNotification:R}=$s(),[t,u]=l.useState(null),[ts,as]=l.useState([]),[ns,rs]=l.useState(!0),[P,is]=l.useState(new Map),[b,T]=l.useState(""),[cs,v]=l.useState(!1),[ls,_]=l.useState(!1),[os,O]=l.useState(!1),[A,M]=l.useState(new Set),[U,m]=l.useState(""),[H,
|
|
7
|
-
`).find(c=>c.trim())||"";return a.length>120?`${a.slice(0,120)}...`:a};l.useEffect(()=>{r&&j(r).then(u).catch(()=>{}).finally(()=>rs(!1))},[r]),l.useEffect(()=>{f&&Os(f).then(as).catch(()=>{})},[f]),l.useEffect(()=>p(e=>{r&&(e.type==="discussion:status-changed"&&e.discussionId===r&&((e.status==="completed"||e.status==="failed")&&R(e.status==="completed"?n("notification.discussionCompleted"):n("notification.discussionFailed"),(t==null?void 0:t.title)??""),u(a=>a&&{...a,status:e.status,current_round:e.currentRound??a.current_round,current_agent_id:e.currentAgentId??a.current_agent_id})),e.type==="discussion:message-changed"&&e.discussionId===r&&(u(a=>a&&{...a,messages:a.messages.map(c=>c.id===e.messageId?{...c,status:e.status}:c)}),(e.status==="completed"||e.status==="failed")&&j(r).then(u).catch(()=>{})),e.type==="discussion:log"&&e.discussionId===r&&e.messageId&&is(a=>{const c=new Map(a),i=e.messageId,o=c.get(i)||[];return c.set(i,[...o,e.message||""]),c}))}),[p,r,R,n,t==null?void 0:t.title]),l.useEffect(()=>{var e;(e=K.current)==null||e.scrollIntoView({behavior:"smooth"})},[t==null?void 0:t.messages,P]),l.useEffect(()=>{!r||!t||(t.status==="failed"?Us(r).then(e=>J(e.filter(a=>a.log_type==="error"))).catch(()=>{}):J([]))},[r,t==null?void 0:t.status]);const q=l.useCallback(async()=>{if(!r)return;const e=await Hs(r);u(e),m("")},[r]),ps=l.useCallback(async()=>{if(!r)return;await Js(r);const e=await j(r);u(e),m("")},[r]),B=l.useCallback(async()=>{if(!r||!b.trim())return;await Vs(r,b),T("");const e=await j(r);u(e),m("")},[r,b]),hs=l.useCallback(async()=>{if(!r)return;const e=await Gs(r);u(e),m("")},[r]),fs=l.useCallback(async e=>{if(!r)return;v(!1);const a=await Ks(r,e);u(a),m("")},[r]),gs=l.useCallback(async()=>{if(!r)return;await Ws(r);const e=await j(r);u(e),m("")},[r]),js=l.useCallback(async()=>{if(!r)return;await qs(r);const e=await j(r);u(e),m("")},[r]),bs=l.useCallback(async()=>{if(r){w(!0),V(!0),g([]);try{const{items:e}=await Bs(r);g(e.map(a=>({...a,selected:!0}))),m("")}catch(e){m(e instanceof Error?e.message:h==="ko"?"추출에 실패했습니다.":"Extraction failed."),w(!1)}finally{V(!1)}}},[r,h]),ws=l.useCallback(async()=>{if(!r||!f)return;const e=N.filter(a=>a.selected&&a.title.trim()).map(a=>({title:a.title.trim(),description:a.description,priority:a.priority}));if(e.length===0){m(h==="ko"?"항목을 하나 이상 선택해 주세요.":"Select at least one item.");return}G(!0);try{await Qs(r,e),w(!1),g([]),F(`/projects/${f}?tab=planner`)}catch(a){m(a instanceof Error?a.message:h==="ko"?"Planner 변환에 실패했습니다.":"Failed to create planner items.")}finally{G(!1)}},[r,f,N,h,F]),Ns=l.useCallback(async e=>{if(!(!r||!t)){O(!0);try{const{allowAdvancedFields:a}=es(t.status),c=a?{title:e.title,description:e.description,agent_ids:e.agent_ids,max_rounds:e.max_rounds,auto_implement:e.auto_implement,implement_agent_id:e.auto_implement?e.implement_agent_id:null}:{title:e.title,description:e.description};await Xs(r,c);const i=await j(r);u(i),_(!1),m("")}catch(a){m(a instanceof Error?a.message:h==="ko"?"토론 저장에 실패했습니다.":"Failed to save discussion.")}finally{O(!1)}}},[r,t,h]);if(ns)return s.jsxs("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 py-6 sm:py-8 space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(x,{className:"h-4 w-16"}),s.jsx(x,{className:"h-4 w-4"}),s.jsx(x,{className:"h-4 w-32"})]}),s.jsxs("div",{className:"card p-6 space-y-4",children:[s.jsx(x,{className:"h-7 w-1/3"}),s.jsx(x,{className:"h-4 w-full",count:2}),s.jsxs("div",{className:"flex gap-4 pt-2",children:[s.jsx(x,{className:"h-3 w-24"}),s.jsx(x,{className:"h-3 w-24"})]})]}),s.jsx("div",{className:"space-y-8",children:[...Array(3)].map((e,a)=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(x,{variant:"circular",width:32,height:32}),s.jsxs("div",{className:"flex-1 space-y-2",children:[s.jsx(x,{className:"h-4 w-24"}),s.jsxs("div",{className:"card p-4 space-y-2",children:[s.jsx(x,{className:"h-3 w-full"}),s.jsx(x,{className:"h-3 w-5/6"}),s.jsx(x,{className:"h-3 w-4/6"})]})]})]},a))})]});if(!t)return s.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-8 text-center",children:[s.jsx("p",{className:"text-status-error",children:n("discussions.notFound")}),s.jsx(ss,{to:`/projects/${f}?tab=discussions`,className:"text-sm text-accent mt-2 inline-block",children:n("discussions.back")})]});const Q=new Map(t.agents.map(e=>[e.id,e])),ys=t.status==="pending"||t.status==="paused"||t.status==="failed",I=t.status==="running",vs=t.status==="completed"||t.status==="paused",_s=t.status==="completed",ks=t.status==="paused"||t.status==="running",Cs=!I&&!!t.branch_name,{canEdit:Ss,allowAdvancedFields:X}=es(t.status),Y=e=>{if(!e)return[];try{const a=JSON.parse(e);return Array.isArray(a)?a.filter(c=>typeof c=="string"):[]}catch{return[]}},Es={title:t.title,description:t.description,agent_ids:le(t.agent_ids),max_rounds:t.max_rounds,auto_implement:t.auto_implement===1,implement_agent_id:t.implement_agent_id||"",memory_inject_mode:t.memory_inject_mode||"none",memory_node_ids:Y(t.memory_node_ids),memory_raw_file_paths:Y(t.memory_raw_file_paths),use_worktree:t.use_worktree==null?!0:t.use_worktree===1},S=new Map;for(const e of t.messages){const a=S.get(e.round_number)||[];a.push(e),S.set(e.round_number,a)}const As=[...S.keys()].sort((e,a)=>e-a);return s.jsxs("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 py-6 sm:py-8 flex flex-col",style:{height:"calc(100vh - 2rem)"},children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsxs(ss,{to:`/projects/${f}?tab=discussions`,className:"inline-flex items-center gap-1 text-sm text-warm-500 hover:text-accent transition-colors",children:[s.jsx(ae,{size:16}),n("discussions.back")]}),s.jsx("span",{className:"text-warm-300",children:"/"}),s.jsx("span",{className:"text-sm font-medium text-warm-700 truncate",children:t.title}),s.jsx("span",{className:`px-1.5 py-0.5 rounded-md text-2xs font-semibold uppercase ${ce[t.status]}`,children:n(`status.${t.status}`)||t.status}),t.status==="running"&&s.jsxs("span",{className:"text-2xs text-status-success animate-pulse",children:[n("discussions.round")," ",t.current_round,"/",t.max_rounds]}),y&&s.jsx("span",{className:"ml-auto inline-flex items-center gap-1 text-xs text-status-success",children:s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-status-success animate-pulse"})})]}),s.jsxs("div",{className:"mb-4 rounded-xl border border-warm-150 bg-warm-50/80 p-4",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("h1",{className:"text-lg font-semibold text-warm-800",children:t.title}),s.jsx("p",{className:"mt-2 whitespace-pre-wrap text-sm leading-relaxed text-warm-500",children:t.description})]}),Ss&&s.jsx("button",{onClick:()=>_(!0),className:"btn-secondary text-xs py-2 flex-shrink-0",children:n("todo.edit")})]}),s.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-[11px] text-warm-400",children:[s.jsxs("span",{children:[n("discussions.maxRounds"),": ",t.max_rounds]}),s.jsxs("span",{children:[n("discussions.agents"),": ",t.agents.map(e=>e.name).join(", ")||"-"]}),s.jsxs("span",{children:[n("discussions.autoImplement"),": ",t.auto_implement?h==="ko"?"사용":"Enabled":h==="ko"?"사용 안 함":"Disabled"]})]}),U&&s.jsx("p",{className:"mt-3 text-xs text-status-error",children:U})]}),t.status==="failed"&&(()=>{const e=t.messages.find(c=>c.status==="failed"),a=e?Q.get(e.agent_id):null;return s.jsxs("div",{className:"mb-4 rounded-xl bg-status-error/5 overflow-hidden",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 bg-status-error/10",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(zs,{size:16,className:"text-status-error"}),s.jsx("h4",{className:"text-xs font-semibold text-status-error uppercase tracking-wider",children:n("discussions.failureTitle")}),a&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-mono px-1.5 py-0.5 rounded-md bg-status-error/15 text-status-error",children:[s.jsx("span",{className:"w-3 h-3 rounded-full inline-block",style:{backgroundColor:a.avatar_color||"#94a3b8"}}),a.name]}),e&&s.jsxs("span",{className:"text-2xs font-mono px-1.5 py-0.5 rounded-md bg-status-error/15 text-status-error",children:[n("discussions.round")," ",e.round_number]})]}),s.jsxs("button",{onClick:q,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-status-success/15 text-status-success hover:bg-status-success/25 border border-status-success/30 transition-colors",children:[s.jsx(ne,{size:14}),n("discussions.retry")]})]}),s.jsx("div",{className:"px-4 py-3 space-y-1.5 max-h-48 overflow-y-auto",children:H.length>0?H.map(c=>s.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[s.jsx("span",{className:"text-warm-500 font-mono flex-shrink-0",children:new Date(c.created_at).toLocaleTimeString()}),s.jsx("span",{className:"text-status-error font-mono whitespace-pre-wrap break-all",children:c.message})]},c.id)):s.jsx("span",{className:"text-xs text-warm-400 italic",children:n("discussions.noErrorLogs")})})]})})(),s.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[ys&&s.jsxs("button",{onClick:q,className:"btn-primary text-sm",children:[s.jsx(Fs,{size:16}),t.status==="pending"?n("header.runAll"):n("discussions.resume")]}),I&&s.jsxs("button",{onClick:ps,className:"btn-danger text-sm",children:[s.jsx(Ys,{size:16}),n("discussions.pause")]}),I&&s.jsx("button",{onClick:hs,className:"btn btn-sm text-xs text-warm-500",children:n("discussions.skipTurn")}),vs&&s.jsxs("button",{onClick:()=>v(!0),className:"btn-primary text-sm",children:[s.jsx(ie,{size:16}),n("discussions.implement")]}),_s&&t.branch_name&&s.jsxs("button",{onClick:gs,className:"btn-primary text-sm",children:[s.jsx(Zs,{size:16}),n("todos.merge")]}),t.status==="completed"&&s.jsxs("button",{onClick:bs,className:"btn-primary text-sm",children:[s.jsx(se,{size:16}),n("discussions.toPlanner")]}),Cs&&s.jsxs("button",{onClick:js,className:"btn-danger text-sm",children:[s.jsx(Rs,{size:16}),n("todo.cleanup")]}),t.messages.some(e=>e.content&&e.status==="completed")&&s.jsx("button",{onClick:A.size>0?us:ms,className:"btn btn-sm text-xs text-warm-500",children:A.size>0?n("discussions.expandAll"):n("discussions.collapseAll")}),s.jsx("div",{className:"ml-auto flex items-center gap-1",children:t.agents.map(e=>s.jsx("div",{className:`w-7 h-7 rounded-full flex items-center justify-center text-white text-2xs font-bold transition-all ${t.current_agent_id===e.id?"ring-2 ring-status-success ring-offset-1 scale-110":"opacity-60"}`,style:{backgroundColor:e.avatar_color||"#6366f1"},title:`${e.name} (${e.role})`,children:e.name.charAt(0)},e.id))})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto space-y-1 pb-4",children:[As.map(e=>{const a=S.get(e),c=e>t.max_rounds;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3 my-4",children:[s.jsx("div",{className:"flex-1 h-px bg-warm-200"}),s.jsx("span",{className:"text-2xs font-semibold text-warm-400 uppercase tracking-wider",children:c?n("discussions.implementation"):`${n("discussions.round")} ${e}`}),s.jsx("div",{className:"flex-1 h-px bg-warm-200"})]}),a.map(i=>{const o=Q.get(i.agent_id),d=i.agent_id==="user",D=i.status==="running",L=P.get(i.id)||[],E=A.has(i.id),$=!!i.content&&i.status==="completed"&&!d;return s.jsxs("div",{className:`flex gap-3 py-3 ${d?"justify-end":""}`,children:[!d&&s.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold flex-shrink-0 ${D?"ring-2 ring-status-success ring-offset-1 animate-pulse":""}`,style:{backgroundColor:(o==null?void 0:o.avatar_color)||"#94a3b8"},children:i.agent_name.charAt(0)}),s.jsxs("div",{className:`flex-1 min-w-0 ${d?"max-w-[80%]":""}`,children:[!d&&s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-xs font-semibold text-warm-700",children:i.agent_name}),s.jsx("span",{className:"text-2xs text-warm-400",children:n(`agents.roles.${i.role}`)||i.role}),i.status==="skipped"&&s.jsx("span",{className:"text-2xs text-warm-300 italic",children:n("status.skipped")}),$&&s.jsxs("button",{onClick:()=>W(i.id),className:"text-2xs text-warm-300 hover:text-accent transition-colors flex items-center gap-0.5",children:[s.jsx(Ps,{size:12,className:`transition-transform ${E?"":"rotate-90"}`}),n(E?"discussions.expand":"discussions.collapse")]})]}),s.jsxs("div",{className:`rounded-xl p-3 text-sm ${d?"bg-accent/10 text-warm-700 ml-auto":i.status==="failed"?"bg-status-error/5 border border-warm-150":"bg-warm-50 border border-warm-150"} ${$?"cursor-pointer":""}`,onClick:$?()=>{const Z=window.getSelection();Z&&Z.toString().length>0||W(i.id)}:void 0,children:[E&&i.content&&s.jsx("div",{className:"text-xs text-warm-400 italic truncate",children:xs(i.content)}),!E&&i.content&&s.jsx(te,{content:i.content}),D&&L.length>0&&s.jsx("div",{className:"text-xs text-warm-500 whitespace-pre-wrap leading-relaxed max-h-60 overflow-y-auto font-mono",children:L.slice(-50).join(`
|
|
8
|
-
`)}),D&&L.length===0&&s.jsxs("div",{className:"flex items-center gap-2 text-xs text-status-success",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-status-success animate-pulse"}),n("discussions.speaking")]}),i.status==="pending"&&!i.content&&s.jsx("div",{className:"text-xs text-warm-300 italic",children:n("discussions.waiting")})]})]}),d&&s.jsx("div",{className:"w-8 h-8 rounded-full bg-warm-300 flex items-center justify-center text-white text-xs font-bold flex-shrink-0",children:"U"})]},i.id)})]},e)}),s.jsx("div",{ref:K})]}),ks&&s.jsxs("div",{className:"border-t border-warm-200 pt-3 flex gap-2",children:[s.jsx("input",{type:"text",value:b,onChange:e=>T(e.target.value),onKeyDown:e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),B())},placeholder:n("discussions.userMessage"),className:"input flex-1 text-sm"}),s.jsx("button",{onClick:B,disabled:!b.trim(),className:"btn btn-primary btn-sm text-xs",children:n("discussions.inject")})]}),ls&&s.jsx(z,{open:!0,onClose:()=>_(!1),size:"xl",children:s.jsx("div",{className:"max-h-[90vh] overflow-y-auto",children:s.jsx(ee,{agents:
|
|
6
|
+
*/const re=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],ie=Ms("code",re),ce={pending:"bg-warm-200 text-warm-600",running:"bg-status-success/10 text-status-success",paused:"bg-status-warning/10 text-status-warning",completed:"bg-accent/10 text-accent",failed:"bg-status-error/10 text-status-error",merged:"bg-accent/10 text-accent"};function le(p){try{const y=JSON.parse(p);return Array.isArray(y)?y:[]}catch{return[]}}function es(p){return p==="pending"||p==="failed"?{canEdit:!0,allowAdvancedFields:!0}:p==="paused"||p==="completed"?{canEdit:!0,allowAdvancedFields:!1}:{canEdit:!1,allowAdvancedFields:!1}}function xe({onEvent:p,connected:y}){const{id:f,discussionId:r}=Is(),F=Ds(),{t:n,lang:h}=Ls(),{sendNotification:R}=$s(),[t,u]=l.useState(null),[ts,as]=l.useState([]),[ns,rs]=l.useState(!0),[P,is]=l.useState(new Map),[b,T]=l.useState(""),[cs,v]=l.useState(!1),[ls,_]=l.useState(!1),[os,O]=l.useState(!1),[A,M]=l.useState(new Set),[U,m]=l.useState(""),[H,V]=l.useState([]),[ds,w]=l.useState(!1),[k,J]=l.useState(!1),[N,g]=l.useState([]),[C,G]=l.useState(!1),K=l.useRef(null),X=l.useCallback(e=>{M(a=>{const c=new Set(a);return c.has(e)?c.delete(e):c.add(e),c})},[]),ms=l.useCallback(()=>{if(!t)return;const e=new Set(t.messages.filter(a=>a.content&&a.status==="completed").map(a=>a.id));M(e)},[t]),us=l.useCallback(()=>{M(new Set)},[]),xs=e=>{const a=e.split(`
|
|
7
|
+
`).find(c=>c.trim())||"";return a.length>120?`${a.slice(0,120)}...`:a};l.useEffect(()=>{r&&j(r).then(u).catch(()=>{}).finally(()=>rs(!1))},[r]),l.useEffect(()=>{f&&Os(f).then(as).catch(()=>{})},[f]),l.useEffect(()=>p(e=>{r&&(e.type==="discussion:status-changed"&&e.discussionId===r&&((e.status==="completed"||e.status==="failed")&&R(e.status==="completed"?n("notification.discussionCompleted"):n("notification.discussionFailed"),(t==null?void 0:t.title)??""),u(a=>a&&{...a,status:e.status,current_round:e.currentRound??a.current_round,current_agent_id:e.currentAgentId??a.current_agent_id})),e.type==="discussion:message-changed"&&e.discussionId===r&&(u(a=>a&&{...a,messages:a.messages.map(c=>c.id===e.messageId?{...c,status:e.status}:c)}),(e.status==="completed"||e.status==="failed")&&j(r).then(u).catch(()=>{})),e.type==="discussion:log"&&e.discussionId===r&&e.messageId&&is(a=>{const c=new Map(a),i=e.messageId,o=c.get(i)||[];return c.set(i,[...o,e.message||""]),c}))}),[p,r,R,n,t==null?void 0:t.title]),l.useEffect(()=>{var e;(e=K.current)==null||e.scrollIntoView({behavior:"smooth"})},[t==null?void 0:t.messages,P]),l.useEffect(()=>{!r||!t||(t.status==="failed"?Us(r).then(e=>V(e.filter(a=>a.log_type==="error"))).catch(()=>{}):V([]))},[r,t==null?void 0:t.status]);const q=l.useCallback(async()=>{if(!r)return;const e=await Hs(r);u(e),m("")},[r]),ps=l.useCallback(async()=>{if(!r)return;await Vs(r);const e=await j(r);u(e),m("")},[r]),B=l.useCallback(async()=>{if(!r||!b.trim())return;await Js(r,b),T("");const e=await j(r);u(e),m("")},[r,b]),hs=l.useCallback(async()=>{if(!r)return;const e=await Gs(r);u(e),m("")},[r]),fs=l.useCallback(async e=>{if(!r)return;v(!1);const a=await Ks(r,e);u(a),m("")},[r]),gs=l.useCallback(async()=>{if(!r)return;await Xs(r);const e=await j(r);u(e),m("")},[r]),js=l.useCallback(async()=>{if(!r)return;await qs(r);const e=await j(r);u(e),m("")},[r]),bs=l.useCallback(async()=>{if(r){w(!0),J(!0),g([]);try{const{items:e}=await Bs(r);g(e.map(a=>({...a,selected:!0}))),m("")}catch(e){m(e instanceof Error?e.message:h==="ko"?"추출에 실패했습니다.":"Extraction failed."),w(!1)}finally{J(!1)}}},[r,h]),ws=l.useCallback(async()=>{if(!r||!f)return;const e=N.filter(a=>a.selected&&a.title.trim()).map(a=>({title:a.title.trim(),description:a.description,priority:a.priority}));if(e.length===0){m(h==="ko"?"항목을 하나 이상 선택해 주세요.":"Select at least one item.");return}G(!0);try{await Qs(r,e),w(!1),g([]),F(`/projects/${f}?tab=planner`)}catch(a){m(a instanceof Error?a.message:h==="ko"?"Planner 변환에 실패했습니다.":"Failed to create planner items.")}finally{G(!1)}},[r,f,N,h,F]),Ns=l.useCallback(async e=>{if(!(!r||!t)){O(!0);try{const{allowAdvancedFields:a}=es(t.status),c=a?{title:e.title,description:e.description,agent_ids:e.agent_ids,max_rounds:e.max_rounds,auto_implement:e.auto_implement,implement_agent_id:e.auto_implement?e.implement_agent_id:null}:{title:e.title,description:e.description};await Ws(r,c);const i=await j(r);u(i),_(!1),m("")}catch(a){m(a instanceof Error?a.message:h==="ko"?"토론 저장에 실패했습니다.":"Failed to save discussion.")}finally{O(!1)}}},[r,t,h]);if(ns)return s.jsxs("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 py-6 sm:py-8 space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(x,{className:"h-4 w-16"}),s.jsx(x,{className:"h-4 w-4"}),s.jsx(x,{className:"h-4 w-32"})]}),s.jsxs("div",{className:"card p-6 space-y-4",children:[s.jsx(x,{className:"h-7 w-1/3"}),s.jsx(x,{className:"h-4 w-full",count:2}),s.jsxs("div",{className:"flex gap-4 pt-2",children:[s.jsx(x,{className:"h-3 w-24"}),s.jsx(x,{className:"h-3 w-24"})]})]}),s.jsx("div",{className:"space-y-8",children:[...Array(3)].map((e,a)=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(x,{variant:"circular",width:32,height:32}),s.jsxs("div",{className:"flex-1 space-y-2",children:[s.jsx(x,{className:"h-4 w-24"}),s.jsxs("div",{className:"card p-4 space-y-2",children:[s.jsx(x,{className:"h-3 w-full"}),s.jsx(x,{className:"h-3 w-5/6"}),s.jsx(x,{className:"h-3 w-4/6"})]})]})]},a))})]});if(!t)return s.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-8 text-center",children:[s.jsx("p",{className:"text-status-error",children:n("discussions.notFound")}),s.jsx(ss,{to:`/projects/${f}?tab=discussions`,className:"text-sm text-accent mt-2 inline-block",children:n("discussions.back")})]});const Q=new Map(t.agents.map(e=>[e.id,e])),ys=t.status==="pending"||t.status==="paused"||t.status==="failed",I=t.status==="running",vs=t.status==="completed"||t.status==="paused",_s=t.status==="completed",ks=t.status==="paused"||t.status==="running",Cs=!I&&!!t.branch_name,{canEdit:Ss,allowAdvancedFields:W}=es(t.status),Y=e=>{if(!e)return[];try{const a=JSON.parse(e);return Array.isArray(a)?a.filter(c=>typeof c=="string"):[]}catch{return[]}},Es={title:t.title,description:t.description,agent_ids:le(t.agent_ids),max_rounds:t.max_rounds,auto_implement:t.auto_implement===1,implement_agent_id:t.implement_agent_id||"",memory_inject_mode:t.memory_inject_mode||"none",memory_node_ids:Y(t.memory_node_ids),memory_raw_file_paths:Y(t.memory_raw_file_paths),use_worktree:t.use_worktree==null?!0:t.use_worktree===1},S=new Map;for(const e of t.messages){const a=S.get(e.round_number)||[];a.push(e),S.set(e.round_number,a)}const As=[...S.keys()].sort((e,a)=>e-a);return s.jsxs("div",{className:"mx-auto max-w-4xl px-4 sm:px-6 py-6 sm:py-8 flex flex-col",style:{height:"calc(100vh - 2rem)"},children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsxs(ss,{to:`/projects/${f}?tab=discussions`,className:"inline-flex items-center gap-1 text-sm text-warm-500 hover:text-accent transition-colors",children:[s.jsx(ae,{size:16}),n("discussions.back")]}),s.jsx("span",{className:"text-warm-300",children:"/"}),s.jsx("span",{className:"text-sm font-medium text-warm-700 truncate",children:t.title}),s.jsx("span",{className:`px-1.5 py-0.5 rounded-md text-2xs font-semibold uppercase ${ce[t.status]}`,children:n(`status.${t.status}`)||t.status}),t.status==="running"&&s.jsxs("span",{className:"text-2xs text-status-success animate-pulse",children:[n("discussions.round")," ",t.current_round,"/",t.max_rounds]}),y&&s.jsx("span",{className:"ml-auto inline-flex items-center gap-1 text-xs text-status-success",children:s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-status-success animate-pulse"})})]}),s.jsxs("div",{className:"mb-4 rounded-xl border border-warm-150 bg-warm-50/80 p-4",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("h1",{className:"text-lg font-semibold text-warm-800",children:t.title}),s.jsx("p",{className:"mt-2 whitespace-pre-wrap text-sm leading-relaxed text-warm-500",children:t.description})]}),Ss&&s.jsx("button",{onClick:()=>_(!0),className:"btn-secondary text-xs py-2 flex-shrink-0",children:n("todo.edit")})]}),s.jsxs("div",{className:"mt-3 flex flex-wrap gap-3 text-[11px] text-warm-400",children:[s.jsxs("span",{children:[n("discussions.maxRounds"),": ",t.max_rounds]}),s.jsxs("span",{children:[n("discussions.agents"),": ",t.agents.map(e=>e.name).join(", ")||"-"]}),s.jsxs("span",{children:[n("discussions.autoImplement"),": ",t.auto_implement?h==="ko"?"사용":"Enabled":h==="ko"?"사용 안 함":"Disabled"]})]}),U&&s.jsx("p",{className:"mt-3 text-xs text-status-error",children:U})]}),t.status==="failed"&&(()=>{const e=t.messages.find(c=>c.status==="failed"),a=e?Q.get(e.agent_id):null;return s.jsxs("div",{className:"mb-4 rounded-xl bg-status-error/5 overflow-hidden",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 bg-status-error/10",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(zs,{size:16,className:"text-status-error"}),s.jsx("h4",{className:"text-xs font-semibold text-status-error uppercase tracking-wider",children:n("discussions.failureTitle")}),a&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-2xs font-mono px-1.5 py-0.5 rounded-md bg-status-error/15 text-status-error",children:[s.jsx("span",{className:"w-3 h-3 rounded-full inline-block",style:{backgroundColor:a.avatar_color||"#94a3b8"}}),a.name]}),e&&s.jsxs("span",{className:"text-2xs font-mono px-1.5 py-0.5 rounded-md bg-status-error/15 text-status-error",children:[n("discussions.round")," ",e.round_number]})]}),s.jsxs("button",{onClick:q,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-status-success/15 text-status-success hover:bg-status-success/25 border border-status-success/30 transition-colors",children:[s.jsx(ne,{size:14}),n("discussions.retry")]})]}),s.jsx("div",{className:"px-4 py-3 space-y-1.5 max-h-48 overflow-y-auto",children:H.length>0?H.map(c=>s.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[s.jsx("span",{className:"text-warm-500 font-mono flex-shrink-0",children:new Date(c.created_at).toLocaleTimeString()}),s.jsx("span",{className:"text-status-error font-mono whitespace-pre-wrap break-all",children:c.message})]},c.id)):s.jsx("span",{className:"text-xs text-warm-400 italic",children:n("discussions.noErrorLogs")})})]})})(),s.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[ys&&s.jsxs("button",{onClick:q,className:"btn-primary text-sm",children:[s.jsx(Fs,{size:16}),t.status==="pending"?n("header.runAll"):n("discussions.resume")]}),I&&s.jsxs("button",{onClick:ps,className:"btn-danger text-sm",children:[s.jsx(Ys,{size:16}),n("discussions.pause")]}),I&&s.jsx("button",{onClick:hs,className:"btn btn-sm text-xs text-warm-500",children:n("discussions.skipTurn")}),vs&&s.jsxs("button",{onClick:()=>v(!0),className:"btn-primary text-sm",children:[s.jsx(ie,{size:16}),n("discussions.implement")]}),_s&&t.branch_name&&s.jsxs("button",{onClick:gs,className:"btn-primary text-sm",children:[s.jsx(Zs,{size:16}),n("todos.merge")]}),t.status==="completed"&&s.jsxs("button",{onClick:bs,className:"btn-primary text-sm",children:[s.jsx(se,{size:16}),n("discussions.toPlanner")]}),Cs&&s.jsxs("button",{onClick:js,className:"btn-danger text-sm",children:[s.jsx(Rs,{size:16}),n("todo.cleanup")]}),t.messages.some(e=>e.content&&e.status==="completed")&&s.jsx("button",{onClick:A.size>0?us:ms,className:"btn btn-sm text-xs text-warm-500",children:A.size>0?n("discussions.expandAll"):n("discussions.collapseAll")}),s.jsx("div",{className:"ml-auto flex items-center gap-1",children:t.agents.map(e=>s.jsx("div",{className:`w-7 h-7 rounded-full flex items-center justify-center text-white text-2xs font-bold transition-all ${t.current_agent_id===e.id?"ring-2 ring-status-success ring-offset-1 scale-110":"opacity-60"}`,style:{backgroundColor:e.avatar_color||"#6366f1"},title:`${e.name} (${e.role})`,children:e.name.charAt(0)},e.id))})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto space-y-1 pb-4",children:[As.map(e=>{const a=S.get(e),c=e>t.max_rounds;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3 my-4",children:[s.jsx("div",{className:"flex-1 h-px bg-warm-200"}),s.jsx("span",{className:"text-2xs font-semibold text-warm-400 uppercase tracking-wider",children:c?n("discussions.implementation"):`${n("discussions.round")} ${e}`}),s.jsx("div",{className:"flex-1 h-px bg-warm-200"})]}),a.map(i=>{const o=Q.get(i.agent_id),d=i.agent_id==="user",D=i.status==="running",L=P.get(i.id)||[],E=A.has(i.id),$=!!i.content&&i.status==="completed"&&!d;return s.jsxs("div",{className:`flex gap-3 py-3 ${d?"justify-end":""}`,children:[!d&&s.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold flex-shrink-0 ${D?"ring-2 ring-status-success ring-offset-1 animate-pulse":""}`,style:{backgroundColor:(o==null?void 0:o.avatar_color)||"#94a3b8"},children:i.agent_name.charAt(0)}),s.jsxs("div",{className:`flex-1 min-w-0 ${d?"max-w-[80%]":""}`,children:[!d&&s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-xs font-semibold text-warm-700",children:i.agent_name}),s.jsx("span",{className:"text-2xs text-warm-400",children:n(`agents.roles.${i.role}`)||i.role}),i.status==="skipped"&&s.jsx("span",{className:"text-2xs text-warm-300 italic",children:n("status.skipped")}),$&&s.jsxs("button",{onClick:()=>X(i.id),className:"text-2xs text-warm-300 hover:text-accent transition-colors flex items-center gap-0.5",children:[s.jsx(Ps,{size:12,className:`transition-transform ${E?"":"rotate-90"}`}),n(E?"discussions.expand":"discussions.collapse")]})]}),s.jsxs("div",{className:`rounded-xl p-3 text-sm ${d?"bg-accent/10 text-warm-700 ml-auto":i.status==="failed"?"bg-status-error/5 border border-warm-150":"bg-warm-50 border border-warm-150"} ${$?"cursor-pointer":""}`,onClick:$?()=>{const Z=window.getSelection();Z&&Z.toString().length>0||X(i.id)}:void 0,children:[E&&i.content&&s.jsx("div",{className:"text-xs text-warm-400 italic truncate",children:xs(i.content)}),!E&&i.content&&s.jsx(te,{content:i.content}),D&&L.length>0&&s.jsx("div",{className:"text-xs text-warm-500 whitespace-pre-wrap leading-relaxed max-h-60 overflow-y-auto font-mono",children:L.slice(-50).join(`
|
|
8
|
+
`)}),D&&L.length===0&&s.jsxs("div",{className:"flex items-center gap-2 text-xs text-status-success",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-status-success animate-pulse"}),n("discussions.speaking")]}),i.status==="pending"&&!i.content&&s.jsx("div",{className:"text-xs text-warm-300 italic",children:n("discussions.waiting")})]})]}),d&&s.jsx("div",{className:"w-8 h-8 rounded-full bg-warm-300 flex items-center justify-center text-white text-xs font-bold flex-shrink-0",children:"U"})]},i.id)})]},e)}),s.jsx("div",{ref:K})]}),ks&&s.jsxs("div",{className:"border-t border-warm-200 pt-3 flex gap-2",children:[s.jsx("input",{type:"text",value:b,onChange:e=>T(e.target.value),onKeyDown:e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),B())},placeholder:n("discussions.userMessage"),className:"input flex-1 text-sm"}),s.jsx("button",{onClick:B,disabled:!b.trim(),className:"btn btn-primary btn-sm text-xs",children:n("discussions.inject")})]}),ls&&s.jsx(z,{open:!0,onClose:()=>_(!1),size:"xl",children:s.jsx("div",{className:"max-h-[90vh] overflow-y-auto",children:s.jsx(ee,{agents:W?ts:t.agents,projectId:t.project_id,initialValues:Es,mode:"edit",allowAdvancedFields:W,submitting:os,onSubmit:Ns,onCancel:()=>_(!1)})})}),cs&&s.jsx(z,{open:!0,onClose:()=>v(!1),size:"sm",children:s.jsxs("div",{className:"bg-theme-card border border-theme-border rounded-2xl p-6 shadow-elevated space-y-4",children:[s.jsx("h3",{className:"text-sm font-semibold text-warm-700",children:n("discussions.selectAgent")}),s.jsx("p",{className:"text-xs text-warm-400",children:n("discussions.implementHint")}),s.jsx("div",{className:"space-y-2",children:t.agents.map(e=>s.jsxs("button",{onClick:()=>fs(e.id),className:"w-full flex items-center gap-3 p-3 rounded-lg border border-warm-200 hover:border-accent hover:bg-accent/5 transition-colors",children:[s.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold",style:{backgroundColor:e.avatar_color||"#6366f1"},children:e.name.charAt(0)}),s.jsxs("div",{className:"text-left",children:[s.jsx("div",{className:"text-sm font-medium text-warm-700",children:e.name}),s.jsx("div",{className:"text-xs text-warm-400",children:n(`agents.roles.${e.role}`)||e.role})]})]},e.id))}),s.jsx("button",{onClick:()=>v(!1),className:"btn btn-sm text-xs text-warm-500 w-full",children:n("header.cancel")})]})}),ds&&s.jsx(z,{open:!0,onClose:()=>!C&&!k&&w(!1),size:"lg",children:s.jsxs("div",{className:"bg-theme-card border border-theme-border rounded-2xl p-6 shadow-elevated space-y-4 max-h-[85vh] flex flex-col",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-warm-700",children:n("discussions.extractTitle")}),s.jsx("p",{className:"text-xs text-warm-400 mt-1",children:n("discussions.extractHint")})]}),k?s.jsxs("div",{className:"py-12 flex flex-col items-center justify-center gap-3 text-sm text-warm-400",children:[s.jsx(Ts,{size:32,className:"animate-spin text-accent"}),s.jsx("span",{children:n("discussions.extractLoading")}),s.jsx("span",{className:"text-xs text-warm-300",children:n("discussions.extractLoadingHint")})]}):N.length===0?s.jsx("div",{className:"py-12 text-center text-sm text-warm-400",children:n("discussions.extractEmpty")}):s.jsx("div",{className:"space-y-2 overflow-y-auto pr-1",children:N.map((e,a)=>s.jsxs("div",{className:"flex items-start gap-2 p-3 rounded-lg border border-warm-200",children:[s.jsx("input",{type:"checkbox",checked:e.selected,onChange:c=>g(i=>i.map((o,d)=>d===a?{...o,selected:c.target.checked}:o)),className:"mt-1.5 cursor-pointer"}),s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx("input",{type:"text",value:e.title,onChange:c=>g(i=>i.map((o,d)=>d===a?{...o,title:c.target.value}:o)),className:"w-full text-sm font-medium bg-transparent border-b border-warm-200 focus:border-accent outline-none py-1",placeholder:n("plannerForm.titlePlaceholder")}),s.jsx("textarea",{value:e.description,onChange:c=>g(i=>i.map((o,d)=>d===a?{...o,description:c.target.value}:o)),rows:2,className:"w-full text-xs text-warm-500 bg-transparent border border-warm-200 rounded-md p-1.5 focus:border-accent outline-none min-h-[48px] max-h-[240px] resize-y [field-sizing:content]",placeholder:n("plannerForm.descPlaceholder")}),s.jsxs("select",{value:e.priority,onChange:c=>g(i=>i.map((o,d)=>d===a?{...o,priority:Number(c.target.value)}:o)),className:"text-xs bg-transparent border border-warm-200 rounded-md px-2 py-1",children:[s.jsx("option",{value:0,children:n("discussions.priorityLow")}),s.jsx("option",{value:1,children:n("discussions.priorityMedium")}),s.jsx("option",{value:2,children:n("discussions.priorityHigh")}),s.jsx("option",{value:3,children:n("discussions.priorityUrgent")})]})]})]},a))}),s.jsxs("div",{className:"flex items-center justify-end gap-2 pt-2 border-t border-warm-200",children:[s.jsx("button",{onClick:()=>w(!1),disabled:C||k,className:"btn btn-sm text-xs text-warm-500 disabled:opacity-50 disabled:cursor-not-allowed",children:n("header.cancel")}),s.jsx("button",{onClick:ws,disabled:C||k||N.filter(e=>e.selected).length===0,className:"btn-primary text-sm",children:n(C?"discussions.extractSaving":"discussions.extractConfirm")})]})]})})]})}export{xe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as I,o as k,p as f,q as T,s as D,a as F,r as g,j as e,
|
|
1
|
+
import{c as I,o as k,p as f,q as T,s as D,a as F,r as g,j as e,b5 as O,aD as V,G as A}from"./index--CryAcdA.js";/**
|
|
2
2
|
* @license lucide-react v1.8.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,
|
|
1
|
+
import{j as e,b4 as n}from"./index--CryAcdA.js";const o={sm:{wrapper:"py-8",iconBox:"w-10 h-10 rounded-xl",iconSize:20,title:"text-sm",desc:"text-xs"},md:{wrapper:"py-12",iconBox:"w-14 h-14 rounded-2xl",iconSize:28,title:"text-sm",desc:"text-xs"},lg:{wrapper:"py-20",iconBox:"w-16 h-16 rounded-2xl",iconSize:32,title:"text-base",desc:"text-sm"}};function a({icon:i,title:c,description:x,action:t,size:r="md",className:l}){const s=o[r],m=t==null?void 0:t.icon;return e.jsxs("div",{className:n("text-center",s.wrapper,l),children:[i&&e.jsx("div",{className:n("inline-flex items-center justify-center mb-4 bg-theme-hover",s.iconBox),children:e.jsx(i,{size:s.iconSize,className:"text-theme-muted"})}),e.jsx("p",{className:n("font-medium text-theme-text-secondary",s.title),children:c}),x&&e.jsx("p",{className:n("mt-1 text-theme-muted",s.desc),children:x}),t&&e.jsxs("button",{onClick:t.onClick,className:"btn-primary btn-sm mt-4 inline-flex items-center gap-1.5",children:[m&&e.jsx(m,{size:14}),t.label]})]})}export{a as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as b,M as d,N as u,v as c,z as x,B as g,K as C,Z as h,T as v,q as j,P as y,U as E,o as S,s as O,f as P,G as T,D as F}from"./PlannerPageEditor-
|
|
1
|
+
import{t as b,M as d,N as u,v as c,z as x,B as g,K as C,Z as h,T as v,q as j,P as y,U as E,o as S,s as O,f as P,G as T,D as F}from"./PlannerPageEditor-9_jJ-l98.js";import{r as l,j as a}from"./index--CryAcdA.js";import"./with-selector-bSOP5zTp.js";import"./index-Vcq4gwWv.js";import"./clsx-B-dksMZM.js";import"./ProjectDetail-DwN6S3uf.js";import"./CalendarGrid-BRVf7WJK.js";import"./LogViewer-BDuckIDB.js";import"./MarkdownContent-CwGbW814.js";import"./DiscussionForm-Bi4L47Ly.js";import"./rotate-ccw-CY6Wl56G.js";import"./EmptyState--9RqKIk6.js";var I=l.memo(({isEmpty:t,onSave:o,Components:s,dict:e})=>a.jsx(s.Generic.Toolbar.Root,{className:F("bn-action-toolbar","bn-comment-actions"),variant:"action-toolbar",children:a.jsx(s.Generic.Toolbar.Button,{className:"bn-button",mainTooltip:e.comments.save_button_text,variant:"compact",isDisabled:t,onClick:o,children:e.comments.save_button_text})}));function U(){let t=d(),o=u(c),s=x(),e=g(),r=C({trailingBlock:!1,dictionary:{...e,placeholders:{emptyDocument:e.placeholders.new_comment}},schema:o.commentEditorSchema||h}),m=l.useCallback(async()=>{await o.createThread({initialComment:{body:r.document}}),o.stopPendingComment(),t.transact(i=>{i.setSelection(v.create(i.doc,i.selection.to))}),t.focus()},[o,r,t]);return a.jsx(s.Comments.Card,{className:"bn-thread",children:a.jsx(j,{autoFocus:!0,editable:!0,editor:r,actions:({isFocused:i,isEmpty:n})=>a.jsx(I,{isFocused:i,isEmpty:n,onSave:m,Components:s,dict:e})})})}var A=b({default:()=>_});function _(t){let o=d(),s=u(c),e=y(c,{editor:o,selector:n=>n.pendingComment}),r=E({editor:o,selector:({editor:n})=>e?{from:n.prosemirrorState.selection.from,to:n.prosemirrorState.selection.to}:void 0}),m=l.useMemo(()=>{var n,p;return{...t.floatingUIOptions,useFloatingOptions:{open:!!e,onOpenChange:f=>{f||(s.stopPendingComment(),o.focus())},placement:"bottom",middleware:[S(10),O(),P()],...(n=t.floatingUIOptions)==null?void 0:n.useFloatingOptions},focusManagerProps:{disabled:!1},elementProps:{style:{zIndex:60},...(p=t.floatingUIOptions)==null?void 0:p.elementProps}}},[s,o,e,t.floatingUIOptions]),i=t.floatingComposer||U;return a.jsx(T,{position:r,portalElement:t.portalElement,...m,children:a.jsx(i,{})})}export{A as n,U as r,_ as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as h,p,q as E,s as W,r as l,a as O,j as o}from"./index
|
|
1
|
+
import{o as h,p,q as E,s as W,r as l,a as O,j as o}from"./index--CryAcdA.js";import{M as U}from"./MarkdownContent-CwGbW814.js";function A(t){return h(`/api/projects/${t}/todos`)}function B(t){if(!t)return null;try{const s=JSON.parse(t);return s&&typeof s=="object"&&typeof s.maxRounds=="number"?s:null}catch{return null}}function G(t,s){return p(`/api/projects/${t}/todos`,s)}function H(t,s){return W(`/api/todos/${t}`,s)}function q(t){return E(`/api/todos/${t}`)}function K(t,s="headless"){return p(`/api/todos/${t}/start`,{mode:s})}function Q(t){return p(`/api/todos/${t}/stop`)}const X=2e3;function Y(t){return h(`/api/todos/${t}/logs`)}function Z(t){return h(`/api/todos/${t}/diff`)}function ee(t){return h(`/api/todos/${t}/result`)}function te(t){return p(`/api/todos/${t}/merge`)}function oe(t){return p(`/api/todos/${t}/merge-chain`)}function ne(t,s=!0){return p(`/api/todos/${t}/cleanup`,{delete_branch:s})}function se(t,s="headless"){return p(`/api/todos/${t}/retry`,{mode:s})}function re(t,s,a="headless"){return p(`/api/todos/${t}/continue`,{prompt:s,mode:a})}function ae(t,s){return p(`/api/todos/${t}/images`,{images:s})}function ie(t,s){return E(`/api/todos/${t}/images/${s}`)}function ce(t,s){return`/api/todos/${t}/images/${s}`}const u={bg:"#1e1e1e",border:"#3c3c3c",cursor:"#aeafad",timestamp:"#6a9955",prefix:{info:"#569cd6",error:"#f44747",output:"#9cdcfe",commit:"#4ec9b0",input:"#c586c0",prompt:"#c586c0",warning:"#dcdcaa",assistant:"#b392f0",tool_use:"#79c0ff",tool_result:"#56d364"},message:{info:"#9cdcfe",error:"#f1807e",output:"#d4d4d4",commit:"#a8c990",input:"#ce9178",prompt:"#c586c0",warning:"#dcdcaa",assistant:"#e6e6e6",tool_use:"#8b949e",tool_result:"#7ee787"}},z={info:"[INF]",error:"[ERR]",output:"[OUT]",commit:"[GIT]",input:"[>>>]",prompt:"[PRM]",warning:"[WRN]",assistant:"[CLU]",tool_use:"[USE]",tool_result:"[RES]"};function J(t,s){const a=[],x=/(\*\*(.+?)\*\*)|(`(.+?)`)|(\*(.+?)\*)/g;let d=0,i,f=0;for(;(i=x.exec(t))!==null;)i.index>d&&a.push(t.slice(d,i.index)),i[1]?a.push(o.jsx("strong",{style:{color:"#d7ba7d",fontWeight:700},children:i[2]},f++)):i[3]?a.push(o.jsx("code",{style:{color:"#ce9178",background:"rgba(255,255,255,0.07)",padding:"0 3px",borderRadius:3,fontSize:"0.7rem"},children:i[4]},f++)):i[5]&&a.push(o.jsx("em",{style:{color:s,opacity:.75,fontStyle:"italic"},children:i[6]},f++)),d=i.index+i[0].length;return d<t.length&&a.push(t.slice(d)),a.length>0?a:[t]}function v(t){try{const a=JSON.parse(t);if(a&&typeof a.tool=="string")return a}catch{}const s=t.match(/^\[Tool:\s*(\w+)\](.*)$/);return s?{tool:s[1],summary:s[2].trim()}:null}function le({logs:t,interactive:s,todoId:a,onSendInput:x,embedded:d,fillHeight:i}){const f=l.useRef(null),[b,_]=l.useState(""),[N,R]=l.useState(!1),[j,T]=l.useState(!1),k=l.useRef(0),[w,M]=l.useState(new Set),{t:m}=O(),C=l.useMemo(()=>t.some(e=>e.log_type==="assistant"||e.log_type==="tool_use"),[t]),[g,y]=l.useState("chat");l.useEffect(()=>{y(C?"chat":"raw")},[C]),l.useEffect(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight)},[t]),l.useEffect(()=>{if(!j||t.length===0)return;const e=Date.now()-k.current,n=t[t.length-1];if(n.log_type==="output"||n.log_type==="error"||n.log_type==="commit"||n.log_type==="assistant")if(e>=1e3)T(!1);else{const r=setTimeout(()=>T(!1),1e3-e);return()=>clearTimeout(r)}},[t,j]);const I=e=>{e.preventDefault(),!(!b.trim()||!a||!x)&&(x(a,b),_(""),T(!0),k.current=Date.now())},D=async()=>{const e=t.map(n=>{const r=new Date(n.created_at).toLocaleTimeString();if(g==="chat"){if(n.log_type==="assistant")return`${r} [Claude]
|
|
2
2
|
${n.message}
|
|
3
3
|
`;if(n.log_type==="tool_use"){const c=v(n.message);return c?`${r} [Tool: ${c.tool}] ${c.summary}`:`${r} [USE] ${n.message}`}if(n.log_type==="tool_result")return`${r} [Result] ${n.message.slice(0,200)}`}return`${r} ${z[n.log_type]||"[???]"} ${n.message}`}).join(`
|
|
4
4
|
`);await navigator.clipboard.writeText(e),R(!0),setTimeout(()=>R(!1),2e3)},S=e=>{M(n=>{const r=new Set(n);return r.has(e)?r.delete(e):r.add(e),r})},$=e=>{const n=new Date(e.created_at).toLocaleTimeString(),r=u.prefix[e.log_type]||u.prefix.output,c=u.message[e.log_type]||u.message.output;return o.jsxs("div",{className:"mb-0.5 leading-relaxed",children:[o.jsx("span",{style:{color:u.timestamp},children:n})," ",o.jsx("span",{style:{color:r,fontWeight:700},children:z[e.log_type]||"[???]"})," ",o.jsx("span",{style:{color:c},children:J(e.message,c)})]},e.id)},F=e=>{if(e.log_type==="assistant")return o.jsx("div",{style:{borderLeft:"3px solid #b392f0",background:"rgba(179, 146, 240, 0.06)",borderRadius:8,padding:"8px 12px",margin:"6px 0"},children:o.jsx(U,{content:e.message,className:"markdown-content-dark"})},e.id);if(e.log_type==="tool_use"){const n=v(e.message),r=w.has(e.id);return n?o.jsxs("div",{style:{margin:"2px 0",fontSize:"0.7rem"},children:[o.jsxs("button",{onClick:()=>S(e.id),style:{background:"none",border:"none",cursor:"pointer",padding:"2px 4px",fontFamily:"monospace",fontSize:"0.7rem",display:"flex",alignItems:"center",gap:6,width:"100%",textAlign:"left",borderRadius:4,transition:"background 0.15s"},onMouseEnter:c=>c.currentTarget.style.background="rgba(255,255,255,0.05)",onMouseLeave:c=>c.currentTarget.style.background="none",children:[o.jsx("span",{style:{color:"#6a9955",fontSize:"0.6rem"},children:r?"▾":"▸"}),o.jsx("span",{style:{color:"#79c0ff",fontWeight:600},children:n.tool}),o.jsx("span",{style:{color:"#8b949e",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n.summary})]}),r&&n.input&&o.jsx("pre",{style:{background:"rgba(0,0,0,0.25)",border:"1px solid #3c3c3c",borderRadius:6,padding:"6px 10px",margin:"2px 0 2px 18px",fontSize:"0.65rem",color:"#8b949e",overflow:"auto",maxHeight:200},children:JSON.stringify(n.input,null,2)})]},e.id):$(e)}if(e.log_type==="tool_result"){const n=w.has(e.id),r=e.message.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bc as ir,j as Y,r as Dn}from"./index-DB7C6wx1.js";function yi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wi={};function ht(e,t){return(wi.jsx?bi:xi).test(e)}const Si=/[ \t\n\f\r]/g;function Ci(e){return typeof e=="object"?e.type==="text"?pt(e.value):!1:pt(e)}function pt(e){return e.replace(Si,"")===""}class Qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function lr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qe(n,r,t)}function Ln(e){return e.toLowerCase()}class ne{constructor(t,n){this.attribute=n,this.property=t}}ne.prototype.attribute="";ne.prototype.booleanish=!1;ne.prototype.boolean=!1;ne.prototype.commaOrSpaceSeparated=!1;ne.prototype.commaSeparated=!1;ne.prototype.defined=!1;ne.prototype.mustUseProperty=!1;ne.prototype.number=!1;ne.prototype.overloadedBoolean=!1;ne.prototype.property="";ne.prototype.spaceSeparated=!1;ne.prototype.space=void 0;let Ei=0;const _=Ie(),X=Ie(),Fn=Ie(),E=Ie(),W=Ie(),Fe=Ie(),re=Ie();function Ie(){return 2**++Ei}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:X,commaOrSpaceSeparated:re,commaSeparated:Fe,number:E,overloadedBoolean:Fn,spaceSeparated:W},Symbol.toStringTag,{value:"Module"})),mn=Object.keys(Rn);class qn extends ne{constructor(t,n,r,i){let o=-1;if(super(t,n),mt(this,"space",i),typeof r=="number")for(;++o<mn.length;){const l=mn[o];mt(this,mn[o],(r&Rn[l])===Rn[l])}}}qn.prototype.defined=!0;function mt(e,t,n){n&&(e[t]=n)}function _e(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new qn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ln(r)]=r,n[Ln(o.attribute)]=r}return new Qe(t,n,e.space)}const or=_e({properties:{ariaActiveDescendant:null,ariaAtomic:X,ariaAutoComplete:null,ariaBusy:X,ariaChecked:X,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:X,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:X,ariaFlowTo:W,ariaGrabbed:X,ariaHasPopup:null,ariaHidden:X,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:E,ariaLive:null,ariaModal:X,ariaMultiLine:X,ariaMultiSelectable:X,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:X,ariaReadOnly:X,ariaRelevant:null,ariaRequired:X,ariaRoleDescription:W,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:X,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ar(e,t){return t in e?e[t]:t}function ur(e,t){return ar(e,t.toLowerCase())}const Ii=_e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:W,autoFocus:_,autoPlay:_,blocking:W,capture:null,charSet:null,checked:_,cite:null,className:W,cols:E,colSpan:null,content:null,contentEditable:X,controls:_,controlsList:W,coords:E|Fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:Fn,draggable:X,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:W,height:E,hidden:Fn,high:E,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:W,itemRef:W,itemScope:_,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_,optimum:E,pattern:null,ping:W,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:W,required:_,reversed:_,rows:E,rowSpan:E,sandbox:W,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:X,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:X,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:X,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:ur}),Ai=_e({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:re,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:W,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Fe,g2:Fe,glyphName:Fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ar}),sr=_e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),cr=_e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ur}),fr=_e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ti={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"},Pi=/[A-Z]/g,gt=/-[a-z]/g,vi=/^data[-\w.:]+$/i;function zi(e,t){const n=Ln(t);let r=t,i=ne;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&vi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(gt,Li);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!gt.test(o)){let l=o.replace(Pi,Di);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=qn}return new i(r,t)}function Di(e){return"-"+e.toLowerCase()}function Li(e){return e.charAt(1).toUpperCase()}const Fi=lr([or,Ii,sr,cr,fr],"html"),$n=lr([or,Ai,sr,cr,fr],"svg");function Ri(e){return e.join(" ").trim()}var ve={},gn,dt;function _i(){if(dt)return gn;dt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
|
|
1
|
+
import{bd as ir,j as Y,r as Dn}from"./index--CryAcdA.js";function yi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wi={};function ht(e,t){return(wi.jsx?bi:xi).test(e)}const Si=/[ \t\n\f\r]/g;function Ci(e){return typeof e=="object"?e.type==="text"?pt(e.value):!1:pt(e)}function pt(e){return e.replace(Si,"")===""}class Qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function lr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qe(n,r,t)}function Ln(e){return e.toLowerCase()}class ne{constructor(t,n){this.attribute=n,this.property=t}}ne.prototype.attribute="";ne.prototype.booleanish=!1;ne.prototype.boolean=!1;ne.prototype.commaOrSpaceSeparated=!1;ne.prototype.commaSeparated=!1;ne.prototype.defined=!1;ne.prototype.mustUseProperty=!1;ne.prototype.number=!1;ne.prototype.overloadedBoolean=!1;ne.prototype.property="";ne.prototype.spaceSeparated=!1;ne.prototype.space=void 0;let Ei=0;const _=Ie(),X=Ie(),Fn=Ie(),E=Ie(),W=Ie(),Fe=Ie(),re=Ie();function Ie(){return 2**++Ei}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:X,commaOrSpaceSeparated:re,commaSeparated:Fe,number:E,overloadedBoolean:Fn,spaceSeparated:W},Symbol.toStringTag,{value:"Module"})),mn=Object.keys(Rn);class qn extends ne{constructor(t,n,r,i){let o=-1;if(super(t,n),mt(this,"space",i),typeof r=="number")for(;++o<mn.length;){const l=mn[o];mt(this,mn[o],(r&Rn[l])===Rn[l])}}}qn.prototype.defined=!0;function mt(e,t,n){n&&(e[t]=n)}function _e(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new qn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ln(r)]=r,n[Ln(o.attribute)]=r}return new Qe(t,n,e.space)}const or=_e({properties:{ariaActiveDescendant:null,ariaAtomic:X,ariaAutoComplete:null,ariaBusy:X,ariaChecked:X,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:X,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:X,ariaFlowTo:W,ariaGrabbed:X,ariaHasPopup:null,ariaHidden:X,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:E,ariaLive:null,ariaModal:X,ariaMultiLine:X,ariaMultiSelectable:X,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:X,ariaReadOnly:X,ariaRelevant:null,ariaRequired:X,ariaRoleDescription:W,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:X,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ar(e,t){return t in e?e[t]:t}function ur(e,t){return ar(e,t.toLowerCase())}const Ii=_e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:W,autoFocus:_,autoPlay:_,blocking:W,capture:null,charSet:null,checked:_,cite:null,className:W,cols:E,colSpan:null,content:null,contentEditable:X,controls:_,controlsList:W,coords:E|Fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:Fn,draggable:X,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:W,height:E,hidden:Fn,high:E,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:W,itemRef:W,itemScope:_,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_,optimum:E,pattern:null,ping:W,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:W,required:_,reversed:_,rows:E,rowSpan:E,sandbox:W,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:X,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:X,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:X,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:ur}),Ai=_e({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:re,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:W,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Fe,g2:Fe,glyphName:Fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ar}),sr=_e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),cr=_e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ur}),fr=_e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ti={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"},Pi=/[A-Z]/g,gt=/-[a-z]/g,vi=/^data[-\w.:]+$/i;function zi(e,t){const n=Ln(t);let r=t,i=ne;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&vi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(gt,Li);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!gt.test(o)){let l=o.replace(Pi,Di);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=qn}return new i(r,t)}function Di(e){return"-"+e.toLowerCase()}function Li(e){return e.charAt(1).toUpperCase()}const Fi=lr([or,Ii,sr,cr,fr],"html"),$n=lr([or,Ai,sr,cr,fr],"svg");function Ri(e){return e.join(" ").trim()}var ve={},gn,dt;function _i(){if(dt)return gn;dt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
|
|
2
2
|
`,s="/",f="*",c="",p="comment",h="declaration";function d(S,k){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];k=k||{};var I=1,C=1;function F(D){var T=D.match(t);T&&(I+=T.length);var q=D.lastIndexOf(u);C=~q?D.length-q:C+D.length}function R(){var D={line:I,column:C};return function(T){return T.position=new b(D),j(),T}}function b(D){this.start=D,this.end={line:I,column:C},this.source=k.source}b.prototype.content=S;function M(D){var T=new Error(k.source+":"+I+":"+C+": "+D);if(T.reason=D,T.filename=k.source,T.line=I,T.column=C,T.source=S,!k.silent)throw T}function H(D){var T=D.exec(S);if(T){var q=T[0];return F(q),S=S.slice(q.length),T}}function j(){H(n)}function y(D){var T;for(D=D||[];T=P();)T!==!1&&D.push(T);return D}function P(){var D=R();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||s!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return M("End of comment missing");var q=S.slice(2,T-2);return C+=2,F(q),S=S.slice(T),C+=2,D({type:p,comment:q})}}function v(){var D=R(),T=H(r);if(T){if(P(),!H(i))return M("property missing ':'");var q=H(o),Q=D({type:h,property:w(T[0].replace(e,c)),value:q?w(q[0].replace(e,c)):c});return H(l),Q}}function U(){var D=[];y(D);for(var T;T=v();)T!==!1&&(D.push(T),y(D));return D}return j(),U()}function w(S){return S?S.replace(a,c):c}return gn=d,gn}var kt;function Oi(){if(kt)return ve;kt=1;var e=ve&&ve.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.default=n;const t=e(_i());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return ve}var je={},yt;function Mi(){if(yt)return je;yt=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||n.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(t,l))};return je.camelCase=u,je}var He,xt;function Ni(){if(xt)return He;xt=1;var e=He&&He.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Oi()),n=Mi();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,u){a&&u&&(l[(0,n.camelCase)(a,o)]=u)}),l}return r.default=r,He=r,He}var Bi=Ni();const ji=ir(Bi),hr=pr("end"),Vn=pr("start");function pr(e){return t;function t(n){const r=n&&n.position&&n.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 Hi(e){const t=Vn(e),n=hr(e);if(t&&n)return{start:t,end:n}}function $e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bt(e.position):"start"in e||"end"in e?bt(e):"line"in e||"column"in e?_n(e):""}function _n(e){return wt(e&&e.line)+":"+wt(e&&e.column)}function bt(e){return _n(e&&e.start)+"-"+_n(e&&e.end)}function wt(e){return e&&typeof e=="number"?e:1}class J extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.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=$e(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const Wn={}.hasOwnProperty,Ui=new Map,qi=/[A-Z]/g,$i=new Set(["table","tbody","thead","tfoot","tr"]),Vi=new Set(["td","th"]),mr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Wi(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=el(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zi(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?$n:Fi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=gr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function gr(e,t,n){if(t.type==="element")return Yi(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Xi(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Gi(e,t,n);if(t.type==="mdxjsEsm")return Qi(e,t);if(t.type==="root")return Ki(e,t,n);if(t.type==="text")return Ji(e,t)}function Yi(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(t);const o=kr(e,t.tagName,!1),l=nl(e,t);let a=Xn(e,t);return $i.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Ci(u):!0})),dr(e,l,o,t),Yn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Xi(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,t.position)}function Qi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}function Gi(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:kr(e,t.name,!0),l=tl(e,t),a=Xn(e,t);return dr(e,l,o,t),Yn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ki(e,t,n){const r={};return Yn(r,Xn(e,t)),e.create(t,e.Fragment,r,n)}function Ji(e,t){return t.value}function dr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Yn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zi(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function el(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=Vn(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function nl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Wn.call(t.properties,i)){const o=rl(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Vi.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function tl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ye(e,t.position);else{const i=r.name;let o;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];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ye(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Xn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ui;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=gr(e,o,l);a!==void 0&&n.push(a)}return n}function rl(e,t,n){const r=zi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?yi(n):Ri(n)),r.property==="style"){let i=typeof n=="object"?n:il(e,String(n));return e.stylePropertyNameCase==="css"&&(i=ll(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ti[r.property]||r.property:r.attribute,n]}}function il(e,t){try{return ji(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new J("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=mr+"#cannot-parse-style-attribute",i}}function kr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=ht(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=ht(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Wn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,t){const n=new J("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=mr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ll(e){const t={};let n;for(n in e)Wn.call(e,n)&&(t[ol(n)]=e[n]);return t}function ol(e){let t=e.replace(qi,al);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function al(e){return"-"+e.toLowerCase()}const dn={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"]},ul={};function Qn(e,t){const n=ul,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yr(e,r,i)}function yr(e,t,n){if(sl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return St(e.children,t,n)}return Array.isArray(e)?St(e,t,n):""}function St(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yr(e[i],t,n);return r.join("")}function sl(e){return!!(e&&typeof e=="object")}const Ct=document.createElement("i");function Gn(e){const t="&"+e+";";Ct.innerHTML=t;const n=Ct.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ie(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function le(e,t){return e.length>0?(ie(e,e.length,0,t),e):t}const Et={}.hasOwnProperty;function xr(e){const t={};let n=-1;for(;++n<e.length;)cl(t,e[n]);return t}function cl(e,t){let n;for(n in t){const i=(Et.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Et.call(i,l)||(i[l]=[]);const a=o[l];fl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function fl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ie(e,0,0,r)}function br(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Z=be(/[A-Za-z]/),K=be(/[\dA-Za-z]/),hl=be(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const On=be(/\d/),pl=be(/[\dA-Fa-f]/),ml=be(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const sn=be(new RegExp("\\p{P}|\\p{S}","u")),Ee=be(/\s/);function be(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oe(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&K(e.charCodeAt(n+1))&&K(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function B(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return O(u)?(e.enter(n),a(u)):t(u)}function a(u){return O(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}const gl={tokenize:dl};function dl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const kl={tokenize:yl},It={tokenize:xl};function yl(e){const t=this,n=[];let r=0,i,o,l;return a;function a(C){if(r<n.length){const F=n[r];return t.containerState=F[1],e.attempt(F[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const F=t.events.length;let R=F,b;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){b=t.events[R][1].end;break}k(r);let M=F;for(;M<t.events.length;)t.events[M][1].end={...b},M++;return ie(t.events,R+1,0,t.events.slice(F)),t.events.length=M,s(C)}return a(C)}function s(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(It,f,c)(C)}function f(C){return i&&I(),k(r),p(C)}function c(C){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(C)}function p(C){return t.containerState={},e.attempt(It,h,d)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function d(C){if(C===null){i&&I(),k(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){S(e.exit("chunkFlow"),!0),k(0),e.consume(C);return}return z(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(C),w)}function S(C,F){const R=t.sliceStream(C);if(F&&R.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(R),t.parser.lazy[C.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const M=t.events.length;let H=M,j,y;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(j){y=t.events[H][1].end;break}j=!0}for(k(r),b=M;b<t.events.length;)t.events[b][1].end={...y},b++;ie(t.events,H+1,0,t.events.slice(M)),t.events.length=b}}function k(C){let F=n.length;for(;F-- >C;){const R=n[F];t.containerState=R[1],R[0].exit.call(t,e)}n.length=C}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function xl(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Re(e){if(e===null||V(e)||Ee(e))return 1;if(sn(e))return 2}function cn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Mn={name:"attention",resolveAll:bl,tokenize:wl};function bl(e,t){let n=-1,r,i,o,l,a,u,s,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};At(c,-u),At(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=le(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=le(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=le(s,cn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=le(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=le(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ie(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function wl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Re(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Re(u),c=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),t(u)}}function At(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Sl={name:"autolink",tokenize:Cl};function Cl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Z(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||K(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||K(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||ln(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):hl(h)?(e.consume(h),s):n(h)}function f(h){return K(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||K(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return n(h)}}const Ge={partial:!0,tokenize:El};function El(e,t,n){return r;function r(o){return O(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?t(o):n(o)}}const wr={continuation:{tokenize:Al},exit:Tl,name:"blockQuote",tokenize:Il};function Il(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return O(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Al(e,t,n){const r=this;return i;function i(l){return O(l)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(wr,t,n)(l)}}function Tl(e){e.exit("blockQuote")}const Sr={name:"characterEscape",tokenize:Pl};function Pl(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ml(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Cr={name:"characterReference",tokenize:vl};function vl(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=K,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=pl,f):(e.enter("characterReferenceValue"),o=7,l=On,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===K&&!Gn(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Tt={partial:!0,tokenize:Dl},Pt={concrete:!0,name:"codeFenced",tokenize:zl};function zl(e,t,n){const r=this,i={partial:!0,tokenize:R};let o=0,l=0,a;return u;function u(b){return s(b)}function s(b){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),O(b)?B(e,c,"whitespace")(b):c(b))}function c(b){return b===null||z(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Tt,w,F)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):O(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),p)}function h(b){return b===null||z(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),d)}function w(b){return e.attempt(i,F,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),k}function k(b){return o>0&&O(b)?B(e,I,"linePrefix",o+1)(b):I(b)}function I(b){return b===null||z(b)?e.check(Tt,w,F)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||z(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),C)}function F(b){return e.exit("codeFenced"),t(b)}function R(b,M,H){let j=0;return y;function y(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),P}function P(T){return b.enter("codeFencedFence"),O(T)?B(b,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):v(T)}function v(T){return T===a?(b.enter("codeFencedFenceSequence"),U(T)):H(T)}function U(T){return T===a?(j++,b.consume(T),U):j>=l?(b.exit("codeFencedFenceSequence"),O(T)?B(b,D,"whitespace")(T):D(T)):H(T)}function D(T){return T===null||z(T)?(b.exit("codeFencedFence"),M(T)):H(T)}}}function Dl(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const kn={name:"codeIndented",tokenize:Fl},Ll={partial:!0,tokenize:Rl};function Fl(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):z(s)?e.attempt(Ll,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||z(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function Rl(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):z(l)?i(l):n(l)}}const _l={name:"codeText",previous:Ml,resolve:Ol,tokenize:Nl};function Ol(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||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),t-=r-i-2,r=i+2),i=void 0);return e}function Ml(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Nl(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}class Bl{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ue(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ue(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ue(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ue(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ue(this.left,n.reverse())}}}function Ue(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Er(e){const t={};let n=-1,r,i,o,l,a,u,s;const f=new Bl(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,jl(f,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return ie(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function jl(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=n,d=0,w=0;const S=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const k=a.slice(S[p],S[p+1]),I=o.pop();u.push([I,I+k.length-1]),e.splice(I,2,k)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const Hl={resolve:ql,tokenize:$l},Ul={partial:!0,tokenize:Vl};function ql(e){return Er(e),e}function $l(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(Ul,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Vl(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(l){if(l===null||z(l))return n(l);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?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Ir(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(k){return k===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(k),e.exit(o),p):k===null||k===32||k===41||ln(k)?n(k):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(k))}function p(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===62?(e.exit("chunkString"),e.exit(a),p(k)):k===null||k===60||z(k)?n(k):(e.consume(k),k===92?d:h)}function d(k){return k===60||k===62||k===92?(e.consume(k),h):h(k)}function w(k){return!f&&(k===null||k===41||V(k))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(k)):f<s&&k===40?(e.consume(k),f++,w):k===41?(e.consume(k),f--,w):k===null||k===32||k===40||ln(k)?n(k):(e.consume(k),k===92?S:w)}function S(k){return k===40||k===41||k===92?(e.consume(k),w):w(k)}}function Ar(e,t,n,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!O(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Tr(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ve(e,t){let n;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):O(i)?B(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Wl={name:"definition",tokenize:Xl},Yl={partial:!0,tokenize:Ql};function Xl(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Ar.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return V(h)?Ve(e,s)(h):s(h)}function s(h){return Ir(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Yl,c,c)(h)}function c(h){return O(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Ql(e,t,n){return r;function r(a){return V(a)?Ve(e,i)(a):n(a)}function i(a){return Tr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return O(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?t(a):n(a)}}const Gl={name:"hardBreakEscape",tokenize:Kl};function Kl(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Jl={name:"headingAtx",resolve:Zl,tokenize:eo};function Zl(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ie(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function eo(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||V(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):O(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||V(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const no=["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"],vt=["pre","script","style","textarea"],to={concrete:!0,name:"htmlFlow",resolveTo:lo,tokenize:oo},ro={partial:!0,tokenize:uo},io={partial:!0,tokenize:ao};function lo(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function oo(e,t,n){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:m):Z(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):Z(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const ue="CDATA[";return g===ue.charCodeAt(a++)?(e.consume(g),a===ue.length?r.interrupt?t:v:d):n(g)}function w(g){return Z(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||V(g)){const ue=g===47,we=l.toLowerCase();return!ue&&!o&&vt.includes(we)?(i=1,r.interrupt?t(g):v(g)):no.includes(l.toLowerCase())?(i=6,ue?(e.consume(g),k):r.interrupt?t(g):v(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?I(g):C(g))}return g===45||K(g)?(e.consume(g),l+=String.fromCharCode(g),S):n(g)}function k(g){return g===62?(e.consume(g),r.interrupt?t:v):n(g)}function I(g){return O(g)?(e.consume(g),I):y(g)}function C(g){return g===47?(e.consume(g),y):g===58||g===95||Z(g)?(e.consume(g),F):O(g)?(e.consume(g),C):y(g)}function F(g){return g===45||g===46||g===58||g===95||K(g)?(e.consume(g),F):R(g)}function R(g){return g===61?(e.consume(g),b):O(g)?(e.consume(g),R):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),u=g,M):O(g)?(e.consume(g),b):H(g)}function M(g){return g===u?(e.consume(g),u=null,j):g===null||z(g)?n(g):(e.consume(g),M)}function H(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||V(g)?R(g):(e.consume(g),H)}function j(g){return g===47||g===62||O(g)?C(g):n(g)}function y(g){return g===62?(e.consume(g),P):n(g)}function P(g){return g===null||z(g)?v(g):O(g)?(e.consume(g),P):n(g)}function v(g){return g===45&&i===2?(e.consume(g),q):g===60&&i===1?(e.consume(g),Q):g===62&&i===4?(e.consume(g),ae):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),pe):z(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ro,me,U)(g)):g===null||z(g)?(e.exit("htmlFlowData"),U(g)):(e.consume(g),v)}function U(g){return e.check(io,D,me)(g)}function D(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||z(g)?U(g):(e.enter("htmlFlowData"),v(g))}function q(g){return g===45?(e.consume(g),m):v(g)}function Q(g){return g===47?(e.consume(g),l="",oe):v(g)}function oe(g){if(g===62){const ue=l.toLowerCase();return vt.includes(ue)?(e.consume(g),ae):v(g)}return Z(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),oe):v(g)}function pe(g){return g===93?(e.consume(g),m):v(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&i===2?(e.consume(g),m):v(g)}function ae(g){return g===null||z(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),ae)}function me(g){return e.exit("htmlFlow"),t(g)}}function ao(e,t,n){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function uo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,t,n)}}const so={name:"htmlText",tokenize:co};function co(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),R):m===63?(e.consume(m),C):Z(m)?(e.consume(m),H):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):Z(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):z(m)?(l=c,Q(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?q(m):m===45?p(m):c(m)}function d(m){const ae="CDATA[";return m===ae.charCodeAt(o++)?(e.consume(m),o===ae.length?w:d):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):z(m)?(l=w,Q(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),k):w(m)}function k(m){return m===62?q(m):m===93?(e.consume(m),k):w(m)}function I(m){return m===null||m===62?q(m):z(m)?(l=I,Q(m)):(e.consume(m),I)}function C(m){return m===null?n(m):m===63?(e.consume(m),F):z(m)?(l=C,Q(m)):(e.consume(m),C)}function F(m){return m===62?q(m):C(m)}function R(m){return Z(m)?(e.consume(m),b):n(m)}function b(m){return m===45||K(m)?(e.consume(m),b):M(m)}function M(m){return z(m)?(l=M,Q(m)):O(m)?(e.consume(m),M):q(m)}function H(m){return m===45||K(m)?(e.consume(m),H):m===47||m===62||V(m)?j(m):n(m)}function j(m){return m===47?(e.consume(m),q):m===58||m===95||Z(m)?(e.consume(m),y):z(m)?(l=j,Q(m)):O(m)?(e.consume(m),j):q(m)}function y(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),y):P(m)}function P(m){return m===61?(e.consume(m),v):z(m)?(l=P,Q(m)):O(m)?(e.consume(m),P):j(m)}function v(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,U):z(m)?(l=v,Q(m)):O(m)?(e.consume(m),v):(e.consume(m),D)}function U(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):z(m)?(l=U,Q(m)):(e.consume(m),U)}function D(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||V(m)?j(m):(e.consume(m),D)}function T(m){return m===47||m===62||V(m)?j(m):n(m)}function q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),oe}function oe(m){return O(m)?B(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),l(m)}}const Kn={name:"labelEnd",resolveAll:mo,resolveTo:go,tokenize:ko},fo={tokenize:yo},ho={tokenize:xo},po={tokenize:bo};function mo(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ie(e,0,e.length,n),e}function go(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,t],["enter",s,t]],a=le(a,e.slice(o+1,o+r+3)),a=le(a,[["enter",f,t]]),a=le(a,cn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=le(a,[["exit",f,t],e[l-2],e[l-1],["exit",s,t]]),a=le(a,e.slice(l+1)),a=le(a,[["exit",u,t]]),ie(e,o,e.length,a),e}function ko(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ce(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(fo,f,l?f:c)(p):p===91?e.attempt(ho,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(po,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function yo(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return V(c)?Ve(e,o)(c):o(c)}function o(c){return c===41?f(c):Ir(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return V(c)?Ve(e,u)(c):f(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?Tr(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return V(c)?Ve(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function xo(e,t,n){const r=this;return i;function i(a){return Ar.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function bo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const wo={name:"labelStartImage",resolveAll:Kn.resolveAll,tokenize:So};function So(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Co={name:"labelStartLink",resolveAll:Kn.resolveAll,tokenize:Eo};function Eo(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const yn={name:"lineEnding",tokenize:Io};function Io(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,t,"linePrefix")}}const rn={name:"thematicBreak",tokenize:Ao};function Ao(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),O(s)?B(e,a,"whitespace")(s):a(s))}}const ee={continuation:{tokenize:zo},exit:Lo,name:"list",tokenize:vo},To={partial:!0,tokenize:Fo},Po={partial:!0,tokenize:Do};function vo(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:On(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(rn,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return On(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ge,r.interrupt?n:f,e.attempt(To,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return O(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function zo(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Po,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Do(e,t,n){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Lo(e){e.exit(this.containerState.type)}function Fo(e,t,n){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!O(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zt={name:"setextUnderline",resolveTo:Ro,tokenize:_o};function Ro(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function _o(e,t,n){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),O(s)?B(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||z(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const Oo={tokenize:Mo};function Mo(e){const t=this,n=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Hl,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const No={resolveAll:vr()},Bo=Pr("string"),jo=Pr("text");function Pr(e){return{resolveAll:vr(e==="text"?Ho:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function vr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Ho(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const s={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,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(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}const Uo={42:ee,43:ee,45:ee,48:ee,49:ee,50:ee,51:ee,52:ee,53:ee,54:ee,55:ee,56:ee,57:ee,62:wr},qo={91:Wl},$o={[-2]:kn,[-1]:kn,32:kn},Vo={35:Jl,42:rn,45:[zt,rn],60:to,61:zt,95:rn,96:Pt,126:Pt},Wo={38:Cr,92:Sr},Yo={[-5]:yn,[-4]:yn,[-3]:yn,33:wo,38:Cr,42:Mn,60:[Sl,so],91:Co,92:[Gl,Sr],93:Kn,95:Mn,96:_l},Xo={null:[Mn,No]},Qo={null:[42,95]},Go={null:[]},Ko=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Qo,contentInitial:qo,disable:Go,document:Uo,flow:Vo,flowInitial:$o,insideSpan:Xo,string:Wo,text:Yo},Symbol.toStringTag,{value:"Module"}));function Jo(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:M(R),check:M(b),consume:I,enter:C,exit:F,interrupt:M(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(s,u);return t.resolveAll&&o.push(t),s;function c(P){return l=le(l,P),S(),l[l.length-1]!==null?[]:(H(t,0),s.events=cn(o,s.events,s),s.events)}function p(P,v){return ea(h(P),v)}function h(P){return Zo(l,P)}function d(){const{_bufferIndex:P,_index:v,line:U,column:D,offset:T}=r;return{_bufferIndex:P,_index:v,line:U,column:D,offset:T}}function w(P){i[P.line]=P.column,y()}function S(){let P;for(;r._index<l.length;){const v=l[r._index];if(typeof v=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<v.length;)k(v.charCodeAt(r._bufferIndex));else k(v)}}function k(P){f=f(P)}function I(P){z(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,y()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function C(P,v){const U=v||{};return U.type=P,U.start=d(),s.events.push(["enter",U,s]),a.push(U),U}function F(P){const v=a.pop();return v.end=d(),s.events.push(["exit",v,s]),v}function R(P,v){H(P,v.from)}function b(P,v){v.restore()}function M(P,v){return U;function U(D,T,q){let Q,oe,pe,m;return Array.isArray(D)?me(D):"tokenize"in D?me([D]):ae(D);function ae(G){return Me;function Me(ye){const Ae=ye!==null&&G[ye],Te=ye!==null&&G.null,Je=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return me(Je)(ye)}}function me(G){return Q=G,oe=0,G.length===0?q:g(G[oe])}function g(G){return Me;function Me(ye){return m=j(),pe=G,G.partial||(s.currentConstruct=G),G.name&&s.parser.constructs.disable.null.includes(G.name)?we():G.tokenize.call(v?Object.assign(Object.create(s),v):s,u,ue,we)(ye)}}function ue(G){return P(pe,m),T}function we(G){return m.restore(),++oe<Q.length?g(Q[oe]):q}}}function H(P,v){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&ie(s.events,v,s.events.length-v,P.resolve(s.events.slice(v),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function j(){const P=d(),v=s.previous,U=s.currentConstruct,D=s.events.length,T=Array.from(a);return{from:D,restore:q};function q(){r=P,s.previous=v,s.currentConstruct=U,s.events.length=D,a=T,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Zo(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ea(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
3
3
|
`;break}case-3:{l=`\r
|
|
4
4
|
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function na(e){const r={constructs:xr([Ko,...(e||{}).extensions||[]]),content:i(gl),defined:[],document:i(kl),flow:i(Oo),lazy:{},string:i(Bo),text:i(jo)};return r;function i(o){return l;function l(a){return Jo(r,o,a)}}}function ta(e){for(;!Er(e););return e}const Dt=/[\0\t\n\r]/g;function ra(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Dt.lastIndex=c,s=Dt.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const ia=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function la(e){return e.replace(ia,oa)}function oa(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return br(n.slice(o?2:1),o?16:10)}return Gn(n)||e}const zr={}.hasOwnProperty;function aa(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ua(n)(ta(na(n).document().write(ra()(e,t,!0))))}function ua(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ct),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(at),blockQuote:o(Te),characterEscape:j,characterReference:j,codeFenced:o(Je),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Je,l),codeText:o(si,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(ci),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(fi),hardBreakEscape:o(ut),hardBreakTrailing:o(ut),htmlFlow:o(st,l),htmlFlowData:j,htmlText:o(st,l),htmlTextData:j,image:o(hi),label:l,link:o(ct),listItem:o(pi),listItemValue:p,listOrdered:o(ft,c),listUnordered:o(ft),paragraph:o(mi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(at),strong:o(gi),thematicBreak:o(ki)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:Ae,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:G,characterReference:Me,codeFenced:u(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:y,codeIndented:u(k),codeText:u(T),codeTextData:y,data:y,definition:u(),definitionDestinationString:F,definitionLabelString:I,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(v),hardBreakTrailing:u(v),htmlFlow:u(U),htmlFlowData:y,htmlText:u(D),htmlTextData:y,image:u(Q),label:pe,labelText:oe,lineEnding:P,link:u(q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:m,resourceTitleString:ae,resource:me,setextHeading:u(H),setextHeadingLineSequence:M,setextHeadingText:b,strong:u(),thematicBreak:u()}};Dr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let A={type:"root",children:[]};const L={stack:[A],tokenStack:[],config:t,enter:a,exit:s,buffer:l,resume:f,data:n},N=[];let $=-1;for(;++$<x.length;)if(x[$][1].type==="listOrdered"||x[$][1].type==="listUnordered")if(x[$][0]==="enter")N.push($);else{const se=N.pop();$=i(x,se,$)}for($=-1;++$<x.length;){const se=t[x[$][0]];zr.call(se,x[$][1].type)&&se[x[$][1].type].call(Object.assign({sliceSerialize:x[$][2].sliceSerialize},L),x[$][1])}if(L.tokenStack.length>0){const se=L.tokenStack[L.tokenStack.length-1];(se[1]||Lt).call(L,void 0,se[0])}for(A.position={start:xe(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:xe(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<t.transforms.length;)A=t.transforms[$](A)||A;return A}function i(x,A,L){let N=A-1,$=-1,se=!1,Se,ge,Ne,Be;for(;++N<=L;){const te=x[N];switch(te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{te[0]==="enter"?$++:$--,Be=void 0;break}case"lineEndingBlank":{te[0]==="enter"&&(Se&&!Be&&!$&&!Ne&&(Ne=N),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!$&&te[0]==="enter"&&te[1].type==="listItemPrefix"||$===-1&&te[0]==="exit"&&(te[1].type==="listUnordered"||te[1].type==="listOrdered")){if(Se){let Pe=N;for(ge=void 0;Pe--;){const de=x[Pe];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;ge&&(x[ge][1].type="lineEndingBlank",se=!0),de[1].type="lineEnding",ge=Pe}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Ne&&(!ge||Ne<ge)&&(Se._spread=!0),Se.end=Object.assign({},ge?x[ge][1].start:te[1].end),x.splice(ge||N,0,["exit",Se,te[2]]),N++,L++}if(te[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},te[1].start),end:void 0};Se=Pe,x.splice(N,0,["enter",Pe,te[2]]),N++,L++,Ne=void 0,Be=!0}}}return x[A][1]._spread=se,L}function o(x,A){return L;function L(N){a.call(this,x(N),N),A&&A.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(x,A,L){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([A,L||void 0]),x.position={start:xe(A.start),end:void 0}}function u(x){return A;function A(L){x&&x.call(this,L),s.call(this,L)}}function s(x,A){const L=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==x.type&&(A?A.call(this,x,N[0]):(N[1]||Lt).call(this,x,N[0]));else throw new Error("Cannot close `"+x.type+"` ("+$e({start:x.start,end:x.end})+"): it’s not open");L.position.end=xe(x.end)}function f(){return Qn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(x){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),A=this.stack[this.stack.length-1];A.lang=x}function d(){const x=this.resume(),A=this.stack[this.stack.length-1];A.meta=x}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/(\r?\n|\r)$/g,"")}function I(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=ce(this.sliceSerialize(x)).toLowerCase()}function C(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function F(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function R(x){const A=this.stack[this.stack.length-1];if(!A.depth){const L=this.sliceSerialize(x).length;A.depth=L}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function M(x){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function j(x){const L=this.stack[this.stack.length-1].children;let N=L[L.length-1];(!N||N.type!=="text")&&(N=di(),N.position={start:xe(x.start),end:void 0},L.push(N)),this.stack.push(N)}function y(x){const A=this.stack.pop();A.value+=this.sliceSerialize(x),A.position.end=xe(x.end)}function P(x){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=A.children[A.children.length-1];L.position.end=xe(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(j.call(this,x),y.call(this,x))}function v(){this.data.atHardBreak=!0}function U(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function D(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function T(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function q(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function Q(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function oe(x){const A=this.sliceSerialize(x),L=this.stack[this.stack.length-2];L.label=la(A),L.identifier=ce(A).toLowerCase()}function pe(){const x=this.stack[this.stack.length-1],A=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const N=x.children;L.children=N}else L.alt=A}function m(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function ae(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function me(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ue(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=ce(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function we(x){this.data.characterReferenceType=x.type}function G(x){const A=this.sliceSerialize(x),L=this.data.characterReferenceType;let N;L?(N=br(A,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Gn(A);const $=this.stack[this.stack.length-1];$.value+=N}function Me(x){const A=this.stack.pop();A.position.end=xe(x.end)}function ye(x){y.call(this,x);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(x)}function Ae(x){y.call(this,x);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(x)}function Te(){return{type:"blockquote",children:[]}}function Je(){return{type:"code",lang:null,meta:null,value:""}}function si(){return{type:"inlineCode",value:""}}function ci(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fi(){return{type:"emphasis",children:[]}}function at(){return{type:"heading",depth:0,children:[]}}function ut(){return{type:"break"}}function st(){return{type:"html",value:""}}function hi(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function ft(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function pi(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function mi(){return{type:"paragraph",children:[]}}function gi(){return{type:"strong",children:[]}}function di(){return{type:"text",value:""}}function ki(){return{type:"thematicBreak"}}}function xe(e){return{line:e.line,column:e.column,offset:e.offset}}function Dr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Dr(e,r):sa(e,r)}}function sa(e,t){let n;for(n in t)if(zr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Lt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$e({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is still open")}function ca(e){const t=this;t.parser=n;function n(r){return aa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function fa(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ha(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|