juneau 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +307 -306
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("react/jsx-runtime");function Ar(e){return e.map(n=>n.role!=="assistant"||n.parts.some(t=>t.type==="text")?n:{...n,parts:[{type:"text",text:""}]})}const K=e=>new Promise(n=>setTimeout(n,e));function Er(e){return e.parts.filter(n=>n.type==="text").map(n=>n.text).join("")}async function Yt(e,n,t){for await(const r of e)if(t?.aborted||(n(r),r.type==="done"||r.type==="error"))break}function on(e){return e.type==="proposal"}const
|
|
2
|
-
Found document **INV-2024-0894** from **DataSys a.s.** for **CZK 390 000**.`,25),yield{type:"done"}}async function*
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("react/jsx-runtime");function Ar(e){return e.map(n=>n.role!=="assistant"||n.parts.some(t=>t.type==="text")?n:{...n,parts:[{type:"text",text:""}]})}const K=e=>new Promise(n=>setTimeout(n,e));function Er(e){return e.parts.filter(n=>n.type==="text").map(n=>n.text).join("")}async function Yt(e,n,t){for await(const r of e)if(t?.aborted||(n(r),r.type==="done"||r.type==="error"))break}function on(e){return e.type==="proposal"}const al=1;function sl(e){return e.map(n=>({...n,v:al,createdAt:n.createdAt.toISOString(),parts:n.parts.filter(t=>!(t.type==="activity"&&t.status==="running")).map(ul)}))}function ul(e){return on(e)&&!e.proposal.resolved?{...e,proposal:{...e.proposal,resolved:"expired"}}:e}function cl(e){return e.map(({v:n,...t})=>({...t,createdAt:new Date(t.createdAt)}))}function Ir(e,n){if(n<=0||e.length<=n)return e;let t=e.length-n;for(;t<e.length&&e[t].role==="assistant";)t++;return e.slice(t)}function fl(e,n){return n<=0||e.length<=n?[...e].sort(Ln):[...e].sort(Ln).slice(0,n)}const Ln=(e,n)=>n.updatedAt.getTime()-e.updatedAt.getTime(),pl={async*sendMessage(e){const n=[...e.messages].reverse().find(r=>r.role==="user"),t=n?Er(n).toLowerCase():"";t.includes("activity")||t.includes("progress")||t.includes("document")||t.includes("dokument")?yield*hl():t.includes("table")||t.includes("data")||t.includes("list")||t.includes("show")?yield*dl():t.includes("proposal")||t.includes("suggest")||t.includes("recommend")?yield*ml():t.includes("entity")||t.includes("card")||t.includes("detail")||t.includes("find")?yield*gl():t.includes("help")||t.includes("what can")||t.includes("how do")?yield*yl():t.includes("error")||t.includes("fail")||t.includes("break")?yield*xl():yield*kl(t)}};async function*hl(){yield{type:"part",part:{type:"activity",id:"select-skill",title:"Selecting skill",description:"Looking for the best skill for this request.",status:"running"}},await K(700),yield{type:"part",part:{type:"activity",id:"select-skill",title:"Skill selected",description:"Using Document Search.",status:"done"}},await K(300),yield{type:"part",part:{type:"activity",id:"search-document",title:"Searching document",description:"Looking up document by ID.",status:"running"}},await K(900),yield{type:"part",part:{type:"activity",id:"search-document",title:"Document found",description:"Found document INV-2024-0894.",status:"done"}},await K(300),yield*ee(`
|
|
2
|
+
Found document **INV-2024-0894** from **DataSys a.s.** for **CZK 390 000**.`,25),yield{type:"done"}}async function*dl(){yield*ee(`Here is a summary of the data you requested:
|
|
3
3
|
|
|
4
4
|
`,30),await K(400),yield{type:"part",part:{type:"table",columns:["Name","Category","Value","Status"],rows:[{Name:"Item Alpha",Category:"Type A",Value:"1,200",Status:"Active"},{Name:"Item Beta",Category:"Type B",Value:"840",Status:"Active"},{Name:"Item Gamma",Category:"Type A",Value:"3,050",Status:"Pending"},{Name:"Item Delta",Category:"Type C",Value:"610",Status:"Inactive"},{Name:"Item Epsilon",Category:"Type B",Value:"2,200",Status:"Active"}]}},await K(300),yield*ee(`
|
|
5
|
-
Total across all entries: **7,900** — Type A accounts for the largest share at 53%.`,25),yield{type:"done"}}async function*
|
|
5
|
+
Total across all entries: **7,900** — Type A accounts for the largest share at 53%.`,25),yield{type:"done"}}async function*ml(){yield*ee(`Based on the current data, I have a suggestion for you:
|
|
6
6
|
|
|
7
|
-
`,30),await K(500),yield{type:"part",part:{type:"proposal",proposal:{id:"mock-proposal-1",title:"Save this as a recurring report",description:"This summary can be automatically generated on a schedule so you always have up-to-date insights.",confirmLabel:"Save report",cancelLabel:"Dismiss",payload:{reportType:"summary",schedule:"weekly"}}}},yield{type:"done"}}async function*
|
|
7
|
+
`,30),await K(500),yield{type:"part",part:{type:"proposal",proposal:{id:"mock-proposal-1",title:"Save this as a recurring report",description:"This summary can be automatically generated on a schedule so you always have up-to-date insights.",confirmLabel:"Save report",cancelLabel:"Dismiss",payload:{reportType:"summary",schedule:"weekly"}}}},yield{type:"done"}}async function*gl(){yield*ee(`I found these records matching your request:
|
|
8
8
|
|
|
9
9
|
`,30),await K(400),yield{type:"part",part:{type:"entity-list",title:"2 records found",entityType:"record",entities:[{id:"rec-2024-0894",title:"REC-2024-0894",subtitle:"DataSys a.s.",fields:[{label:"Amount",value:"CZK 390 000"},{label:"Due date",value:"2024-08-15"},{label:"Status",value:"Approved",badge:"success"}]},{id:"rec-2024-0895",title:"REC-2024-0895",subtitle:"NetFlow s.r.o.",fields:[{label:"Amount",value:"CZK 218 500"},{label:"Due date",value:"2024-08-22"},{label:"Status",value:"Pending",badge:"warning"}]}]}},await K(300),yield*ee(`
|
|
10
10
|
Here is the detail of the first one:
|
|
11
11
|
|
|
12
|
-
`,25),await K(300),yield{type:"part",part:{type:"entity",entityType:"record",entity:{id:"rec-2024-0894",title:"REC-2024-0894",subtitle:"DataSys a.s. — Consulting",fields:[{label:"Amount",value:"CZK 390 000"},{label:"Issued",value:"2024-07-15"},{label:"Due date",value:"2024-08-15"},{label:"Status",value:"Approved",badge:"success"}]}}},yield{type:"done"}}async function*
|
|
12
|
+
`,25),await K(300),yield{type:"part",part:{type:"entity",entityType:"record",entity:{id:"rec-2024-0894",title:"REC-2024-0894",subtitle:"DataSys a.s. — Consulting",fields:[{label:"Amount",value:"CZK 390 000"},{label:"Issued",value:"2024-07-15"},{label:"Due date",value:"2024-08-15"},{label:"Status",value:"Approved",badge:"success"}]}}},yield{type:"done"}}async function*yl(){yield*ee(`I'm a general-purpose AI assistant. Here's what I can help with:
|
|
13
13
|
|
|
14
14
|
`,30),await K(200),yield*ee(`- **Summarise data** — ask me to show, list, or summarise information
|
|
15
15
|
`,22),await K(150),yield*ee(`- **Make suggestions** — ask me to recommend or propose something
|
|
16
16
|
`,22),await K(150),yield*ee(`- **Answer questions** — ask me anything and I'll do my best
|
|
17
17
|
`,22),await K(200),yield*ee(`
|
|
18
|
-
Try asking: *"Show me the data"* or *"Can you suggest something?"*`,25),yield{type:"done"}}async function*
|
|
18
|
+
Try asking: *"Show me the data"* or *"Can you suggest something?"*`,25),yield{type:"done"}}async function*xl(){yield*ee("Attempting to process your request…",30),await K(800),yield{type:"error",message:"Simulated error: the upstream service returned an unexpected response."}}async function*kl(e){yield*ee(`Got it — you asked about *"${e||"your request"}"*.
|
|
19
19
|
|
|
20
20
|
`,30),await K(400),yield*ee(`I'm a **mock adapter** used for development. I respond to a few trigger words:
|
|
21
21
|
|
|
@@ -24,35 +24,35 @@ Try asking: *"Show me the data"* or *"Can you suggest something?"*`,25),yield{ty
|
|
|
24
24
|
`,22),await K(150),yield*ee(`- Say **"entity"**, **"card"**, **"detail"**, or **"find"** → renders entity cards
|
|
25
25
|
`,22),await K(150),yield*ee(`- Say **"help"** or **"what can you do"** → shows capabilities
|
|
26
26
|
`,22),await K(150),yield*ee(`- Say **"error"** or **"fail"** → simulates an error response
|
|
27
|
-
`,22),yield{type:"done"}}async function*ee(e,n){for(let r=0;r<e.length;r+=3)yield{type:"text",text:e.slice(r,r+3)},await K(n)}function an(e){if(!e||e==="[DONE]")return[];let n;try{n=JSON.parse(e)}catch{return[]}switch(n.type){case"text":return n.text?[{type:"text",text:n.text}]:[];case"activity":return[{type:"part",part:{type:"activity",id:n.id,title:n.title,description:n.description,status:n.status,metadata:n.metadata}}];case"part":return[{type:"part",part:n.part}];case"done":return[{type:"done"}];case"error":return[{type:"error",message:n.message}];default:return[]}}function
|
|
28
|
-
`);i=a.pop()??"";for(const s of a){const u=s.trim();if(!(!u||u.startsWith(":"))&&u.startsWith("data: ")){const f=u.slice(6);if(f==="[DONE]"){yield{type:"done"};return}const c=n(f);for(const h of c)if(yield h,h.type==="done"||h.type==="error")return}}}}finally{t.releaseLock()}yield{type:"done"}}const
|
|
29
|
-
`);i=a.pop()??"";for(const s of a){const u=s.trim();if(!u)continue;const f=n(u);for(const c of f)if(yield c,c.type==="done"||c.type==="error")return}}if(i.trim()){const o=n(i.trim());for(const l of o)if(yield l,l.type==="done"||l.type==="error")return}}finally{t.releaseLock()}yield{type:"done"}}const vl=e=>{const n=an(e);return n.length>0?n:e?[{type:"text",text:e}]:[]};let _l=0;const ft=()=>`msg-${++_l}-${Date.now()}`,Dn=Ar;function Tr({adapter:e,context:n,onProposalConfirm:t,onProposalCancel:r,initialMessages:i,historyLimit:o,onMessagesChange:l}){const[a,s]=q.useState(i??[]),[u,f]=q.useState(""),[c,h]=q.useState(!1),[p,g]=q.useState(!1),[C,S]=q.useState(null),x=q.useRef(null),E=q.useRef(!1),_=q.useRef(l);q.useEffect(()=>{_.current=l}),q.useEffect(()=>{!E.current||c||(E.current=!1,_.current?.(a))},[a,c]);const j=q.useCallback(v=>{s(N=>{const O=N[N.length-1];if(!O||O.role!=="assistant")return N;if(v.type==="activity"&&v.id){const Q=[...O.parts],Y=Q.findIndex(d=>d.type==="activity"&&d.id===v.id);if(Y!==-1)return Q[Y]=v,[...N.slice(0,-1),{...O,parts:Q}]}return[...N.slice(0,-1),{...O,parts:[...O.parts,v]}]})},[]),D=q.useCallback(v=>{s(N=>{const O=N[N.length-1];if(!O||O.role!=="assistant")return N;const Q=[...O.parts],Y=Q[Q.length-1];return Y?.type==="text"?Q[Q.length-1]={type:"text",text:Y.text+v}:Q.push({type:"text",text:v}),[...N.slice(0,-1),{...O,parts:Q}]})},[]),b=q.useCallback(async(v,N)=>{S(null);const O={id:ft(),role:"user",parts:[{type:"text",text:v}],createdAt:new Date},Q=ft();let Y=!1;const d=()=>{if(Y)return;Y=!0;const te={id:Q,role:"assistant",parts:[],createdAt:new Date};s(m=>[...m,te])};s(te=>[...te,O]),h(!0),g(!0),x.current?.abort();const se=new AbortController;x.current=se;try{const te=Ir([...N,O],o??Number.POSITIVE_INFINITY),m=e.sendMessage({messages:Dn(te),context:n});await Yt(m,ne=>{switch(g(!1),ne.type){case"text":d(),D(ne.text);break;case"part":d(),j(ne.part);break;case"error":d(),j({type:"error",message:ne.message}),S(ne.message);break;case"done":break}},se.signal)}catch(te){const m=te instanceof Error?te.message:"Unknown error occurred";S(m),d(),j({type:"error",message:m})}finally{E.current=!0,h(!1),g(!1)}},[e,n,o,D,j]),F=q.useCallback(async()=>{const v=u.trim();!v||c||(f(""),await b(v,a))},[u,c,a,b]),H=q.useCallback(async v=>{!v.trim()||c||await b(v,a)},[c,a,b]),B=q.useCallback(async v=>{if(c)return;S(null),h(!0),g(!0);const N={id:ft(),role:"assistant",parts:[],createdAt:new Date};s(Y=>[...Y,N]),x.current?.abort();const O=new AbortController;x.current=O;const Q={id:ft(),role:"system",parts:[{type:"text",text:v}],createdAt:new Date};try{const Y=e.sendMessage({messages:Dn([Q]),context:n});await Yt(Y,d=>{switch(g(!1),d.type){case"text":D(d.text);break;case"part":j(d.part);break;case"error":j({type:"error",message:d.message}),S(d.message);break;case"done":break}},O.signal)}catch(Y){const d=Y instanceof Error?Y.message:"Unknown error occurred";S(d),j({type:"error",message:d})}finally{E.current=!0,h(!1),g(!1)}},[c,e,n,D,j]),k=q.useCallback(()=>{x.current?.abort(),h(!1),g(!1)},[]),T=q.useCallback(v=>{x.current?.abort(),E.current=!0,s(v??[]),f(""),S(null),h(!1),g(!1)},[]),z=q.useCallback((v,N)=>{E.current=!0,s(O=>O.map(Q=>({...Q,parts:Q.parts.map(Y=>on(Y)&&Y.proposal.id===v?{...Y,proposal:{...Y.proposal,resolved:N}}:Y)})))},[]),W=q.useCallback((v,N)=>{z(v,"confirmed"),t?.(v,N)},[t,z]),P=q.useCallback(v=>{z(v,"cancelled"),r?.(v)},[r,z]);return q.useMemo(()=>({messages:a,input:u,setInput:f,sendMessage:F,sendMessageWithText:H,sendGreeting:B,stop:k,isLoading:c,isConnecting:p,error:C,reset:T,confirmProposal:W,cancelProposal:P}),[a,u,F,H,B,k,c,p,C,T,W,P])}const sn={sidebarTitle:"AI Assistant",clearConversation:"Clear conversation",resetConversation:"Reset conversation",minimizeSidebar:"Minimize",expandSidebar:"Expand",userLabel:"You",inputPlaceholder:"Ask a question… (Enter to send)",sendMessage:"Send message",stopMessage:"Stop",typingMessage:"Assistant is typing",connectingMessage:"Connecting…",emptyStateText:"How can I help you today?",emptyStateHint:'Try: "Show me the data" or "Can you suggest something?"',proposalConfirm:"Confirm",proposalCancel:"Cancel",proposalConfirmed:"Confirmed",proposalCancelled:"Cancelled",proposalExpired:"No longer available",errorDismiss:"Dismiss",actionAddFile:"Add file",actionQuickActions:"Quick actions",actionNew:"New",actionHistory:"History",actionRules:"Rules",historyEmpty:"No previous chats",historyDeleteChat:"Delete chat"},zr=q.createContext(sn);function Ie(){return q.useContext(zr)}const Al="_root_1etc2_1",El={root:Al};function Il({children:e,theme:n,labels:t,defaultTitle:r,className:i,style:o}){const l={...sn,...r?{sidebarTitle:r}:{},...t},a=n?Tl(n):void 0;return y.jsx(zr.Provider,{value:l,children:y.jsx("div",{className:[El.root,i].filter(Boolean).join(" "),style:{...a,...o},children:e})})}function Tl(e){const n={"--juneau-color-primary":e.colorPrimary,"--juneau-color-primary-dark":e.colorPrimaryDark,"--juneau-color-primary-light":e.colorPrimaryLight,"--juneau-color-primary-border":e.colorPrimaryBorder,"--juneau-color-accent":e.colorAccent,"--juneau-color-accent-dark":e.colorAccentDark,"--juneau-color-accent-light":e.colorAccentLight,"--juneau-color-accent-border":e.colorAccentBorder,"--juneau-color-surface":e.colorSurface,"--juneau-color-surface-raised":e.colorSurfaceRaised,"--juneau-color-surface-hover":e.colorSurfaceHover,"--juneau-color-border":e.colorBorder,"--juneau-color-border-subtle":e.colorBorderSubtle,"--juneau-color-text-primary":e.colorTextPrimary,"--juneau-color-text-secondary":e.colorTextSecondary,"--juneau-color-text-muted":e.colorTextMuted,"--juneau-color-text-faint":e.colorTextFaint,"--juneau-color-text-inverse":e.colorTextInverse,"--juneau-color-assistant-avatar":e.colorAssistantAvatar,"--juneau-radius-sm":e.radiusSm,"--juneau-radius-md":e.radiusMd,"--juneau-radius-lg":e.radiusLg,"--juneau-font-family":e.fontFamily};return Object.fromEntries(Object.entries(n).filter(([,t])=>t!==void 0))}const vt=q.createContext(null);function Pr(){const e=q.useContext(vt);if(!e)throw new Error("useAiChatContext must be used inside <AiChatProvider>. Wrap your app (or layout) with <AiChatProvider adapter={...}>.");return e}function zl(){return q.useContext(vt)}function Pl({adapter:e,context:n,onProposalConfirm:t,onProposalCancel:r,initialMessages:i,historyLimit:o,onMessagesChange:l,children:a}){const[s,u]=q.useState(n),f=q.useCallback(p=>{u(typeof p=="function"?g=>p(g):p)},[]),c=Tr({adapter:e,context:s,onProposalConfirm:t,onProposalCancel:r,initialMessages:i,historyLimit:o,onMessagesChange:l}),h=q.useMemo(()=>({...c,setContext:f}),[c,f]);return y.jsx(vt.Provider,{value:h,children:a})}const jl={sidebarTitle:"AI Asistent",clearConversation:"Vymazat konverzaci",resetConversation:"Resetovat konverzaci",minimizeSidebar:"Minimalizovat",expandSidebar:"Rozbalit",userLabel:"Vy",inputPlaceholder:"Zeptejte se na cokoliv… (Enter pro odeslání)",sendMessage:"Odeslat zprávu",stopMessage:"Zastavit",typingMessage:"Asistent píše",connectingMessage:"Připojování…",emptyStateText:"Jak vám mohu dnes pomoci?",emptyStateHint:'Zkuste: „Ukáž mi data" nebo „Máš nějaký návrh?"',proposalConfirm:"Potvrdit",proposalCancel:"Zrušit",proposalConfirmed:"Potvrzeno",proposalCancelled:"Zrušeno",proposalExpired:"Již není k dispozici",errorDismiss:"Zavřít",actionAddFile:"Přidat soubor",actionQuickActions:"Rychlé akce",actionNew:"Nový",actionHistory:"Historie",actionRules:"Pravidla",historyEmpty:"Žádné předchozí konverzace",historyDeleteChat:"Smazat konverzaci"};function jr({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M456 0c-48.6 0-88 39.4-88 88l0 29.2L12.5 390.6c-14 10.8-16.6 30.9-5.9 44.9s30.9 16.6 44.9 5.9L126.1 384l133.1 0 46.6 113.1c5 12.3 19.1 18.1 31.3 13.1s18.1-19.1 13.1-31.3L311.1 384l40.9 0c1.1 0 2.1 0 3.2 0l46.6 113.2c5 12.3 19.1 18.1 31.3 13.1s18.1-19.1 13.1-31.3l-42-102C484.9 354.1 544 280 544 192l0-64 0-8 80.5-20.1c8.6-2.1 13.8-10.8 11.6-19.4C629 52 603.4 32 574 32l-50.1 0C507.7 12.5 483.3 0 456 0zm0 64a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})})}function Ll({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s6.2-22.8 16.4-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"})})}function Dl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"})})}function Nl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"})})}function Ml({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"})})}function Rl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-31.8-31.8C143.9 83.5 196.2 64 252.6 64C370.8 64 464 157.8 464 276c0 77.5-40.8 145.4-102 182.9c-15.1 9.2-19.9 29-10.7 44.1s29 19.9 44.1 10.7C471 467.5 528 378.4 528 276C528 124.1 404.5 0 252.6 0C186 0 125.3 26.4 80 70.2L75 75zM256 152c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"})})}function Fl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 192 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-26.6 0c-25.8 50.9-72.7 88.5-129.4 99.8L384 416l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-72.2C135.3 332.5 88.4 294.9 62.6 244L48 244c-26.5 0-48-21.5-48-48L0 80zM128 240c0 70.7 57.3 128 128 128s128-57.3 128-128l0-128L128 112l0 128zM512 176l0-64-64 0 0 64-48 0 0 16c0 8.8-.7 17.4-2 25.8c3.3 .1 6.6 .2 9.9 .2l56 0c26.5 0 48-21.5 48-48l0-64zM48 176c0 26.5 21.5 48 48 48l56 0c3.4 0 6.7-.1 9.9-.2c-1.3-8.4-2-17-2-25.8l0-16-48 0 0-64-64 0 0 58z"})})}function Ol({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416z"})})}function Bl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M432 64L208 64c-8.8 0-16 7.2-16 16l0 16-64 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-64 16 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192zm64 32c0 17.7 14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 192c-17.7 0-32 14.3-32 32z"})})}function $l({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})}function Hl(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ql=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ul={};function Nn(e,n){return(Ul.jsx?Vl:ql).test(e)}const Wl=/[ \t\n\f\r]/g;function Yl(e){return typeof e=="object"?e.type==="text"?Mn(e.value):!1:Mn(e)}function Mn(e){return e.replace(Wl,"")===""}class at{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}at.prototype.normal={};at.prototype.property={};at.prototype.space=void 0;function Lr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new at(t,r,n)}function Qt(e){return e.toLowerCase()}class ce{constructor(n,t){this.attribute=t,this.property=n}}ce.prototype.attribute="";ce.prototype.booleanish=!1;ce.prototype.boolean=!1;ce.prototype.commaOrSpaceSeparated=!1;ce.prototype.commaSeparated=!1;ce.prototype.defined=!1;ce.prototype.mustUseProperty=!1;ce.prototype.number=!1;ce.prototype.overloadedBoolean=!1;ce.prototype.property="";ce.prototype.spaceSeparated=!1;ce.prototype.space=void 0;let Ql=0;const M=Re(),Z=Re(),Jt=Re(),A=Re(),X=Re(),Ne=Re(),pe=Re();function Re(){return 2**++Ql}const Xt=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:Z,commaOrSpaceSeparated:pe,commaSeparated:Ne,number:A,overloadedBoolean:Jt,spaceSeparated:X},Symbol.toStringTag,{value:"Module"})),zt=Object.keys(Xt);class un extends ce{constructor(n,t,r,i){let o=-1;if(super(n,t),Rn(this,"space",i),typeof r=="number")for(;++o<zt.length;){const l=zt[o];Rn(this,zt[o],(r&Xt[l])===Xt[l])}}}un.prototype.defined=!0;function Rn(e,n,t){t&&(e[n]=t)}function Ve(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new un(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Qt(r)]=r,t[Qt(o.attribute)]=r}return new at(n,t,e.space)}const Dr=Ve({properties:{ariaActiveDescendant:null,ariaAtomic:Z,ariaAutoComplete:null,ariaBusy:Z,ariaChecked:Z,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:Z,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:Z,ariaFlowTo:X,ariaGrabbed:Z,ariaHasPopup:null,ariaHidden:Z,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:A,ariaLive:null,ariaModal:Z,ariaMultiLine:Z,ariaMultiSelectable:Z,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:Z,ariaReadOnly:Z,ariaRelevant:null,ariaRequired:Z,ariaRoleDescription:X,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:Z,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Nr(e,n){return n in e?e[n]:n}function Mr(e,n){return Nr(e,n.toLowerCase())}const Jl=Ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alpha:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:X,autoFocus:M,autoPlay:M,blocking:X,capture:null,charSet:null,checked:M,cite:null,className:X,closedBy:null,colorSpace:null,cols:A,colSpan:A,command:null,commandFor:null,content:null,contentEditable:Z,controls:M,controlsList:X,coords:A|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Jt,draggable:Z,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:X,height:A,hidden:Jt,high:A,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:X,itemRef:X,itemScope:M,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:A,pattern:null,ping:X,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:X,required:M,reversed:M,rows:A,rowSpan:A,sandbox:X,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootCustomElementRegistry:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shadowRootSerializable:M,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:Z,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:Z,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:Z,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:M,disablePictureInPicture:M,disableRemotePlayback:M,exportParts:Ne,part:X,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Mr}),Xl=Ve({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",maskType:"mask-type",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:pe,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:X,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:pe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pe,rev:pe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pe,requiredFeatures:pe,requiredFonts:pe,requiredFormats:pe,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:pe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pe,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nr}),Rr=Ve({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Fr=Ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mr}),Or=Ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Gl={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"},Kl=/[A-Z]/g,Fn=/-[a-z]/g,Zl=/^data[-\w.:]+$/i;function eo(e,n){const t=Qt(n);let r=n,i=ce;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Zl.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Fn,no);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Fn.test(o)){let l=o.replace(Kl,to);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=un}return new i(r,n)}function to(e){return"-"+e.toLowerCase()}function no(e){return e.charAt(1).toUpperCase()}const ro=Lr([Dr,Jl,Rr,Fr,Or],"html"),cn=Lr([Dr,Xl,Rr,Fr,Or],"svg");function io(e){return e.join(" ").trim()}function Br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={},Pt,On;function lo(){if(On)return Pt;On=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
30
|
-
`,u="/",f="*",c="",h="comment",p="declaration";function g(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var E=1,_=1;function j(P){var v=P.match(n);v&&(E+=v.length);var N=P.lastIndexOf(s);_=~N?P.length-N:_+P.length}function D(){var P={line:E,column:_};return function(v){return v.position=new b(P),B(),v}}function b(P){this.start=P,this.end={line:E,column:_},this.source=x.source}b.prototype.content=S;function F(P){var v=new Error(x.source+":"+E+":"+_+": "+P);if(v.reason=P,v.filename=x.source,v.line=E,v.column=_,v.source=S,!x.silent)throw v}function H(P){var v=P.exec(S);if(v){var N=v[0];return j(N),S=S.slice(N.length),v}}function B(){H(t)}function k(P){var v;for(P=P||[];v=T();)v!==!1&&P.push(v);return P}function T(){var P=D();if(!(u!=S.charAt(0)||f!=S.charAt(1))){for(var v=2;c!=S.charAt(v)&&(f!=S.charAt(v)||u!=S.charAt(v+1));)++v;if(v+=2,c===S.charAt(v-1))return F("End of comment missing");var N=S.slice(2,v-2);return _+=2,j(N),S=S.slice(v),_+=2,P({type:h,comment:N})}}function z(){var P=D(),v=H(r);if(v){if(T(),!H(i))return F("property missing ':'");var N=H(o),O=P({type:p,property:C(v[0].replace(e,c)),value:N?C(N[0].replace(e,c)):c});return H(l),O}}function W(){var P=[];k(P);for(var v;v=z();)v!==!1&&(P.push(v),k(P));return P}return B(),W()}function C(S){return S?S.replace(a,c):c}return Pt=g,Pt}var Bn;function oo(){if(Bn)return $e;Bn=1;var e=$e&&$e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($e,"__esModule",{value:!0}),$e.default=t;const n=e(lo());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return $e}var Je={},$n;function ao(){if($n)return Je;$n=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return Je.camelCase=s,Je}var Xe,Hn;function so(){if(Hn)return Xe;Hn=1;var e=Xe&&Xe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(oo()),t=ao();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(l[(0,t.camelCase)(a,o)]=s)}),l}return r.default=r,Xe=r,Xe}var uo=so();const co=Br(uo),$r=Hr("end"),fn=Hr("start");function Hr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fo(e){const n=fn(e),t=$r(e);if(n&&t)return{start:n,end:t}}function nt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qn(e.position):"start"in e||"end"in e?qn(e):"line"in e||"column"in e?Gt(e):""}function Gt(e){return Vn(e&&e.line)+":"+Vn(e&&e.column)}function qn(e){return Gt(e&&e.start)+"-"+Gt(e&&e.end)}function Vn(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.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=nt(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}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const pn={}.hasOwnProperty,po=new Map,ho=/[A-Z]/g,mo=new Set(["table","tbody","thead","tfoot","tr"]),go=new Set(["td","th"]),qr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yo(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=_o(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=vo(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?cn:ro,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Vr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Vr(e,n,t){if(n.type==="element")return xo(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ko(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return wo(e,n,t);if(n.type==="mdxjsEsm")return bo(e,n);if(n.type==="root")return Co(e,n,t);if(n.type==="text")return So(e,n)}function xo(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=cn,e.schema=i),e.ancestors.push(n);const o=Wr(e,n.tagName,!1),l=Ao(e,n);let a=dn(e,n);return mo.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Yl(s):!0})),Ur(e,l,o,n),hn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function ko(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}lt(e,n.position)}function bo(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);lt(e,n.position)}function wo(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=cn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Wr(e,n.name,!0),l=Eo(e,n),a=dn(e,n);return Ur(e,l,o,n),hn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Co(e,n,t){const r={};return hn(r,dn(e,n)),e.create(n,e.Fragment,r,t)}function So(e,n){return n.value}function Ur(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function hn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function vo(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function _o(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=fn(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ao(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&pn.call(n.properties,i)){const o=Io(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&go.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Eo(e,n){const t={};for(const r of n.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(t,e.evaluater.evaluateExpression(a.argument))}else lt(e,n.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 lt(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function dn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:po;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=Vr(e,o,l);a!==void 0&&t.push(a)}return t}function Io(e,n,t){const r=eo(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Hl(t):io(t)),r.property==="style"){let i=typeof t=="object"?t:To(e,String(t));return e.stylePropertyNameCase==="css"&&(i=zo(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Gl[r.property]||r.property:r.attribute,t]}}function To(e,n){try{return co(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new le("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=qr+"#cannot-parse-style-attribute",i}}function Wr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Nn(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=Nn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return pn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);lt(e)}function lt(e,n){const t=new le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=qr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function zo(e){const n={};let t;for(t in e)pn.call(e,t)&&(n[Po(t)]=e[t]);return n}function Po(e){let n=e.replace(ho,jo);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function jo(e){return"-"+e.toLowerCase()}const jt={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"]},Lo={};function mn(e,n){const t=Lo,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Yr(e,r,i)}function Yr(e,n,t){if(Do(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Un(e.children,n,t)}return Array.isArray(e)?Un(e,n,t):""}function Un(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Yr(e[i],n,t);return r.join("")}function Do(e){return!!(e&&typeof e=="object")}const Wn=document.createElement("i");function gn(e){const n="&"+e+";";Wn.innerHTML=n;const t=Wn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function he(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function de(e,n){return e.length>0?(he(e,e.length,0,n),e):n}const Yn={}.hasOwnProperty;function Qr(e){const n={};let t=-1;for(;++t<e.length;)No(n,e[t]);return n}function No(e,n){let t;for(t in n){const i=(Yn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Yn.call(i,l)||(i[l]=[]);const a=o[l];Mo(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Mo(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);he(e,0,0,r)}function Jr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ae=Te(/[A-Za-z]/),ie=Te(/[\dA-Za-z]/),Ro=Te(/[#-'*+\--9=?A-Z^-~]/);function bt(e){return e!==null&&(e<32||e===127)}const Kt=Te(/\d/),Fo=Te(/[\dA-Fa-f]/),Oo=Te(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const _t=Te(/\p{P}|\p{S}/u),Me=Te(/\s/);function Te(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ue(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&ie(e.charCodeAt(t+1))&&ie(e.charCodeAt(t+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(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function U(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return $(s)?(e.enter(t),a(s)):n(s)}function a(s){return $(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Bo={tokenize:$o};function $o(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),U(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return L(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Ho={tokenize:qo},Qn={tokenize:Vo};function qo(e){const n=this,t=[];let r=0,i,o,l;return a;function a(_){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(_)}return u(_)}function s(_){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const j=n.events.length;let D=j,b;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){b=n.events[D][1].end;break}x(r);let F=j;for(;F<n.events.length;)n.events[F][1].end={...b},F++;return he(n.events,D+1,0,n.events.slice(j)),n.events.length=F,u(_)}return a(_)}function u(_){if(r===t.length){if(!i)return h(_);if(i.currentConstruct&&i.currentConstruct.concrete)return g(_);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Qn,f,c)(_)}function f(_){return i&&E(),x(r),h(_)}function c(_){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(_)}function h(_){return n.containerState={},e.attempt(Qn,p,g)(_)}function p(_){return r++,t.push([n.currentConstruct,n.containerState]),h(_)}function g(_){if(_===null){i&&E(),x(0),e.consume(_);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),C(_)}function C(_){if(_===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(_);return}return L(_)?(e.consume(_),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(_),C)}function S(_,j){const D=n.sliceStream(_);if(j&&D.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(D),n.parser.lazy[_.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 F=n.events.length;let H=F,B,k;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(B){k=n.events[H][1].end;break}B=!0}for(x(r),b=F;b<n.events.length;)n.events[b][1].end={...k},b++;he(n.events,H+1,0,n.events.slice(F)),n.events.length=b}}function x(_){let j=t.length;for(;j-- >_;){const D=t[j];n.containerState=D[1],D[0].exit.call(n,e)}t.length=_}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Vo(e,n,t){return U(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qe(e){if(e===null||G(e)||Me(e))return 1;if(_t(e))return 2}function At(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Zt={name:"attention",resolveAll:Uo,tokenize:Wo};function Uo(e,n){let t=-1,r,i,o,l,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[t][1].start};Jn(c,-s),Jn(h,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=de(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=de(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=de(u,At(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=de(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=de(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,he(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Wo(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=qe(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=qe(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),n(s)}}function Jn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Yo={name:"autolink",tokenize:Qo};function Qo(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return ae(p)?(e.consume(p),l):p===64?t(p):u(p)}function l(p){return p===43||p===45||p===46||ie(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||ie(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||bt(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Ro(p)?(e.consume(p),u):t(p)}function f(p){return ie(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||ie(p))&&r++<63){const g=p===45?h:c;return e.consume(p),g}return t(p)}}const st={partial:!0,tokenize:Jo};function Jo(e,n,t){return r;function r(o){return $(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||L(o)?n(o):t(o)}}const Xr={continuation:{tokenize:Go},exit:Ko,name:"blockQuote",tokenize:Xo};function Xo(e,n,t){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 t(l)}function o(l){return $(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Go(e,n,t){const r=this;return i;function i(l){return $(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Xr,n,t)(l)}}function Ko(e){e.exit("blockQuote")}const Gr={name:"characterEscape",tokenize:Zo};function Zo(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Oo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Kr={name:"characterReference",tokenize:ea};function ea(e,n,t){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"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=ie,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Fo,f):(e.enter("characterReferenceValue"),o=7,l=Kt,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return l===ie&&!gn(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const Xn={partial:!0,tokenize:na},Gn={concrete:!0,name:"codeFenced",tokenize:ta};function ta(e,n,t){const r=this,i={partial:!0,tokenize:D};let o=0,l=0,a;return s;function s(b){return u(b)}function u(b){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[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?t(b):(e.exit("codeFencedFenceSequence"),$(b)?U(e,c,"whitespace")(b):c(b))}function c(b){return b===null||L(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(Xn,C,j)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||L(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):$(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,p,"whitespace")(b)):b===96&&b===a?t(b):(e.consume(b),h)}function p(b){return b===null||L(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||L(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?t(b):(e.consume(b),g)}function C(b){return e.attempt(i,j,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&$(b)?U(e,E,"linePrefix",o+1)(b):E(b)}function E(b){return b===null||L(b)?e.check(Xn,C,j)(b):(e.enter("codeFlowValue"),_(b))}function _(b){return b===null||L(b)?(e.exit("codeFlowValue"),E(b)):(e.consume(b),_)}function j(b){return e.exit("codeFenced"),n(b)}function D(b,F,H){let B=0;return k;function k(v){return b.enter("lineEnding"),b.consume(v),b.exit("lineEnding"),T}function T(v){return b.enter("codeFencedFence"),$(v)?U(b,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):z(v)}function z(v){return v===a?(b.enter("codeFencedFenceSequence"),W(v)):H(v)}function W(v){return v===a?(B++,b.consume(v),W):B>=l?(b.exit("codeFencedFenceSequence"),$(v)?U(b,P,"whitespace")(v):P(v)):H(v)}function P(v){return v===null||L(v)?(b.exit("codeFencedFence"),F(v)):H(v)}}}function na(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const Lt={name:"codeIndented",tokenize:ia},ra={partial:!0,tokenize:la};function ia(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),U(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):L(u)?e.attempt(ra,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||L(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function la(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):L(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(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?n(l):L(l)?i(l):t(l)}}const oa={name:"codeText",previous:sa,resolve:aa,tokenize:ua};function aa(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function sa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ua(e,n,t){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"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):L(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||L(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",u(c))}}class ca{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ge(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ge(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ge(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Ge(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ge(this.left,t.reverse())}}}function Ge(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Zr(e){const n={};let t=-1,r,i,o,l,a,s,u;const f=new ca(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,fa(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,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,t),a.unshift(r),f.splice(i,t-i+1,a))}}return he(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function fa(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,h=-1,p=t,g=0,C=0;const S=[C];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(C=h+1,S.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):S.pop(),h=S.length;h--;){const x=a.slice(S[h],S[h+1]),E=o.pop();s.push([E,E+x.length-1]),e.splice(E,2,x)}for(s.reverse(),h=-1;++h<s.length;)u[g+s[h][0]]=g+s[h][1],g+=s[h][1]-s[h][0]-1;return u}const pa={resolve:da,tokenize:ma},ha={partial:!0,tokenize:ga};function da(e){return Zr(e),e}function ma(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):L(a)?e.check(ha,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ga(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||L(l))return t(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?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ei(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),h):x===null||x===32||x===41||bt(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(x))}function h(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||L(x)?t(x):(e.consume(x),x===92?g:p)}function g(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function C(x){return!f&&(x===null||x===41||G(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,C):x===41?(e.consume(x),f--,C):x===null||x===32||x===40||bt(x)?t(x):(e.consume(x),x===92?S:C)}function S(x){return x===40||x===41||x===92?(e.consume(x),C):C(x)}}function ti(e,n,t,r,i,o){const l=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):L(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||L(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!$(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function ni(e,n,t,r,i,o){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,s):t(h)}function s(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(o),u(h))}function u(h){return h===l?(e.exit(o),s(l)):h===null?t(h):L(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),U(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===l||h===null||L(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===l||h===92?(e.consume(h),f):f(h)}}function rt(e,n){let t;return r;function r(i){return L(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):$(i)?U(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ya={name:"definition",tokenize:ka},xa={partial:!0,tokenize:ba};function ka(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return ti.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return G(p)?rt(e,u)(p):u(p)}function u(p){return ei(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(xa,c,c)(p)}function c(p){return $(p)?U(e,h,"whitespace")(p):h(p)}function h(p){return p===null||L(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function ba(e,n,t){return r;function r(a){return G(a)?rt(e,i)(a):t(a)}function i(a){return ni(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return $(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||L(a)?n(a):t(a)}}const wa={name:"hardBreakEscape",tokenize:Ca};function Ca(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return L(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Sa={name:"headingAtx",resolve:va,tokenize:_a};function va(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},he(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function _a(e,n,t){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||G(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||L(f)?(e.exit("atxHeading"),n(f)):$(f)?U(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||G(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Aa=["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"],Kn=["pre","script","style","textarea"],Ea={concrete:!0,name:"htmlFlow",resolveTo:za,tokenize:Pa},Ia={partial:!0,tokenize:La},Ta={partial:!0,tokenize:ja};function za(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Pa(e,n,t){const r=this;let i,o,l,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,C):m===63?(e.consume(m),i=3,r.interrupt?n:d):ae(m)?(e.consume(m),l=String.fromCharCode(m),S):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,g):ae(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function g(m){const ne="CDATA[";return m===ne.charCodeAt(a++)?(e.consume(m),a===ne.length?r.interrupt?n:z:g):t(m)}function C(m){return ae(m)?(e.consume(m),l=String.fromCharCode(m),S):t(m)}function S(m){if(m===null||m===47||m===62||G(m)){const ne=m===47,ze=l.toLowerCase();return!ne&&!o&&Kn.includes(ze)?(i=1,r.interrupt?n(m):z(m)):Aa.includes(l.toLowerCase())?(i=6,ne?(e.consume(m),x):r.interrupt?n(m):z(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?E(m):_(m))}return m===45||ie(m)?(e.consume(m),l+=String.fromCharCode(m),S):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:z):t(m)}function E(m){return $(m)?(e.consume(m),E):k(m)}function _(m){return m===47?(e.consume(m),k):m===58||m===95||ae(m)?(e.consume(m),j):$(m)?(e.consume(m),_):k(m)}function j(m){return m===45||m===46||m===58||m===95||ie(m)?(e.consume(m),j):D(m)}function D(m){return m===61?(e.consume(m),b):$(m)?(e.consume(m),D):_(m)}function b(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,F):$(m)?(e.consume(m),b):H(m)}function F(m){return m===s?(e.consume(m),s=null,B):m===null||L(m)?t(m):(e.consume(m),F)}function H(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||G(m)?D(m):(e.consume(m),H)}function B(m){return m===47||m===62||$(m)?_(m):t(m)}function k(m){return m===62?(e.consume(m),T):t(m)}function T(m){return m===null||L(m)?z(m):$(m)?(e.consume(m),T):t(m)}function z(m){return m===45&&i===2?(e.consume(m),N):m===60&&i===1?(e.consume(m),O):m===62&&i===4?(e.consume(m),se):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),Y):L(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ia,te,W)(m)):m===null||L(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),z)}function W(m){return e.check(Ta,P,te)(m)}function P(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),v}function v(m){return m===null||L(m)?W(m):(e.enter("htmlFlowData"),z(m))}function N(m){return m===45?(e.consume(m),d):z(m)}function O(m){return m===47?(e.consume(m),l="",Q):z(m)}function Q(m){if(m===62){const ne=l.toLowerCase();return Kn.includes(ne)?(e.consume(m),se):z(m)}return ae(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),Q):z(m)}function Y(m){return m===93?(e.consume(m),d):z(m)}function d(m){return m===62?(e.consume(m),se):m===45&&i===2?(e.consume(m),d):z(m)}function se(m){return m===null||L(m)?(e.exit("htmlFlowData"),te(m)):(e.consume(m),se)}function te(m){return e.exit("htmlFlow"),n(m)}}function ja(e,n,t){const r=this;return i;function i(l){return L(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function La(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(st,n,t)}}const Da={name:"htmlText",tokenize:Na};function Na(e,n,t){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),D):d===63?(e.consume(d),_):ae(d)?(e.consume(d),H):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),o=0,g):ae(d)?(e.consume(d),E):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):L(d)?(l=c,O(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?N(d):d===45?h(d):c(d)}function g(d){const se="CDATA[";return d===se.charCodeAt(o++)?(e.consume(d),o===se.length?C:g):t(d)}function C(d){return d===null?t(d):d===93?(e.consume(d),S):L(d)?(l=C,O(d)):(e.consume(d),C)}function S(d){return d===93?(e.consume(d),x):C(d)}function x(d){return d===62?N(d):d===93?(e.consume(d),x):C(d)}function E(d){return d===null||d===62?N(d):L(d)?(l=E,O(d)):(e.consume(d),E)}function _(d){return d===null?t(d):d===63?(e.consume(d),j):L(d)?(l=_,O(d)):(e.consume(d),_)}function j(d){return d===62?N(d):_(d)}function D(d){return ae(d)?(e.consume(d),b):t(d)}function b(d){return d===45||ie(d)?(e.consume(d),b):F(d)}function F(d){return L(d)?(l=F,O(d)):$(d)?(e.consume(d),F):N(d)}function H(d){return d===45||ie(d)?(e.consume(d),H):d===47||d===62||G(d)?B(d):t(d)}function B(d){return d===47?(e.consume(d),N):d===58||d===95||ae(d)?(e.consume(d),k):L(d)?(l=B,O(d)):$(d)?(e.consume(d),B):N(d)}function k(d){return d===45||d===46||d===58||d===95||ie(d)?(e.consume(d),k):T(d)}function T(d){return d===61?(e.consume(d),z):L(d)?(l=T,O(d)):$(d)?(e.consume(d),T):B(d)}function z(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,W):L(d)?(l=z,O(d)):$(d)?(e.consume(d),z):(e.consume(d),P)}function W(d){return d===i?(e.consume(d),i=void 0,v):d===null?t(d):L(d)?(l=W,O(d)):(e.consume(d),W)}function P(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||G(d)?B(d):(e.consume(d),P)}function v(d){return d===47||d===62||G(d)?B(d):t(d)}function N(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function O(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Q}function Q(d){return $(d)?U(e,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):Y(d)}function Y(d){return e.enter("htmlTextData"),l(d)}}const yn={name:"labelEnd",resolveAll:Oa,resolveTo:Ba,tokenize:$a},Ma={tokenize:Ha},Ra={tokenize:qa},Fa={tokenize:Va};function Oa(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&he(e,0,e.length,t),e}function Ba(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={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",s,n],["enter",u,n]],a=de(a,e.slice(o+1,o+r+3)),a=de(a,[["enter",f,n]]),a=de(a,At(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=de(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=de(a,e.slice(l+1)),a=de(a,[["exit",s,n]]),he(e,o,e.length,a),e}function $a(e,n,t){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(h){return o?o._inactive?c(h):(l=r.parser.defined.includes(ye(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(Ma,f,l?f:c)(h):h===91?e.attempt(Ra,f,l?u:c)(h):l?f(h):c(h)}function u(h){return e.attempt(Fa,f,c)(h)}function f(h){return n(h)}function c(h){return o._balanced=!0,t(h)}}function Ha(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return G(c)?rt(e,o)(c):o(c)}function o(c){return c===41?f(c):ei(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return G(c)?rt(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?ni(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return G(c)?rt(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function qa(e,n,t){const r=this;return i;function i(a){return ti.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Va(e,n,t){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"),n):t(o)}}const Ua={name:"labelStartImage",resolveAll:yn.resolveAll,tokenize:Wa};function Wa(e,n,t){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):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Ya={name:"labelStartLink",resolveAll:yn.resolveAll,tokenize:Qa};function Qa(e,n,t){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?t(l):n(l)}}const Dt={name:"lineEnding",tokenize:Ja};function Ja(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,n,"linePrefix")}}const kt={name:"thematicBreak",tokenize:Xa};function Xa(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||L(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),$(u)?U(e,a,"whitespace")(u):a(u))}}const ue={continuation:{tokenize:es},exit:ns,name:"list",tokenize:Za},Ga={partial:!0,tokenize:rs},Ka={partial:!0,tokenize:ts};function Za(e,n,t){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(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Kt(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(kt,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Kt(p)&&++l<10?(e.consume(p),s):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(st,r.interrupt?t:f,e.attempt(Ga,h,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return $(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function es(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(st,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!$(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(Ka,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(e,e.attempt(ue,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ts(e,n,t){const r=this;return U(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?n(o):t(o)}}function ns(e){e.exit(this.containerState.type)}function rs(e,n,t){const r=this;return U(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)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Zn={name:"setextUnderline",resolveTo:is,tokenize:ls};function is(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);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,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ls(e,n,t){const r=this;let i;return o;function o(u){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=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),$(u)?U(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||L(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const os={tokenize:as};function as(e){const n=this,t=e.attempt(st,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(pa,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ss={resolveAll:ii()},us=ri("string"),cs=ri("text");function ri(e){return{resolveAll:ii(e==="text"?fs:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),o(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ii(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function fs(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||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={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const ps={42:ue,43:ue,45:ue,48:ue,49:ue,50:ue,51:ue,52:ue,53:ue,54:ue,55:ue,56:ue,57:ue,62:Xr},hs={91:ya},ds={[-2]:Lt,[-1]:Lt,32:Lt},ms={35:Sa,42:kt,45:[Zn,kt],60:Ea,61:Zn,95:kt,96:Gn,126:Gn},gs={38:Kr,92:Gr},ys={[-5]:Dt,[-4]:Dt,[-3]:Dt,33:Ua,38:Kr,42:Zt,60:[Yo,Da],91:Ya,92:[wa,Gr],93:yn,95:Zt,96:oa},xs={null:[Zt,ss]},ks={null:[42,95]},bs={null:[]},ws=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ks,contentInitial:hs,disable:bs,document:ps,flow:ms,flowInitial:ds,insideSpan:xs,string:gs,text:ys},Symbol.toStringTag,{value:"Module"}));function Cs(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:F(D),check:F(b),consume:E,enter:_,exit:j,interrupt:F(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function c(T){return l=de(l,T),S(),l[l.length-1]!==null?[]:(H(n,0),u.events=At(o,u.events,u),u.events)}function h(T,z){return vs(p(T),z)}function p(T){return Ss(l,T)}function g(){const{_bufferIndex:T,_index:z,line:W,column:P,offset:v}=r;return{_bufferIndex:T,_index:z,line:W,column:P,offset:v}}function C(T){i[T.line]=T.column,k()}function S(){let T;for(;r._index<l.length;){const z=l[r._index];if(typeof z=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<z.length;)x(z.charCodeAt(r._bufferIndex));else x(z)}}function x(T){f=f(T)}function E(T){L(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,k()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function _(T,z){const W=z||{};return W.type=T,W.start=g(),u.events.push(["enter",W,u]),a.push(W),W}function j(T){const z=a.pop();return z.end=g(),u.events.push(["exit",z,u]),z}function D(T,z){H(T,z.from)}function b(T,z){z.restore()}function F(T,z){return W;function W(P,v,N){let O,Q,Y,d;return Array.isArray(P)?te(P):"tokenize"in P?te([P]):se(P);function se(re){return We;function We(Ae){const Fe=Ae!==null&&re[Ae],Oe=Ae!==null&&re.null,ct=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return te(ct)(Ae)}}function te(re){return O=re,Q=0,re.length===0?N:m(re[Q])}function m(re){return We;function We(Ae){return d=B(),Y=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?ze():re.tokenize.call(z?Object.assign(Object.create(u),z):u,s,ne,ze)(Ae)}}function ne(re){return T(Y,d),v}function ze(re){return d.restore(),++Q<O.length?m(O[Q]):N}}}function H(T,z){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&he(u.events,z,u.events.length-z,T.resolve(u.events.slice(z),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function B(){const T=g(),z=u.previous,W=u.currentConstruct,P=u.events.length,v=Array.from(a);return{from:P,restore:N};function N(){r=T,u.previous=z,u.currentConstruct=W,u.events.length=P,a=v,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ss(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,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 vs(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
27
|
+
`,22),yield{type:"done"}}async function*ee(e,n){for(let r=0;r<e.length;r+=3)yield{type:"text",text:e.slice(r,r+3)},await K(n)}function an(e){if(!e||e==="[DONE]")return[];let n;try{n=JSON.parse(e)}catch{return[]}switch(n.type){case"text":return n.text?[{type:"text",text:n.text}]:[];case"activity":return[{type:"part",part:{type:"activity",id:n.id,title:n.title,description:n.description,status:n.status,metadata:n.metadata}}];case"part":return[{type:"part",part:n.part}];case"done":return[{type:"done"}];case"error":return[{type:"error",message:n.message}];default:return[]}}function bl(e,n={}){const{method:t="POST",headers:r={},getHeaders:i,getBody:o,getMessages:l,parseEvent:a=Cl,credentials:s}=n;return{async*sendMessage(u){const f=i?await i(u):{},c=l?await l(u.messages):u.messages,h={...u,messages:c},p=o?o(h):{messages:h.messages,context:h.context},g=await fetch(e,{method:t,credentials:s,headers:{"Content-Type":"application/json",...r,...f},body:JSON.stringify(p)});if(!g.ok){const C=await g.text().catch(()=>`HTTP ${g.status}`);yield{type:"error",message:`Request failed (${g.status}): ${C}`};return}if(!g.body){yield{type:"error",message:"Response body is empty — server may not support streaming."};return}yield*wl(g.body,a)}}}async function*wl(e,n){const t=e.getReader(),r=new TextDecoder;let i="";try{for(;;){const{done:o,value:l}=await t.read();if(o)break;i+=r.decode(l,{stream:!0});const a=i.split(`
|
|
28
|
+
`);i=a.pop()??"";for(const s of a){const u=s.trim();if(!(!u||u.startsWith(":"))&&u.startsWith("data: ")){const f=u.slice(6);if(f==="[DONE]"){yield{type:"done"};return}const c=n(f);for(const h of c)if(yield h,h.type==="done"||h.type==="error")return}}}}finally{t.releaseLock()}yield{type:"done"}}const Cl=e=>{if(!e||e==="[DONE]")return[];const n=an(e);if(n.length>0)return n;try{const t=JSON.parse(e);if(t.error?.message)return[{type:"error",message:t.error.message}];const r=t.choices?.[0]?.delta;return t.choices?.[0]?.finish_reason==="stop"?[{type:"done"}]:r?.content?[{type:"text",text:r.content}]:[]}catch{return[]}};function Sl(e,n={}){const{method:t="POST",headers:r={},getHeaders:i,getBody:o,parseChunk:l=_l,credentials:a}=n;return{async*sendMessage(s){const u=i?await i(s):{},f=o?o(s):{messages:s.messages,context:s.context},c=await fetch(e,{method:t,credentials:a,headers:{"Content-Type":"application/json",...r,...u},body:JSON.stringify(f)});if(!c.ok){const h=await c.text().catch(()=>`HTTP ${c.status}`);yield{type:"error",message:`Request failed (${c.status}): ${h}`};return}if(!c.body){yield{type:"error",message:"Response body is empty — server may not support streaming."};return}yield*vl(c.body,l)}}}async function*vl(e,n){const t=e.getReader(),r=new TextDecoder;let i="";try{for(;;){const{done:o,value:l}=await t.read();if(o)break;i+=r.decode(l,{stream:!0});const a=i.split(`
|
|
29
|
+
`);i=a.pop()??"";for(const s of a){const u=s.trim();if(!u)continue;const f=n(u);for(const c of f)if(yield c,c.type==="done"||c.type==="error")return}}if(i.trim()){const o=n(i.trim());for(const l of o)if(yield l,l.type==="done"||l.type==="error")return}}finally{t.releaseLock()}yield{type:"done"}}const _l=e=>{const n=an(e);return n.length>0?n:e?[{type:"text",text:e}]:[]};let Al=0;const ft=()=>`msg-${++Al}-${Date.now()}`,Dn=Ar;function Tr({adapter:e,context:n,onProposalConfirm:t,onProposalCancel:r,initialMessages:i,historyLimit:o,onMessagesChange:l}){const[a,s]=q.useState(i??[]),[u,f]=q.useState(""),[c,h]=q.useState(!1),[p,g]=q.useState(!1),[C,S]=q.useState(null),x=q.useRef(null),E=q.useRef(!1),_=q.useRef(l);q.useEffect(()=>{_.current=l}),q.useEffect(()=>{!E.current||c||(E.current=!1,_.current?.(a))},[a,c]);const j=q.useCallback(v=>{s(N=>{const O=N[N.length-1];if(!O||O.role!=="assistant")return N;if(v.type==="activity"&&v.id){const Q=[...O.parts],Y=Q.findIndex(d=>d.type==="activity"&&d.id===v.id);if(Y!==-1)return Q[Y]=v,[...N.slice(0,-1),{...O,parts:Q}]}return[...N.slice(0,-1),{...O,parts:[...O.parts,v]}]})},[]),D=q.useCallback(v=>{s(N=>{const O=N[N.length-1];if(!O||O.role!=="assistant")return N;const Q=[...O.parts],Y=Q[Q.length-1];return Y?.type==="text"?Q[Q.length-1]={type:"text",text:Y.text+v}:Q.push({type:"text",text:v}),[...N.slice(0,-1),{...O,parts:Q}]})},[]),b=q.useCallback(async(v,N)=>{S(null);const O={id:ft(),role:"user",parts:[{type:"text",text:v}],createdAt:new Date},Q=ft();let Y=!1;const d=()=>{if(Y)return;Y=!0;const te={id:Q,role:"assistant",parts:[],createdAt:new Date};s(m=>[...m,te])};s(te=>[...te,O]),h(!0),g(!0),x.current?.abort();const se=new AbortController;x.current=se;try{const te=Ir([...N,O],o??Number.POSITIVE_INFINITY),m=e.sendMessage({messages:Dn(te),context:n});await Yt(m,ne=>{switch(g(!1),ne.type){case"text":d(),D(ne.text);break;case"part":d(),j(ne.part);break;case"error":d(),j({type:"error",message:ne.message}),S(ne.message);break;case"done":break}},se.signal)}catch(te){const m=te instanceof Error?te.message:"Unknown error occurred";S(m),d(),j({type:"error",message:m})}finally{E.current=!0,h(!1),g(!1)}},[e,n,o,D,j]),F=q.useCallback(async()=>{const v=u.trim();!v||c||(f(""),await b(v,a))},[u,c,a,b]),H=q.useCallback(async v=>{!v.trim()||c||await b(v,a)},[c,a,b]),B=q.useCallback(async v=>{if(c)return;S(null),h(!0),g(!0);const N={id:ft(),role:"assistant",parts:[],createdAt:new Date};s(Y=>[...Y,N]),x.current?.abort();const O=new AbortController;x.current=O;const Q={id:ft(),role:"system",parts:[{type:"text",text:v}],createdAt:new Date};try{const Y=e.sendMessage({messages:Dn([Q]),context:n});await Yt(Y,d=>{switch(g(!1),d.type){case"text":D(d.text);break;case"part":j(d.part);break;case"error":j({type:"error",message:d.message}),S(d.message);break;case"done":break}},O.signal)}catch(Y){const d=Y instanceof Error?Y.message:"Unknown error occurred";S(d),j({type:"error",message:d})}finally{E.current=!0,h(!1),g(!1)}},[c,e,n,D,j]),k=q.useCallback(()=>{x.current?.abort(),h(!1),g(!1)},[]),T=q.useCallback(v=>{x.current?.abort(),E.current=!0,s(v??[]),f(""),S(null),h(!1),g(!1)},[]),P=q.useCallback((v,N)=>{E.current=!0,s(O=>O.map(Q=>({...Q,parts:Q.parts.map(Y=>on(Y)&&Y.proposal.id===v?{...Y,proposal:{...Y.proposal,resolved:N}}:Y)})))},[]),W=q.useCallback((v,N)=>{P(v,"confirmed"),t?.(v,N)},[t,P]),z=q.useCallback(v=>{P(v,"cancelled"),r?.(v)},[r,P]);return q.useMemo(()=>({messages:a,input:u,setInput:f,sendMessage:F,sendMessageWithText:H,sendGreeting:B,stop:k,isLoading:c,isConnecting:p,error:C,reset:T,confirmProposal:W,cancelProposal:z}),[a,u,F,H,B,k,c,p,C,T,W,z])}const sn={sidebarTitle:"AI Assistant",clearConversation:"Clear conversation",resetConversation:"Reset conversation",minimizeSidebar:"Minimize",expandSidebar:"Expand",userLabel:"You",inputPlaceholder:"Ask a question… (Enter to send)",sendMessage:"Send message",stopMessage:"Stop",typingMessage:"Assistant is typing",connectingMessage:"Connecting…",emptyStateText:"How can I help you today?",emptyStateHint:'Try: "Show me the data" or "Can you suggest something?"',proposalConfirm:"Confirm",proposalCancel:"Cancel",proposalConfirmed:"Confirmed",proposalCancelled:"Cancelled",proposalExpired:"No longer available",errorDismiss:"Dismiss",actionAddFile:"Add file",actionQuickActions:"Quick actions",actionNew:"New",actionHistory:"History",actionRules:"Rules",historyEmpty:"No previous chats",historyDeleteChat:"Delete chat"},Pr=q.createContext(sn);function Ie(){return q.useContext(Pr)}const El="_root_14q8g_1",Il={root:El};function Tl({children:e,theme:n,labels:t,defaultTitle:r,className:i,style:o}){const l={...sn,...r?{sidebarTitle:r}:{},...t},a=n?Pl(n):void 0;return y.jsx(Pr.Provider,{value:l,children:y.jsx("div",{className:[Il.root,i].filter(Boolean).join(" "),style:{...a,...o},children:e})})}function Pl(e){const n={"--juneau-color-primary":e.colorPrimary,"--juneau-color-primary-dark":e.colorPrimaryDark,"--juneau-color-primary-light":e.colorPrimaryLight,"--juneau-color-primary-border":e.colorPrimaryBorder,"--juneau-color-accent":e.colorAccent,"--juneau-color-accent-dark":e.colorAccentDark,"--juneau-color-accent-light":e.colorAccentLight,"--juneau-color-accent-border":e.colorAccentBorder,"--juneau-color-surface":e.colorSurface,"--juneau-color-surface-raised":e.colorSurfaceRaised,"--juneau-color-surface-hover":e.colorSurfaceHover,"--juneau-color-border":e.colorBorder,"--juneau-color-border-subtle":e.colorBorderSubtle,"--juneau-color-text-primary":e.colorTextPrimary,"--juneau-color-text-secondary":e.colorTextSecondary,"--juneau-color-text-muted":e.colorTextMuted,"--juneau-color-text-faint":e.colorTextFaint,"--juneau-color-text-inverse":e.colorTextInverse,"--juneau-color-assistant-avatar":e.colorAssistantAvatar,"--juneau-radius-sm":e.radiusSm,"--juneau-radius-md":e.radiusMd,"--juneau-radius-lg":e.radiusLg,"--juneau-font-family":e.fontFamily};return Object.fromEntries(Object.entries(n).filter(([,t])=>t!==void 0))}const vt=q.createContext(null);function zr(){const e=q.useContext(vt);if(!e)throw new Error("useAiChatContext must be used inside <AiChatProvider>. Wrap your app (or layout) with <AiChatProvider adapter={...}>.");return e}function zl(){return q.useContext(vt)}function jl({adapter:e,context:n,onProposalConfirm:t,onProposalCancel:r,initialMessages:i,historyLimit:o,onMessagesChange:l,children:a}){const[s,u]=q.useState(n),f=q.useCallback(p=>{u(typeof p=="function"?g=>p(g):p)},[]),c=Tr({adapter:e,context:s,onProposalConfirm:t,onProposalCancel:r,initialMessages:i,historyLimit:o,onMessagesChange:l}),h=q.useMemo(()=>({...c,setContext:f}),[c,f]);return y.jsx(vt.Provider,{value:h,children:a})}const Ll={sidebarTitle:"AI Asistent",clearConversation:"Vymazat konverzaci",resetConversation:"Resetovat konverzaci",minimizeSidebar:"Minimalizovat",expandSidebar:"Rozbalit",userLabel:"Vy",inputPlaceholder:"Zeptejte se na cokoliv… (Enter pro odeslání)",sendMessage:"Odeslat zprávu",stopMessage:"Zastavit",typingMessage:"Asistent píše",connectingMessage:"Připojování…",emptyStateText:"Jak vám mohu dnes pomoci?",emptyStateHint:'Zkuste: „Ukáž mi data" nebo „Máš nějaký návrh?"',proposalConfirm:"Potvrdit",proposalCancel:"Zrušit",proposalConfirmed:"Potvrzeno",proposalCancelled:"Zrušeno",proposalExpired:"Již není k dispozici",errorDismiss:"Zavřít",actionAddFile:"Přidat soubor",actionQuickActions:"Rychlé akce",actionNew:"Nový",actionHistory:"Historie",actionRules:"Pravidla",historyEmpty:"Žádné předchozí konverzace",historyDeleteChat:"Smazat konverzaci"};function jr({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M456 0c-48.6 0-88 39.4-88 88l0 29.2L12.5 390.6c-14 10.8-16.6 30.9-5.9 44.9s30.9 16.6 44.9 5.9L126.1 384l133.1 0 46.6 113.1c5 12.3 19.1 18.1 31.3 13.1s18.1-19.1 13.1-31.3L311.1 384l40.9 0c1.1 0 2.1 0 3.2 0l46.6 113.2c5 12.3 19.1 18.1 31.3 13.1s18.1-19.1 13.1-31.3l-42-102C484.9 354.1 544 280 544 192l0-64 0-8 80.5-20.1c8.6-2.1 13.8-10.8 11.6-19.4C629 52 603.4 32 574 32l-50.1 0C507.7 12.5 483.3 0 456 0zm0 64a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})})}function Dl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s6.2-22.8 16.4-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"})})}function Nl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"})})}function Ml({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"})})}function Rl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"})})}function Fl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-31.8-31.8C143.9 83.5 196.2 64 252.6 64C370.8 64 464 157.8 464 276c0 77.5-40.8 145.4-102 182.9c-15.1 9.2-19.9 29-10.7 44.1s29 19.9 44.1 10.7C471 467.5 528 378.4 528 276C528 124.1 404.5 0 252.6 0C186 0 125.3 26.4 80 70.2L75 75zM256 152c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"})})}function Ol({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 192 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-26.6 0c-25.8 50.9-72.7 88.5-129.4 99.8L384 416l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-72.2C135.3 332.5 88.4 294.9 62.6 244L48 244c-26.5 0-48-21.5-48-48L0 80zM128 240c0 70.7 57.3 128 128 128s128-57.3 128-128l0-128L128 112l0 128zM512 176l0-64-64 0 0 64-48 0 0 16c0 8.8-.7 17.4-2 25.8c3.3 .1 6.6 .2 9.9 .2l56 0c26.5 0 48-21.5 48-48l0-64zM48 176c0 26.5 21.5 48 48 48l56 0c3.4 0 6.7-.1 9.9-.2c-1.3-8.4-2-17-2-25.8l0-16-48 0 0-64-64 0 0 58z"})})}function Bl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416z"})})}function $l({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{d:"M432 64L208 64c-8.8 0-16 7.2-16 16l0 16-64 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-64 16 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192zm64 32c0 17.7 14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 192c-17.7 0-32 14.3-32 32z"})})}function Hl({className:e,style:n,"aria-hidden":t=!0}){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",className:e,style:n,"aria-hidden":t,children:y.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})}function ql(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Vl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ul=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wl={};function Nn(e,n){return(Wl.jsx?Ul:Vl).test(e)}const Yl=/[ \t\n\f\r]/g;function Ql(e){return typeof e=="object"?e.type==="text"?Mn(e.value):!1:Mn(e)}function Mn(e){return e.replace(Yl,"")===""}class at{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}at.prototype.normal={};at.prototype.property={};at.prototype.space=void 0;function Lr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new at(t,r,n)}function Qt(e){return e.toLowerCase()}class ce{constructor(n,t){this.attribute=t,this.property=n}}ce.prototype.attribute="";ce.prototype.booleanish=!1;ce.prototype.boolean=!1;ce.prototype.commaOrSpaceSeparated=!1;ce.prototype.commaSeparated=!1;ce.prototype.defined=!1;ce.prototype.mustUseProperty=!1;ce.prototype.number=!1;ce.prototype.overloadedBoolean=!1;ce.prototype.property="";ce.prototype.spaceSeparated=!1;ce.prototype.space=void 0;let Jl=0;const M=Re(),Z=Re(),Jt=Re(),A=Re(),X=Re(),Ne=Re(),pe=Re();function Re(){return 2**++Jl}const Xt=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:Z,commaOrSpaceSeparated:pe,commaSeparated:Ne,number:A,overloadedBoolean:Jt,spaceSeparated:X},Symbol.toStringTag,{value:"Module"})),Pt=Object.keys(Xt);class un extends ce{constructor(n,t,r,i){let o=-1;if(super(n,t),Rn(this,"space",i),typeof r=="number")for(;++o<Pt.length;){const l=Pt[o];Rn(this,Pt[o],(r&Xt[l])===Xt[l])}}}un.prototype.defined=!0;function Rn(e,n,t){t&&(e[n]=t)}function Ve(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new un(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Qt(r)]=r,t[Qt(o.attribute)]=r}return new at(n,t,e.space)}const Dr=Ve({properties:{ariaActiveDescendant:null,ariaAtomic:Z,ariaAutoComplete:null,ariaBusy:Z,ariaChecked:Z,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:X,ariaCurrent:null,ariaDescribedBy:X,ariaDetails:null,ariaDisabled:Z,ariaDropEffect:X,ariaErrorMessage:null,ariaExpanded:Z,ariaFlowTo:X,ariaGrabbed:Z,ariaHasPopup:null,ariaHidden:Z,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X,ariaLevel:A,ariaLive:null,ariaModal:Z,ariaMultiLine:Z,ariaMultiSelectable:Z,ariaOrientation:null,ariaOwns:X,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:Z,ariaReadOnly:Z,ariaRelevant:null,ariaRequired:Z,ariaRoleDescription:X,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:Z,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Nr(e,n){return n in e?e[n]:n}function Mr(e,n){return Nr(e,n.toLowerCase())}const Xl=Ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:X,accessKey:X,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alpha:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:X,autoFocus:M,autoPlay:M,blocking:X,capture:null,charSet:null,checked:M,cite:null,className:X,closedBy:null,colorSpace:null,cols:A,colSpan:A,command:null,commandFor:null,content:null,contentEditable:Z,controls:M,controlsList:X,coords:A|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Jt,draggable:Z,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:X,height:A,hidden:Jt,high:A,href:null,hrefLang:null,htmlFor:X,httpEquiv:X,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:X,itemRef:X,itemScope:M,itemType:X,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:A,pattern:null,ping:X,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:X,required:M,reversed:M,rows:A,rowSpan:A,sandbox:X,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootCustomElementRegistry:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shadowRootSerializable:M,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:Z,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:Z,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:Z,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:M,disablePictureInPicture:M,disableRemotePlayback:M,exportParts:Ne,part:X,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Mr}),Gl=Ve({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",maskType:"mask-type",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:pe,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:X,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:pe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pe,rev:pe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pe,requiredFeatures:pe,requiredFonts:pe,requiredFormats:pe,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:pe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pe,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nr}),Rr=Ve({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Fr=Ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Mr}),Or=Ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Kl={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"},Zl=/[A-Z]/g,Fn=/-[a-z]/g,eo=/^data[-\w.:]+$/i;function to(e,n){const t=Qt(n);let r=n,i=ce;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&eo.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Fn,ro);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Fn.test(o)){let l=o.replace(Zl,no);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=un}return new i(r,n)}function no(e){return"-"+e.toLowerCase()}function ro(e){return e.charAt(1).toUpperCase()}const io=Lr([Dr,Xl,Rr,Fr,Or],"html"),cn=Lr([Dr,Gl,Rr,Fr,Or],"svg");function lo(e){return e.join(" ").trim()}function Br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $e={},zt,On;function oo(){if(On)return zt;On=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
30
|
+
`,u="/",f="*",c="",h="comment",p="declaration";function g(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var E=1,_=1;function j(z){var v=z.match(n);v&&(E+=v.length);var N=z.lastIndexOf(s);_=~N?z.length-N:_+z.length}function D(){var z={line:E,column:_};return function(v){return v.position=new b(z),B(),v}}function b(z){this.start=z,this.end={line:E,column:_},this.source=x.source}b.prototype.content=S;function F(z){var v=new Error(x.source+":"+E+":"+_+": "+z);if(v.reason=z,v.filename=x.source,v.line=E,v.column=_,v.source=S,!x.silent)throw v}function H(z){var v=z.exec(S);if(v){var N=v[0];return j(N),S=S.slice(N.length),v}}function B(){H(t)}function k(z){var v;for(z=z||[];v=T();)v!==!1&&z.push(v);return z}function T(){var z=D();if(!(u!=S.charAt(0)||f!=S.charAt(1))){for(var v=2;c!=S.charAt(v)&&(f!=S.charAt(v)||u!=S.charAt(v+1));)++v;if(v+=2,c===S.charAt(v-1))return F("End of comment missing");var N=S.slice(2,v-2);return _+=2,j(N),S=S.slice(v),_+=2,z({type:h,comment:N})}}function P(){var z=D(),v=H(r);if(v){if(T(),!H(i))return F("property missing ':'");var N=H(o),O=z({type:p,property:C(v[0].replace(e,c)),value:N?C(N[0].replace(e,c)):c});return H(l),O}}function W(){var z=[];k(z);for(var v;v=P();)v!==!1&&(z.push(v),k(z));return z}return B(),W()}function C(S){return S?S.replace(a,c):c}return zt=g,zt}var Bn;function ao(){if(Bn)return $e;Bn=1;var e=$e&&$e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($e,"__esModule",{value:!0}),$e.default=t;const n=e(oo());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return $e}var Je={},$n;function so(){if($n)return Je;$n=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return Je.camelCase=s,Je}var Xe,Hn;function uo(){if(Hn)return Xe;Hn=1;var e=Xe&&Xe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ao()),t=so();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(l[(0,t.camelCase)(a,o)]=s)}),l}return r.default=r,Xe=r,Xe}var co=uo();const fo=Br(co),$r=Hr("end"),fn=Hr("start");function Hr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function po(e){const n=fn(e),t=$r(e);if(n&&t)return{start:n,end:t}}function nt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qn(e.position):"start"in e||"end"in e?qn(e):"line"in e||"column"in e?Gt(e):""}function Gt(e){return Vn(e&&e.line)+":"+Vn(e&&e.column)}function qn(e){return Gt(e&&e.start)+"-"+Gt(e&&e.end)}function Vn(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.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=nt(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}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const pn={}.hasOwnProperty,ho=new Map,mo=/[A-Z]/g,go=new Set(["table","tbody","thead","tfoot","tr"]),yo=new Set(["td","th"]),qr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ao(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_o(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?cn:io,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Vr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Vr(e,n,t){if(n.type==="element")return ko(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return bo(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Co(e,n,t);if(n.type==="mdxjsEsm")return wo(e,n);if(n.type==="root")return So(e,n,t);if(n.type==="text")return vo(e,n)}function ko(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=cn,e.schema=i),e.ancestors.push(n);const o=Wr(e,n.tagName,!1),l=Eo(e,n);let a=dn(e,n);return go.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Ql(s):!0})),Ur(e,l,o,n),hn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function bo(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}lt(e,n.position)}function wo(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);lt(e,n.position)}function Co(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=cn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Wr(e,n.name,!0),l=Io(e,n),a=dn(e,n);return Ur(e,l,o,n),hn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function So(e,n,t){const r={};return hn(r,dn(e,n)),e.create(n,e.Fragment,r,t)}function vo(e,n){return n.value}function Ur(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function hn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function _o(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function Ao(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=fn(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Eo(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&pn.call(n.properties,i)){const o=To(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&yo.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Io(e,n){const t={};for(const r of n.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(t,e.evaluater.evaluateExpression(a.argument))}else lt(e,n.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 lt(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function dn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:ho;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=Vr(e,o,l);a!==void 0&&t.push(a)}return t}function To(e,n,t){const r=to(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?ql(t):lo(t)),r.property==="style"){let i=typeof t=="object"?t:Po(e,String(t));return e.stylePropertyNameCase==="css"&&(i=zo(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Kl[r.property]||r.property:r.attribute,t]}}function Po(e,n){try{return fo(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new le("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=qr+"#cannot-parse-style-attribute",i}}function Wr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Nn(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=Nn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return pn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);lt(e)}function lt(e,n){const t=new le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=qr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function zo(e){const n={};let t;for(t in e)pn.call(e,t)&&(n[jo(t)]=e[t]);return n}function jo(e){let n=e.replace(mo,Lo);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Lo(e){return"-"+e.toLowerCase()}const jt={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"]},Do={};function mn(e,n){const t=Do,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Yr(e,r,i)}function Yr(e,n,t){if(No(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Un(e.children,n,t)}return Array.isArray(e)?Un(e,n,t):""}function Un(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Yr(e[i],n,t);return r.join("")}function No(e){return!!(e&&typeof e=="object")}const Wn=document.createElement("i");function gn(e){const n="&"+e+";";Wn.innerHTML=n;const t=Wn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function he(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function de(e,n){return e.length>0?(he(e,e.length,0,n),e):n}const Yn={}.hasOwnProperty;function Qr(e){const n={};let t=-1;for(;++t<e.length;)Mo(n,e[t]);return n}function Mo(e,n){let t;for(t in n){const i=(Yn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Yn.call(i,l)||(i[l]=[]);const a=o[l];Ro(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Ro(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);he(e,0,0,r)}function Jr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ae=Te(/[A-Za-z]/),ie=Te(/[\dA-Za-z]/),Fo=Te(/[#-'*+\--9=?A-Z^-~]/);function bt(e){return e!==null&&(e<32||e===127)}const Kt=Te(/\d/),Oo=Te(/[\dA-Fa-f]/),Bo=Te(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const _t=Te(/\p{P}|\p{S}/u),Me=Te(/\s/);function Te(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ue(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&ie(e.charCodeAt(t+1))&&ie(e.charCodeAt(t+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(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function U(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return $(s)?(e.enter(t),a(s)):n(s)}function a(s){return $(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}const $o={tokenize:Ho};function Ho(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),U(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return L(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const qo={tokenize:Vo},Qn={tokenize:Uo};function Vo(e){const n=this,t=[];let r=0,i,o,l;return a;function a(_){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(_)}return u(_)}function s(_){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const j=n.events.length;let D=j,b;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){b=n.events[D][1].end;break}x(r);let F=j;for(;F<n.events.length;)n.events[F][1].end={...b},F++;return he(n.events,D+1,0,n.events.slice(j)),n.events.length=F,u(_)}return a(_)}function u(_){if(r===t.length){if(!i)return h(_);if(i.currentConstruct&&i.currentConstruct.concrete)return g(_);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Qn,f,c)(_)}function f(_){return i&&E(),x(r),h(_)}function c(_){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(_)}function h(_){return n.containerState={},e.attempt(Qn,p,g)(_)}function p(_){return r++,t.push([n.currentConstruct,n.containerState]),h(_)}function g(_){if(_===null){i&&E(),x(0),e.consume(_);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),C(_)}function C(_){if(_===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(_);return}return L(_)?(e.consume(_),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(_),C)}function S(_,j){const D=n.sliceStream(_);if(j&&D.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(D),n.parser.lazy[_.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 F=n.events.length;let H=F,B,k;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(B){k=n.events[H][1].end;break}B=!0}for(x(r),b=F;b<n.events.length;)n.events[b][1].end={...k},b++;he(n.events,H+1,0,n.events.slice(F)),n.events.length=b}}function x(_){let j=t.length;for(;j-- >_;){const D=t[j];n.containerState=D[1],D[0].exit.call(n,e)}t.length=_}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Uo(e,n,t){return U(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qe(e){if(e===null||G(e)||Me(e))return 1;if(_t(e))return 2}function At(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Zt={name:"attention",resolveAll:Wo,tokenize:Yo};function Wo(e,n){let t=-1,r,i,o,l,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[t][1].start};Jn(c,-s),Jn(h,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=de(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=de(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=de(u,At(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=de(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=de(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,he(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Yo(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=qe(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=qe(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),n(s)}}function Jn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Qo={name:"autolink",tokenize:Jo};function Jo(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return ae(p)?(e.consume(p),l):p===64?t(p):u(p)}function l(p){return p===43||p===45||p===46||ie(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||ie(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||bt(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Fo(p)?(e.consume(p),u):t(p)}function f(p){return ie(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||ie(p))&&r++<63){const g=p===45?h:c;return e.consume(p),g}return t(p)}}const st={partial:!0,tokenize:Xo};function Xo(e,n,t){return r;function r(o){return $(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||L(o)?n(o):t(o)}}const Xr={continuation:{tokenize:Ko},exit:Zo,name:"blockQuote",tokenize:Go};function Go(e,n,t){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 t(l)}function o(l){return $(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Ko(e,n,t){const r=this;return i;function i(l){return $(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Xr,n,t)(l)}}function Zo(e){e.exit("blockQuote")}const Gr={name:"characterEscape",tokenize:ea};function ea(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Bo(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Kr={name:"characterReference",tokenize:ta};function ta(e,n,t){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"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=ie,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Oo,f):(e.enter("characterReferenceValue"),o=7,l=Kt,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return l===ie&&!gn(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const Xn={partial:!0,tokenize:ra},Gn={concrete:!0,name:"codeFenced",tokenize:na};function na(e,n,t){const r=this,i={partial:!0,tokenize:D};let o=0,l=0,a;return s;function s(b){return u(b)}function u(b){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[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?t(b):(e.exit("codeFencedFenceSequence"),$(b)?U(e,c,"whitespace")(b):c(b))}function c(b){return b===null||L(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(Xn,C,j)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||L(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):$(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,p,"whitespace")(b)):b===96&&b===a?t(b):(e.consume(b),h)}function p(b){return b===null||L(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||L(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?t(b):(e.consume(b),g)}function C(b){return e.attempt(i,j,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&$(b)?U(e,E,"linePrefix",o+1)(b):E(b)}function E(b){return b===null||L(b)?e.check(Xn,C,j)(b):(e.enter("codeFlowValue"),_(b))}function _(b){return b===null||L(b)?(e.exit("codeFlowValue"),E(b)):(e.consume(b),_)}function j(b){return e.exit("codeFenced"),n(b)}function D(b,F,H){let B=0;return k;function k(v){return b.enter("lineEnding"),b.consume(v),b.exit("lineEnding"),T}function T(v){return b.enter("codeFencedFence"),$(v)?U(b,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):P(v)}function P(v){return v===a?(b.enter("codeFencedFenceSequence"),W(v)):H(v)}function W(v){return v===a?(B++,b.consume(v),W):B>=l?(b.exit("codeFencedFenceSequence"),$(v)?U(b,z,"whitespace")(v):z(v)):H(v)}function z(v){return v===null||L(v)?(b.exit("codeFencedFence"),F(v)):H(v)}}}function ra(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const Lt={name:"codeIndented",tokenize:la},ia={partial:!0,tokenize:oa};function la(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),U(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):L(u)?e.attempt(ia,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||L(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function oa(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):L(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(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?n(l):L(l)?i(l):t(l)}}const aa={name:"codeText",previous:ua,resolve:sa,tokenize:ca};function sa(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function ua(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ca(e,n,t){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"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):L(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||L(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",u(c))}}class fa{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ge(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ge(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ge(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Ge(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ge(this.left,t.reverse())}}}function Ge(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Zr(e){const n={};let t=-1,r,i,o,l,a,s,u;const f=new fa(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,pa(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,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,t),a.unshift(r),f.splice(i,t-i+1,a))}}return he(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function pa(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,h=-1,p=t,g=0,C=0;const S=[C];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(C=h+1,S.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):S.pop(),h=S.length;h--;){const x=a.slice(S[h],S[h+1]),E=o.pop();s.push([E,E+x.length-1]),e.splice(E,2,x)}for(s.reverse(),h=-1;++h<s.length;)u[g+s[h][0]]=g+s[h][1],g+=s[h][1]-s[h][0]-1;return u}const ha={resolve:ma,tokenize:ga},da={partial:!0,tokenize:ya};function ma(e){return Zr(e),e}function ga(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):L(a)?e.check(da,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function ya(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||L(l))return t(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?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function ei(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),h):x===null||x===32||x===41||bt(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(x))}function h(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||L(x)?t(x):(e.consume(x),x===92?g:p)}function g(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function C(x){return!f&&(x===null||x===41||G(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,C):x===41?(e.consume(x),f--,C):x===null||x===32||x===40||bt(x)?t(x):(e.consume(x),x===92?S:C)}function S(x){return x===40||x===41||x===92?(e.consume(x),C):C(x)}}function ti(e,n,t,r,i,o){const l=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):L(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||L(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!$(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function ni(e,n,t,r,i,o){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,s):t(h)}function s(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(o),u(h))}function u(h){return h===l?(e.exit(o),s(l)):h===null?t(h):L(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),U(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===l||h===null||L(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===l||h===92?(e.consume(h),f):f(h)}}function rt(e,n){let t;return r;function r(i){return L(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):$(i)?U(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const xa={name:"definition",tokenize:ba},ka={partial:!0,tokenize:wa};function ba(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return ti.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return G(p)?rt(e,u)(p):u(p)}function u(p){return ei(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(ka,c,c)(p)}function c(p){return $(p)?U(e,h,"whitespace")(p):h(p)}function h(p){return p===null||L(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function wa(e,n,t){return r;function r(a){return G(a)?rt(e,i)(a):t(a)}function i(a){return ni(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return $(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||L(a)?n(a):t(a)}}const Ca={name:"hardBreakEscape",tokenize:Sa};function Sa(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return L(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const va={name:"headingAtx",resolve:_a,tokenize:Aa};function _a(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},he(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Aa(e,n,t){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||G(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||L(f)?(e.exit("atxHeading"),n(f)):$(f)?U(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||G(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Ea=["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"],Kn=["pre","script","style","textarea"],Ia={concrete:!0,name:"htmlFlow",resolveTo:za,tokenize:ja},Ta={partial:!0,tokenize:Da},Pa={partial:!0,tokenize:La};function za(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ja(e,n,t){const r=this;let i,o,l,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,C):m===63?(e.consume(m),i=3,r.interrupt?n:d):ae(m)?(e.consume(m),l=String.fromCharCode(m),S):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,g):ae(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function g(m){const ne="CDATA[";return m===ne.charCodeAt(a++)?(e.consume(m),a===ne.length?r.interrupt?n:P:g):t(m)}function C(m){return ae(m)?(e.consume(m),l=String.fromCharCode(m),S):t(m)}function S(m){if(m===null||m===47||m===62||G(m)){const ne=m===47,Pe=l.toLowerCase();return!ne&&!o&&Kn.includes(Pe)?(i=1,r.interrupt?n(m):P(m)):Ea.includes(l.toLowerCase())?(i=6,ne?(e.consume(m),x):r.interrupt?n(m):P(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?E(m):_(m))}return m===45||ie(m)?(e.consume(m),l+=String.fromCharCode(m),S):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:P):t(m)}function E(m){return $(m)?(e.consume(m),E):k(m)}function _(m){return m===47?(e.consume(m),k):m===58||m===95||ae(m)?(e.consume(m),j):$(m)?(e.consume(m),_):k(m)}function j(m){return m===45||m===46||m===58||m===95||ie(m)?(e.consume(m),j):D(m)}function D(m){return m===61?(e.consume(m),b):$(m)?(e.consume(m),D):_(m)}function b(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,F):$(m)?(e.consume(m),b):H(m)}function F(m){return m===s?(e.consume(m),s=null,B):m===null||L(m)?t(m):(e.consume(m),F)}function H(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||G(m)?D(m):(e.consume(m),H)}function B(m){return m===47||m===62||$(m)?_(m):t(m)}function k(m){return m===62?(e.consume(m),T):t(m)}function T(m){return m===null||L(m)?P(m):$(m)?(e.consume(m),T):t(m)}function P(m){return m===45&&i===2?(e.consume(m),N):m===60&&i===1?(e.consume(m),O):m===62&&i===4?(e.consume(m),se):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),Y):L(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ta,te,W)(m)):m===null||L(m)?(e.exit("htmlFlowData"),W(m)):(e.consume(m),P)}function W(m){return e.check(Pa,z,te)(m)}function z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),v}function v(m){return m===null||L(m)?W(m):(e.enter("htmlFlowData"),P(m))}function N(m){return m===45?(e.consume(m),d):P(m)}function O(m){return m===47?(e.consume(m),l="",Q):P(m)}function Q(m){if(m===62){const ne=l.toLowerCase();return Kn.includes(ne)?(e.consume(m),se):P(m)}return ae(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),Q):P(m)}function Y(m){return m===93?(e.consume(m),d):P(m)}function d(m){return m===62?(e.consume(m),se):m===45&&i===2?(e.consume(m),d):P(m)}function se(m){return m===null||L(m)?(e.exit("htmlFlowData"),te(m)):(e.consume(m),se)}function te(m){return e.exit("htmlFlow"),n(m)}}function La(e,n,t){const r=this;return i;function i(l){return L(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Da(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(st,n,t)}}const Na={name:"htmlText",tokenize:Ma};function Ma(e,n,t){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),D):d===63?(e.consume(d),_):ae(d)?(e.consume(d),H):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),o=0,g):ae(d)?(e.consume(d),E):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):L(d)?(l=c,O(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?N(d):d===45?h(d):c(d)}function g(d){const se="CDATA[";return d===se.charCodeAt(o++)?(e.consume(d),o===se.length?C:g):t(d)}function C(d){return d===null?t(d):d===93?(e.consume(d),S):L(d)?(l=C,O(d)):(e.consume(d),C)}function S(d){return d===93?(e.consume(d),x):C(d)}function x(d){return d===62?N(d):d===93?(e.consume(d),x):C(d)}function E(d){return d===null||d===62?N(d):L(d)?(l=E,O(d)):(e.consume(d),E)}function _(d){return d===null?t(d):d===63?(e.consume(d),j):L(d)?(l=_,O(d)):(e.consume(d),_)}function j(d){return d===62?N(d):_(d)}function D(d){return ae(d)?(e.consume(d),b):t(d)}function b(d){return d===45||ie(d)?(e.consume(d),b):F(d)}function F(d){return L(d)?(l=F,O(d)):$(d)?(e.consume(d),F):N(d)}function H(d){return d===45||ie(d)?(e.consume(d),H):d===47||d===62||G(d)?B(d):t(d)}function B(d){return d===47?(e.consume(d),N):d===58||d===95||ae(d)?(e.consume(d),k):L(d)?(l=B,O(d)):$(d)?(e.consume(d),B):N(d)}function k(d){return d===45||d===46||d===58||d===95||ie(d)?(e.consume(d),k):T(d)}function T(d){return d===61?(e.consume(d),P):L(d)?(l=T,O(d)):$(d)?(e.consume(d),T):B(d)}function P(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,W):L(d)?(l=P,O(d)):$(d)?(e.consume(d),P):(e.consume(d),z)}function W(d){return d===i?(e.consume(d),i=void 0,v):d===null?t(d):L(d)?(l=W,O(d)):(e.consume(d),W)}function z(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||G(d)?B(d):(e.consume(d),z)}function v(d){return d===47||d===62||G(d)?B(d):t(d)}function N(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function O(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Q}function Q(d){return $(d)?U(e,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):Y(d)}function Y(d){return e.enter("htmlTextData"),l(d)}}const yn={name:"labelEnd",resolveAll:Ba,resolveTo:$a,tokenize:Ha},Ra={tokenize:qa},Fa={tokenize:Va},Oa={tokenize:Ua};function Ba(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&he(e,0,e.length,t),e}function $a(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={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",s,n],["enter",u,n]],a=de(a,e.slice(o+1,o+r+3)),a=de(a,[["enter",f,n]]),a=de(a,At(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=de(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=de(a,e.slice(l+1)),a=de(a,[["exit",s,n]]),he(e,o,e.length,a),e}function Ha(e,n,t){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(h){return o?o._inactive?c(h):(l=r.parser.defined.includes(ye(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(Ra,f,l?f:c)(h):h===91?e.attempt(Fa,f,l?u:c)(h):l?f(h):c(h)}function u(h){return e.attempt(Oa,f,c)(h)}function f(h){return n(h)}function c(h){return o._balanced=!0,t(h)}}function qa(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return G(c)?rt(e,o)(c):o(c)}function o(c){return c===41?f(c):ei(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return G(c)?rt(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?ni(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return G(c)?rt(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Va(e,n,t){const r=this;return i;function i(a){return ti.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Ua(e,n,t){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"),n):t(o)}}const Wa={name:"labelStartImage",resolveAll:yn.resolveAll,tokenize:Ya};function Ya(e,n,t){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):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Qa={name:"labelStartLink",resolveAll:yn.resolveAll,tokenize:Ja};function Ja(e,n,t){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?t(l):n(l)}}const Dt={name:"lineEnding",tokenize:Xa};function Xa(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,n,"linePrefix")}}const kt={name:"thematicBreak",tokenize:Ga};function Ga(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||L(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),$(u)?U(e,a,"whitespace")(u):a(u))}}const ue={continuation:{tokenize:ts},exit:rs,name:"list",tokenize:es},Ka={partial:!0,tokenize:is},Za={partial:!0,tokenize:ns};function es(e,n,t){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(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Kt(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(kt,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Kt(p)&&++l<10?(e.consume(p),s):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(st,r.interrupt?t:f,e.attempt(Ka,h,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return $(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function ts(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(st,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!$(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(Za,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,U(e,e.attempt(ue,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ns(e,n,t){const r=this;return U(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?n(o):t(o)}}function rs(e){e.exit(this.containerState.type)}function is(e,n,t){const r=this;return U(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)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Zn={name:"setextUnderline",resolveTo:ls,tokenize:os};function ls(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);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,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function os(e,n,t){const r=this;let i;return o;function o(u){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=u,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),$(u)?U(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||L(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const as={tokenize:ss};function ss(e){const n=this,t=e.attempt(st,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ha,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const us={resolveAll:ii()},cs=ri("string"),fs=ri("text");function ri(e){return{resolveAll:ii(e==="text"?ps:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),o(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ii(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function ps(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||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={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const hs={42:ue,43:ue,45:ue,48:ue,49:ue,50:ue,51:ue,52:ue,53:ue,54:ue,55:ue,56:ue,57:ue,62:Xr},ds={91:xa},ms={[-2]:Lt,[-1]:Lt,32:Lt},gs={35:va,42:kt,45:[Zn,kt],60:Ia,61:Zn,95:kt,96:Gn,126:Gn},ys={38:Kr,92:Gr},xs={[-5]:Dt,[-4]:Dt,[-3]:Dt,33:Wa,38:Kr,42:Zt,60:[Qo,Na],91:Qa,92:[Ca,Gr],93:yn,95:Zt,96:aa},ks={null:[Zt,us]},bs={null:[42,95]},ws={null:[]},Cs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:bs,contentInitial:ds,disable:ws,document:hs,flow:gs,flowInitial:ms,insideSpan:ks,string:ys,text:xs},Symbol.toStringTag,{value:"Module"}));function Ss(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:F(D),check:F(b),consume:E,enter:_,exit:j,interrupt:F(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function c(T){return l=de(l,T),S(),l[l.length-1]!==null?[]:(H(n,0),u.events=At(o,u.events,u),u.events)}function h(T,P){return _s(p(T),P)}function p(T){return vs(l,T)}function g(){const{_bufferIndex:T,_index:P,line:W,column:z,offset:v}=r;return{_bufferIndex:T,_index:P,line:W,column:z,offset:v}}function C(T){i[T.line]=T.column,k()}function S(){let T;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<P.length;)x(P.charCodeAt(r._bufferIndex));else x(P)}}function x(T){f=f(T)}function E(T){L(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,k()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=T}function _(T,P){const W=P||{};return W.type=T,W.start=g(),u.events.push(["enter",W,u]),a.push(W),W}function j(T){const P=a.pop();return P.end=g(),u.events.push(["exit",P,u]),P}function D(T,P){H(T,P.from)}function b(T,P){P.restore()}function F(T,P){return W;function W(z,v,N){let O,Q,Y,d;return Array.isArray(z)?te(z):"tokenize"in z?te([z]):se(z);function se(re){return We;function We(Ae){const Fe=Ae!==null&&re[Ae],Oe=Ae!==null&&re.null,ct=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return te(ct)(Ae)}}function te(re){return O=re,Q=0,re.length===0?N:m(re[Q])}function m(re){return We;function We(Ae){return d=B(),Y=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?Pe():re.tokenize.call(P?Object.assign(Object.create(u),P):u,s,ne,Pe)(Ae)}}function ne(re){return T(Y,d),v}function Pe(re){return d.restore(),++Q<O.length?m(O[Q]):N}}}function H(T,P){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&he(u.events,P,u.events.length-P,T.resolve(u.events.slice(P),u)),T.resolveTo&&(u.events=T.resolveTo(u.events,u))}function B(){const T=g(),P=u.previous,W=u.currentConstruct,z=u.events.length,v=Array.from(a);return{from:z,restore:N};function N(){r=T,u.previous=P,u.currentConstruct=W,u.events.length=z,a=v,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function vs(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,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 _s(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
31
31
|
`;break}case-3:{l=`\r
|
|
32
|
-
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function _s(e){const r={constructs:Qr([ws,...(e||{}).extensions||[]]),content:i(Bo),defined:[],document:i(Ho),flow:i(os),lazy:{},string:i(us),text:i(cs)};return r;function i(o){return l;function l(a){return Cs(r,o,a)}}}function As(e){for(;!Zr(e););return e}const er=/[\0\t\n\r]/g;function Es(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,h,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(er.lastIndex=c,u=er.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){n=o.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(o.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Is=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ts(e){return e.replace(Is,zs)}function zs(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Jr(t.slice(o?2:1),o?16:10)}return gn(t)||e}const li={}.hasOwnProperty;function Ps(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),js(t)(As(_s(t).document().write(Es()(e,n,!0))))}function js(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pn),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(In),blockQuote:o(Oe),characterEscape:B,characterReference:B,codeFenced:o(ct),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ct,l),codeText:o(Gi,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(Ki),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Zi),hardBreakEscape:o(Tn),hardBreakTrailing:o(Tn),htmlFlow:o(zn,l),htmlFlowData:B,htmlText:o(zn,l),htmlTextData:B,image:o(el),label:l,link:o(Pn),listItem:o(tl),listItemValue:h,listOrdered:o(jn,c),listUnordered:o(jn),paragraph:o(nl),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(In),strong:o(rl),thematicBreak:o(ll)},exit:{atxHeading:s(),atxHeadingSequence:D,autolink:s(),autolinkEmail:Fe,autolinkProtocol:Ae,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ze,characterReferenceMarkerNumeric:ze,characterReferenceValue:re,characterReference:We,codeFenced:s(S),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:s(x),codeText:s(v),codeTextData:k,data:k,definition:s(),definitionDestinationString:j,definitionLabelString:E,definitionTitleString:_,emphasis:s(),hardBreakEscape:s(z),hardBreakTrailing:s(z),htmlFlow:s(W),htmlFlowData:k,htmlText:s(P),htmlTextData:k,image:s(O),label:Y,labelText:Q,lineEnding:T,link:s(N),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ne,resourceDestinationString:d,resourceTitleString:se,resource:te,setextHeading:s(H),setextHeadingLineSequence:F,setextHeadingText:b,strong:s(),thematicBreak:s()}};oi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let I={type:"root",children:[]};const R={stack:[I],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},V=[];let J=-1;for(;++J<w.length;)if(w[J][1].type==="listOrdered"||w[J][1].type==="listUnordered")if(w[J][0]==="enter")V.push(J);else{const me=V.pop();J=i(w,me,J)}for(J=-1;++J<w.length;){const me=n[w[J][0]];li.call(me,w[J][1].type)&&me[w[J][1].type].call(Object.assign({sliceSerialize:w[J][2].sliceSerialize},R),w[J][1])}if(R.tokenStack.length>0){const me=R.tokenStack[R.tokenStack.length-1];(me[1]||tr).call(R,void 0,me[0])}for(I.position={start:Ee(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:Ee(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<n.transforms.length;)I=n.transforms[J](I)||I;return I}function i(w,I,R){let V=I-1,J=-1,me=!1,Pe,we,Ye,Qe;for(;++V<=R;){const fe=w[V];switch(fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{fe[0]==="enter"?J++:J--,Qe=void 0;break}case"lineEndingBlank":{fe[0]==="enter"&&(Pe&&!Qe&&!J&&!Ye&&(Ye=V),Qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!J&&fe[0]==="enter"&&fe[1].type==="listItemPrefix"||J===-1&&fe[0]==="exit"&&(fe[1].type==="listUnordered"||fe[1].type==="listOrdered")){if(Pe){let Be=V;for(we=void 0;Be--;){const Ce=w[Be];if(Ce[1].type==="lineEnding"||Ce[1].type==="lineEndingBlank"){if(Ce[0]==="exit")continue;we&&(w[we][1].type="lineEndingBlank",me=!0),Ce[1].type="lineEnding",we=Be}else if(!(Ce[1].type==="linePrefix"||Ce[1].type==="blockQuotePrefix"||Ce[1].type==="blockQuotePrefixWhitespace"||Ce[1].type==="blockQuoteMarker"||Ce[1].type==="listItemIndent"))break}Ye&&(!we||Ye<we)&&(Pe._spread=!0),Pe.end=Object.assign({},we?w[we][1].start:fe[1].end),w.splice(we||V,0,["exit",Pe,fe[2]]),V++,R++}if(fe[1].type==="listItemPrefix"){const Be={type:"listItem",_spread:!1,start:Object.assign({},fe[1].start),end:void 0};Pe=Be,w.splice(V,0,["enter",Be,fe[2]]),V++,R++,Ye=void 0,Qe=!0}}}return w[I][1]._spread=me,R}function o(w,I){return R;function R(V){a.call(this,w(V),V),I&&I.call(this,V)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(w,I,R){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([I,R||void 0]),w.position={start:Ee(I.start),end:void 0}}function s(w){return I;function I(R){w&&w.call(this,R),u.call(this,R)}}function u(w,I){const R=this.stack.pop(),V=this.tokenStack.pop();if(V)V[0].type!==w.type&&(I?I.call(this,w,V[0]):(V[1]||tr).call(this,w,V[0]));else throw new Error("Cannot close `"+w.type+"` ("+nt({start:w.start,end:w.end})+"): it’s not open");R.position.end=Ee(w.end)}function f(){return mn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(w){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),I=this.stack[this.stack.length-1];I.lang=w}function g(){const w=this.resume(),I=this.stack[this.stack.length-1];I.meta=w}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w.replace(/(\r?\n|\r)$/g,"")}function E(w){const I=this.resume(),R=this.stack[this.stack.length-1];R.label=I,R.identifier=ye(this.sliceSerialize(w)).toLowerCase()}function _(){const w=this.resume(),I=this.stack[this.stack.length-1];I.title=w}function j(){const w=this.resume(),I=this.stack[this.stack.length-1];I.url=w}function D(w){const I=this.stack[this.stack.length-1];if(!I.depth){const R=this.sliceSerialize(w).length;I.depth=R}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function F(w){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function B(w){const R=this.stack[this.stack.length-1].children;let V=R[R.length-1];(!V||V.type!=="text")&&(V=il(),V.position={start:Ee(w.start),end:void 0},R.push(V)),this.stack.push(V)}function k(w){const I=this.stack.pop();I.value+=this.sliceSerialize(w),I.position.end=Ee(w.end)}function T(w){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=I.children[I.children.length-1];R.position.end=Ee(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(B.call(this,w),k.call(this,w))}function z(){this.data.atHardBreak=!0}function W(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function P(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function v(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function N(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=I,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function O(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=I,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function Q(w){const I=this.sliceSerialize(w),R=this.stack[this.stack.length-2];R.label=Ts(I),R.identifier=ye(I).toLowerCase()}function Y(){const w=this.stack[this.stack.length-1],I=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const V=w.children;R.children=V}else R.alt=I}function d(){const w=this.resume(),I=this.stack[this.stack.length-1];I.url=w}function se(){const w=this.resume(),I=this.stack[this.stack.length-1];I.title=w}function te(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function ne(w){const I=this.resume(),R=this.stack[this.stack.length-1];R.label=I,R.identifier=ye(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function ze(w){this.data.characterReferenceType=w.type}function re(w){const I=this.sliceSerialize(w),R=this.data.characterReferenceType;let V;R?(V=Jr(I,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):V=gn(I);const J=this.stack[this.stack.length-1];J.value+=V}function We(w){const I=this.stack.pop();I.position.end=Ee(w.end)}function Ae(w){k.call(this,w);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(w)}function Fe(w){k.call(this,w);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(w)}function Oe(){return{type:"blockquote",children:[]}}function ct(){return{type:"code",lang:null,meta:null,value:""}}function Gi(){return{type:"inlineCode",value:""}}function Ki(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zi(){return{type:"emphasis",children:[]}}function In(){return{type:"heading",depth:0,children:[]}}function Tn(){return{type:"break"}}function zn(){return{type:"html",value:""}}function el(){return{type:"image",title:null,url:"",alt:null}}function Pn(){return{type:"link",title:null,url:"",children:[]}}function jn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function tl(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function nl(){return{type:"paragraph",children:[]}}function rl(){return{type:"strong",children:[]}}function il(){return{type:"text",value:""}}function ll(){return{type:"thematicBreak"}}}function Ee(e){return{line:e.line,column:e.column,offset:e.offset}}function oi(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?oi(e,r):Ls(e,r)}}function Ls(e,n){let t;for(t in n)if(li.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function tr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+nt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+nt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+nt({start:n.start,end:n.end})+") is still open")}function Ds(e){const n=this;n.parser=t;function t(r){return Ps(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ns(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Ms(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
33
|
-
`}]}function
|
|
34
|
-
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function
|
|
32
|
+
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function As(e){const r={constructs:Qr([Cs,...(e||{}).extensions||[]]),content:i($o),defined:[],document:i(qo),flow:i(as),lazy:{},string:i(cs),text:i(fs)};return r;function i(o){return l;function l(a){return Ss(r,o,a)}}}function Es(e){for(;!Zr(e););return e}const er=/[\0\t\n\r]/g;function Is(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,h,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(er.lastIndex=c,u=er.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){n=o.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(o.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Ts=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ps(e){return e.replace(Ts,zs)}function zs(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Jr(t.slice(o?2:1),o?16:10)}return gn(t)||e}const li={}.hasOwnProperty;function js(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ls(t)(Es(As(t).document().write(Is()(e,n,!0))))}function Ls(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(zn),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(In),blockQuote:o(Oe),characterEscape:B,characterReference:B,codeFenced:o(ct),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ct,l),codeText:o(Ki,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(Zi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(el),hardBreakEscape:o(Tn),hardBreakTrailing:o(Tn),htmlFlow:o(Pn,l),htmlFlowData:B,htmlText:o(Pn,l),htmlTextData:B,image:o(tl),label:l,link:o(zn),listItem:o(nl),listItemValue:h,listOrdered:o(jn,c),listUnordered:o(jn),paragraph:o(rl),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(In),strong:o(il),thematicBreak:o(ol)},exit:{atxHeading:s(),atxHeadingSequence:D,autolink:s(),autolinkEmail:Fe,autolinkProtocol:Ae,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Pe,characterReferenceMarkerNumeric:Pe,characterReferenceValue:re,characterReference:We,codeFenced:s(S),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:s(x),codeText:s(v),codeTextData:k,data:k,definition:s(),definitionDestinationString:j,definitionLabelString:E,definitionTitleString:_,emphasis:s(),hardBreakEscape:s(P),hardBreakTrailing:s(P),htmlFlow:s(W),htmlFlowData:k,htmlText:s(z),htmlTextData:k,image:s(O),label:Y,labelText:Q,lineEnding:T,link:s(N),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ne,resourceDestinationString:d,resourceTitleString:se,resource:te,setextHeading:s(H),setextHeadingLineSequence:F,setextHeadingText:b,strong:s(),thematicBreak:s()}};oi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let I={type:"root",children:[]};const R={stack:[I],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},V=[];let J=-1;for(;++J<w.length;)if(w[J][1].type==="listOrdered"||w[J][1].type==="listUnordered")if(w[J][0]==="enter")V.push(J);else{const me=V.pop();J=i(w,me,J)}for(J=-1;++J<w.length;){const me=n[w[J][0]];li.call(me,w[J][1].type)&&me[w[J][1].type].call(Object.assign({sliceSerialize:w[J][2].sliceSerialize},R),w[J][1])}if(R.tokenStack.length>0){const me=R.tokenStack[R.tokenStack.length-1];(me[1]||tr).call(R,void 0,me[0])}for(I.position={start:Ee(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:Ee(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<n.transforms.length;)I=n.transforms[J](I)||I;return I}function i(w,I,R){let V=I-1,J=-1,me=!1,ze,we,Ye,Qe;for(;++V<=R;){const fe=w[V];switch(fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{fe[0]==="enter"?J++:J--,Qe=void 0;break}case"lineEndingBlank":{fe[0]==="enter"&&(ze&&!Qe&&!J&&!Ye&&(Ye=V),Qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!J&&fe[0]==="enter"&&fe[1].type==="listItemPrefix"||J===-1&&fe[0]==="exit"&&(fe[1].type==="listUnordered"||fe[1].type==="listOrdered")){if(ze){let Be=V;for(we=void 0;Be--;){const Ce=w[Be];if(Ce[1].type==="lineEnding"||Ce[1].type==="lineEndingBlank"){if(Ce[0]==="exit")continue;we&&(w[we][1].type="lineEndingBlank",me=!0),Ce[1].type="lineEnding",we=Be}else if(!(Ce[1].type==="linePrefix"||Ce[1].type==="blockQuotePrefix"||Ce[1].type==="blockQuotePrefixWhitespace"||Ce[1].type==="blockQuoteMarker"||Ce[1].type==="listItemIndent"))break}Ye&&(!we||Ye<we)&&(ze._spread=!0),ze.end=Object.assign({},we?w[we][1].start:fe[1].end),w.splice(we||V,0,["exit",ze,fe[2]]),V++,R++}if(fe[1].type==="listItemPrefix"){const Be={type:"listItem",_spread:!1,start:Object.assign({},fe[1].start),end:void 0};ze=Be,w.splice(V,0,["enter",Be,fe[2]]),V++,R++,Ye=void 0,Qe=!0}}}return w[I][1]._spread=me,R}function o(w,I){return R;function R(V){a.call(this,w(V),V),I&&I.call(this,V)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(w,I,R){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([I,R||void 0]),w.position={start:Ee(I.start),end:void 0}}function s(w){return I;function I(R){w&&w.call(this,R),u.call(this,R)}}function u(w,I){const R=this.stack.pop(),V=this.tokenStack.pop();if(V)V[0].type!==w.type&&(I?I.call(this,w,V[0]):(V[1]||tr).call(this,w,V[0]));else throw new Error("Cannot close `"+w.type+"` ("+nt({start:w.start,end:w.end})+"): it’s not open");R.position.end=Ee(w.end)}function f(){return mn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(w){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),I=this.stack[this.stack.length-1];I.lang=w}function g(){const w=this.resume(),I=this.stack[this.stack.length-1];I.meta=w}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w.replace(/(\r?\n|\r)$/g,"")}function E(w){const I=this.resume(),R=this.stack[this.stack.length-1];R.label=I,R.identifier=ye(this.sliceSerialize(w)).toLowerCase()}function _(){const w=this.resume(),I=this.stack[this.stack.length-1];I.title=w}function j(){const w=this.resume(),I=this.stack[this.stack.length-1];I.url=w}function D(w){const I=this.stack[this.stack.length-1];if(!I.depth){const R=this.sliceSerialize(w).length;I.depth=R}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function F(w){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function B(w){const R=this.stack[this.stack.length-1].children;let V=R[R.length-1];(!V||V.type!=="text")&&(V=ll(),V.position={start:Ee(w.start),end:void 0},R.push(V)),this.stack.push(V)}function k(w){const I=this.stack.pop();I.value+=this.sliceSerialize(w),I.position.end=Ee(w.end)}function T(w){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=I.children[I.children.length-1];R.position.end=Ee(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(B.call(this,w),k.call(this,w))}function P(){this.data.atHardBreak=!0}function W(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function z(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function v(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function N(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=I,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function O(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=I,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function Q(w){const I=this.sliceSerialize(w),R=this.stack[this.stack.length-2];R.label=Ps(I),R.identifier=ye(I).toLowerCase()}function Y(){const w=this.stack[this.stack.length-1],I=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const V=w.children;R.children=V}else R.alt=I}function d(){const w=this.resume(),I=this.stack[this.stack.length-1];I.url=w}function se(){const w=this.resume(),I=this.stack[this.stack.length-1];I.title=w}function te(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function ne(w){const I=this.resume(),R=this.stack[this.stack.length-1];R.label=I,R.identifier=ye(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function Pe(w){this.data.characterReferenceType=w.type}function re(w){const I=this.sliceSerialize(w),R=this.data.characterReferenceType;let V;R?(V=Jr(I,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):V=gn(I);const J=this.stack[this.stack.length-1];J.value+=V}function We(w){const I=this.stack.pop();I.position.end=Ee(w.end)}function Ae(w){k.call(this,w);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(w)}function Fe(w){k.call(this,w);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(w)}function Oe(){return{type:"blockquote",children:[]}}function ct(){return{type:"code",lang:null,meta:null,value:""}}function Ki(){return{type:"inlineCode",value:""}}function Zi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function el(){return{type:"emphasis",children:[]}}function In(){return{type:"heading",depth:0,children:[]}}function Tn(){return{type:"break"}}function Pn(){return{type:"html",value:""}}function tl(){return{type:"image",title:null,url:"",alt:null}}function zn(){return{type:"link",title:null,url:"",children:[]}}function jn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function nl(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function rl(){return{type:"paragraph",children:[]}}function il(){return{type:"strong",children:[]}}function ll(){return{type:"text",value:""}}function ol(){return{type:"thematicBreak"}}}function Ee(e){return{line:e.line,column:e.column,offset:e.offset}}function oi(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?oi(e,r):Ds(e,r)}}function Ds(e,n){let t;for(t in n)if(li.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function tr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+nt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+nt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+nt({start:n.start,end:n.end})+") is still open")}function Ns(e){const n=this;n.parser=t;function t(r){return js(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ms(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Rs(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
33
|
+
`}]}function Fs(e,n){const t=n.value?n.value+`
|
|
34
|
+
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Os(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Bs(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $s(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Ue(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function Hs(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qs(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ai(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Vs(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ai(e,n);const i={src:Ue(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Us(e,n){const t={src:Ue(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ws(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ys(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ai(e,n);const i={href:Ue(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Qs(e,n){const t={href:Ue(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Js(e,n,t){const r=e.all(n),i=t?Xs(t):si(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
35
35
|
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
36
|
-
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,u),e.applyData(n,u)}function
|
|
36
|
+
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,u),e.applyData(n,u)}function Xs(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=si(t[r])}return n}function si(e){const n=e.spread;return n??e.children.length>1}function Gs(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Ks(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Zs(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function eu(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function tu(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=fn(n.children[1]),s=$r(n.children[n.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function nu(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let s=-1;const u=[];for(;++s<a;){const c=n.children[s],h={},p=l?l[s]:void 0;p&&(h.align=p);let g={type:"element",tagName:o,properties:h,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),u.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function ru(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const nr=9,rr=32;function iu(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(ir(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(ir(n.slice(i),i>0,!1)),o.join("")}function ir(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===nr||o===rr;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===nr||o===rr;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function lu(e,n){const t={type:"text",value:iu(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ou(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const au={blockquote:Ms,break:Rs,code:Fs,delete:Os,emphasis:Bs,footnoteReference:$s,heading:Hs,html:qs,imageReference:Vs,image:Us,inlineCode:Ws,linkReference:Ys,link:Qs,listItem:Js,list:Gs,paragraph:Ks,root:Zs,strong:eu,table:tu,tableCell:ru,tableRow:nu,text:lu,thematicBreak:ou,toml:pt,yaml:pt,definition:pt,footnoteDefinition:pt};function pt(){}const ui=-1,Et=0,it=1,wt=2,xn=3,kn=4,bn=5,wn=6,ci=7,fi=8,pi=typeof self=="object"?self:globalThis,lr=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new pi[e](n)},su=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case Et:case ui:return t(l,i);case it:{const a=t([],i);for(const s of l)a.push(r(s));return a}case wt:{const a=t({},i);for(const[s,u]of l)a[r(s)]=r(u);return a}case xn:return t(new Date(l),i);case kn:{const{source:a,flags:s}=l;return t(new RegExp(a,s),i)}case bn:{const a=t(new Map,i);for(const[s,u]of l)a.set(r(s),r(u));return a}case wn:{const a=t(new Set,i);for(const s of l)a.add(r(s));return a}case ci:{const{name:a,message:s}=l;return t(typeof pi[a]=="function"?lr(a,s):new Error(s),i)}case fi:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t(lr(o,l),i)};return r},or=e=>su(new Map,e)(0),De="",{toString:uu}={},{keys:cu}=Object,Ke=e=>{const n=typeof e;if(n!=="object"||!e)return[Et,n];const t=uu.call(e).slice(8,-1);switch(t){case"Array":return[it,De];case"Object":return[wt,De];case"Date":return[xn,De];case"RegExp":return[kn,De];case"Map":return[bn,De];case"Set":return[wn,De];case"DataView":return[it,t]}return t.includes("Array")?[it,t]:e instanceof Error?[ci,e.name||"Error"]:[wt,t]},ht=([e,n])=>e===Et&&(n==="function"||n==="symbol"),fu=(e,n,t,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return t.set(a,s),s},o=l=>{if(t.has(l))return t.get(l);let[a,s]=Ke(l);switch(a){case Et:{let f=l;switch(s){case"bigint":a=fi,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([ui],l)}return i([a,f],l)}case it:{if(s){let h=l;return s==="DataView"?h=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(l)),i([s,[...h]],l)}const f=[],c=i([a,f],l);for(const h of l)f.push(o(h));return c}case wt:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const h of cu(l))(e||!ht(Ke(l[h])))&&f.push([o(h),o(l[h])]);return c}case xn:return i([a,isNaN(l.getTime())?De:l.toISOString()],l);case kn:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case bn:{const f=[],c=i([a,f],l);for(const[h,p]of l)(e||!(ht(Ke(h))||ht(Ke(p))))&&f.push([o(h),o(p)]);return c}case wn:{const f=[],c=i([a,f],l);for(const h of l)(e||!ht(Ke(h)))&&f.push(o(h));return c}}const{message:u}=l;return i([a,{name:s,message:u}],l)};return o},ar=(e,{json:n,lossy:t}={})=>{const r=[];return fu(!(n||t),!!n,new Map,r)(e),r},Ct=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?or(ar(e,n)):structuredClone(e):(e,n)=>or(ar(e,n));function pu(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function hu(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function du(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||pu,r=e.options.footnoteBackLabel||hu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=Ue(c.toLowerCase());let p=0;const g=[],C=e.footnoteCounts.get(c);for(;C!==void 0&&++p<=C;){g.length>0&&g.push({type:"text",value:" "});let E=typeof t=="string"?t:t(s,p);typeof E=="string"&&(E={type:"text",value:E}),g.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const E=S.children[S.children.length-1];E&&E.type==="text"?E.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...g)}else f.push(...g);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ct(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
37
37
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
38
|
-
`}]}}const It=(function(e){if(e==null)return
|
|
38
|
+
`}]}}const It=(function(e){if(e==null)return xu;if(typeof e=="function")return Tt(e);if(typeof e=="object")return Array.isArray(e)?mu(e):gu(e);if(typeof e=="string")return yu(e);throw new Error("Expected function, string, or object as test")});function mu(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=It(e[t]);return Tt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function gu(e){const n=e;return Tt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function yu(e){return Tt(n);function n(t){return t&&t.type===e}}function Tt(e){return n;function n(t,r,i){return!!(ku(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function xu(){return!0}function ku(e){return e!==null&&typeof e=="object"&&"type"in e}const hi=[],bu=!0,en=!1,wu="skip";function di(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=It(i),l=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=hi,g,C,S;if((!n||o(s,u,f[f.length-1]||void 0))&&(p=Cu(t(s,f)),p[0]===en))return p;if("children"in s&&s.children){const x=s;if(x.children&&p[0]!==wu)for(C=(r?x.children.length:-1)+l,S=f.concat(x);C>-1&&C<x.children.length;){const E=x.children[C];if(g=a(E,C,S)(),g[0]===en)return g;C=typeof g[1]=="number"?g[1]:C+l}}return p}}}function Cu(e){return Array.isArray(e)?e:typeof e=="number"?[bu,e]:e==null?hi:[e]}function Cn(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),di(e,o,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return l(s,c,f)}}const tn={}.hasOwnProperty,Su={};function vu(e,n){const t=n||Su,r=new Map,i=new Map,o=new Map,l={...au,...t.handlers},a={all:u,applyData:Au,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:t,patch:_u,wrap:Iu};return Cn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function s(f,c){const h=f.type,p=a.handlers[h];if(tn.call(a.handlers,h)&&p)return p(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:C,...S}=f,x=Ct(S);return x.children=a.all(f),x}return Ct(f)}return(a.options.unknownHandler||Eu)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const g=a.one(h[p],f);if(g){if(p&&h[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=sr(g.value)),!Array.isArray(g)&&g.type==="element")){const C=g.children[0];C&&C.type==="text"&&(C.value=sr(C.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function _u(e,n){e.position&&(n.position=po(e))}function Au(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,Ct(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Eu(e,n){const t=n.data||{},r="value"in n&&!(tn.call(t,"hProperties")||tn.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Iu(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
39
39
|
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
40
40
|
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
41
|
-
`}),t}function sr(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function ur(e,n){const t=
|
|
42
|
-
`},i),o}function Iu(e,n){return e&&"run"in e?async function(t,r){const i=ur(t,{file:r,...n});await e.run(i,r)}:function(t,r){return ur(t,{file:r,...e||n})}}function cr(e){if(e)throw e}var Nt,fr;function Tu(){if(fr)return Nt;fr=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},o=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},l=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return Nt=function s(){var u,f,c,h,p,g,C=arguments[0],S=1,x=arguments.length,E=!1;for(typeof C=="boolean"&&(E=C,C=arguments[1]||{},S=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});S<x;++S)if(u=arguments[S],u!=null)for(f in u)c=a(C,f),h=a(u,f),C!==h&&(E&&h&&(o(h)||(p=i(h)))?(p?(p=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(C,{name:f,newValue:s(E,g,h)})):typeof h<"u"&&l(C,{name:f,newValue:h}));return C},Nt}var zu=Tu();const Mt=Br(zu);function nn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Pu(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?ju(f,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function ju(e,n){let t;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const ke={basename:Lu,dirname:Du,extname:Nu,join:Mu,sep:"/"};function Lu(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ut(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Du(e){if(ut(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Nu(e){ut(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Mu(...e){let n=-1,t;for(;++n<e.length;)ut(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ru(t)}function Ru(e){ut(e);const n=e.codePointAt(0)===47;let t=Fu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Fu(e,n){let t="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function ut(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ou={cwd:Bu};function Bu(){return"/"}function rn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $u(e){if(typeof e=="string")e=new URL(e);else if(!rn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Hu(e)}function Hu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Rt=["history","path","basename","stem","extname","dirname"];class mi{constructor(n){let t;n?rn(n)?t={path:n}:typeof n=="string"||qu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Ou.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Rt.length;){const o=Rt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Rt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ke.basename(this.path):void 0}set basename(n){Ot(n,"basename"),Ft(n,"basename"),this.path=ke.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ke.dirname(this.path):void 0}set dirname(n){pr(this.basename,"dirname"),this.path=ke.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ke.extname(this.path):void 0}set extname(n){if(Ft(n,"extname"),pr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ke.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){rn(n)&&(n=$u(n)),Ot(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ke.basename(this.path,this.extname):void 0}set stem(n){Ot(n,"stem"),Ft(n,"stem"),this.path=ke.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new le(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Ft(e,n){if(e&&e.includes(ke.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ke.sep+"`")}function Ot(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function pr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function qu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Uu={}.hasOwnProperty;class Sn extends Vu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Pu()}copy(){const n=new Sn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Mt(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Ht("data",this.frozen),this.namespace[n]=t,this):Uu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Ht("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=dt(n),r=this.parser||this.Parser;return Bt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Bt("process",this.parser||this.Parser),$t("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=dt(n),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,g=r.stringify(p,h);Qu(g)?h.value=g:h.result=g,u(f,h)});function u(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),Bt("processSync",this.parser||this.Parser),$t("processSync",this.compiler||this.Compiler),this.process(n,i),dr("processSync","process",t),r;function i(o,l){t=!0,cr(o),r=l}}run(n,t,r){hr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=dt(t);i.run(n,s,u);function u(f,c,h){const p=c||n;f?a(f):l?l(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),dr("runSync","run",r),i;function o(l,a){cr(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=dt(t),i=this.compiler||this.Compiler;return $t("stringify",i),hr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Ht("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Mt(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...g]=f;const C=r[h][1];nn(C)&&nn(p)&&(p=Mt(!0,C,p)),r[h]=[u,p,...g]}}}}const Wu=new Sn().freeze();function Bt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $t(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ht(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hr(e){if(!nn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function dt(e){return Yu(e)?e:new mi(e)}function Yu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Qu(e){return typeof e=="string"||Ju(e)}function Ju(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mr=[],gr={allowDangerousHtml:!0},Gu=/^(https?|ircs?|mailto|xmpp)$/i,Ku=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Zu(e){const n=ec(e),t=tc(e);return nc(n.runSync(n.parse(t),t),e)}function ec(e){const n=e.rehypePlugins||mr,t=e.remarkPlugins||mr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gr}:gr;return Wu().use(Ds).use(t).use(Iu,r).use(n)}function tc(e){const n=e.children||"",t=new mi;return typeof n=="string"&&(t.value=n),t}function nc(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||rc;for(const f of Ku)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Xu+f.id,void 0);return Cn(e,u),yo(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return l?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in jt)if(Object.hasOwn(jt,p)&&Object.hasOwn(f.properties,p)){const g=f.properties[p],C=jt[p];(C===null||C.includes(f.tagName))&&(f.properties[p]=s(String(g||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function rc(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Gu.test(e.slice(0,n))?e:""}function yr(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function ic(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lc(e,n,t){const i=It((t||{}).ignore||[]),o=oc(n);let l=-1;for(;++l<o.length;)di(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],g=h?h.children:void 0;if(i(p,g?g.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=o[l][0],p=o[l][1];let g=0;const S=c.children.indexOf(u);let x=!1,E=[];h.lastIndex=0;let _=h.exec(u.value);for(;_;){const j=_.index,D={index:_.index,input:_.input,stack:[...f,u]};let b=p(..._,D);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?h.lastIndex=j+1:(g!==j&&E.push({type:"text",value:u.value.slice(g,j)}),Array.isArray(b)?E.push(...b):b&&E.push(b),g=j+_[0].length,x=!0),!h.global)break;_=h.exec(u.value)}return x?(g<u.value.length&&E.push({type:"text",value:u.value.slice(g)}),c.children.splice(S,1,...E)):E=[u],S+E.length}}function oc(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([ac(i[0]),sc(i[1])])}return n}function ac(e){return typeof e=="string"?new RegExp(ic(e),"g"):e}function sc(e){return typeof e=="function"?e:function(){return e}}const qt="phrasing",Vt=["autolink","link","image","label"];function uc(){return{transforms:[gc],enter:{literalAutolink:fc,literalAutolinkEmail:Ut,literalAutolinkHttp:Ut,literalAutolinkWww:Ut},exit:{literalAutolink:mc,literalAutolinkEmail:dc,literalAutolinkHttp:pc,literalAutolinkWww:hc}}}function cc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qt,notInConstruct:Vt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qt,notInConstruct:Vt},{character:":",before:"[ps]",after:"\\/",inConstruct:qt,notInConstruct:Vt}]}}function fc(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ut(e){this.config.enter.autolinkProtocol.call(this,e)}function pc(e){this.config.exit.autolinkProtocol.call(this,e)}function hc(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function dc(e){this.config.exit.autolinkEmail.call(this,e)}function mc(e){this.exit(e)}function gc(e){lc(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yc],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,xc]],{ignore:["link","linkReference"]})}function yc(e,n,t,r,i){let o="";if(!gi(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!kc(t)))return!1;const l=bc(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function xc(e,n,t,r){return!gi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function kc(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function bc(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=yr(e,"(");let o=yr(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function gi(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Me(t)||_t(t))&&(!n||t!==47)}yi.peek=Tc;function wc(){this.buffer()}function Cc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Sc(){this.buffer()}function vc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _c(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ye(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ac(e){this.exit(e)}function Ec(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ye(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ic(e){this.exit(e)}function Tc(){return"["}function yi(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function zc(){return{enter:{gfmFootnoteCallString:wc,gfmFootnoteCall:Cc,gfmFootnoteDefinitionLabelString:Sc,gfmFootnoteDefinition:vc},exit:{gfmFootnoteCallString:_c,gfmFootnoteCall:Ac,gfmFootnoteDefinitionLabelString:Ec,gfmFootnoteDefinition:Ic}}}function Pc(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:yi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
|
|
43
|
-
`:" ")+o.indentLines(o.containerFlow(r,a.current()),n?xi:
|
|
44
|
-
`)}function
|
|
45
|
-
`&&
|
|
46
|
-
`}function
|
|
41
|
+
`}),t}function sr(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function ur(e,n){const t=vu(e,n),r=t.one(e,void 0),i=du(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
42
|
+
`},i),o}function Tu(e,n){return e&&"run"in e?async function(t,r){const i=ur(t,{file:r,...n});await e.run(i,r)}:function(t,r){return ur(t,{file:r,...e||n})}}function cr(e){if(e)throw e}var Nt,fr;function Pu(){if(fr)return Nt;fr=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},o=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},l=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return Nt=function s(){var u,f,c,h,p,g,C=arguments[0],S=1,x=arguments.length,E=!1;for(typeof C=="boolean"&&(E=C,C=arguments[1]||{},S=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});S<x;++S)if(u=arguments[S],u!=null)for(f in u)c=a(C,f),h=a(u,f),C!==h&&(E&&h&&(o(h)||(p=i(h)))?(p?(p=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(C,{name:f,newValue:s(E,g,h)})):typeof h<"u"&&l(C,{name:f,newValue:h}));return C},Nt}var zu=Pu();const Mt=Br(zu);function nn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ju(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Lu(f,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Lu(e,n){let t;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const ke={basename:Du,dirname:Nu,extname:Mu,join:Ru,sep:"/"};function Du(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ut(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Nu(e){if(ut(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Mu(e){ut(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ru(...e){let n=-1,t;for(;++n<e.length;)ut(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Fu(t)}function Fu(e){ut(e);const n=e.codePointAt(0)===47;let t=Ou(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ou(e,n){let t="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function ut(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bu={cwd:$u};function $u(){return"/"}function rn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hu(e){if(typeof e=="string")e=new URL(e);else if(!rn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return qu(e)}function qu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const Rt=["history","path","basename","stem","extname","dirname"];class mi{constructor(n){let t;n?rn(n)?t={path:n}:typeof n=="string"||Vu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Bu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Rt.length;){const o=Rt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Rt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ke.basename(this.path):void 0}set basename(n){Ot(n,"basename"),Ft(n,"basename"),this.path=ke.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ke.dirname(this.path):void 0}set dirname(n){pr(this.basename,"dirname"),this.path=ke.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ke.extname(this.path):void 0}set extname(n){if(Ft(n,"extname"),pr(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ke.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){rn(n)&&(n=Hu(n)),Ot(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ke.basename(this.path,this.extname):void 0}set stem(n){Ot(n,"stem"),Ft(n,"stem"),this.path=ke.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new le(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Ft(e,n){if(e&&e.includes(ke.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ke.sep+"`")}function Ot(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function pr(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Vu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Uu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Wu={}.hasOwnProperty;class Sn extends Uu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ju()}copy(){const n=new Sn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Mt(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Ht("data",this.frozen),this.namespace[n]=t,this):Wu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Ht("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=dt(n),r=this.parser||this.Parser;return Bt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Bt("process",this.parser||this.Parser),$t("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=dt(n),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,g=r.stringify(p,h);Ju(g)?h.value=g:h.result=g,u(f,h)});function u(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),Bt("processSync",this.parser||this.Parser),$t("processSync",this.compiler||this.Compiler),this.process(n,i),dr("processSync","process",t),r;function i(o,l){t=!0,cr(o),r=l}}run(n,t,r){hr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=dt(t);i.run(n,s,u);function u(f,c,h){const p=c||n;f?a(f):l?l(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),dr("runSync","run",r),i;function o(l,a){cr(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=dt(t),i=this.compiler||this.Compiler;return $t("stringify",i),hr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Ht("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=Mt(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...g]=f;const C=r[h][1];nn(C)&&nn(p)&&(p=Mt(!0,C,p)),r[h]=[u,p,...g]}}}}const Yu=new Sn().freeze();function Bt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $t(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ht(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hr(e){if(!nn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function dt(e){return Qu(e)?e:new mi(e)}function Qu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ju(e){return typeof e=="string"||Xu(e)}function Xu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mr=[],gr={allowDangerousHtml:!0},Ku=/^(https?|ircs?|mailto|xmpp)$/i,Zu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ec(e){const n=tc(e),t=nc(e);return rc(n.runSync(n.parse(t),t),e)}function tc(e){const n=e.rehypePlugins||mr,t=e.remarkPlugins||mr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gr}:gr;return Yu().use(Ns).use(t).use(Tu,r).use(n)}function nc(e){const n=e.children||"",t=new mi;return typeof n=="string"&&(t.value=n),t}function rc(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||ic;for(const f of Zu)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Gu+f.id,void 0);return Cn(e,u),xo(e,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return l?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in jt)if(Object.hasOwn(jt,p)&&Object.hasOwn(f.properties,p)){const g=f.properties[p],C=jt[p];(C===null||C.includes(f.tagName))&&(f.properties[p]=s(String(g||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function ic(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||Ku.test(e.slice(0,n))?e:""}function yr(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function lc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oc(e,n,t){const i=It((t||{}).ignore||[]),o=ac(n);let l=-1;for(;++l<o.length;)di(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],g=h?h.children:void 0;if(i(p,g?g.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=o[l][0],p=o[l][1];let g=0;const S=c.children.indexOf(u);let x=!1,E=[];h.lastIndex=0;let _=h.exec(u.value);for(;_;){const j=_.index,D={index:_.index,input:_.input,stack:[...f,u]};let b=p(..._,D);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?h.lastIndex=j+1:(g!==j&&E.push({type:"text",value:u.value.slice(g,j)}),Array.isArray(b)?E.push(...b):b&&E.push(b),g=j+_[0].length,x=!0),!h.global)break;_=h.exec(u.value)}return x?(g<u.value.length&&E.push({type:"text",value:u.value.slice(g)}),c.children.splice(S,1,...E)):E=[u],S+E.length}}function ac(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([sc(i[0]),uc(i[1])])}return n}function sc(e){return typeof e=="string"?new RegExp(lc(e),"g"):e}function uc(e){return typeof e=="function"?e:function(){return e}}const qt="phrasing",Vt=["autolink","link","image","label"];function cc(){return{transforms:[yc],enter:{literalAutolink:pc,literalAutolinkEmail:Ut,literalAutolinkHttp:Ut,literalAutolinkWww:Ut},exit:{literalAutolink:gc,literalAutolinkEmail:mc,literalAutolinkHttp:hc,literalAutolinkWww:dc}}}function fc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qt,notInConstruct:Vt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qt,notInConstruct:Vt},{character:":",before:"[ps]",after:"\\/",inConstruct:qt,notInConstruct:Vt}]}}function pc(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ut(e){this.config.enter.autolinkProtocol.call(this,e)}function hc(e){this.config.exit.autolinkProtocol.call(this,e)}function dc(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function mc(e){this.config.exit.autolinkEmail.call(this,e)}function gc(e){this.exit(e)}function yc(e){oc(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,xc],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,kc]],{ignore:["link","linkReference"]})}function xc(e,n,t,r,i){let o="";if(!gi(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!bc(t)))return!1;const l=wc(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function kc(e,n,t,r){return!gi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function bc(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function wc(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=yr(e,"(");let o=yr(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function gi(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Me(t)||_t(t))&&(!n||t!==47)}yi.peek=Pc;function Cc(){this.buffer()}function Sc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vc(){this.buffer()}function _c(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ac(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ye(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ec(e){this.exit(e)}function Ic(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ye(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Tc(e){this.exit(e)}function Pc(){return"["}function yi(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function zc(){return{enter:{gfmFootnoteCallString:Cc,gfmFootnoteCall:Sc,gfmFootnoteDefinitionLabelString:vc,gfmFootnoteDefinition:_c},exit:{gfmFootnoteCallString:Ac,gfmFootnoteCall:Ec,gfmFootnoteDefinitionLabelString:Ic,gfmFootnoteDefinition:Tc}}}function jc(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:yi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
|
|
43
|
+
`:" ")+o.indentLines(o.containerFlow(r,a.current()),n?xi:Lc))),u(),s}}function Lc(e,n,t){return n===0?e:xi(e,n,t)}function xi(e,n,t){return(t?"":" ")+e}const Dc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ki.peek=Oc;function Nc(){return{canContainEols:["delete"],enter:{strikethrough:Rc},exit:{strikethrough:Fc}}}function Mc(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Dc}],handlers:{delete:ki}}}function Rc(e){this.enter({type:"delete",children:[]},e)}function Fc(e){this.exit(e)}function ki(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Oc(){return"~"}function Bc(e){return e.length}function $c(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Bc,o=[],l=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const C=[],S=[];let x=-1;for(e[f].length>u&&(u=e[f].length);++x<e[f].length;){const E=Hc(e[f][x]);if(t.alignDelimiters!==!1){const _=i(E);S[x]=_,(s[x]===void 0||_>s[x])&&(s[x]=_)}C.push(E)}l[f]=C,a[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=xr(r[c]);else{const C=xr(r);for(;++c<u;)o[c]=C}c=-1;const h=[],p=[];for(;++c<u;){const C=o[c];let S="",x="";C===99?(S=":",x=":"):C===108?S=":":C===114&&(x=":");let E=t.alignDelimiters===!1?1:Math.max(1,s[c]-S.length-x.length);const _=S+"-".repeat(E)+x;t.alignDelimiters!==!1&&(E=S.length+E+x.length,E>s[c]&&(s[c]=E),p[c]=E),h[c]=_}l.splice(1,0,h),a.splice(1,0,p),f=-1;const g=[];for(;++f<l.length;){const C=l[f],S=a[f];c=-1;const x=[];for(;++c<u;){const E=C[c]||"";let _="",j="";if(t.alignDelimiters!==!1){const D=s[c]-(S[c]||0),b=o[c];b===114?_=" ".repeat(D):b===99?D%2?(_=" ".repeat(D/2+.5),j=" ".repeat(D/2-.5)):(_=" ".repeat(D/2),j=_):j=" ".repeat(D)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&E==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(_),x.push(E),t.alignDelimiters!==!1&&x.push(j),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&x.push("|")}g.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return g.join(`
|
|
44
|
+
`)}function Hc(e){return e==null?"":String(e)}function xr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function qc(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Vc);return i(),l}function Vc(e,n,t){return">"+(t?"":" ")+e}function Uc(e,n){return kr(e,n.inConstruct,!0)&&!kr(e,n.notInConstruct,!1)}function kr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function br(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
|
|
45
|
+
`&&Uc(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
46
|
+
`}function Wc(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function Yc(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Qc(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Jc(e,n,t,r){const i=Qc(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Yc(e,t)){const c=t.enter("codeIndented"),h=t.indentLines(o,Xc);return c(),h}const a=t.createTracker(r),s=i.repeat(Math.max(Wc(o,i)+1,3)),u=t.enter("codeFenced");let f=a.move(s);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
|
|
47
47
|
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
48
48
|
`),o&&(f+=a.move(o+`
|
|
49
|
-
`)),f+=a.move(s),u(),f}function
|
|
50
|
-
`,...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function
|
|
49
|
+
`)),f+=a.move(s),u(),f}function Xc(e,n,t){return(t?"":" ")+e}function vn(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Gc(e,n,t,r){const i=vn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
|
|
50
|
+
`,...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function Kc(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ot(e){return"&#x"+e.toString(16).toUpperCase()+";"}function St(e,n,t){const r=qe(e),i=qe(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}bi.peek=Zc;function bi(e,n,t,r){const i=Kc(t),o=t.enter("emphasis"),l=t.createTracker(r),a=l.move(i);let s=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=St(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=ot(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=St(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+ot(c));const p=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function Zc(e,n,t){return t.options.emphasis||"*"}function ef(e,n){let t=!1;return Cn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,en}),!!((!e.depth||e.depth<3)&&mn(e)&&(n.options.setext||t))}function tf(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(ef(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),h=t.containerPhrasing(e,{...o.current(),before:`
|
|
51
51
|
`,after:`
|
|
52
52
|
`});return c(),f(),h+`
|
|
53
53
|
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
54
54
|
`))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),s=t.enter("phrasing");o.move(l+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
|
|
55
|
-
`,...o.current()});return/^[\t ]/.test(u)&&(u=ot(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),s(),a(),u}wi.peek=
|
|
55
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=ot(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,t.options.closeAtx&&(u+=" "+l),s(),a(),u}wi.peek=nf;function wi(e){return e.value||""}function nf(){return"<"}Ci.peek=rf;function Ci(e,n,t,r){const i=vn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=t.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function rf(){return"!"}Si.peek=lf;function Si(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let s=a.move("![");const u=t.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function lf(){return"!"}vi.peek=of;function vi(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let s;if(l.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function of(){return"`"}function _i(e,n){const t=mn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ai.peek=af;function Ai(e,n,t,r){const i=vn(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,s;if(_i(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),s=t.enter("label");let u=l.move("[");return u+=l.move(t.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=t.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(t.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function af(e,n,t){return _i(e,t)?"<":"["}Ei.peek=sf;function Ei(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let s=a.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function sf(){return"["}function _n(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function uf(e){const n=_n(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function cf(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Ii(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ff(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?cf(t):_n(t);const a=e.ordered?l==="."?")":".":uf(t);let s=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Ii(t)===l&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=a),t.bulletCurrent=l;const u=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),u}function pf(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function hf(e,n,t,r){const i=pf(t);let o=t.bulletCurrent||_n(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),f);return s(),u;function f(c,h,p){return h?(p?"":" ".repeat(l))+c:(p?o:o+" ".repeat(l-o.length))+c}}function df(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const mf=It(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gf(e,n,t,r){return(e.children.some(function(l){return mf(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function yf(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Ti.peek=xf;function Ti(e,n,t,r){const i=yf(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let s=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=St(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=ot(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=St(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+ot(c));const p=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function xf(e,n,t){return t.options.strong||"*"}function kf(e,n,t,r){return t.safe(e.value,r)}function bf(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function wf(e,n,t){const r=(Ii(t)+(t.options.ruleSpaces?" ":"")).repeat(bf(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Pi={blockquote:qc,break:br,code:Jc,definition:Gc,emphasis:bi,hardBreak:br,heading:tf,html:wi,image:Ci,imageReference:Si,inlineCode:vi,link:Ai,linkReference:Ei,list:ff,listItem:hf,paragraph:df,root:gf,strong:Ti,text:kf,thematicBreak:wf};function Cf(){return{enter:{table:Sf,tableData:wr,tableHeader:wr,tableRow:_f},exit:{codeText:Af,table:vf,tableData:Wt,tableHeader:Wt,tableRow:Wt}}}function Sf(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function vf(e){this.exit(e),this.data.inTable=void 0}function _f(e){this.enter({type:"tableRow",children:[]},e)}function Wt(e){this.exit(e)}function wr(e){this.enter({type:"tableCell",children:[]},e)}function Af(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Ef));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Ef(e,n){return n==="|"?n:e}function If(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
56
56
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:l,tableCell:s,tableRow:a}};function l(p,g,C,S){return u(f(p,C,S),p.align)}function a(p,g,C,S){const x=c(p,C,S),E=u([x]);return E.slice(0,E.indexOf(`
|
|
57
|
-
`))}function s(p,g,C,S){const x=C.enter("tableCell"),E=C.enter("phrasing"),_=C.containerPhrasing(p,{...S,before:o,after:o});return E(),x(),_}function u(p,g){return Bc(p,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(p,g,C){const S=p.children;let x=-1;const E=[],_=g.enter("table");for(;++x<S.length;)E[x]=c(S[x],g,C);return _(),E}function c(p,g,C){const S=p.children;let x=-1;const E=[],_=g.enter("tableRow");for(;++x<S.length;)E[x]=s(S[x],p,g,C);return _(),E}function h(p,g,C){let S=zi.inlineCode(p,g,C);return C.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function If(){return{exit:{taskListCheckValueChecked:Cr,taskListCheckValueUnchecked:Cr,paragraph:zf}}}function Tf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pf}}}function Cr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zf(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Pf(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let s=zi.listItem(e,n,t,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function jf(){return[uc(),zc(),Dc(),wf(),If()]}function Lf(e){return{extensions:[cc(),Pc(e),Nc(),Ef(e),Tf()]}}const Df={tokenize:Bf,partial:!0},Pi={tokenize:$f,partial:!0},ji={tokenize:Hf,partial:!0},Li={tokenize:qf,partial:!0},Nf={tokenize:Vf,partial:!0},Di={name:"wwwAutolink",tokenize:Ff,previous:Mi},Ni={name:"protocolAutolink",tokenize:Of,previous:Ri},_e={name:"emailAutolink",tokenize:Rf,previous:Fi},be={};function Mf(){return{text:be}}let je=48;for(;je<123;)be[je]=_e,je++,je===58?je=65:je===91&&(je=97);be[43]=_e;be[45]=_e;be[46]=_e;be[95]=_e;be[72]=[_e,Ni];be[104]=[_e,Ni];be[87]=[_e,Di];be[119]=[_e,Di];function Rf(e,n,t){const r=this;let i,o;return l;function l(c){return!ln(c)||!Fi.call(r,r.previous)||An(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ln(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(Nf,f,u)(c):c===45||c===95||ie(c)?(o=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Ff(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Mi.call(r,r.previous)||An(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Df,e.attempt(Pi,e.attempt(ji,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Of(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Ri.call(r,r.previous)&&!An(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ae(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):t(c)}function u(c){return c===null||bt(c)||G(c)||Me(c)||_t(c)?t(c):e.attempt(Pi,e.attempt(ji,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Bf(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function $f(e,n,t){let r,i,o;return l;function l(u){return u===46||u===95?e.check(Li,s,a)(u):u===null||G(u)||Me(u)||u!==45&&_t(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?t(u):n(u)}}function Hf(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Li,n,o)(l):l===null||G(l)||Me(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function qf(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||G(a)||Me(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||G(a)||Me(a)?n(a):r(a)}function o(a){return ae(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ae(a)?(e.consume(a),l):t(a)}}function Vf(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return ie(o)?t(o):n(o)}}function Mi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function Ri(e){return!ae(e)}function Fi(e){return!(e===47||ln(e))}function ln(e){return e===43||e===45||e===46||e===95||ie(e)}function An(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Uf={tokenize:Zf,partial:!0};function Wf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Xf,continuation:{tokenize:Gf},exit:Kf}},text:{91:{name:"gfmFootnoteCall",tokenize:Jf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yf,resolveTo:Qf}}}}function Yf(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return t(s);const u=ye(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Qf(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Jf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!l||c===null||c===91||G(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return G(c)||(l=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Xf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||G(g))return t(g);if(g===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return G(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,p,"gfmFootnoteDefinitionWhitespace")):t(g)}function p(g){return n(g)}}function Gf(e,n,t){return e.check(st,n,e.attempt(Uf,n,t))}function Kf(e){e.exit("gfmFootnoteDefinition")}function Zf(e,n,t){const r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function ep(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},h=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&he(h,h.length,0,At(p,l.slice(u+1,s),a)),he(h,h.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),he(l,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const C=qe(u);if(g===126)return c>1?s(g):(l.consume(g),c++,p);if(c<2&&!t)return s(g);const S=l.exit("strikethroughSequenceTemporary"),x=qe(g);return S._open=!x||x===2&&!!C,S._close=!C||C===2&&!!x,a(g)}}}class tp{constructor(){this.map=[]}add(n,t,r){np(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function np(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function rp(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function ip(){return{flow:{null:{name:"table",tokenize:lp,resolveAll:op}}}}function lp(e,n,t){const r=this;let i=0,o=0,l;return a;function a(k){let T=r.events.length-1;for(;T>-1;){const P=r.events[T][1].type;if(P==="lineEnding"||P==="linePrefix")T--;else break}const z=T>-1?r.events[T][1].type:null,W=z==="tableHead"||z==="tableRow"?b:s;return W===b&&r.parser.lazy[r.now().line]?t(k):W(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):L(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):t(k):$(k)?U(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||G(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?h:c)}function h(k){return k===92||k===124?(e.consume(k),c):c(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,$(k)?U(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):g(k))}function g(k){return k===45||k===58?S(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),C):D(k)}function C(k){return $(k)?U(e,S,"whitespace")(k):S(k)}function S(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||L(k)?j(k):D(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),E(k)):D(k)}function E(k){return k===45?(e.consume(k),E):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(k))}function _(k){return $(k)?U(e,j,"whitespace")(k):j(k)}function j(k){return k===124?g(k):k===null||L(k)?!l||i!==o?D(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):D(k)}function D(k){return t(k)}function b(k){return e.enter("tableRow"),F(k)}function F(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),F):k===null||L(k)?(e.exit("tableRow"),n(k)):$(k)?U(e,F,"whitespace")(k):(e.enter("data"),H(k))}function H(k){return k===null||k===124||G(k)?(e.exit("data"),F(k)):(e.consume(k),k===92?B:H)}function B(k){return k===92||k===124?(e.consume(k),H):H(k)}}function op(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,f,c;const h=new tp;for(;++t<e.length;){const p=e[t],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,s!==0&&(Sr(h,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(t,0,[["enter",u,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=mt(h,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=mt(h,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,s=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=t,o[1]!==0?(l[0]=l[1],c=mt(h,n,o,i,t,c)):l[1]!==0&&(c=mt(h,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&Sr(h,n,s,u,f),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=rp(n.events,t))}return e}function mt(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},He(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const s=He(n.events,t[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const u=He(n.events,t[2]),f=He(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,C=t[3]-t[2]-1;e.add(g,C,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},He(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Sr(e,n,t,r,i){const o=[],l=He(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function He(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ap={name:"tasklistCheck",tokenize:up};function sp(){return{text:{91:ap}}}function up(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return G(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return L(s)?n(s):$(s)?e.check({tokenize:cp},n,t)(s):t(s)}}function cp(e,n,t){return U(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function fp(e){return Qr([Mf(),Wf(),ep(e),ip(),sp()])}const pp={};function hp(e){const n=this,t=e||pp,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(fp(t)),o.push(jf()),l.push(Lf(t))}const dp="_wrapper_izvjy_1",mp="_table_izvjy_15",gp="_th_izvjy_27",yp="_tr_izvjy_47",xp="_td_izvjy_63",Ze={wrapper:dp,table:mp,th:gp,tr:yp,td:xp};function Oi({part:e}){return y.jsx("div",{className:Ze.wrapper,children:y.jsxs("table",{className:Ze.table,children:[y.jsx("thead",{children:y.jsx("tr",{children:e.columns.map(n=>y.jsx("th",{className:Ze.th,children:n},n))})}),y.jsx("tbody",{children:e.rows.map((n,t)=>y.jsx("tr",{className:Ze.tr,children:e.columns.map(r=>y.jsx("td",{className:Ze.td,children:String(n[r]??"")},r))},t))})]})})}const kp="_card_1gzm6_1",bp="_header_1gzm6_17",wp="_icon_1gzm6_31",Cp="_title_1gzm6_45",Sp="_description_1gzm6_57",vp="_cardResolved_1gzm6_71",_p="_resolvedBadge_1gzm6_79",Ap="_actions_1gzm6_101",Ep="_confirm_1gzm6_111",Ip="_cancel_1gzm6_143",ge={card:kp,header:bp,icon:wp,title:Cp,description:Sp,cardResolved:vp,resolvedBadge:_p,actions:Ap,confirm:Ep,cancel:Ip};function Bi({part:e,onConfirm:n,onCancel:t}){const r=Ie(),{proposal:i}=e,o=i.resolved==="confirmed"?r.proposalConfirmed:i.resolved==="cancelled"?r.proposalCancelled:i.resolved==="expired"?r.proposalExpired:null;return y.jsxs("div",{className:i.resolved?`${ge.card} ${ge.cardResolved}`:ge.card,children:[y.jsxs("div",{className:ge.header,children:[y.jsx("svg",{className:ge.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z"})}),y.jsx("span",{className:ge.title,children:i.title})]}),i.description&&y.jsx("p",{className:ge.description,children:i.description}),o?y.jsx("span",{className:ge.resolvedBadge,children:o}):y.jsxs("div",{className:ge.actions,children:[y.jsx("button",{className:ge.confirm,onClick:()=>n(i.id,i.payload),children:i.confirmLabel??r.proposalConfirm}),y.jsx("button",{className:ge.cancel,onClick:()=>t(i.id),children:i.cancelLabel??r.proposalCancel})]})]})}const Tp="_activity_1661l_1",zp="_indicator_1661l_25",Pp="_content_1661l_71",jp="_title_1661l_79",Lp="_description_1661l_89",et={activity:Tp,indicator:zp,content:Pp,title:jp,description:Lp};function $i({part:e}){return y.jsxs("div",{className:et.activity,"data-status":e.status,children:[y.jsx("span",{className:et.indicator,"aria-hidden":"true"}),y.jsxs("div",{className:et.content,children:[y.jsx("div",{className:et.title,children:e.title}),e.description&&y.jsx("div",{className:et.description,children:e.description})]})]})}const Dp="_card_jwkcu_1",Np="_cardClickable_jwkcu_14",Mp="_header_jwkcu_24",Rp="_title_jwkcu_30",Fp="_subtitle_jwkcu_36",Op="_fields_jwkcu_41",Bp="_fieldRow_jwkcu_48",$p="_fieldLabel_jwkcu_55",Hp="_fieldValue_jwkcu_61",qp="_badge_jwkcu_68",Vp="_badgeSuccess_jwkcu_76",Up="_badgeWarning_jwkcu_81",Wp="_badgeDanger_jwkcu_86",Yp="_badgeNeutral_jwkcu_91",oe={card:Dp,cardClickable:Np,header:Mp,title:Rp,subtitle:Fp,fields:Op,fieldRow:Bp,fieldLabel:$p,fieldValue:Hp,badge:qp,badgeSuccess:Vp,badgeWarning:Up,badgeDanger:Wp,badgeNeutral:Yp},Qp={success:oe.badgeSuccess,warning:oe.badgeWarning,danger:oe.badgeDanger,neutral:oe.badgeNeutral};function En({part:e,onEntityClick:n}){const{entity:t,entityType:r}=e,i=n!==void 0,o=y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:oe.header,children:[y.jsx("span",{className:oe.title,children:t.title}),t.subtitle&&y.jsx("span",{className:oe.subtitle,children:t.subtitle})]}),t.fields&&t.fields.length>0&&y.jsx("dl",{className:oe.fields,children:t.fields.map((l,a)=>y.jsxs("div",{className:oe.fieldRow,children:[y.jsx("dt",{className:oe.fieldLabel,children:l.label}),y.jsx("dd",{className:oe.fieldValue,children:l.badge?y.jsx("span",{className:`${oe.badge} ${Qp[l.badge]}`,children:l.value}):l.value})]},a))})]});return i?y.jsx("button",{type:"button",className:`${oe.card} ${oe.cardClickable}`,onClick:()=>n(t,r),children:o}):y.jsx("div",{className:oe.card,children:o})}const Jp="_list_a2maw_1",Xp="_listTitle_a2maw_11",vr={list:Jp,listTitle:Xp};function Hi({part:e,onEntityClick:n}){return y.jsxs("div",{className:vr.list,children:[e.title&&y.jsx("span",{className:vr.listTitle,children:e.title}),e.entities.map((t,r)=>y.jsx(En,{part:{type:"entity",entity:t,entityType:e.entityType},onEntityClick:n},t.id??r))]})}const Gp="_markdown_sznoh_1",Kp="_unknownPart_sznoh_167",Zp="_errorText_sznoh_195",eh="_errorIcon_sznoh_211",gt={markdown:Gp,unknownPart:Kp,errorText:Zp,errorIcon:eh};function qi({part:e,onProposalConfirm:n,onProposalCancel:t,onEntityClick:r,renderPart:i}){if(i){const o=i(e);if(o!=null)return y.jsx(y.Fragment,{children:o})}switch(e.type){case"text":return y.jsx("div",{className:gt.markdown,children:y.jsx(Zu,{remarkPlugins:[hp],children:e.text})});case"table":return y.jsx(Oi,{part:e});case"activity":return y.jsx($i,{part:e});case"proposal":return y.jsx(Bi,{part:e,onConfirm:n,onCancel:t});case"entity":return y.jsx(En,{part:e,onEntityClick:r});case"entity-list":return y.jsx(Hi,{part:e,onEntityClick:r});case"error":return y.jsxs("span",{className:gt.errorText,children:[y.jsx($l,{className:gt.errorIcon}),e.message]});default:return globalThis.process?.env?.NODE_ENV!=="production"?y.jsxs("div",{className:gt.unknownPart,children:["Unhandled part type: ",y.jsx("code",{children:e.type})," — pass a"," ",y.jsx("code",{children:"renderPart"})," prop to render it."]}):null}}const th="_wrapper_1q20p_1",nh="_user_1q20p_8",rh="_assistant_1q20p_12",ih="_avatar_1q20p_16",lh="_content_1q20p_43",oh="_bubble_1q20p_51",ah="_card_1q20p_70",sh="_empty_1q20p_92",xe={wrapper:th,user:nh,assistant:rh,avatar:ih,content:lh,bubble:oh,card:ah,empty:sh},uh=new Set(["text","error","activity"]);function Vi(e){return!uh.has(e.type)}function ch(e){const n=[];return e.forEach((t,r)=>{const i=Vi(t),o=n[n.length-1];if(o&&!i&&!o.card){o.parts.push({part:t,index:r});return}n.push({card:i,parts:[{part:t,index:r}]})}),n}function Ui({message:e,onProposalConfirm:n,onProposalCancel:t,onEntityClick:r,assistantIcon:i,renderPart:o}){const l=Ie(),a=e.role==="user",s=(f,c)=>y.jsx(qi,{part:f,onProposalConfirm:n,onProposalCancel:t,onEntityClick:r,renderPart:o},c),u=e.parts.some(Vi);return y.jsxs("div",{className:`${xe.wrapper} ${a?xe.user:xe.assistant}`,children:[!a&&y.jsx("div",{className:xe.avatar,"aria-hidden":"true",children:i??y.jsx(jr,{})}),u?y.jsx("div",{className:xe.content,children:ch(e.parts).map((f,c)=>y.jsx("div",{className:f.card?xe.card:xe.bubble,"data-juneau-segment":f.card?"card":"bubble",children:f.parts.map(({part:h,index:p})=>s(h,p))},c))}):y.jsxs("div",{className:xe.bubble,"data-juneau-segment":"bubble",children:[e.parts.map((f,c)=>s(f,c)),e.parts.length===0&&y.jsx("span",{className:xe.empty})]}),a&&y.jsx("div",{className:xe.avatar,children:l.userLabel})]})}const fh="_wrapper_1oco7_1",ph="_dot_1oco7_15",hh="_connectingLabel_1oco7_37",tt={wrapper:fh,dot:ph,connectingLabel:hh};function Wi({connecting:e=!1}){const n=Ie();return y.jsxs("div",{className:tt.wrapper,"aria-label":e?n.connectingMessage:n.typingMessage,children:[y.jsx("span",{className:tt.dot}),y.jsx("span",{className:tt.dot}),y.jsx("span",{className:tt.dot}),e&&y.jsx("span",{className:tt.connectingLabel,children:n.connectingMessage})]})}const dh="_list_ixto8_1",mh="_empty_ixto8_21",gh="_hint_ixto8_47",yh="_typing_ixto8_61",yt={list:dh,empty:mh,hint:gh,typing:yh};function Yi({messages:e,isLoading:n,isConnecting:t,onProposalConfirm:r,onProposalCancel:i,onEntityClick:o,assistantIcon:l,renderPart:a}){const s=Ie(),u=q.useRef(null);return q.useEffect(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[e,n]),y.jsxs("div",{className:yt.list,children:[e.length===0&&y.jsxs("div",{className:yt.empty,children:[y.jsx("p",{children:s.emptyStateText}),y.jsx("p",{className:yt.hint,children:y.jsx("em",{children:s.emptyStateHint})})]}),e.map(f=>y.jsx(Ui,{message:f,onProposalConfirm:r,onProposalCancel:i,onEntityClick:o,assistantIcon:l,renderPart:a},f.id)),n&&y.jsx("div",{className:yt.typing,children:y.jsx(Wi,{connecting:t})}),y.jsx("div",{ref:u})]})}const xh="_wrapper_ehrkb_1",kh="_textarea_ehrkb_21",bh="_toolbar_ehrkb_69",wh="_actions_ehrkb_89",Ch="_actionBtn_ehrkb_103",Sh="_sendBtn_ehrkb_169",vh="_spinnerIcon_ehrkb_231",_h="_stopBtn_ehrkb_251",Ah="_stopIcon_ehrkb_297",Se={wrapper:xh,textarea:kh,toolbar:bh,actions:wh,actionBtn:Ch,sendBtn:Sh,spinnerIcon:vh,stopBtn:_h,stopIcon:Ah};function Qi({value:e,onChange:n,onSend:t,onStop:r,isLoading:i,placeholder:o,actions:l,sendIcon:a}){const s=Ie(),u=q.useRef(null),f=q.useRef(!1);q.useEffect(()=>{f.current&&!i&&u.current?.focus(),f.current=i},[i]);const c=[{icon:y.jsx(Dl,{}),label:s.actionAddFile},{icon:y.jsx(Nl,{}),label:s.actionQuickActions},{icon:y.jsx(Ml,{}),label:s.actionNew},{icon:y.jsx(Rl,{}),label:s.actionHistory},{icon:y.jsx(Fl,{}),label:s.actionRules}],h=l??c,p=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),i||t())};return y.jsxs("div",{className:Se.wrapper,children:[y.jsx("textarea",{ref:u,className:Se.textarea,value:e,onChange:g=>n(g.target.value),onKeyDown:p,placeholder:o??s.inputPlaceholder,rows:3,"aria-label":s.sendMessage}),y.jsxs("div",{className:Se.toolbar,children:[h.length>0&&y.jsx("div",{className:Se.actions,children:h.map((g,C)=>y.jsxs("button",{className:Se.actionBtn,type:"button",disabled:i,"aria-label":g.label,onClick:g.onClick,children:[g.icon,y.jsx("span",{children:g.label})]},C))}),i&&r?y.jsxs("button",{className:Se.stopBtn,onClick:r,"aria-label":s.stopMessage,type:"button",children:[y.jsx("svg",{className:Se.stopIcon,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:y.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),y.jsx("span",{children:s.stopMessage})]}):y.jsxs("button",{className:Se.sendBtn,onClick:t,disabled:i||!e.trim(),"aria-label":s.sendMessage,type:"button",children:[i?y.jsx("svg",{className:Se.spinnerIcon,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:y.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"12"})}):a??y.jsx(Ll,{}),y.jsx("span",{children:s.sendMessage})]})]})]})}const Eh="_wrapper_1e3w5_1",Ih="_icon_1e3w5_27",Th="_message_1e3w5_39",zh="_dismiss_1e3w5_47",xt={wrapper:Eh,icon:Ih,message:Th,dismiss:zh};function Ji({message:e,onDismiss:n}){const t=Ie();return y.jsxs("div",{className:xt.wrapper,role:"alert",children:[y.jsx("svg",{className:xt.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),y.jsx("span",{className:xt.message,children:e}),n&&y.jsx("button",{className:xt.dismiss,onClick:n,"aria-label":t.errorDismiss,children:y.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})})})]})}const Ph="_chat_13051_1",jh={chat:Ph};function Xi({messages:e,input:n,isLoading:t,isConnecting:r,error:i,onInputChange:o,onSend:l,onStop:a,onProposalConfirm:s,onProposalCancel:u,onEntityClick:f,placeholder:c,assistantIcon:h,actions:p,sendIcon:g,renderPart:C,className:S,style:x}){return y.jsxs("div",{className:[jh.chat,S].filter(Boolean).join(" "),style:x,children:[y.jsx(Yi,{messages:e,isLoading:t,isConnecting:r,onProposalConfirm:s,onProposalCancel:u,onEntityClick:f,assistantIcon:h,renderPart:C}),i&&y.jsx(Ji,{message:i}),y.jsx(Qi,{value:n,onChange:o,onSend:l,onStop:a,isLoading:t,placeholder:c,actions:p,sendIcon:g})]})}const Lh="_header_1saak_1",Dh="_left_1saak_23",Nh="_icon_1saak_35",Mh="_title_1saak_45",Rh="_resetBtn_1saak_57",Fh="_actions_1saak_99",Le={header:Lh,left:Dh,icon:Nh,title:Mh,resetBtn:Rh,actions:Fh};function Oh({title:e,onMinimize:n,isMinimized:t,icon:r,onReset:i,headerActions:o}){const l=Ie();return y.jsxs("div",{className:Le.header,children:[y.jsxs("div",{className:Le.left,children:[y.jsx("span",{className:Le.icon,"aria-hidden":"true",children:r??y.jsx(jr,{})}),y.jsx("span",{className:Le.title,children:e??l.sidebarTitle})]}),(n||i||o)&&y.jsxs("div",{className:Le.actions,children:[o,i&&y.jsx("button",{className:Le.resetBtn,onClick:i,title:l.resetConversation,"aria-label":l.resetConversation,children:"↺"}),n&&y.jsx("button",{className:Le.resetBtn,onClick:n,title:t?l.expandSidebar:l.minimizeSidebar,"aria-label":t?l.expandSidebar:l.minimizeSidebar,children:t?y.jsx(Bl,{}):y.jsx(Ol,{})})]})]})}const Bh="_sidebar_u9ybt_1",$h="_minimized_u9ybt_39",_r={sidebar:Bh,minimized:$h};function Hh({title:e,icon:n,actions:t,sendIcon:r,height:i="60vh",className:o,style:l,onReset:a,renderPart:s,onEntityClick:u,headerActions:f}){const[c,h]=q.useState(!1),{messages:p,input:g,setInput:C,sendMessage:S,stop:x,isLoading:E,isConnecting:_,error:j,reset:D,confirmProposal:b,cancelProposal:F}=Pr(),H=a?()=>{D(),a()}:void 0;return y.jsxs("aside",{className:[_r.sidebar,c?_r.minimized:"",o].filter(Boolean).join(" "),style:{height:c?void 0:i,...l},children:[y.jsx(Oh,{title:e,icon:n,onMinimize:()=>h(B=>!B),isMinimized:c,onReset:H,headerActions:f}),!c&&y.jsx(Xi,{messages:p,input:g,isLoading:E,isConnecting:_,error:j,onInputChange:C,onSend:S,onStop:x,onProposalConfirm:b,onProposalCancel:F,assistantIcon:n,actions:t,sendIcon:r,renderPart:s,onEntityClick:u})]})}const qh="_list_j7fvh_1",Vh="_item_j7fvh_19",Uh="_chat_j7fvh_31",Wh="_chatActive_j7fvh_71",Yh="_title_j7fvh_79",Qh="_date_j7fvh_99",Jh="_empty_j7fvh_163",ve={list:qh,item:Vh,chat:Uh,chatActive:Wh,title:Yh,date:Qh,delete:"_delete_j7fvh_111",empty:Jh};function Xh({chats:e,onSelect:n,activeChatId:t,onDelete:r}){const i=Ie();return e.length===0?y.jsx("p",{className:ve.empty,children:i.historyEmpty}):y.jsx("ul",{className:ve.list,children:e.map(o=>y.jsxs("li",{className:ve.item,children:[y.jsxs("button",{className:o.id===t?`${ve.chat} ${ve.chatActive}`:ve.chat,onClick:()=>n(o.id),children:[y.jsx("span",{className:ve.title,children:o.title}),y.jsx("span",{className:ve.date,children:o.updatedAt.toLocaleDateString(void 0,{day:"numeric",month:"short"})})]}),r&&y.jsx("button",{className:ve.delete,onClick:()=>r(o.id),"aria-label":i.historyDeleteChat,children:y.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})})})]},o.id))})}exports.AiActivityPart=$i;exports.AiChat=Xi;exports.AiChatContext=vt;exports.AiChatHistoryList=Xh;exports.AiChatProvider=Pl;exports.AiEntityCard=En;exports.AiEntityListPart=Hi;exports.AiError=Ji;exports.AiInput=Qi;exports.AiMessageBubble=Ui;exports.AiMessageList=Yi;exports.AiMessagePartRenderer=qi;exports.AiProposalCard=Bi;exports.AiSidebar=Hh;exports.AiTablePart=Oi;exports.AiTypingIndicator=Wi;exports.JuneauProvider=Il;exports.consumeStream=Yt;exports.createFetchStreamAdapter=Cl;exports.createSseAdapter=kl;exports.delay=K;exports.deserializeMessages=ul;exports.getMessageText=Er;exports.isProposalPart=on;exports.juneauCs=jl;exports.juneauEn=sn;exports.mockAdapter=fl;exports.parseJuneauWire=an;exports.serializeForStorage=al;exports.serializeMessages=Ar;exports.trimChats=cl;exports.trimHistory=Ir;exports.useAiChat=Tr;exports.useAiChatContext=Pr;exports.useAiChatContextSafe=zl;
|
|
57
|
+
`))}function s(p,g,C,S){const x=C.enter("tableCell"),E=C.enter("phrasing"),_=C.containerPhrasing(p,{...S,before:o,after:o});return E(),x(),_}function u(p,g){return $c(p,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(p,g,C){const S=p.children;let x=-1;const E=[],_=g.enter("table");for(;++x<S.length;)E[x]=c(S[x],g,C);return _(),E}function c(p,g,C){const S=p.children;let x=-1;const E=[],_=g.enter("tableRow");for(;++x<S.length;)E[x]=s(S[x],p,g,C);return _(),E}function h(p,g,C){let S=Pi.inlineCode(p,g,C);return C.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Tf(){return{exit:{taskListCheckValueChecked:Cr,taskListCheckValueUnchecked:Cr,paragraph:zf}}}function Pf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jf}}}function Cr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zf(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function jf(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let s=Pi.listItem(e,n,t,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function Lf(){return[cc(),zc(),Nc(),Cf(),Tf()]}function Df(e){return{extensions:[fc(),jc(e),Mc(),If(e),Pf()]}}const Nf={tokenize:$f,partial:!0},zi={tokenize:Hf,partial:!0},ji={tokenize:qf,partial:!0},Li={tokenize:Vf,partial:!0},Mf={tokenize:Uf,partial:!0},Di={name:"wwwAutolink",tokenize:Of,previous:Mi},Ni={name:"protocolAutolink",tokenize:Bf,previous:Ri},_e={name:"emailAutolink",tokenize:Ff,previous:Fi},be={};function Rf(){return{text:be}}let je=48;for(;je<123;)be[je]=_e,je++,je===58?je=65:je===91&&(je=97);be[43]=_e;be[45]=_e;be[46]=_e;be[95]=_e;be[72]=[_e,Ni];be[104]=[_e,Ni];be[87]=[_e,Di];be[119]=[_e,Di];function Ff(e,n,t){const r=this;let i,o;return l;function l(c){return!ln(c)||!Fi.call(r,r.previous)||An(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ln(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(Mf,f,u)(c):c===45||c===95||ie(c)?(o=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&ae(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Of(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Mi.call(r,r.previous)||An(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Nf,e.attempt(zi,e.attempt(ji,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Bf(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Ri.call(r,r.previous)&&!An(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ae(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):t(c)}function u(c){return c===null||bt(c)||G(c)||Me(c)||_t(c)?t(c):e.attempt(zi,e.attempt(ji,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function $f(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Hf(e,n,t){let r,i,o;return l;function l(u){return u===46||u===95?e.check(Li,s,a)(u):u===null||G(u)||Me(u)||u!==45&&_t(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?t(u):n(u)}}function qf(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Li,n,o)(l):l===null||G(l)||Me(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Vf(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||G(a)||Me(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||G(a)||Me(a)?n(a):r(a)}function o(a){return ae(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ae(a)?(e.consume(a),l):t(a)}}function Uf(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return ie(o)?t(o):n(o)}}function Mi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function Ri(e){return!ae(e)}function Fi(e){return!(e===47||ln(e))}function ln(e){return e===43||e===45||e===46||e===95||ie(e)}function An(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Wf={tokenize:ep,partial:!0};function Yf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gf,continuation:{tokenize:Kf},exit:Zf}},text:{91:{name:"gfmFootnoteCall",tokenize:Xf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Qf,resolveTo:Jf}}}}function Qf(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return t(s);const u=ye(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Jf(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Xf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!l||c===null||c===91||G(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return G(c)||(l=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Gf(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||G(g))return t(g);if(g===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return G(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),U(e,p,"gfmFootnoteDefinitionWhitespace")):t(g)}function p(g){return n(g)}}function Kf(e,n,t){return e.check(st,n,e.attempt(Wf,n,t))}function Zf(e){e.exit("gfmFootnoteDefinition")}function ep(e,n,t){const r=this;return U(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function tp(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},h=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&he(h,h.length,0,At(p,l.slice(u+1,s),a)),he(h,h.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),he(l,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const C=qe(u);if(g===126)return c>1?s(g):(l.consume(g),c++,p);if(c<2&&!t)return s(g);const S=l.exit("strikethroughSequenceTemporary"),x=qe(g);return S._open=!x||x===2&&!!C,S._close=!C||C===2&&!!x,a(g)}}}class np{constructor(){this.map=[]}add(n,t,r){rp(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function rp(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function ip(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function lp(){return{flow:{null:{name:"table",tokenize:op,resolveAll:ap}}}}function op(e,n,t){const r=this;let i=0,o=0,l;return a;function a(k){let T=r.events.length-1;for(;T>-1;){const z=r.events[T][1].type;if(z==="lineEnding"||z==="linePrefix")T--;else break}const P=T>-1?r.events[T][1].type:null,W=P==="tableHead"||P==="tableRow"?b:s;return W===b&&r.parser.lazy[r.now().line]?t(k):W(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):L(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):t(k):$(k)?U(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||G(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?h:c)}function h(k){return k===92||k===124?(e.consume(k),c):c(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,$(k)?U(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):g(k))}function g(k){return k===45||k===58?S(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),C):D(k)}function C(k){return $(k)?U(e,S,"whitespace")(k):S(k)}function S(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||L(k)?j(k):D(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),E(k)):D(k)}function E(k){return k===45?(e.consume(k),E):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(k))}function _(k){return $(k)?U(e,j,"whitespace")(k):j(k)}function j(k){return k===124?g(k):k===null||L(k)?!l||i!==o?D(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):D(k)}function D(k){return t(k)}function b(k){return e.enter("tableRow"),F(k)}function F(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),F):k===null||L(k)?(e.exit("tableRow"),n(k)):$(k)?U(e,F,"whitespace")(k):(e.enter("data"),H(k))}function H(k){return k===null||k===124||G(k)?(e.exit("data"),F(k)):(e.consume(k),k===92?B:H)}function B(k){return k===92||k===124?(e.consume(k),H):H(k)}}function ap(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,f,c;const h=new np;for(;++t<e.length;){const p=e[t],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,s!==0&&(Sr(h,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(t,0,[["enter",u,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=mt(h,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=mt(h,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,s=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=t,o[1]!==0?(l[0]=l[1],c=mt(h,n,o,i,t,c)):l[1]!==0&&(c=mt(h,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&Sr(h,n,s,u,f),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=ip(n.events,t))}return e}function mt(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},He(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const s=He(n.events,t[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const u=He(n.events,t[2]),f=He(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,C=t[3]-t[2]-1;e.add(g,C,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},He(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Sr(e,n,t,r,i){const o=[],l=He(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function He(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const sp={name:"tasklistCheck",tokenize:cp};function up(){return{text:{91:sp}}}function cp(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return G(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return L(s)?n(s):$(s)?e.check({tokenize:fp},n,t)(s):t(s)}}function fp(e,n,t){return U(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function pp(e){return Qr([Rf(),Yf(),tp(e),lp(),up()])}const hp={};function dp(e){const n=this,t=e||hp,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(pp(t)),o.push(Lf()),l.push(Df(t))}const mp="_wrapper_v5oy7_1",gp="_table_v5oy7_8",yp="_th_v5oy7_14",xp="_tr_v5oy7_24",kp="_td_v5oy7_32",Ze={wrapper:mp,table:gp,th:yp,tr:xp,td:kp};function Oi({part:e}){return y.jsx("div",{className:Ze.wrapper,children:y.jsxs("table",{className:Ze.table,children:[y.jsx("thead",{children:y.jsx("tr",{children:e.columns.map(n=>y.jsx("th",{className:Ze.th,children:n},n))})}),y.jsx("tbody",{children:e.rows.map((n,t)=>y.jsx("tr",{className:Ze.tr,children:e.columns.map(r=>y.jsx("td",{className:Ze.td,children:String(n[r]??"")},r))},t))})]})})}const bp="_card_83cdc_1",wp="_header_83cdc_9",Cp="_icon_83cdc_16",Sp="_title_83cdc_23",vp="_description_83cdc_29",_p="_cardResolved_83cdc_36",Ap="_resolvedBadge_83cdc_40",Ep="_actions_83cdc_51",Ip="_confirm_83cdc_56",Tp="_cancel_83cdc_72",ge={card:bp,header:wp,icon:Cp,title:Sp,description:vp,cardResolved:_p,resolvedBadge:Ap,actions:Ep,confirm:Ip,cancel:Tp};function Bi({part:e,onConfirm:n,onCancel:t}){const r=Ie(),{proposal:i}=e,o=i.resolved==="confirmed"?r.proposalConfirmed:i.resolved==="cancelled"?r.proposalCancelled:i.resolved==="expired"?r.proposalExpired:null;return y.jsxs("div",{className:i.resolved?`${ge.card} ${ge.cardResolved}`:ge.card,children:[y.jsxs("div",{className:ge.header,children:[y.jsx("svg",{className:ge.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M10 1a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1zM5.05 3.05a.75.75 0 011.06 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06zm9.9 0a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zM10 6a4 4 0 100 8 4 4 0 000-8zm-9 4a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5h-1.5A.75.75 0 011 10zm15.75-.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5h-1.5zM4.11 14.89a.75.75 0 010 1.06l-1.06 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm11.84 1.06a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 101.06 1.06l1.06-1.06zM10 17.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z"})}),y.jsx("span",{className:ge.title,children:i.title})]}),i.description&&y.jsx("p",{className:ge.description,children:i.description}),o?y.jsx("span",{className:ge.resolvedBadge,children:o}):y.jsxs("div",{className:ge.actions,children:[y.jsx("button",{className:ge.confirm,onClick:()=>n(i.id,i.payload),children:i.confirmLabel??r.proposalConfirm}),y.jsx("button",{className:ge.cancel,onClick:()=>t(i.id),children:i.cancelLabel??r.proposalCancel})]})]})}const Pp="_activity_2jjfs_1",zp="_indicator_2jjfs_13",jp="_content_2jjfs_36",Lp="_title_2jjfs_40",Dp="_description_2jjfs_45",et={activity:Pp,indicator:zp,content:jp,title:Lp,description:Dp};function $i({part:e}){return y.jsxs("div",{className:et.activity,"data-status":e.status,children:[y.jsx("span",{className:et.indicator,"aria-hidden":"true"}),y.jsxs("div",{className:et.content,children:[y.jsx("div",{className:et.title,children:e.title}),e.description&&y.jsx("div",{className:et.description,children:e.description})]})]})}const Np="_card_jwkcu_1",Mp="_cardClickable_jwkcu_14",Rp="_header_jwkcu_24",Fp="_title_jwkcu_30",Op="_subtitle_jwkcu_36",Bp="_fields_jwkcu_41",$p="_fieldRow_jwkcu_48",Hp="_fieldLabel_jwkcu_55",qp="_fieldValue_jwkcu_61",Vp="_badge_jwkcu_68",Up="_badgeSuccess_jwkcu_76",Wp="_badgeWarning_jwkcu_81",Yp="_badgeDanger_jwkcu_86",Qp="_badgeNeutral_jwkcu_91",oe={card:Np,cardClickable:Mp,header:Rp,title:Fp,subtitle:Op,fields:Bp,fieldRow:$p,fieldLabel:Hp,fieldValue:qp,badge:Vp,badgeSuccess:Up,badgeWarning:Wp,badgeDanger:Yp,badgeNeutral:Qp},Jp={success:oe.badgeSuccess,warning:oe.badgeWarning,danger:oe.badgeDanger,neutral:oe.badgeNeutral};function En({part:e,onEntityClick:n}){const{entity:t,entityType:r}=e,i=n!==void 0,o=y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:oe.header,children:[y.jsx("span",{className:oe.title,children:t.title}),t.subtitle&&y.jsx("span",{className:oe.subtitle,children:t.subtitle})]}),t.fields&&t.fields.length>0&&y.jsx("dl",{className:oe.fields,children:t.fields.map((l,a)=>y.jsxs("div",{className:oe.fieldRow,children:[y.jsx("dt",{className:oe.fieldLabel,children:l.label}),y.jsx("dd",{className:oe.fieldValue,children:l.badge?y.jsx("span",{className:`${oe.badge} ${Jp[l.badge]}`,children:l.value}):l.value})]},a))})]});return i?y.jsx("button",{type:"button",className:`${oe.card} ${oe.cardClickable}`,onClick:()=>n(t,r),children:o}):y.jsx("div",{className:oe.card,children:o})}const Xp="_list_a2maw_1",Gp="_listTitle_a2maw_11",vr={list:Xp,listTitle:Gp};function Hi({part:e,onEntityClick:n}){return y.jsxs("div",{className:vr.list,children:[e.title&&y.jsx("span",{className:vr.listTitle,children:e.title}),e.entities.map((t,r)=>y.jsx(En,{part:{type:"entity",entity:t,entityType:e.entityType},onEntityClick:n},t.id??r))]})}const Kp="_markdown_1yi3y_1",Zp="_unknownPart_1yi3y_84",eh="_errorText_1yi3y_98",th="_errorIcon_1yi3y_106",gt={markdown:Kp,unknownPart:Zp,errorText:eh,errorIcon:th};function qi({part:e,onProposalConfirm:n,onProposalCancel:t,onEntityClick:r,renderPart:i}){if(i){const o=i(e);if(o!=null)return y.jsx(y.Fragment,{children:o})}switch(e.type){case"text":return y.jsx("div",{className:gt.markdown,children:y.jsx(ec,{remarkPlugins:[dp],children:e.text})});case"table":return y.jsx(Oi,{part:e});case"activity":return y.jsx($i,{part:e});case"proposal":return y.jsx(Bi,{part:e,onConfirm:n,onCancel:t});case"entity":return y.jsx(En,{part:e,onEntityClick:r});case"entity-list":return y.jsx(Hi,{part:e,onEntityClick:r});case"error":return y.jsxs("span",{className:gt.errorText,children:[y.jsx(Hl,{className:gt.errorIcon}),e.message]});default:return globalThis.process?.env?.NODE_ENV!=="production"?y.jsxs("div",{className:gt.unknownPart,children:["Unhandled part type: ",y.jsx("code",{children:e.type})," — pass a"," ",y.jsx("code",{children:"renderPart"})," prop to render it."]}):null}}const nh="_wrapper_1q20p_1",rh="_user_1q20p_8",ih="_assistant_1q20p_12",lh="_avatar_1q20p_16",oh="_content_1q20p_43",ah="_bubble_1q20p_51",sh="_card_1q20p_70",uh="_empty_1q20p_92",xe={wrapper:nh,user:rh,assistant:ih,avatar:lh,content:oh,bubble:ah,card:sh,empty:uh},ch=new Set(["text","error","activity"]);function Vi(e){return!ch.has(e.type)}function fh(e){const n=[];return e.forEach((t,r)=>{const i=Vi(t),o=n[n.length-1];if(o&&!i&&!o.card){o.parts.push({part:t,index:r});return}n.push({card:i,parts:[{part:t,index:r}]})}),n}function Ui({message:e,onProposalConfirm:n,onProposalCancel:t,onEntityClick:r,assistantIcon:i,renderPart:o}){const l=Ie(),a=e.role==="user",s=(f,c)=>y.jsx(qi,{part:f,onProposalConfirm:n,onProposalCancel:t,onEntityClick:r,renderPart:o},c),u=e.parts.some(Vi);return y.jsxs("div",{className:`${xe.wrapper} ${a?xe.user:xe.assistant}`,children:[!a&&y.jsx("div",{className:xe.avatar,"aria-hidden":"true",children:i??y.jsx(jr,{})}),u?y.jsx("div",{className:xe.content,children:fh(e.parts).map((f,c)=>y.jsx("div",{className:f.card?xe.card:xe.bubble,"data-juneau-segment":f.card?"card":"bubble",children:f.parts.map(({part:h,index:p})=>s(h,p))},c))}):y.jsxs("div",{className:xe.bubble,"data-juneau-segment":"bubble",children:[e.parts.map((f,c)=>s(f,c)),e.parts.length===0&&y.jsx("span",{className:xe.empty})]}),a&&y.jsx("div",{className:xe.avatar,children:l.userLabel})]})}const ph="_wrapper_1dvvu_1",hh="_dot_1dvvu_8",dh="_connectingLabel_1dvvu_19",tt={wrapper:ph,dot:hh,connectingLabel:dh};function Wi({connecting:e=!1}){const n=Ie();return y.jsxs("div",{className:tt.wrapper,"aria-label":e?n.connectingMessage:n.typingMessage,children:[y.jsx("span",{className:tt.dot}),y.jsx("span",{className:tt.dot}),y.jsx("span",{className:tt.dot}),e&&y.jsx("span",{className:tt.connectingLabel,children:n.connectingMessage})]})}const mh="_list_1f8gn_1",gh="_empty_1f8gn_11",yh="_hint_1f8gn_24",xh="_typing_1f8gn_31",yt={list:mh,empty:gh,hint:yh,typing:xh};function Yi({messages:e,isLoading:n,isConnecting:t,onProposalConfirm:r,onProposalCancel:i,onEntityClick:o,assistantIcon:l,renderPart:a}){const s=Ie(),u=q.useRef(null);return q.useEffect(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[e,n]),y.jsxs("div",{className:yt.list,children:[e.length===0&&y.jsxs("div",{className:yt.empty,children:[y.jsx("p",{children:s.emptyStateText}),y.jsx("p",{className:yt.hint,children:y.jsx("em",{children:s.emptyStateHint})})]}),e.map(f=>y.jsx(Ui,{message:f,onProposalConfirm:r,onProposalCancel:i,onEntityClick:o,assistantIcon:l,renderPart:a},f.id)),n&&y.jsx("div",{className:yt.typing,children:y.jsx(Wi,{connecting:t})}),y.jsx("div",{ref:u})]})}const kh="_wrapper_v8iyr_1",bh="_textarea_v8iyr_11",wh="_toolbar_v8iyr_35",Ch="_actions_v8iyr_45",Sh="_actionBtn_v8iyr_52",vh="_sendBtn_v8iyr_85",_h="_spinnerIcon_v8iyr_116",Ah="_stopBtn_v8iyr_126",Eh="_stopIcon_v8iyr_149",Se={wrapper:kh,textarea:bh,toolbar:wh,actions:Ch,actionBtn:Sh,sendBtn:vh,spinnerIcon:_h,stopBtn:Ah,stopIcon:Eh};function Qi({value:e,onChange:n,onSend:t,onStop:r,isLoading:i,placeholder:o,actions:l,sendIcon:a}){const s=Ie(),u=q.useRef(null),f=q.useRef(!1);q.useEffect(()=>{f.current&&!i&&u.current?.focus(),f.current=i},[i]);const c=[{icon:y.jsx(Nl,{}),label:s.actionAddFile},{icon:y.jsx(Ml,{}),label:s.actionQuickActions},{icon:y.jsx(Rl,{}),label:s.actionNew},{icon:y.jsx(Fl,{}),label:s.actionHistory},{icon:y.jsx(Ol,{}),label:s.actionRules}],h=l??c,p=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),i||t())};return y.jsxs("div",{className:Se.wrapper,children:[y.jsx("textarea",{ref:u,className:Se.textarea,value:e,onChange:g=>n(g.target.value),onKeyDown:p,placeholder:o??s.inputPlaceholder,rows:3,"aria-label":s.sendMessage}),y.jsxs("div",{className:Se.toolbar,children:[h.length>0&&y.jsx("div",{className:Se.actions,children:h.map((g,C)=>y.jsxs("button",{className:Se.actionBtn,type:"button",disabled:i,"aria-label":g.label,onClick:g.onClick,children:[g.icon,y.jsx("span",{children:g.label})]},C))}),i&&r?y.jsxs("button",{className:Se.stopBtn,onClick:r,"aria-label":s.stopMessage,type:"button",children:[y.jsx("svg",{className:Se.stopIcon,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:y.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),y.jsx("span",{children:s.stopMessage})]}):y.jsxs("button",{className:Se.sendBtn,onClick:t,disabled:i||!e.trim(),"aria-label":s.sendMessage,type:"button",children:[i?y.jsx("svg",{className:Se.spinnerIcon,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:y.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"32",strokeDashoffset:"12"})}):a??y.jsx(Dl,{}),y.jsx("span",{children:s.sendMessage})]})]})]})}const Ih="_wrapper_1kefv_1",Th="_icon_1kefv_14",Ph="_message_1kefv_20",zh="_dismiss_1kefv_24",xt={wrapper:Ih,icon:Th,message:Ph,dismiss:zh};function Ji({message:e,onDismiss:n}){const t=Ie();return y.jsxs("div",{className:xt.wrapper,role:"alert",children:[y.jsx("svg",{className:xt.icon,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),y.jsx("span",{className:xt.message,children:e}),n&&y.jsx("button",{className:xt.dismiss,onClick:n,"aria-label":t.errorDismiss,children:y.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})})})]})}const jh="_chat_1acbe_1",Lh={chat:jh};function Xi({messages:e,input:n,isLoading:t,isConnecting:r,error:i,onInputChange:o,onSend:l,onStop:a,onProposalConfirm:s,onProposalCancel:u,onEntityClick:f,placeholder:c,assistantIcon:h,actions:p,sendIcon:g,renderPart:C,className:S,style:x}){return y.jsxs("div",{className:[Lh.chat,S].filter(Boolean).join(" "),style:x,children:[y.jsx(Yi,{messages:e,isLoading:t,isConnecting:r,onProposalConfirm:s,onProposalCancel:u,onEntityClick:f,assistantIcon:h,renderPart:C}),i&&y.jsx(Ji,{message:i}),y.jsx(Qi,{value:n,onChange:o,onSend:l,onStop:a,isLoading:t,placeholder:c,actions:p,sendIcon:g})]})}const Dh="_header_f9hy1_1",Nh="_left_f9hy1_12",Mh="_icon_f9hy1_18",Rh="_title_f9hy1_23",Fh="_resetBtn_f9hy1_29",Oh="_actions_f9hy1_50",Le={header:Dh,left:Nh,icon:Mh,title:Rh,resetBtn:Fh,actions:Oh};function Gi({title:e,onMinimize:n,isMinimized:t,icon:r,onReset:i,headerActions:o}){const l=Ie();return y.jsxs("div",{className:Le.header,children:[y.jsxs("div",{className:Le.left,children:[y.jsx("span",{className:Le.icon,"aria-hidden":"true",children:r??y.jsx(jr,{})}),y.jsx("span",{className:Le.title,children:e??l.sidebarTitle})]}),(n||i||o)&&y.jsxs("div",{className:Le.actions,children:[o,i&&y.jsx("button",{className:Le.resetBtn,onClick:i,title:l.resetConversation,"aria-label":l.resetConversation,children:"↺"}),n&&y.jsx("button",{className:Le.resetBtn,onClick:n,title:t?l.expandSidebar:l.minimizeSidebar,"aria-label":t?l.expandSidebar:l.minimizeSidebar,children:t?y.jsx($l,{}):y.jsx(Bl,{})})]})]})}const Bh="_sidebar_17ski_1",$h="_minimized_17ski_20",_r={sidebar:Bh,minimized:$h};function Hh({title:e,icon:n,actions:t,sendIcon:r,height:i="60vh",className:o,style:l,onReset:a,renderPart:s,onEntityClick:u,headerActions:f}){const[c,h]=q.useState(!1),{messages:p,input:g,setInput:C,sendMessage:S,stop:x,isLoading:E,isConnecting:_,error:j,reset:D,confirmProposal:b,cancelProposal:F}=zr(),H=a?()=>{D(),a()}:void 0;return y.jsxs("aside",{className:[_r.sidebar,c?_r.minimized:"",o].filter(Boolean).join(" "),style:{height:c?void 0:i,...l},children:[y.jsx(Gi,{title:e,icon:n,onMinimize:()=>h(B=>!B),isMinimized:c,onReset:H,headerActions:f}),!c&&y.jsx(Xi,{messages:p,input:g,isLoading:E,isConnecting:_,error:j,onInputChange:C,onSend:S,onStop:x,onProposalConfirm:b,onProposalCancel:F,assistantIcon:n,actions:t,sendIcon:r,renderPart:s,onEntityClick:u})]})}const qh="_list_180ms_1",Vh="_item_180ms_10",Uh="_chat_180ms_16",Wh="_chatActive_180ms_36",Yh="_title_180ms_40",Qh="_date_180ms_50",Jh="_empty_180ms_82",ve={list:qh,item:Vh,chat:Uh,chatActive:Wh,title:Yh,date:Qh,delete:"_delete_180ms_56",empty:Jh};function Xh({chats:e,onSelect:n,activeChatId:t,onDelete:r}){const i=Ie();return e.length===0?y.jsx("p",{className:ve.empty,children:i.historyEmpty}):y.jsx("ul",{className:ve.list,children:e.map(o=>y.jsxs("li",{className:ve.item,children:[y.jsxs("button",{className:o.id===t?`${ve.chat} ${ve.chatActive}`:ve.chat,onClick:()=>n(o.id),children:[y.jsx("span",{className:ve.title,children:o.title}),y.jsx("span",{className:ve.date,children:o.updatedAt.toLocaleDateString(void 0,{day:"numeric",month:"short"})})]}),r&&y.jsx("button",{className:ve.delete,onClick:()=>r(o.id),"aria-label":i.historyDeleteChat,children:y.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})})})]},o.id))})}exports.AiActivityPart=$i;exports.AiChat=Xi;exports.AiChatContext=vt;exports.AiChatHeader=Gi;exports.AiChatHistoryList=Xh;exports.AiChatProvider=jl;exports.AiEntityCard=En;exports.AiEntityListPart=Hi;exports.AiError=Ji;exports.AiInput=Qi;exports.AiMessageBubble=Ui;exports.AiMessageList=Yi;exports.AiMessagePartRenderer=qi;exports.AiProposalCard=Bi;exports.AiSidebar=Hh;exports.AiTablePart=Oi;exports.AiTypingIndicator=Wi;exports.JuneauProvider=Tl;exports.consumeStream=Yt;exports.createFetchStreamAdapter=Sl;exports.createSseAdapter=bl;exports.delay=K;exports.deserializeMessages=cl;exports.getMessageText=Er;exports.isProposalPart=on;exports.juneauCs=Ll;exports.juneauEn=sn;exports.mockAdapter=pl;exports.parseJuneauWire=an;exports.serializeForStorage=sl;exports.serializeMessages=Ar;exports.trimChats=fl;exports.trimHistory=Ir;exports.useAiChat=Tr;exports.useAiChatContext=zr;exports.useAiChatContextSafe=zl;
|
|
58
58
|
//# sourceMappingURL=index.cjs.map
|