@shawnstack/quickforge 1.7.11 → 1.8.0
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/README.md +1 -1
- package/dist/assets/AgentProfilesPage-lKGIE5Dj.js +1 -0
- package/dist/assets/ChatPanelHost-CWUYIkXG.js +11 -0
- package/dist/assets/CloudAccountSettingsPage-BhXH0ups.js +1 -0
- package/dist/assets/{PluginsPage-mLvwvTmL.js → PluginsPage-DHWF13mN.js} +1 -1
- package/dist/assets/ScheduledTasksPage-DLAg-i8c.js +2 -0
- package/dist/assets/{SettingsWorkspacePage-0OINfEqK.js → SettingsWorkspacePage-BhUzL5oi.js} +313 -313
- package/dist/assets/ShareLinksSettingsPage-DogGa3lH.js +1 -0
- package/dist/assets/SharedConversationPage-7QpeaG_P.js +1 -0
- package/dist/assets/TerminalDock-CWSKcuiU.js +2 -0
- package/dist/assets/WorkspaceInspector-CEfyYqWy.js +36 -0
- package/dist/assets/{abnfDiagram-VRR7QNED-CMhVoYUh.js → abnfDiagram-VRR7QNED-DGklo3PO.js} +1 -1
- package/dist/assets/{architectureDiagram-ZJ3FMSHR-C52qL6Hg.js → architectureDiagram-ZJ3FMSHR-CioWLVTp.js} +1 -1
- package/dist/assets/{blockDiagram-677ZJIJ3-CM3XbLol.js → blockDiagram-677ZJIJ3-BJWBq5e9.js} +1 -1
- package/dist/assets/{c4Diagram-LMCZKHZV-D7Bh1ui1.js → c4Diagram-LMCZKHZV-BacRvqFK.js} +1 -1
- package/dist/assets/channel-CeXY-wZo.js +1 -0
- package/dist/assets/{chunk-32BRIVSS-xgrtbT8e.js → chunk-32BRIVSS-B53BNE2C.js} +1 -1
- package/dist/assets/{chunk-52WLFC77-CDbaHw80.js → chunk-52WLFC77-CYq4hT4f.js} +1 -1
- package/dist/assets/{chunk-C7G6YPKG-ZMLUvfLy.js → chunk-C7G6YPKG-KFaGpP_Z.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-BcQhaqt7.js → chunk-EX3LRPZG-DqVd_ihG.js} +1 -1
- package/dist/assets/{chunk-FWX5IMBZ-DrnrdrSu.js → chunk-FWX5IMBZ-BxRjZkOP.js} +2 -2
- package/dist/assets/{chunk-HOUHSVGY-tdc-Z9eW.js → chunk-HOUHSVGY-C9QO8omv.js} +1 -1
- package/dist/assets/{chunk-ICXQ74PX-Cd7igVGt.js → chunk-ICXQ74PX-ClbGPgLV.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-CLTjV5ov.js → chunk-MOJQB5TN-Ba4wlF1J.js} +1 -1
- package/dist/assets/{chunk-OGEWGWER-TgvkXkFX.js → chunk-OGEWGWER-DczhQmcx.js} +1 -1
- package/dist/assets/{chunk-PUDLZKDR-C5GMVYup.js → chunk-PUDLZKDR-CPWpcKUF.js} +1 -1
- package/dist/assets/{chunk-Q4XR5HBZ-fo5-HsqY.js → chunk-Q4XR5HBZ-CiF6T--X.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-CEDazV6w.js → chunk-V7JOEXUC-Dxv0zwmw.js} +1 -1
- package/dist/assets/{chunk-VAUOI2AC-CWYjg8zE.js → chunk-VAUOI2AC-D3J5bw1P.js} +1 -1
- package/dist/assets/{chunk-VR4S4FIN-C_-eEj-9.js → chunk-VR4S4FIN-BXQSwwII.js} +1 -1
- package/dist/assets/{chunk-WYO6CB5R-NF-MsJJR.js → chunk-WYO6CB5R-C0azl-fk.js} +2 -2
- package/dist/assets/{chunk-ZGVPDNZ5-CRrAYi4g.js → chunk-ZGVPDNZ5-D_8F4Akx.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-B8M6sf49.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-BY7fzBDH.js +1 -0
- package/dist/assets/{cynefinDiagram-TSTJHNR4-D4sZ7LYI.js → cynefinDiagram-TSTJHNR4-BFlsWz0B.js} +1 -1
- package/dist/assets/{dagre-VKFMJZFB-BlsnSh-Q.js → dagre-VKFMJZFB-DXhpjlEs.js} +1 -1
- package/dist/assets/{diagram-FQU43EPY-DW1yQiRO.js → diagram-FQU43EPY-DRVVOD9k.js} +1 -1
- package/dist/assets/{diagram-G47NLZAW-BTUAsFjb.js → diagram-G47NLZAW-BV9Gw1tL.js} +1 -1
- package/dist/assets/{diagram-NH7WQ7WH-BcaomqSd.js → diagram-NH7WQ7WH-CrUkXfRY.js} +1 -1
- package/dist/assets/{diagram-OA4YK3LP-DDLX7Xwr.js → diagram-OA4YK3LP-CuILjn7v.js} +1 -1
- package/dist/assets/{diagram-WEI45ONY-CIave0An.js → diagram-WEI45ONY-nlNN3tWB.js} +1 -1
- package/dist/assets/{ebnfDiagram-CCIWWBDH-Cr1Y6lPu.js → ebnfDiagram-CCIWWBDH-BuDgZt9n.js} +1 -1
- package/dist/assets/{erDiagram-Q63AITRT-D3EgiVVH.js → erDiagram-Q63AITRT-MEwxjmtP.js} +1 -1
- package/dist/assets/flowDiagram-23GEKE2U-BiUP-Scq.js +1 -0
- package/dist/assets/{ganttDiagram-NO4QXBWP-B0oyDIqK.js → ganttDiagram-NO4QXBWP-DNw5qghE.js} +1 -1
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-uQtr6IqK.js → gitGraphDiagram-IHSO6WYX-CaTcakAt.js} +1 -1
- package/dist/assets/index-CX36XjVA.css +3 -0
- package/dist/assets/index-CgVTwN15.js +66 -0
- package/dist/assets/{infoDiagram-FWYZ7A6U-B_GzlLIM.js → infoDiagram-FWYZ7A6U-DwfyP7dU.js} +1 -1
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-CKQIsSdU.js → ishikawaDiagram-FXEZZL3T-CmrzbOCV.js} +1 -1
- package/dist/assets/{journeyDiagram-5HDEW3XC-DrrvzZL1.js → journeyDiagram-5HDEW3XC-CYqe3sgr.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-CJQRTdXz.js → kanban-definition-HUTT4EX6-BMDO_mv0.js} +1 -1
- package/dist/assets/{line-B4DxX7tC.js → line-SbxJR8ZT.js} +1 -1
- package/dist/assets/lit-vendor-CinchGmI.js +2 -0
- package/dist/assets/local-tools-CJVNO1aW.js +388 -0
- package/dist/assets/{mcp-servers-dialog-B2lALtTE.js → mcp-servers-dialog-xf3UR49J.js} +2 -2
- package/dist/assets/{mermaid.core-DWpShXCs.js → mermaid.core-CwXTzYjs.js} +3 -3
- package/dist/assets/{mindmap-definition-LN4V7U3C-CEVwZD78.js → mindmap-definition-LN4V7U3C-CLyJ78mO.js} +1 -1
- package/dist/assets/{pegDiagram-2B236MQR-CBLkBdnQ.js → pegDiagram-2B236MQR-4qFznrSw.js} +1 -1
- package/dist/assets/{pi-web-ui-DV5jKjSg.js → pi-web-ui-BNuvqKDT.js} +289 -289
- package/dist/assets/{pieDiagram-ENE6RG2P-8tCnwtWS.js → pieDiagram-ENE6RG2P-141sGxVe.js} +1 -1
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-CWd28cHF.js → quadrantDiagram-ABIIQ3AL-SUI44pAX.js} +1 -1
- package/dist/assets/{railroadDiagram-RFXS5EU6-CI4ouOBs.js → railroadDiagram-RFXS5EU6-1oiZuYBB.js} +1 -1
- package/dist/assets/{requirementDiagram-TGXJPOKE-DtFz7sw4.js → requirementDiagram-TGXJPOKE-CfVishLi.js} +1 -1
- package/dist/assets/{sankeyDiagram-HTMAVEWB--VeOwwk9.js → sankeyDiagram-HTMAVEWB-DVu7J_Z9.js} +1 -1
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-B8AHk5Oe.js → sequenceDiagram-DBY2YBRQ-D-Ip2yiS.js} +1 -1
- package/dist/assets/{skills-dialog-DYp35JM3.js → skills-dialog-Bbqtuy2h.js} +3 -3
- package/dist/assets/{stateDiagram-2N3HPSRC-etXnJ8X8.js → stateDiagram-2N3HPSRC-Cg0hWwrp.js} +1 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-DhmzNQd9.js +1 -0
- package/dist/assets/{swimlanes-5IMT3BWC-pabIKAmn.js → swimlanes-5IMT3BWC-Co5D-cGU.js} +1 -1
- package/dist/assets/swimlanesDiagram-G3AALYLV-BEvomQNa.js +8 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-C55MKm3L.js → timeline-definition-FHXFAJF6-CBk4c_Ua.js} +1 -1
- package/dist/assets/{vennDiagram-L72KCM5P-CgNf1Q9W.js → vennDiagram-L72KCM5P-BII7wdRx.js} +1 -1
- package/dist/assets/{wardleyDiagram-EHGQE667-Drt5ytec.js → wardleyDiagram-EHGQE667-CkyJJIXP.js} +1 -1
- package/dist/assets/{xychartDiagram-FW5EYKEG-hhoEo_Ar.js → xychartDiagram-FW5EYKEG-B1A66Ks0.js} +1 -1
- package/dist/index.html +6 -6
- package/dist/licenses/material-icon-theme.txt +8 -8
- package/package.json +1 -1
- package/server/agent-manager.mjs +305 -49
- package/server/approval-store.mjs +1 -0
- package/server/ask-store.mjs +78 -0
- package/server/context-references.mjs +139 -0
- package/server/custom-commands.mjs +43 -0
- package/server/index.mjs +1 -1
- package/server/project-config.mjs +17 -5
- package/server/routes/agent-profiles.mjs +16 -1
- package/server/routes/agent.mjs +10 -1
- package/server/routes/shared-conversation.mjs +13 -1
- package/server/routes/skills.mjs +22 -0
- package/server/routes/workspace.mjs +166 -2
- package/server/selected-capabilities.mjs +76 -0
- package/server/session-state-import.mjs +20 -3
- package/server/skills.mjs +1 -1
- package/server/system-prompt.mjs +1 -3
- package/server/tools/definitions.mjs +18 -10
- package/server/tools/index.mjs +14 -2
- package/server/utils/workspace.mjs +13 -4
- package/skills/skill-creator/SKILL.md +485 -485
- package/skills/skill-creator/agents/analyzer.md +274 -274
- package/skills/skill-creator/agents/comparator.md +202 -202
- package/skills/skill-creator/agents/grader.md +223 -223
- package/skills/skill-creator/assets/eval_review.html +146 -146
- package/skills/skill-creator/eval-viewer/viewer.html +1325 -1325
- package/skills/skill-creator/references/schemas.md +430 -430
- package/dist/assets/AgentProfilesPage-Cvb1KTz5.js +0 -1
- package/dist/assets/ChatPanelHost-C7zV-xE_.js +0 -48
- package/dist/assets/CloudAccountSettingsPage-mAs_nbvw.js +0 -1
- package/dist/assets/ScheduledTasksPage-CuUW_9lq.js +0 -2
- package/dist/assets/ShareLinksSettingsPage-DqeyJYoD.js +0 -1
- package/dist/assets/SharedConversationPage-C7CDEoX9.js +0 -1
- package/dist/assets/TerminalDock-CZXcuMpq.js +0 -2
- package/dist/assets/WorkspaceInspector-CNSBOEvP.js +0 -36
- package/dist/assets/channel-Duu1CuH9.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-Cc63fLWP.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-CoXU0qT6.js +0 -1
- package/dist/assets/flowDiagram-23GEKE2U-BS7KXcqn.js +0 -1
- package/dist/assets/index-BgMvQW1b.js +0 -66
- package/dist/assets/index-CB1g2D0f.css +0 -3
- package/dist/assets/lit-vendor-DvaQX_UQ.js +0 -2
- package/dist/assets/local-tools-Dopjg9xq.js +0 -270
- package/dist/assets/stateDiagram-v2-6OUMAXLB-Dms3pICj.js +0 -1
- package/dist/assets/swimlanesDiagram-G3AALYLV-B14aWjv6.js +0 -8
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./rolldown-runtime-DWdDZTNf.js";import{C as r,D as i,Ft as a,Gt as o,J as s,Jt as c,L as l,M as u,Mt as d,Pt as f,R as p,U as m,Vt as h,b as g,bt as _,d as v,et as y,gt as b,ht as x,it as S,lt as C,mt as w,n as T,o as E,ot as ee,pt as D,rt as te,tt as ne,u as re,ut as O,w as k,xt as ie,y as ae,yt as A}from"./icons-DM_qJ7VJ.js";import{n as oe}from"./react-vendor-BpWW_Nvp.js";import{A as se,An as j,B as ce,Bt as le,Cn as ue,En as de,F as fe,Ft as pe,Ht as me,I as he,It as ge,L as _e,Lt as ve,M as ye,N as be,O as xe,On as Se,P as Ce,Pn as M,Pt as we,R as Te,Rt as Ee,Tn as De,Tt as Oe,Vt as ke,_t as Ae,f as je,h as Me,j as Ne,k as Pe,kn as Fe,m as Ie,nn as Le,p as Re,u as ze,vt as Be,wt as Ve,z as He,zt as Ue}from"./index-BgMvQW1b.js";import{a as We,o as Ge,s as Ke}from"./local-tools-Dopjg9xq.js";import{TerminalDock as qe,t as Je}from"./TerminalDock-CZXcuMpq.js";import{n as Ye,t as Xe}from"./monaco-bDr860xx.js";var N=e(c(),1),P=oe(),Ze={"not-found":{icon:C,title:`previewErrorNotFoundTitle`,description:`previewErrorNotFoundDescription`},unsupported:{icon:O,title:`artifactPreviewUnsupported`,description:`artifactPreviewUnsupportedDescription`},"too-large":{icon:y,title:`previewErrorTooLargeTitle`,description:`previewErrorTooLargeDescription`},"permission-denied":{icon:h,title:`previewErrorPermissionTitle`,description:`previewErrorPermissionDescription`},"service-failed":{icon:ae,title:`previewErrorServiceTitle`,description:`previewErrorServiceDescription`},unknown:{icon:E,title:`previewErrorUnknownTitle`,description:`previewErrorUnknownDescription`}};function Qe({issue:e,onRetry:t}){let n=Ze[e.kind],r=n.icon;return(0,P.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center overflow-auto px-8 py-10 text-center`,children:[(0,P.jsx)(r,{className:`size-20 shrink-0 stroke-[1.55] text-muted-foreground/75`}),(0,P.jsx)(`div`,{className:`mt-8 text-xl font-semibold tracking-tight text-foreground/88`,children:M(n.title)}),(0,P.jsx)(`div`,{className:`mt-4 max-w-md text-base leading-6 text-muted-foreground/82`,children:M(n.description)}),e.retryable&&t?(0,P.jsxs)(Fe,{type:`button`,variant:`outline`,size:`sm`,className:`mt-6`,onClick:t,children:[(0,P.jsx)(k,{className:`size-3.5`}),M(`retry`)]}):null,(0,P.jsxs)(`details`,{className:`mt-6 w-full max-w-xl rounded-xl border border-[color-mix(in_oklab,var(--border)_55%,transparent)] bg-background/65 text-left text-sm text-muted-foreground`,children:[(0,P.jsx)(`summary`,{className:`cursor-pointer select-none px-4 py-3 font-medium text-foreground/78 marker:text-muted-foreground`,children:M(`previewErrorDetails`)}),(0,P.jsxs)(`dl`,{className:`space-y-3 border-t border-border/60 px-4 py-3`,children:[typeof e.status==`number`?(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:M(`previewErrorStatusCode`)}),(0,P.jsx)(`dd`,{className:`mt-1 font-mono text-xs text-foreground/82`,children:e.status})]}):null,e.code?(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:M(`previewErrorCode`)}),(0,P.jsx)(`dd`,{className:`mt-1 break-all font-mono text-xs text-foreground/82`,children:e.code})]}):null,e.path?(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:M(`previewErrorFilePath`)}),(0,P.jsx)(`dd`,{className:`mt-1 break-all font-mono text-xs text-foreground/82`,children:e.path})]}):null,(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:M(`previewErrorRawMessage`)}),(0,P.jsx)(`dd`,{className:`mt-1 whitespace-pre-wrap break-all font-mono text-xs leading-5 text-foreground/82`,children:e.error})]})]})]})]})}function $e(e){let t=e.status,n=e.code,r=`unknown`;return n===`PREVIEW_FILE_NOT_FOUND`||t===404?r=`not-found`:n===`PREVIEW_UNSUPPORTED_TYPE`||t===415?r=`unsupported`:n===`PREVIEW_FILE_TOO_LARGE`||t===413?r=`too-large`:n===`PREVIEW_PERMISSION_DENIED`||t===401||t===403?r=`permission-denied`:(n===`PREVIEW_SERVICE_FAILED`||typeof t==`number`&&t>=500)&&(r=`service-failed`),{kind:r,status:t,code:n,path:e.path,error:e.error||`Unknown preview error`,retryable:r!==`unsupported`&&r!==`permission-denied`}}function et(e){let t=e.indexOf(`#`),n=t>=0?e.slice(0,t):e;return`${n}${n.includes(`?`)?`&`:`?`}__quickforge_check=1`}function tt(e){let t=e.trim();if(!t.startsWith(`/api/workspace/preview/`))return!1;try{let e=new URL(t,window.location.origin);return e.origin===window.location.origin&&e.pathname.startsWith(`/api/workspace/preview/`)}catch{return!1}}function nt(e){let t=e.trim().replace(/\\/g,`/`);return t.startsWith(`/`)||/^[a-zA-Z]:\//.test(t)}function rt(e,t){let n=e.trim();if(!t||!tt(n))return n;try{let e=new URL(n,window.location.origin),r=`/api/workspace/preview/${encodeURIComponent(t)}/`;return e.pathname.startsWith(r)?e.pathname.slice(r.length).split(`/`).map(e=>decodeURIComponent(e)).join(`/`):n}catch{return n}}function it(e,t){let n=e.trim();if(!n)return{url:``,displayUrl:``,error:``};if(tt(n)){let e=new URL(n,window.location.origin);return{url:`${e.pathname}${e.search}${e.hash}`,displayUrl:rt(n,t),error:``}}if(t&&nt(n))return{url:Me(t,n),displayUrl:n,error:``};let r=/^https?:\/\//i.test(n)?n:`http://${n}`;try{let e=new URL(r);return e.protocol!==`http:`&&e.protocol!==`https:`?{url:``,displayUrl:n,error:M(`invalidPreviewUrl`)}:{url:e.toString(),displayUrl:e.toString(),error:``}}catch{return{url:``,displayUrl:n,error:M(`invalidPreviewUrl`)}}}function at({url:e,onUrlChange:t,projectId:n,externalReloadToken:r=0}){let a=(0,N.useMemo)(()=>it(e,n),[n,e]),[s,c]=(0,N.useState)({sourceUrl:e,value:a.displayUrl}),[u,d]=(0,N.useState)(``),[f,p]=(0,N.useState)(0),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(100),[v,y]=(0,N.useState)(null),x=(0,N.useRef)(null),S=(0,N.useRef)(null),C=a.url,T=C.startsWith(`/api/workspace/preview/`),E=T?a.displayUrl:``,ee=(0,N.useMemo)(()=>E&&!Re(E)?$e({status:415,code:`PREVIEW_UNSUPPORTED_TYPE`,path:E,error:`Unsupported preview file type`}):null,[E]),D=T?`${C}:${f}:${r}`:``,te=v?.key===D?v.issue:null,re=ee??te,O=T&&!ee&&v?.key!==D,ie=!T||v?.key===D&&!v.issue,ae=T?`allow-scripts allow-same-origin allow-forms`:`allow-scripts allow-same-origin allow-forms allow-popups allow-downloads allow-modals allow-pointer-lock`,A=s.sourceUrl===e?s.value:a.displayUrl;(0,N.useEffect)(()=>{if(!m)return;function e(e){x.current?.contains(e.target)||h(!1)}return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[m]),(0,N.useEffect)(()=>{if(!T||!E||ee)return;let e=new AbortController;return fetch(et(C),{cache:`no-store`,signal:e.signal}).then(async e=>{let t=await e.json().catch(()=>null);if(e.ok){y({key:D,issue:null});return}y({key:D,issue:$e({status:e.status,code:typeof t?.code==`string`?t.code:void 0,path:typeof t?.path==`string`?t.path:E,error:typeof t?.error==`string`?t.error:`${e.status} ${e.statusText}`.trim()})})}).catch(t=>{e.signal.aborted||y({key:D,issue:$e({code:`PREVIEW_SERVICE_FAILED`,path:E,error:t instanceof Error?t.message:String(t)})})}),()=>e.abort()},[T,D,C,ee,E]);function oe(){try{S.current?.contentWindow?.history.back()}catch{}}function se(e=A){let r=it(e,n);if(r.error){d(r.error);return}d(``),c({sourceUrl:r.displayUrl,value:r.displayUrl}),t(r.displayUrl),r.url&&p(e=>e+1)}function j(){C&&p(e=>e+1)}function ce(){C&&window.open(C,`_blank`,`noopener,noreferrer`)}return(0,P.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,P.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2 border-b border-border p-3`,children:[(0,P.jsxs)(`form`,{className:`flex items-center gap-2`,onSubmit:e=>{e.preventDefault(),se()},children:[(0,P.jsx)(Fe,{type:`button`,variant:`ghost`,size:`icon`,onClick:oe,disabled:!C,"aria-label":M(`back`),title:M(`back`),children:(0,P.jsx)(o,{className:`size-4`})}),(0,P.jsx)(Fe,{type:`button`,variant:`ghost`,size:`icon`,onClick:j,disabled:!C,"aria-label":M(`refreshPreview`),title:M(`refreshPreview`),children:(0,P.jsx)(k,{className:`size-4`})}),(0,P.jsxs)(`label`,{className:`mx-auto flex h-9 min-w-0 max-w-xl flex-1 items-center rounded-full border border-[color-mix(in_oklab,var(--border)_42%,transparent)] bg-muted/30 px-3 text-sm text-muted-foreground/65 focus-within:bg-background focus-within:text-foreground/85`,children:[(0,P.jsx)(`span`,{className:`sr-only`,children:M(`previewUrl`)}),(0,P.jsx)(`input`,{value:A,onChange:t=>{c({sourceUrl:e,value:t.target.value}),u&&d(``)},placeholder:M(`previewUrlPlaceholder`),className:`min-w-0 flex-1 bg-transparent text-center text-sm text-foreground/85 outline-none placeholder:text-muted-foreground/55`})]}),(0,P.jsx)(Fe,{type:`button`,variant:`ghost`,size:`icon`,onClick:ce,disabled:!C,"aria-label":M(`openInBrowser`),title:M(`openInBrowser`),children:(0,P.jsx)(w,{className:`size-4`})}),(0,P.jsxs)(`div`,{ref:x,className:`relative shrink-0`,children:[(0,P.jsx)(Fe,{type:`button`,variant:`ghost`,size:`icon`,onClick:()=>h(e=>!e),"aria-label":M(`more`),title:M(`more`),"aria-haspopup":`menu`,"aria-expanded":m,children:(0,P.jsx)(b,{className:`size-4`})}),m?(0,P.jsxs)(`div`,{className:`absolute right-0 top-10 z-30 w-48 rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-2 shadow-quickforge`,role:`menu`,children:[(0,P.jsx)(`div`,{className:`px-2 py-1.5 text-xs font-medium text-muted-foreground`,children:M(`zoom`)}),(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2 rounded-xl px-1 py-1.5`,children:[(0,P.jsx)(Fe,{type:`button`,variant:`ghost`,size:`icon`,className:`size-8`,onClick:()=>_(e=>Math.max(50,e-10)),"aria-label":M(`zoomOut`),title:M(`zoomOut`),children:(0,P.jsx)(l,{className:`size-4`})}),(0,P.jsxs)(`button`,{type:`button`,className:`min-w-14 rounded-lg px-2 py-1 text-sm font-medium text-foreground/85 hover:bg-muted/50`,onClick:()=>_(100),title:M(`resetZoom`),children:[g,`%`]}),(0,P.jsx)(Fe,{type:`button`,variant:`ghost`,size:`icon`,className:`size-8`,onClick:()=>_(e=>Math.min(200,e+10)),"aria-label":M(`zoomIn`),title:M(`zoomIn`),children:(0,P.jsx)(i,{className:`size-4`})})]})]}):null]})]}),u?(0,P.jsx)(`div`,{className:`text-xs text-destructive`,children:u}):null]}),(0,P.jsx)(`div`,{className:`min-h-0 flex-1 bg-muted/10`,children:re?(0,P.jsx)(Qe,{issue:re,onRetry:j}):O?(0,P.jsxs)(`div`,{className:`flex h-full items-center justify-center text-sm text-muted-foreground/75`,children:[(0,P.jsx)(k,{className:`mr-2 size-4 animate-spin`}),M(`previewChecking`)]}):C&&ie?(0,P.jsx)(`div`,{className:`h-full w-full overflow-auto bg-background`,children:(0,P.jsx)(`iframe`,{ref:S,title:M(`webPreview`),src:C,sandbox:ae,className:`origin-top-left border-0 bg-background`,style:{width:`${1e4/g}%`,height:`${1e4/g}%`,transform:`scale(${g/100})`}},`${C}:${f}:${r}`)}):(0,P.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center px-8 text-center`,children:[(0,P.jsx)(ne,{className:`size-20 stroke-[1.55] text-muted-foreground/75`}),(0,P.jsx)(`div`,{className:`mt-8 text-xl font-semibold tracking-tight text-foreground/88`,children:M(`noPreviewUrlTitle`)}),(0,P.jsx)(`div`,{className:`mt-4 max-w-xs text-base leading-6 text-muted-foreground/82`,children:M(`noPreviewUrlDescription`)})]})})]})}function F(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var ot=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,st=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ct={};function lt(e,t){return((t||ct).jsx?st:ot).test(e)}var ut=/[ \t\n\f\r]/g;function dt(e){return typeof e==`object`?e.type===`text`?ft(e.value):!1:ft(e)}function ft(e){return e.replace(ut,``)===``}var pt=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};pt.prototype.normal={},pt.prototype.property={},pt.prototype.space=void 0;function mt(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new pt(n,r,t)}function ht(e){return e.toLowerCase()}var I=class{constructor(e,t){this.attribute=t,this.property=e}};I.prototype.attribute=``,I.prototype.booleanish=!1,I.prototype.boolean=!1,I.prototype.commaOrSpaceSeparated=!1,I.prototype.commaSeparated=!1,I.prototype.defined=!1,I.prototype.mustUseProperty=!1,I.prototype.number=!1,I.prototype.overloadedBoolean=!1,I.prototype.property=``,I.prototype.spaceSeparated=!1,I.prototype.space=void 0;var gt=t({boolean:()=>L,booleanish:()=>R,commaOrSpaceSeparated:()=>bt,commaSeparated:()=>yt,number:()=>z,overloadedBoolean:()=>vt,spaceSeparated:()=>B}),_t=0,L=xt(),R=xt(),vt=xt(),z=xt(),B=xt(),yt=xt(),bt=xt();function xt(){return 2**++_t}var St=Object.keys(gt),Ct=class extends I{constructor(e,t,n,r){let i=-1;if(super(e,t),wt(this,`space`,r),typeof n==`number`)for(;++i<St.length;){let e=St[i];wt(this,St[i],(n>[e])===gt[e])}}};Ct.prototype.defined=!0;function wt(e,t,n){n&&(e[t]=n)}function Tt(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ct(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ht(r)]=r,n[ht(a.attribute)]=r}return new pt(t,n,e.space)}var Et=Tt({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:B,ariaCurrent:null,ariaDescribedBy:B,ariaDetails:null,ariaDisabled:R,ariaDropEffect:B,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:B,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:B,ariaLevel:z,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:B,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:B,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:R,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Dt(e,t){return t in e?e[t]:t}function V(e,t){return Dt(e,t.toLowerCase())}var Ot=Tt({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:yt,acceptCharset:B,accessKey:B,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alpha:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:B,autoFocus:L,autoPlay:L,blocking:B,capture:null,charSet:null,checked:L,cite:null,className:B,closedBy:null,colorSpace:null,cols:z,colSpan:z,command:null,commandFor:null,content:null,contentEditable:R,controls:L,controlsList:B,coords:z|yt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:vt,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:B,height:z,hidden:vt,high:z,href:null,hrefLang:null,htmlFor:B,httpEquiv:B,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:B,itemRef:B,itemScope:L,itemType:B,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,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:L,optimum:z,pattern:null,ping:B,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:B,required:L,reversed:L,rows:z,rowSpan:z,sandbox:B,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootCustomElementRegistry:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shadowRootSerializable:L,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:R,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:B,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:L,disablePictureInPicture:L,disableRemotePlayback:L,exportParts:yt,part:B,prefix:null,property:null,results:z,security:null,unselectable:null},space:`html`,transform:V}),kt=Tt({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:bt,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:B,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:yt,g2:yt,glyphName:yt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:B,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bt,rev:bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bt,requiredFeatures:bt,requiredFonts:bt,requiredFormats:bt,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bt,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Dt}),At=Tt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),jt=Tt({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:V}),Mt=Tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Nt={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`},Pt=/[A-Z]/g,Ft=/-[a-z]/g,It=/^data[-\w.:]+$/i;function Lt(e,t){let n=ht(t),r=t,i=I;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&It.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Ft,zt);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Ft.test(e)){let n=e.replace(Pt,Rt);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ct}return new i(r,t)}function Rt(e){return`-`+e.toLowerCase()}function zt(e){return e.charAt(1).toUpperCase()}var Bt=mt([Et,Ot,At,jt,Mt],`html`),Vt=mt([Et,kt,At,jt,Mt],`svg`);function Ht(e){return e.join(` `).trim()}var Ut=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
2
|
-
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ee(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),ee()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Wt=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(Ut());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Gt=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Kt=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Wt()),r=Gt();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),H=Jt(`end`),qt=Jt(`start`);function Jt(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Yt(e){let t=qt(e),n=H(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Qt(e.position):`start`in e||`end`in e?Qt(e):`line`in e||`column`in e?Zt(e):``}function Zt(e){return $t(e&&e.line)+`:`+$t(e&&e.column)}function Qt(e){return Zt(e&&e.start)+`-`+Zt(e&&e.end)}function $t(e){return e&&typeof e==`number`?e:1}var U=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Xt(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};U.prototype.file=``,U.prototype.name=``,U.prototype.reason=``,U.prototype.message=``,U.prototype.stack=``,U.prototype.column=void 0,U.prototype.line=void 0,U.prototype.ancestors=void 0,U.prototype.cause=void 0,U.prototype.fatal=void 0,U.prototype.place=void 0,U.prototype.ruleId=void 0,U.prototype.source=void 0;var W=e(Kt(),1),en={}.hasOwnProperty,G=new Map,tn=/[A-Z]/g,nn=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),rn=new Set([`td`,`th`]),K=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function an(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=hn(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=mn(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Vt:Bt,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=on(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function on(e,t,n){if(t.type===`element`)return q(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return sn(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return ln(e,t,n);if(t.type===`mdxjsEsm`)return cn(e,t);if(t.type===`root`)return un(e,t,n);if(t.type===`text`)return dn(e,t)}function q(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Vt,e.schema=i),e.ancestors.push(t);let a=xn(e,t.tagName,!1),o=gn(e,t),s=vn(e,t);return nn.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!dt(e):!0})),fn(e,o,a,t),pn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function sn(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Sn(e,t.position)}function cn(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Sn(e,t.position)}function ln(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Vt,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:xn(e,t.name,!0),o=_n(e,t),s=vn(e,t);return fn(e,o,a,t),pn(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function un(e,t,n){let r={};return pn(r,vn(e,t)),e.create(t,e.Fragment,r,n)}function dn(e,t){return t.value}function fn(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function pn(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function mn(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function hn(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=qt(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function gn(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&en.call(t.properties,i)){let a=yn(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&rn.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function _n(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Sn(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Sn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function vn(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=on(e,a,o);s!==void 0&&n.push(s)}return n}function yn(e,t,n){let r=Lt(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?F(n):Ht(n)),r.property===`style`){let t=typeof n==`object`?n:bn(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Cn(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Nt[r.property]||r.property:r.attribute,n]}}function bn(e,t){try{return(0,W.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new U("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=K+`#cannot-parse-style-attribute`,r}}function xn(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=lt(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=lt(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return en.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Sn(e)}function Sn(e,t){let n=new U("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=K+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Cn(e){let t={},n;for(n in e)en.call(e,n)&&(t[wn(n)]=e[n]);return t}function wn(e){let t=e.replace(tn,Tn);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Tn(e){return`-`+e.toLowerCase()}var En={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`]},Dn={};function On(e,t){let n=t||Dn;return kn(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function kn(e,t,n){if(jn(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return An(e.children,t,n)}return Array.isArray(e)?An(e,t,n):``}function An(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=kn(e[i],t,n);return r.join(``)}function jn(e){return!!(e&&typeof e==`object`)}var Mn=document.createElement(`i`);function Nn(e){let t=`&`+e+`;`;Mn.innerHTML=t;let n=Mn.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function Pn(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Fn(e,t){return e.length>0?(Pn(e,e.length,0,t),e):t}var In={}.hasOwnProperty;function Ln(e){let t={},n=-1;for(;++n<e.length;)Rn(t,e[n]);return t}function Rn(e,t){let n;for(n in t){let r=(In.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){In.call(r,a)||(r[a]=[]);let e=i[a];zn(r[a],Array.isArray(e)?e:e?[e]:[])}}}function zn(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Pn(e,0,0,r)}function Bn(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Vn(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Hn=Xn(/[A-Za-z]/),J=Xn(/[\dA-Za-z]/),Un=Xn(/[#-'*+\--9=?A-Z^-~]/);function Wn(e){return e!==null&&(e<32||e===127)}var Gn=Xn(/\d/),Kn=Xn(/[\dA-Fa-f]/),qn=Xn(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}var Jn=Xn(/\p{P}|\p{S}/u),Yn=Xn(/\s/);function Xn(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Zn(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&J(e.charCodeAt(n+1))&&J(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Q(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Z(r)?(e.enter(n),s(r)):t(r)}function s(r){return Z(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Qn={tokenize:$n};function $n(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Y(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var er={tokenize:nr},tr={tokenize:rr};function nr(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Pn(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tr,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(tr,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Y(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;Pn(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function rr(e,t,n){return Q(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function ir(e){if(e===null||X(e)||Yn(e))return 1;if(Jn(e))return 2}function ar(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var or={name:`attention`,resolveAll:sr,tokenize:cr};function sr(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};lr(d,-c),lr(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Fn(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Fn(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Fn(l,ar(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Fn(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Fn(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Pn(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function cr(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ir(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=ir(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function lr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ur={name:`autolink`,tokenize:dr};function dr(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Hn(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||J(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||J(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Wn(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Un(t)?(e.consume(t),l):n(t)}function u(e){return J(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||J(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var fr={partial:!0,tokenize:pr};function pr(e,t,n){return r;function r(t){return Z(t)?Q(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Y(e)?t(e):n(e)}}var mr={continuation:{tokenize:gr},exit:_r,name:`blockQuote`,tokenize:hr};function hr(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Z(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function gr(e,t,n){let r=this;return i;function i(t){return Z(t)?Q(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(mr,t,n)(r)}}function _r(e){e.exit(`blockQuote`)}var vr={name:`characterEscape`,tokenize:yr};function yr(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return qn(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var br={name:`characterReference`,tokenize:xr};function xr(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=J,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Kn,u):(e.enter(`characterReferenceValue`),a=7,o=Gn,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===J&&!Nn(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Sr={partial:!0,tokenize:Tr},Cr={concrete:!0,name:`codeFenced`,tokenize:wr};function wr(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Y(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Sr,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Q(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Y(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Z(t)?Q(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Y(t)?e.check(Sr,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Z(t)?Q(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Y(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Tr(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Er={name:`codeIndented`,tokenize:Or},Dr={partial:!0,tokenize:kr};function Or(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Q(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Y(t)?e.attempt(Dr,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function kr(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Q(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Y(e)?i(e):n(e)}}var Ar={name:`codeText`,previous:Mr,resolve:jr,tokenize:Nr};function jr(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Mr(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Nr(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Y(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Pr=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Fr(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Fr(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Fr(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Fr(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Fr(this.left,t.reverse())}}};function Fr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ir(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Pr(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Lr(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Pn(e,0,1/0,u.slice(0)),!l}function Lr(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Rr={resolve:Br,tokenize:Vr},zr={partial:!0,tokenize:Hr};function Br(e){return Ir(e),e}function Vr(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Y(t)?e.check(zr,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Hr(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,a,`linePrefix`)}function a(i){if(i===null||Y(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Ur(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Wn(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Y(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||X(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Wn(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Wr(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Y(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Y(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Z(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Gr(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Y(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Kr(e,t){let n;return r;function r(i){return Y(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Z(i)?Q(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var qr={name:`definition`,tokenize:Yr},Jr={partial:!0,tokenize:Xr};function Yr(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Wr.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return X(t)?Kr(e,l)(t):l(t)}function l(t){return Ur(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Jr,d,d)(t)}function d(t){return Z(t)?Q(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Y(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Xr(e,t,n){return r;function r(t){return X(t)?Kr(e,i)(t):n(t)}function i(t){return Gr(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Z(t)?Q(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Y(e)?t(e):n(e)}}var Zr={name:`hardBreakEscape`,tokenize:Qr};function Qr(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Y(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var $r={name:`headingAtx`,resolve:ei,tokenize:ti};function ei(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},Pn(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function ti(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||X(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Y(n)?(e.exit(`atxHeading`),t(n)):Z(n)?Q(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||X(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ni=`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`.split(`.`),ri=[`pre`,`script`,`style`,`textarea`],ii={concrete:!0,name:`htmlFlow`,resolveTo:si,tokenize:ci},ai={partial:!0,tokenize:ui},oi={partial:!0,tokenize:li};function si(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ci(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:A):Hn(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Hn(a)?(e.consume(a),i=4,r.interrupt?t:A):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:A):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return Hn(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||X(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&ri.includes(l)?(i=1,r.interrupt?t(s):D(s)):ni.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||J(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return Z(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Hn(t)?(e.consume(t),b):Z(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||J(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Z(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Z(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Y(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||X(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Z(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||Y(t)?D(t):Z(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),O):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),oe):t===63&&i===3?(e.consume(t),A):t===93&&i===5?(e.consume(t),ae):Y(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(ai,se,te)(t)):t===null||Y(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),D)}function te(t){return e.check(oi,ne,se)(t)}function ne(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return t===null||Y(t)?te(t):(e.enter(`htmlFlowData`),D(t))}function O(t){return t===45?(e.consume(t),A):D(t)}function k(t){return t===47?(e.consume(t),o=``,ie):D(t)}function ie(t){if(t===62){let n=o.toLowerCase();return ri.includes(n)?(e.consume(t),oe):D(t)}return Hn(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ie):D(t)}function ae(t){return t===93?(e.consume(t),A):D(t)}function A(t){return t===62?(e.consume(t),oe):t===45&&i===2?(e.consume(t),A):D(t)}function oe(t){return t===null||Y(t)?(e.exit(`htmlFlowData`),se(t)):(e.consume(t),oe)}function se(n){return e.exit(`htmlFlow`),t(n)}}function li(e,t,n){let r=this;return i;function i(t){return Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ui(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(fr,t,n)}}var di={name:`htmlText`,tokenize:fi};function fi(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Hn(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Hn(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Y(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?O(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Y(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?O(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?O(t):Y(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Y(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?O(e):y(e)}function x(t){return Hn(t)?(e.consume(t),S):n(t)}function S(t){return t===45||J(t)?(e.consume(t),S):C(t)}function C(t){return Y(t)?(o=C,k(t)):Z(t)?(e.consume(t),C):O(t)}function w(t){return t===45||J(t)?(e.consume(t),w):t===47||t===62||X(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),O):t===58||t===95||Hn(t)?(e.consume(t),E):Y(t)?(o=T,k(t)):Z(t)?(e.consume(t),T):O(t)}function E(t){return t===45||t===46||t===58||t===95||J(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):Y(t)?(o=ee,k(t)):Z(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,te):Y(t)?(o=D,k(t)):Z(t)?(e.consume(t),D):(e.consume(t),ne)}function te(t){return t===i?(e.consume(t),i=void 0,re):t===null?n(t):Y(t)?(o=te,k(t)):(e.consume(t),te)}function ne(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||X(t)?T(t):(e.consume(t),ne)}function re(e){return e===47||e===62||X(e)?T(e):n(e)}function O(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ie}function ie(t){return Z(t)?Q(e,ae,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ae(t)}function ae(t){return e.enter(`htmlTextData`),o(t)}}var pi={name:`labelEnd`,resolveAll:_i,resolveTo:vi,tokenize:yi},mi={tokenize:bi},hi={tokenize:xi},gi={tokenize:Si};function _i(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Pn(e,0,e.length,n),e}function vi(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Fn(s,e.slice(a+1,a+r+3)),s=Fn(s,[[`enter`,u,t]]),s=Fn(s,ar(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Fn(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Fn(s,e.slice(o+1)),s=Fn(s,[[`exit`,c,t]]),Pn(e,a,e.length,s),e}function yi(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Vn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(mi,u,o?u:d)(t):t===91?e.attempt(hi,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(gi,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function bi(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return X(t)?Kr(e,a)(t):a(t)}function a(t){return t===41?u(t):Ur(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return X(t)?Kr(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Gr(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return X(t)?Kr(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function xi(e,t,n){let r=this;return i;function i(t){return Wr.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Si(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Ci={name:`labelStartImage`,resolveAll:pi.resolveAll,tokenize:wi};function wi(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Ti={name:`labelStartLink`,resolveAll:pi.resolveAll,tokenize:Ei};function Ei(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Di={name:`lineEnding`,tokenize:Oi};function Oi(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}}var ki={name:`thematicBreak`,tokenize:Ai};function Ai(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Y(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Z(t)?Q(e,s,`whitespace`)(t):s(t))}}var ji={continuation:{tokenize:Fi},exit:Li,name:`list`,tokenize:Pi},Mi={partial:!0,tokenize:Ri},Ni={partial:!0,tokenize:Ii};function Pi(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Gn(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ki,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Gn(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(fr,r.interrupt?n:u,e.attempt(Mi,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Z(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Fi(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(fr,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ni,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt(ji,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Ii(e,t,n){let r=this;return Q(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Li(e){e.exit(this.containerState.type)}function Ri(e,t,n){let r=this;return Q(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Z(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var zi={name:`setextUnderline`,resolveTo:Bi,tokenize:Vi};function Bi(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Vi(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Z(t)?Q(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Y(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Hi={tokenize:Ui};function Ui(e){let t=this,n=e.attempt(fr,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Rr,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Wi={resolveAll:Ji()},Gi=qi(`string`),Ki=qi(`text`);function qi(e){return{resolveAll:Ji(e===`text`?Yi:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Ji(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Yi(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Xi=t({attentionMarkers:()=>ia,contentInitial:()=>Qi,disable:()=>aa,document:()=>Zi,flow:()=>ea,flowInitial:()=>$i,insideSpan:()=>ra,string:()=>ta,text:()=>na}),Zi={42:ji,43:ji,45:ji,48:ji,49:ji,50:ji,51:ji,52:ji,53:ji,54:ji,55:ji,56:ji,57:ji,62:mr},Qi={91:qr},$i={[-2]:Er,[-1]:Er,32:Er},ea={35:$r,42:ki,45:[zi,ki],60:ii,61:zi,95:ki,96:Cr,126:Cr},ta={38:br,92:vr},na={[-5]:Di,[-4]:Di,[-3]:Di,33:Ci,38:br,42:or,60:[ur,di],91:Ti,92:[Zr,vr],93:pi,95:or,96:Ar},ra={null:[or,Wi]},ia={null:[42,95]},aa={null:[]};function oa(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Fn(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=ar(a,l.events,l),l.events):[]}function f(e,t){return ca(p(e),t)}function p(e){return sa(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){Y(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Pn(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sa(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ca(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
3
|
-
`;break;case-3:o=`\r
|
|
4
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function la(e){let t={constructs:Ln([Xi,...(e||{}).extensions||[]]),content:n(Qn),defined:[],document:n(er),flow:n(Hi),lazy:{},string:n(Gi),text:n(Ki)};return t;function n(e){return n;function n(n){return oa(t,e,n)}}}function ua(e){for(;!Ir(e););return e}var da=/[\0\t\n\r]/g;function fa(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(da.lastIndex=u,c=da.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var pa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ma(e){return e.replace(pa,ha)}function ha(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Bn(n.slice(t?2:1),t?16:10)}return Nn(n)||e}var ga={}.hasOwnProperty;function _a(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),va(n)(ua(la(n).document().write(fa()(e,t,!0))))}function va(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ye),blockQuote:a(me),characterEscape:T,characterReference:T,codeFenced:a(he),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(he,o),codeText:a(ge,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(_e),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ve),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(we),listItemValue:f,listOrdered:a(M,d),listUnordered:a(M),paragraph:a(Te),reference:j,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ye),strong:a(Ee),thematicBreak:a(Oe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:pe,autolinkProtocol:fe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:ue,characterReference:de,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(re),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(te),htmlFlowData:E,htmlText:c(ne),htmlTextData:E,image:c(k),label:ae,labelText:ie,lineEnding:ee,link:c(O),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ce,resourceDestinationString:A,resourceTitleString:oe,resource:se,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};ba(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];ga.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Sa).call(a,void 0,e[0])}for(r.position={start:ya(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ya(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ya(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Sa).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+`): it’s not open`);n.position.end=ya(e.end)}function u(){return On(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vn(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=De(),n.position={start:ya(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ya(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=ya(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function O(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ie(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ma(t),n.identifier=Vn(t).toLowerCase()}function ae(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function se(){this.data.inReference=void 0}function j(){this.data.referenceType=`collapsed`}function ce(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function le(e){this.data.characterReferenceType=e.type}function ue(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Bn(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Nn(t);let i=this.stack[this.stack.length-1];i.value+=r}function de(e){let t=this.stack.pop();t.position.end=ya(e.end)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function pe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function me(){return{type:`blockquote`,children:[]}}function he(){return{type:`code`,lang:null,meta:null,value:``}}function ge(){return{type:`inlineCode`,value:``}}function _e(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ve(){return{type:`emphasis`,children:[]}}function ye(){return{type:`heading`,depth:0,children:[]}}function be(){return{type:`break`}}function xe(){return{type:`html`,value:``}}function Se(){return{type:`image`,title:null,url:``,alt:null}}function Ce(){return{type:`link`,title:null,url:``,children:[]}}function M(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function we(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Te(){return{type:`paragraph`,children:[]}}function Ee(){return{type:`strong`,children:[]}}function De(){return{type:`text`,value:``}}function Oe(){return{type:`thematicBreak`}}}function ya(e){return{line:e.line,column:e.column,offset:e.offset}}function ba(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?ba(e,r):xa(e,r)}}function xa(e,t){let n;for(n in t)if(ga.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Sa(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+`) is still open`)}function Ca(e){let t=this;t.parser=n;function n(n){return _a(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function wa(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ta(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
5
|
-
`}]}function Ea(e,t){let n=t.value?t.value+`
|
|
6
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Da(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Oa(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ka(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Zn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Aa(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ja(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ma(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Na(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ma(e,t);let i={src:Zn(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Pa(e,t){let n={src:Zn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Fa(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ia(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ma(e,t);let i={href:Zn(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function La(e,t){let n={href:Zn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ra(e,t,n){let r=e.all(t),i=n?za(n):Ba(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
7
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
8
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function za(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Ba(n[r])}return t}function Ba(e){return e.spread??e.children.length>1}function Va(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Ha(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ua(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Wa(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ga(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=qt(t.children[1]),o=H(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Ka(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function qa(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Ja=9,Ya=32;function Xa(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Za(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Za(t.slice(i),i>0,!1)),a.join(``)}function Za(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Ja||t===Ya;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Ja||t===Ya;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Qa(e,t){let n={type:`text`,value:Xa(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function $a(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var eo={blockquote:wa,break:Ta,code:Ea,delete:Da,emphasis:Oa,footnoteReference:ka,heading:Aa,html:ja,imageReference:Na,image:Pa,inlineCode:Fa,linkReference:Ia,link:La,listItem:Ra,list:Va,paragraph:Ha,root:Ua,strong:Wa,table:Ga,tableCell:qa,tableRow:Ka,text:Qa,thematicBreak:$a,toml:to,yaml:to,definition:to,footnoteDefinition:to};function to(){}var no=typeof self==`object`?self:globalThis,ro=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new no[e](t)},io=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof no[e]==`function`?ro(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(ro(a,o),i)};return r},ao=e=>io(new Map,e)(0),oo=``,{toString:so}={},{keys:co}=Object,lo=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=so.call(e).slice(8,-1);switch(n){case`Array`:return[1,oo];case`Object`:return[2,oo];case`Date`:return[3,oo];case`RegExp`:return[4,oo];case`Map`:return[5,oo];case`Set`:return[6,oo];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},uo=([e,t])=>e===0&&(t===`function`||t===`symbol`),fo=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=lo(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of co(r))(e||!uo(lo(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?oo:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(uo(lo(n))||uo(lo(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!uo(lo(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},po=(e,{json:t,lossy:n}={})=>{let r=[];return fo(!(t||n),!!t,new Map,r)(e),r},mo=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?ao(po(e,t)):structuredClone(e):(e,t)=>ao(po(e,t));function ho(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function go(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function _o(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||ho,r=e.options.footnoteBackLabel||go,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Zn(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...mo(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
9
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
10
|
-
`}]}}var vo=(function(e){if(e==null)return Co;if(typeof e==`function`)return So(e);if(typeof e==`object`)return Array.isArray(e)?yo(e):bo(e);if(typeof e==`string`)return xo(e);throw Error(`Expected function, string, or object as test`)});function yo(e){let t=[],n=-1;for(;++n<e.length;)t[n]=vo(e[n]);return So(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function bo(e){let t=e;return So(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function xo(e){return So(t);function t(t){return t&&t.type===e}}function So(e){return t;function t(t,n,r){return!!(wo(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Co(){return!0}function wo(e){return typeof e==`object`&&!!e&&`type`in e}function To(e){return e}var Eo=[];function Do(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=vo(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+To(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Eo,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Oo(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Oo(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Eo:[e]}function ko(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Do(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Ao={}.hasOwnProperty,jo={};function Mo(e,t){let n=t||jo,r=new Map,i=new Map,a={all:s,applyData:Po,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...eo,...n.handlers},one:o,options:n,patch:No,wrap:Io};return ko(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Ao.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=mo(n);return r.children=a.all(e),r}return mo(e)}return(a.options.unknownHandler||Fo)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Lo(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Lo(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function No(e,t){e.position&&(t.position=Yt(e))}function Po(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,mo(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Fo(e,t){let n=t.data||{},r=`value`in t&&!(Ao.call(n,`hProperties`)||Ao.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Io(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
11
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
12
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
13
|
-
`}),n}function Lo(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ro(e,t){let n=Mo(e,t),r=n.one(e,void 0),i=_o(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
14
|
-
`},i)),a}function zo(e,t){return e&&`run`in e?async function(n,r){let i=Ro(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ro(n,{file:r,...e||t})}}function Bo(e){if(e)throw e}var Vo=n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Ho(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Uo(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Wo(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Wo(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Go={basename:Ko,dirname:qo,extname:Jo,join:Yo,sep:`/`};function Ko(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Qo(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function qo(e){if(Qo(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Jo(e){Qo(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Yo(...e){let t=-1,n;for(;++t<e.length;)Qo(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Xo(n)}function Xo(e){Qo(e);let t=e.codePointAt(0)===47,n=Zo(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Zo(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Qo(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var $o={cwd:es};function es(){return`/`}function ts(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function ns(e){if(typeof e==`string`)e=new URL(e);else if(!ts(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return rs(e)}function rs(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var is=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],as=class{constructor(e){let t;t=e?ts(e)?{path:e}:typeof e==`string`||ls(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:$o.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<is.length;){let e=is[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)is.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Go.basename(this.path):void 0}set basename(e){ss(e,`basename`),os(e,`basename`),this.path=Go.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Go.dirname(this.path):void 0}set dirname(e){cs(this.basename,`dirname`),this.path=Go.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Go.extname(this.path):void 0}set extname(e){if(os(e,`extname`),cs(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Go.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){ts(e)&&(e=ns(e)),ss(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Go.basename(this.path,this.extname):void 0}set stem(e){ss(e,`stem`),os(e,`stem`),this.path=Go.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new U(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function os(e,t){if(e&&e.includes(Go.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Go.sep+"`")}function ss(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function cs(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ls(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var us=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),ds=e(Vo(),1),fs={}.hasOwnProperty,ps=new class e extends us{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=Uo()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,ds.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(gs(`data`,this.frozen),this.namespace[e]=t,this):fs.call(this.namespace,e)&&this.namespace[e]||void 0:e?(gs(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=ys(e),n=this.parser||this.Parser;return ms(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),ms(`process`,this.parser||this.Parser),hs(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=ys(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);xs(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),ms(`processSync`,this.parser||this.Parser),hs(`processSync`,this.compiler||this.Compiler),this.process(e,r),vs(`processSync`,`process`,t),n;function r(e,r){t=!0,Bo(e),n=r}}run(e,t,n){_s(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=ys(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),vs(`runSync`,`run`,n),r;function i(e,t){Bo(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=ys(t),r=this.compiler||this.Compiler;return hs(`stringify`,r),_s(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(gs(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,ds.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Ho(o)&&Ho(r)&&(r=(0,ds.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function ms(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function hs(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function gs(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _s(e){if(!Ho(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function vs(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ys(e){return bs(e)?e:new as(e)}function bs(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function xs(e){return typeof e==`string`||Ss(e)}function Ss(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Cs=[],ws={allowDangerousHtml:!0},Ts=/^(https?|ircs?|mailto|xmpp)$/i,Es=[{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 Ds(e){let t=Os(e),n=ks(e);return As(t.runSync(t.parse(n),n),e)}function Os(e){let t=e.rehypePlugins||Cs,n=e.remarkPlugins||Cs,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ws}:ws;return ps().use(Ca).use(n).use(zo,r).use(t)}function ks(e){let t=e.children||``,n=new as;return typeof t==`string`?n.value=t:``+t,n}function As(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||js;for(let e of Es)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return ko(e,l),an(e,{Fragment:P.Fragment,components:i,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in En)if(Object.hasOwn(En,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=En[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function js(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Ts.test(e.slice(0,t))?e:``}function Ms(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ns(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Ps(e,t,n){let r=vo((n||{}).ignore||[]),i=Fs(t),a=-1;for(;++a<i.length;)Do(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function Fs(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Is(e[0]),Ls(e[1])])}return t}function Is(e){return typeof e==`string`?new RegExp(Ns(e),`g`):e}function Ls(e){return typeof e==`function`?e:function(){return e}}var Rs=`phrasing`,zs=[`autolink`,`link`,`image`,`label`];function Bs(){return{transforms:[Js],enter:{literalAutolink:Hs,literalAutolinkEmail:Us,literalAutolinkHttp:Us,literalAutolinkWww:Us},exit:{literalAutolink:qs,literalAutolinkEmail:Ks,literalAutolinkHttp:Ws,literalAutolinkWww:Gs}}}function Vs(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Rs,notInConstruct:zs},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Rs,notInConstruct:zs},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Rs,notInConstruct:zs}]}}function Hs(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Us(e){this.config.enter.autolinkProtocol.call(this,e)}function Ws(e){this.config.exit.autolinkProtocol.call(this,e)}function Gs(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Ks(e){this.config.exit.autolinkEmail.call(this,e)}function qs(e){this.exit(e)}function Js(e){Ps(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ys],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Xs]],{ignore:[`link`,`linkReference`]})}function Ys(e,t,n,r,i){let a=``;if(!$s(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Zs(n)))return!1;let o=Qs(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Xs(e,t,n,r){return!$s(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Zs(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Qs(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Ms(e,`(`),a=Ms(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function $s(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Yn(n)||Jn(n))&&(!t||n!==47)}lc.peek=cc;function ec(){this.buffer()}function tc(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function nc(){this.buffer()}function rc(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function ic(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ac(e){this.exit(e)}function oc(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sc(e){this.exit(e)}function cc(){return`[`}function lc(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function uc(){return{enter:{gfmFootnoteCallString:ec,gfmFootnoteCall:tc,gfmFootnoteDefinitionLabelString:nc,gfmFootnoteDefinition:rc},exit:{gfmFootnoteCallString:ic,gfmFootnoteCall:ac,gfmFootnoteDefinitionLabelString:oc,gfmFootnoteDefinition:sc}}}function dc(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:lc},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
15
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?pc:fc))),s(),o}}function fc(e,t,n){return t===0?e:pc(e,t,n)}function pc(e,t,n){return(n?``:` `)+e}var mc=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];yc.peek=bc;function hc(){return{canContainEols:[`delete`],enter:{strikethrough:_c},exit:{strikethrough:vc}}}function gc(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:mc}],handlers:{delete:yc}}}function _c(e){this.enter({type:`delete`,children:[]},e)}function vc(e){this.exit(e)}function yc(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function bc(){return`~`}function xc(e){return e.length}function Sc(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||xc,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Cc(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=wc(r[d]);else{let e=wc(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
16
|
-
`)}function Cc(e){return e==null?``:String(e)}function wc(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Tc(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Ec);return i(),o}function Ec(e,t,n){return`>`+(n?``:` `)+e}function Dc(e,t){return Oc(e,t.inConstruct,!0)&&!Oc(e,t.notInConstruct,!1)}function Oc(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function kc(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
17
|
-
`&&Dc(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
18
|
-
`}function Ac(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function jc(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Mc(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Nc(e,t,n,r){let i=Mc(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(jc(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Pc);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Ac(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
19
|
-
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
20
|
-
`),a&&(u+=s.move(a+`
|
|
21
|
-
`)),u+=s.move(c),l(),u}function Pc(e,t,n){return(n?``:` `)+e}function Fc(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ic(e,t,n,r){let i=Fc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
22
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Lc(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Rc(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function zc(e,t,n){let r=ir(e),i=ir(t);return r===void 0?i===void 0?n===`_`?{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}}Bc.peek=Vc;function Bc(e,t,n,r){let i=Lc(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=zc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Rc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=zc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Rc(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Vc(e,t,n){return n.options.emphasis||`*`}function Hc(e,t){let n=!1;return ko(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&On(e)&&(t.options.setext||n))}function Uc(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Hc(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
23
|
-
`,after:`
|
|
24
|
-
`});return r(),t(),o+`
|
|
25
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
26
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
27
|
-
`,...a.current()});return/^[\t ]/.test(l)&&(l=Rc(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}Wc.peek=Gc;function Wc(e){return e.value||``}function Gc(){return`<`}Kc.peek=qc;function Kc(e,t,n,r){let i=Fc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function qc(){return`!`}Jc.peek=Yc;function Jc(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Yc(){return`!`}Xc.peek=Zc;function Xc(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Zc(){return"`"}function Qc(e,t){let n=On(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}$c.peek=el;function $c(e,t,n,r){let i=Fc(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Qc(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function el(e,t,n){return Qc(e,n)?`<`:`[`}tl.peek=nl;function tl(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function nl(){return`[`}function rl(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function il(e){let t=rl(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function al(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ol(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function sl(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?al(n):rl(n),s=e.ordered?o===`.`?`)`:`.`:il(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),ol(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function cl(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ll(e,t,n,r){let i=cl(n),a=n.bulletCurrent||rl(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function ul(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var dl=vo([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function fl(e,t,n,r){return(e.children.some(function(e){return dl(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function pl(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ml.peek=hl;function ml(e,t,n,r){let i=pl(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=zc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Rc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=zc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Rc(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function hl(e,t,n){return n.options.strong||`*`}function gl(e,t,n,r){return n.safe(e.value,r)}function _l(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function vl(e,t,n){let r=(ol(n)+(n.options.ruleSpaces?` `:``)).repeat(_l(n));return n.options.ruleSpaces?r.slice(0,-1):r}var yl={blockquote:Tc,break:kc,code:Nc,definition:Ic,emphasis:Bc,hardBreak:kc,heading:Uc,html:Wc,image:Kc,imageReference:Jc,inlineCode:Xc,link:$c,linkReference:tl,list:sl,listItem:ll,paragraph:ul,root:fl,strong:ml,text:gl,thematicBreak:vl};function bl(){return{enter:{table:xl,tableData:Tl,tableHeader:Tl,tableRow:Cl},exit:{codeText:El,table:Sl,tableData:wl,tableHeader:wl,tableRow:wl}}}function xl(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Sl(e){this.exit(e),this.data.inTable=void 0}function Cl(e){this.enter({type:`tableRow`,children:[]},e)}function wl(e){this.exit(e)}function Tl(e){this.enter({type:`tableCell`,children:[]},e)}function El(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Dl));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Dl(e,t){return t===`|`?t:e}function Ol(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
28
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
29
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Sc(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=yl.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function kl(){return{exit:{taskListCheckValueChecked:jl,taskListCheckValueUnchecked:jl,paragraph:Ml}}}function Al(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Nl}}}function jl(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Ml(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Nl(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=yl.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Pl(){return[Bs(),uc(),hc(),bl(),kl()]}function Fl(e){return{extensions:[Vs(),dc(e),gc(),Ol(e),Al()]}}var Il={tokenize:Xl,partial:!0},Ll={tokenize:Zl,partial:!0},Rl={tokenize:Ql,partial:!0},zl={tokenize:$l,partial:!0},Bl={tokenize:eu,partial:!0},Vl={name:`wwwAutolink`,tokenize:Jl,previous:tu},Hl={name:`protocolAutolink`,tokenize:Yl,previous:nu},Ul={name:`emailAutolink`,tokenize:ql,previous:ru},Wl={};function Gl(){return{text:Wl}}for(var Kl=48;Kl<123;)Wl[Kl]=Ul,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);Wl[43]=Ul,Wl[45]=Ul,Wl[46]=Ul,Wl[95]=Ul,Wl[72]=[Ul,Hl],Wl[104]=[Ul,Hl],Wl[87]=[Ul,Vl],Wl[119]=[Ul,Vl];function ql(e,t,n){let r=this,i,a;return o;function o(t){return!iu(t)||!ru.call(r,r.previous)||au(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return iu(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Bl,u,l)(t):t===45||t===95||J(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Hn(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Jl(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!tu.call(r,r.previous)||au(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Il,e.attempt(Ll,e.attempt(Rl,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Yl(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&nu.call(r,r.previous)&&!au(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Hn(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Wn(t)||X(t)||Yn(t)||Jn(t)?n(t):e.attempt(Ll,e.attempt(Rl,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Xl(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Zl(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(zl,c,s)(t):t===null||X(t)||Yn(t)||t!==45&&Jn(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Ql(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(zl,t,a)(o):o===null||X(o)||Yn(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function $l(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||X(o)||Yn(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||X(e)||Yn(e)?t(e):r(e)}function a(e){return Hn(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Hn(t)?(e.consume(t),o):n(t)}}function eu(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return J(e)?n(e):t(e)}}function tu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function nu(e){return!Hn(e)}function ru(e){return!(e===47||iu(e))}function iu(e){return e===43||e===45||e===46||e===95||J(e)}function au(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var ou={tokenize:mu,partial:!0};function su(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:du,continuation:{tokenize:fu},exit:pu}},text:{91:{name:`gfmFootnoteCall`,tokenize:uu},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:cu,resolveTo:lu}}}}function cu(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Vn(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function lu(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function uu(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||X(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Vn(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return X(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function du(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||X(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Vn(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return X(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Q(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function fu(e,t,n){return e.check(fr,t,e.attempt(ou,t,n))}function pu(e){e.exit(`gfmFootnoteDefinition`)}function mu(e,t,n){let r=this;return Q(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function hu(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&Pn(o,o.length,0,ar(s,e.slice(r+1,n),t)),Pn(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),Pn(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=ir(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=ir(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var gu=class{constructor(){this.map=[]}add(e,t,n){_u(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function _u(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function vu(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function yu(){return{flow:{null:{name:`table`,tokenize:bu,resolveAll:xu}}}}function bu(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):Y(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Z(t)?Q(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||X(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Z(t)?Q(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Z(t)?Q(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Y(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Z(t)?Q(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Y(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Y(n)?(e.exit(`tableRow`),t(n)):Z(n)?Q(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||X(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function xu(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new gu;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Cu(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Su(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Su(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Su(f,t,o,i,n,d)):(o[0]=o[1],d=Su(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Cu(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=vu(t.events,n))}return e}function Su(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},wu(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=wu(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=wu(t.events,n[2]),a=wu(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},wu(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Cu(e,t,n,r,i){let a=[],o=wu(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function wu(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Tu={name:`tasklistCheck`,tokenize:Du};function Eu(){return{text:{91:Tu}}}function Du(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return X(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Y(r)?t(r):Z(r)?e.check({tokenize:Ou},t,n)(r):n(r)}}function Ou(e,t,n){return Q(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function ku(e){return Ln([Gl(),su(),hu(e),yu(),Eu()])}var Au={};function ju(e){let t=this,n=e||Au,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(ku(n)),a.push(Pl()),o.push(Fl(n))}function Mu({source:e}){let[t,n]=(0,N.useState)({source:e,value:`preview`}),[r,i]=(0,N.useState)({source:``,dataUrl:``,error:!1});(0,N.useEffect)(()=>{let t=!1;return Ke(e).then(n=>{t||i({source:e,dataUrl:We(n),error:!1})}).catch(()=>{t||i({source:e,dataUrl:``,error:!0})}),()=>{t=!0}},[e]);let a=r.source===e?r:{source:e,dataUrl:``,error:!1},o=t.source===e?t.value:`preview`,s=r.source!==e,c=o===`source`||a.error;return(0,P.jsxs)(`figure`,{className:`my-5 overflow-hidden rounded-xl border border-border bg-muted/20`,children:[(0,P.jsxs)(`figcaption`,{className:`flex min-h-9 items-center justify-between gap-3 border-b border-border px-3 py-1.5`,children:[(0,P.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground/65`,children:`mermaid`}),(0,P.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-md bg-background/70 p-0.5`,children:[(0,P.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40`,disabled:!a.dataUrl,"aria-pressed":!c,onClick:()=>n({source:e,value:`preview`}),children:M(`svgPreviewMode`)}),(0,P.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground`,"aria-pressed":c,onClick:()=>n({source:e,value:`source`}),children:M(`svgSourceMode`)})]})]}),s?(0,P.jsx)(`div`,{className:`flex min-h-28 items-center justify-center px-4 py-8 text-xs text-muted-foreground/70`,role:`status`,children:M(`mermaidRendering`)}):c?(0,P.jsxs)(P.Fragment,{children:[a.error?(0,P.jsx)(`p`,{className:`px-4 pt-3 text-xs text-muted-foreground`,children:M(`mermaidRenderFailed`)}):null,(0,P.jsx)(`pre`,{className:`overflow-auto p-4 text-[12px] leading-5`,children:(0,P.jsx)(`code`,{children:e})})]}):(0,P.jsx)(`div`,{className:`flex min-h-28 justify-center overflow-auto bg-background/45 p-4`,children:(0,P.jsx)(`img`,{className:`h-auto max-w-full object-contain`,src:a.dataUrl,alt:M(`mermaidPreviewLabel`)})})]})}function Nu(){let[e,t]=(0,N.useState)(()=>Be());return(0,N.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>t(Be());return window.addEventListener(Ae,e),()=>window.removeEventListener(Ae,e)},[]),e}function Pu({path:e,content:t,language:n,wordWrap:r=!1}){let i=Je(),a=Nu();return(0,P.jsx)(Xe,{value:t,language:n,theme:i===`dark`?`vs-dark`:`vs`,options:{readOnly:!0,contextmenu:!1,automaticLayout:!0,minimap:{enabled:!1},fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-mono`).trim()||`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace`,fontSize:a.fontSize,lineHeight:a.lineHeight,lineNumbers:`on`,scrollBeyondLastLine:!1,wordWrap:r?`on`:`off`,renderLineHighlight:`line`,folding:!1,glyphMargin:!1,scrollbar:{horizontal:r?`auto`:`visible`,horizontalScrollbarSize:10,verticalScrollbarSize:8}}},e)}function Fu(e){try{return decodeURIComponent(e)}catch{return e}}function Iu(e,t){let n=t.replace(/\\/g,`/`),r=n.startsWith(`/`)?[]:e.replace(/\\/g,`/`).replace(/^\/+/,``).split(`/`).slice(0,-1).filter(Boolean);for(let e of n.replace(/^\/+/,``).split(`/`)){let t=Fu(e).replace(/\\/g,`/`).split(`/`);for(let e of t)if(!(!e||e===`.`)){if(e===`..`){if(!r.length)return;r.pop();continue}if(e.includes(`\0`))return;r.push(e)}}return r.length?r.join(`/`):void 0}function Lu(e,t,n){let r=n?.trim();if(!r)return;if(/^https?:\/\//i.test(r)||r.startsWith(`//`))return r;if(/^[a-z][a-z\d+.-]*:/i.test(r)||!e)return;let i=r.search(/[?#]/),a=i>=0?r.slice(0,i):r,o=i>=0?r.slice(i):``,s=Iu(t,a);if(s)return`${Me(e,s)}${o}`}function Ru(e){return e?.match(/(?:^|\s)language-([^\s]+)/)?.[1]}function zu(e,t){return{h1:({children:e})=>(0,P.jsx)(`h1`,{className:`mt-8 mb-3 border-b border-border pb-3 text-3xl font-semibold tracking-tight text-foreground/95`,children:e}),h2:({children:e})=>(0,P.jsx)(`h2`,{className:`mt-8 mb-3 border-b border-border pb-2 text-2xl font-semibold tracking-tight text-foreground/95`,children:e}),h3:({children:e})=>(0,P.jsx)(`h3`,{className:`mt-8 mb-3 text-xl font-semibold text-foreground/95`,children:e}),h4:({children:e})=>(0,P.jsx)(`h4`,{className:`mt-8 mb-3 text-lg font-semibold text-foreground/95`,children:e}),h5:({children:e})=>(0,P.jsx)(`h5`,{className:`mt-8 mb-3 text-base font-semibold text-foreground/95`,children:e}),h6:({children:e})=>(0,P.jsx)(`h6`,{className:`mt-8 mb-3 text-base font-semibold text-foreground/95`,children:e}),p:({children:e})=>(0,P.jsx)(`p`,{className:`my-4 text-foreground/86`,children:e}),a:({href:e,children:t})=>(0,P.jsx)(`a`,{className:`text-primary underline-offset-4 hover:underline`,href:e,target:e?.startsWith(`http`)||e?.startsWith(`//`)?`_blank`:void 0,rel:`noreferrer`,children:t}),img:({src:n,alt:r,title:i})=>{let a=Lu(e,t,n);return a?(0,P.jsx)(`img`,{className:`my-5 h-auto max-w-full rounded-xl border border-border object-contain`,src:a,alt:r??``,title:i,loading:`lazy`}):r?(0,P.jsx)(`span`,{className:`text-muted-foreground`,children:r}):null},blockquote:({children:e})=>(0,P.jsx)(`blockquote`,{className:`my-4 border-l-2 border-border pl-4 text-muted-foreground/85`,children:e}),ul:({children:e,className:t})=>(0,P.jsx)(`ul`,{className:`my-4 list-disc space-y-1 pl-6 ${t??``}`,children:e}),ol:({children:e,className:t})=>(0,P.jsx)(`ol`,{className:`my-4 list-decimal space-y-1 pl-6 ${t??``}`,children:e}),li:({children:e,className:t})=>(0,P.jsx)(`li`,{className:t,children:e}),hr:()=>(0,P.jsx)(`hr`,{className:`my-6 border-border`}),table:({children:e})=>(0,P.jsx)(`div`,{className:`my-5 overflow-auto rounded-xl border border-border`,children:(0,P.jsx)(`table`,{className:`w-full border-collapse text-left text-sm`,children:e})}),thead:({children:e})=>(0,P.jsx)(`thead`,{className:`bg-muted/25 text-foreground/90`,children:e}),tbody:({children:e})=>(0,P.jsx)(`tbody`,{children:e}),tr:({children:e})=>(0,P.jsx)(`tr`,{className:`border-t border-border/70 first:border-t-0`,children:e}),th:({children:e})=>(0,P.jsx)(`th`,{className:`border-b border-border px-3 py-2 font-semibold`,children:e}),td:({children:e})=>(0,P.jsx)(`td`,{className:`px-3 py-2 align-top text-foreground/85`,children:e}),pre:({children:e})=>{let t=(0,N.isValidElement)(e)?e:void 0,n=Ru(t?.props.className),r=String(t?.props.children??``).replace(/\n$/,``);return Ge(n)?(0,P.jsx)(Mu,{source:r}):(0,P.jsxs)(`figure`,{className:`my-5 overflow-hidden rounded-xl border border-border bg-muted/20`,children:[n?(0,P.jsx)(`figcaption`,{className:`border-b border-border px-3 py-1.5 font-mono text-[11px] text-muted-foreground/65`,children:n}):null,(0,P.jsx)(`pre`,{className:`overflow-auto p-4 text-[12px] leading-5 [&_code]:rounded-none [&_code]:bg-transparent [&_code]:p-0`,children:e})]})},code:({className:e,children:t})=>(0,P.jsx)(`code`,{className:`${e??``} rounded bg-muted/35 px-1 py-0.5 font-mono text-[0.85em] text-foreground/90`,children:t}),input:({type:e,checked:t,disabled:n})=>e===`checkbox`?(0,P.jsx)(`input`,{className:`mr-2 align-middle accent-primary`,type:`checkbox`,checked:t,disabled:n??!0,readOnly:!0}):null}}function Bu({projectId:e,path:t,content:n,language:r,mode:i,wordWrap:a=!1}){let o=(0,N.useMemo)(()=>zu(e,t),[e,t]);return(0,P.jsx)(`div`,{className:`flex h-full min-h-0 flex-col bg-background`,children:(0,P.jsx)(`div`,{className:`min-h-0 flex-1`,children:i===`source`?(0,P.jsx)(Pu,{path:t,content:n,language:r,wordWrap:a}):(0,P.jsx)(`div`,{className:`h-full overflow-auto bg-background`,children:(0,P.jsx)(`article`,{className:`quickforge-markdown-reader mx-auto max-w-3xl px-8 py-7 text-sm leading-7 text-foreground/88`,children:n.trim()?(0,P.jsx)(Ds,{remarkPlugins:[ju],components:o,skipHtml:!0,children:n}):(0,P.jsx)(`p`,{className:`text-muted-foreground/70`,children:`This Markdown file is empty.`})})})})})}function Vu({path:e,oldContent:t,newContent:n,language:r,status:i}){let a=Je(),o=Nu();return(0,P.jsx)(Ye,{original:t,modified:n,language:r,theme:a===`dark`?`vs-dark`:`vs`,options:{readOnly:!0,contextmenu:!1,automaticLayout:!0,renderSideBySide:!0,minimap:{enabled:!1},fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-mono`).trim()||`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace`,fontSize:o.fontSize,lineHeight:o.lineHeight,scrollBeyondLastLine:!1,ignoreTrimWhitespace:!1,folding:!1,glyphMargin:!1,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8}}},`${i}:${e}`)}function Hu(e,t){let n=e.replace(/\r\n?/g,`
|
|
30
|
-
`).split(`
|
|
31
|
-
`),r=t.replace(/\r\n?/g,`
|
|
32
|
-
`).split(`
|
|
33
|
-
`),i=n.length,a=r.length;if(i*a>4e6)return;let o=Array(a+1).fill(0),s=Array(a+1).fill(0);for(let e=1;e<=i;e++){let t=n[e-1];for(let e=1;e<=a;e++)s[e]=t===r[e-1]?o[e-1]+1:Math.max(o[e],s[e-1]);let i=o;o=s,s=i}let c=o[a];return{added:a-c,removed:i-c}}var Uu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ef5350'%20d='M16%202a14%2014%200%201%200%2014%2014A14%2014%200%200%200%2016%202m6%2010h-4v8a4%204%200%201%201-4-4%203.96%203.96%200%200%201%202%20.555V8h6Z'/%3e%3c/svg%3e`,Wu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M19.563%2022A5.57%205.57%200%200%201%2014%2016.437v-2.873A5.57%205.57%200%200%201%2019.563%208H24V2h-4.437A11.563%2011.563%200%200%200%208%2013.563v2.873A11.564%2011.564%200%200%200%2019.563%2028H24v-6Z'/%3e%3c/svg%3e`,Gu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ff5722'%20d='M2%202a1%201%200%200%200-1%201v7a1%201%200%200%200%201%201h6v3l2-1.25L12%2014v-3h2a1%201%200%200%200%201-1V3a1%201%200%200%200-1-1Zm0%201h4v1H2Zm6%200%202%201.25L12%203v2.5l2%201-2%201V10l-2-1.25L8%2010V7.5l-2-1%202-1zM2%205h3v1H2Zm0%202h3v1H2Zm0%202h4v1H2Z'/%3e%3c/svg%3e`,Ku=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ff7043'%20d='M2%202a1%201%200%200%200-1%201v10c0%20.554.446%201%201%201h12c.554%200%201-.446%201-1V3a1%201%200%200%200-1-1zm0%203h12v8H2zm1%202%202%202-2%202%201%201%203-3-3-3zm5%203.5V12h5v-1.5z'/%3e%3c/svg%3e`,qu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M28%2014v-4h-2v4h-6v-4h-2v4h-4v2h4v4h2v-4h6v4h2v-4h4v-2z'/%3e%3cpath%20fill='%230288d1'%20d='M13.563%2022A5.57%205.57%200%200%201%208%2016.437v-2.873A5.57%205.57%200%200%201%2013.563%208H18V2h-4.437A11.563%2011.563%200%200%200%202%2013.563v2.873A11.564%2011.564%200%200%200%2013.563%2028H18v-6Z'/%3e%3c/svg%3e`,Ju=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M30%2014v-2h-2V8h-2v4h-2V8h-2v4h-2v2h2v2h-2v2h2v4h2v-4h2v4h2v-4h2v-2h-2v-2Zm-4%202h-2v-2h2Zm-12.437%206A5.57%205.57%200%200%201%208%2016.437v-2.873A5.57%205.57%200%200%201%2013.563%208H18V2h-4.437A11.563%2011.563%200%200%200%202%2013.563v2.873A11.564%2011.564%200%200%200%2013.563%2028H18v-6Z'/%3e%3c/svg%3e`,Yu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%237e57c2'%20d='M20%2018h-2v-2h-2v2c0%20.193%200%20.703%201.254%201.033A3.345%203.345%200%200%201%2020%2022h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356%2020.34%2020%2018.84%2020%2018m-3.254%202.966C14.356%2020.34%2014%2018.84%2014%2018h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034'/%3e%3cpath%20fill='%237e57c2'%20d='M24%204H4v20a4%204%200%200%200%204%204h16.16A3.84%203.84%200%200%200%2028%2024.16V8a4%204%200%200%200-4-4m2%2014h-2v-2h-2v2c0%20.193%200%20.703%201.254%201.033A3.345%203.345%200%200%201%2026%2022v2a2%202%200%200%201-2%202h-2a2%202%200%200%201-2-2%202%202%200%200%201-2%202h-2a2%202%200%200%201-2-2%202%202%200%200%201-2%202h-2a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202%202%202%200%200%201%202-2h2a2%202%200%200%201%202%202%202%202%200%200%201%202-2h2a2%202%200%200%201%202%202Z'/%3e%3c/svg%3e`,Xu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffca28'%20d='M16%2024c-5.525%200-10-.9-10-2v4c0%201.1%204.475%202%2010%202s10-.9%2010-2v-4c0%201.1-4.475%202-10%202m0-8c-5.525%200-10-.9-10-2v4c0%201.1%204.475%202%2010%202s10-.9%2010-2v-4c0%201.1-4.475%202-10%202m0-12C10.477%204%206%204.895%206%206v4c0%201.1%204.475%202%2010%202s10-.9%2010-2V6c0-1.105-4.477-2-10-2'/%3e%3c/svg%3e`,Zu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%230288d1'%20d='M21.81%2010.25c-.06-.04-.56-.43-1.64-.43-.28%200-.56.03-.84.08-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17-.18.27c-.24.36-.43.77-.51%201.19-.2.8-.08%201.56.33%202.21-.49.28-1.29.35-1.46.35H2.62c-.34%200-.62.28-.62.63%200%201.15.18%202.3.58%203.38.45%201.19%201.13%202.07%202%202.61.98.6%202.59.94%204.42.94.79%200%201.61-.07%202.42-.22%201.12-.2%202.2-.59%203.19-1.16A8.3%208.3%200%200%200%2016.78%2016c1.05-1.17%201.67-2.5%202.12-3.65h.19c1.14%200%201.85-.46%202.24-.85.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08%200%20.16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09%200-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43%200h1.76c.08%200%20.16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09%200-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47%200h1.75c.1%200%20.17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08%200-.15.07-.15.16v1.58c0%20.09.06.16.15.16m2.44%200h1.77c.08%200%20.15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08%200-.15.07-.15.16v1.58c0%20.09.07.16.15.16M6.28%209h1.76c.08%200%20.16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09%200-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47%200h1.75c.1%200%20.17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08%200-.15.06-.15.16v1.57c0%20.09.06.18.15.18m2.44%200h1.77c.08%200%20.15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08%200-.15.06-.15.16v1.57c0%20.09.07.18.15.18m0-2.28h1.77c.08%200%20.15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08%200-.15.06-.15.17v1.56c0%20.08.07.16.15.16m2.46%204.52h1.76c.09%200%20.16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08%200-.15.07-.15.16v1.58c0%20.09.07.16.15.16'/%3e%3c/svg%3e`,Qu=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%2016h8v2H8zm0-4h8v2H8zm6-10H6c-1.1%200-2%20.9-2%202v16c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8zm4%2018H6V4h7v5h5z'/%3e%3c/svg%3e`,$u=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%233f51b5'%20d='M22.713%204H9.287a.5.5%200%200%200-.432.248l-6.708%2011.5a.5.5%200%200%200%200%20.504l6.708%2011.5a.5.5%200%200%200%20.432.248h13.426a.5.5%200%200%200%20.432-.248l6.708-11.5a.5.5%200%200%200%200-.504l-6.708-11.5A.5.5%200%200%200%2022.713%204m-6.937%2020.888-7.5-3.75A.5.5%200%200%201%208%2020.691v-9.382a.5.5%200%200%201%20.276-.447l7.5-3.75a.5.5%200%200%201%20.448%200l7.5%203.75a.5.5%200%200%201%20.276.447v9.382a.5.5%200%200%201-.276.447l-7.5%203.75a.5.5%200%200%201-.448%200'/%3e%3cpath%20fill='%237986cb'%20d='M22%2019.441v-6.882a.5.5%200%200%200-.276-.447l-5.5-2.75a.5.5%200%200%200-.448%200l-5.5%202.75a.5.5%200%200%200-.276.447v6.882a.5.5%200%200%200%20.276.447l5.5%202.75a.5.5%200%200%200%20.448%200l5.5-2.75a.5.5%200%200%200%20.276-.447'/%3e%3c/svg%3e`,ed=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23f44336'%20d='M24%2028h4L18%204h-4L4%2028h4l8-19.422'/%3e%3cpath%20fill='%23f44336'%20d='M8%2020h16v4H8z'/%3e%3c/svg%3e`,td=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e64a19'%20d='M13.172%202.828%2011.78%204.22l1.91%201.91%202%202A2.986%202.986%200%200%201%2020%2010.81a3.25%203.25%200%200%201-.31%201.31l2.06%202a2.68%202.68%200%200%201%203.37.57%202.86%202.86%200%200%201%20.88%202.117%203.02%203.02%200%200%201-.856%202.109A2.9%202.9%200%200%201%2023%2019.81a2.93%202.93%200%200%201-2.13-.87%202.694%202.694%200%200%201-.56-3.38l-2-2.06a3%203%200%200%201-.31.12V20a3%203%200%200%201%201.44%201.09%202.92%202.92%200%200%201%20.56%201.72%202.88%202.88%200%200%201-.878%202.128%202.98%202.98%200%200%201-2.048.871%202.981%202.981%200%200%201-2.514-4.719A3%203%200%200%201%2016%2020v-6.38a2.96%202.96%200%200%201-1.44-1.09%202.9%202.9%200%200%201-.56-1.72%202.9%202.9%200%200%201%20.31-1.31l-3.9-3.9-7.579%207.572a4%204%200%200%200-.001%205.658l10.342%2010.342a4%204%200%200%200%205.656%200l10.344-10.344a4%204%200%200%200%200-5.656L18.828%202.828a4%204%200%200%200-5.656%200'/%3e%3c/svg%3e`,nd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300acc1'%20d='M2%2012h4v2H2zm-2%204h6v2H0zm4%204h2v2H4zm16.954-5H14v3h3.239a4.42%204.42%200%200%201-3.531%202%202.65%202.65%200%200%201-2.053-.858%202.86%202.86%200%200%201-.628-2.28A4.515%204.515%200%200%201%2015.292%2013a2.73%202.73%200%200%201%201.749.584l2.962-1.185A5.6%205.6%200%200%200%2015.292%2010a7.526%207.526%200%200%200-7.243%206.5%205.614%205.614%200%200%200%205.659%206.5%207.526%207.526%200%200%200%207.243-6.5%206.4%206.4%200%200%200%20.003-1.5'/%3e%3cpath%20fill='%2300acc1'%20d='M26.292%2010a7.526%207.526%200%200%200-7.243%206.5%205.614%205.614%200%200%200%205.659%206.5%207.526%207.526%200%200%200%207.243-6.5%205.614%205.614%200%200%200-5.659-6.5m2.681%206.137A4.515%204.515%200%200%201%2024.708%2020a2.65%202.65%200%200%201-2.053-.858%202.86%202.86%200%200%201-.628-2.28A4.515%204.515%200%200%201%2026.292%2013a2.65%202.65%200%200%201%202.053.858%202.86%202.86%200%200%201%20.628%202.28Z'/%3e%3c/svg%3e`,rd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e65100'%20d='m4%204%202%2022%2010%202%2010-2%202-22Zm19.72%207H11.28l.29%203h11.86l-.802%209.335L15.99%2025l-6.635-1.646L8.93%2019h3.02l.19%202%203.86.77%203.84-.77.29-4H8.84L8%208h16Z'/%3e%3c/svg%3e`,id=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%2326a69a'%20d='M8.5%206h4l-4-4zM3.875%201H9.5l4%204v8.6c0%20.773-.616%201.4-1.375%201.4h-8.25c-.76%200-1.375-.627-1.375-1.4V2.4c0-.777.612-1.4%201.375-1.4M4%2013.6h8V8l-2.625%202.8L8%209.4zm1.25-7.7c-.76%200-1.375.627-1.375%201.4s.616%201.4%201.375%201.4c.76%200%201.375-.627%201.375-1.4S6.009%205.9%205.25%205.9'/%3e%3c/svg%3e`,ad=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23f44336'%20d='M4%2026h24v2H4zM28%204H7a1%201%200%200%200-1%201v13a4%204%200%200%200%204%204h10a4%204%200%200%200%204-4v-4h4a2%202%200%200%200%202-2V6a2%202%200%200%200-2-2m0%208h-4V6h4Z'/%3e%3c/svg%3e`,od=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ffca28'%20d='M2%202v12h12V2zm6%206h1v4a1.003%201.003%200%200%201-1%201H7a1.003%201.003%200%200%201-1-1v-1h1v1h1zm3%200h2v1h-2v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201h-2v-1h2v-1h-1a1.003%201.003%200%200%201-1-1V9a1.003%201.003%200%200%201%201-1'/%3e%3c/svg%3e`,sd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cg%20fill='%23ffca28'%3e%3cpath%20d='M12%205v1h1v7H6v-1H5l-.069%202%209.069.001V5z'/%3e%3cpath%20d='M2%202v9h9V2zm3%203h1v4a1.003%201.003%200%200%201-1%201H4a1.003%201.003%200%200%201-1-1V8h1v1h1zm3%200h2v1H8v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201H7V9h2V8H8a1.003%201.003%200%200%201-1-1V6a1.003%201.003%200%200%201%201-1'/%3e%3c/g%3e%3c/svg%3e`,cd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%20-960%20960%20960'%3e%3cpath%20fill='%23f9a825'%20d='M560-160v-80h120q17%200%2028.5-11.5T720-280v-80q0-38%2022-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50%200%2085%2035t35%2085v80q0%2017%2011.5%2028.5T840-560h40v160h-40q-17%200-28.5%2011.5T800-360v80q0%2050-35%2085t-85%2035zm-280%200q-50%200-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17%200%2028.5-11.5T160-600v-80q0-50%2035-85t85-35h120v80H280q-17%200-28.5%2011.5T240-680v80q0%2038-22%2069t-58%2044v14q36%2013%2058%2044t22%2069v80q0%2017%2011.5%2028.5T280-240h120v80z'/%3e%3c/svg%3e`,ld=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2326a69a'%20d='M30%2014H17.738a8%208%200%201%200%200%204H24v4h4v-4h2Zm-20%205a3%203%200%201%201%203-3%203.003%203.003%200%200%201-3%203'/%3e%3c/svg%3e`,ud=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='1.725'%20x2='22.185'%20y1='22.67'%20y2='1.982'%20gradientTransform='translate(1.306%201.129)scale(.89324)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%237c4dff'/%3e%3cstop%20offset='.5'%20stop-color='%23d500f9'/%3e%3cstop%20offset='1'%20stop-color='%23ef5350'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20fill='url(%23a)'%20d='M2.975%202.976v18.048h18.05v-.03l-4.478-4.511-4.48-4.515%204.48-4.515%204.443-4.477z'/%3e%3c/svg%3e`,dd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%230277bd'%20d='M8%203a2%202%200%200%200-2%202v4a2%202%200%200%201-2%202H3v2h1a2%202%200%200%201%202%202v4a2%202%200%200%200%202%202h2v-2H8v-5a2%202%200%200%200-2-2%202%202%200%200%200%202-2V5h2V3m6%200a2%202%200%200%201%202%202v4a2%202%200%200%200%202%202h1v2h-1a2%202%200%200%200-2%202v4a2%202%200%200%201-2%202h-2v-2h2v-5a2%202%200%200%201%202-2%202%202%200%200%201-2-2V5h-2V3z'/%3e%3c/svg%3e`,fd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ff5722'%20d='M8%201a5.5%205.5%200%200%200-4%209.26V15l4-1.5%204%201.5v-4.74A5.49%205.49%200%200%200%208%201m0%201.5a4%204%200%201%201%200%208%204%204%200%200%201%200-8m0%202a2%202%200%201%200%200%204%202%202%200%200%200%200-4'/%3e%3c/svg%3e`,pd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffd54f'%20d='M25%2012h-3V8a6%206%200%200%200-12%200v4H7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h18a1%201%200%200%200%201-1V13a1%201%200%200%200-1-1M14%208a2%202%200%200%201%204%200v4h-4Zm2%2017a4%204%200%201%201%204-4%204%204%200%200%201-4%204'/%3e%3c/svg%3e`,md=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%23afb42b'%20d='M19%205v9h-5v5H5V5zm0-2H5c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h10l6-6V5c0-1.1-.9-2-2-2m-7%2011H7v-2h5zm5-4H7V8h10z'/%3e%3c/svg%3e`,hd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ef5350'%20d='m29.5%2024.02-1.6-.92a4.4%204.4%200%200%200%20.09-.9A1.3%201.3%200%200%200%2028%2022a5.6%205.6%200%200%200-.1-1.1l1.6-.92a.493.493%200%200%200%20.18-.68l-1.5-2.6a.45.45%200%200%200-.18-.18V6.01a2.006%202.006%200%200%200-2-2H4a2.006%202.006%200%200%200-2%202V22a2.006%202.006%200%200%200%202%202h10.53l-.03.02a.493.493%200%200%200-.18.68l1.5%202.6a.493.493%200%200%200%20.68.18l1.6-.92a5.9%205.9%200%200%200%201.9%201.09v1.85a.495.495%200%200%200%20.5.5h3a.495.495%200%200%200%20.5-.5v-1.85a5.9%205.9%200%200%200%201.9-1.09l1.6.92a.493.493%200%200%200%20.68-.18l1.5-2.6a.493.493%200%200%200-.18-.68M24%2022.01a1.99%201.99%200%200%201-.88%201.65l-.18.11a2.04%202.04%200%200%201-1.88%200l-.18-.11a1.99%201.99%200%200%201-.88-1.65V22a2%202%200%200%201%20.88-1.66l.18-.11a2.04%202.04%200%200%201%201.88%200l.18.11A2%202%200%200%201%2024%2022Zm2-4.63-.1.06a5.9%205.9%200%200%200-1.9-1.09V14.5a.495.495%200%200%200-.5-.5h-3a.495.495%200%200%200-.5.5v1.85a5.9%205.9%200%200%200-1.9%201.09l-1.6-.92a.493.493%200%200%200-.68.18l-1.5%202.6a.493.493%200%200%200%20.18.68l1.6.92A5.6%205.6%200%200%200%2016%2022v.01L4%2022V10.01h22Z'/%3e%3c/svg%3e`,gd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2342a5f5'%20d='m14%2010-4%203.5L6%2010H4v12h4v-6l2%202%202-2v6h4V10zm12%206v-6h-4v6h-4l6%208%206-8z'/%3e%3c/svg%3e`,_d=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%238bc34a'%20d='M16%2020.003v2h4a2%202%200%200%200%202-2v-2a2%202%200%200%200-2-2h-2v-2h4v-2h-4a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202h2v2Z'/%3e%3cpath%20fill='%238bc34a'%20d='m16%203.003-12%207v14l4%202h6v-13.5a.5.5%200%200%200-.5-.5h-1a.5.5%200%200%200-.5.5v11.5H8l-2-1.034V11.15l10-5.833%2010%205.833v11.703l-10%205.833-1.745-1.022L13%2029.253l3%201.75%2012-7v-14Z'/%3e%3c/svg%3e`,vd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e53935'%20d='M4%204v24h24V4Zm20%2020h-4V12h-4v12H8V8h16Z'/%3e%3c/svg%3e`,yd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ef5350'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m4.93%2010.44c.41.9.93%201.64%201.53%202.15l.41.32c-.87.16-2.07.44-3.34.93l-.11.04.5-1.04c.45-.87.78-1.66%201.01-2.4m6.48%203.81c.18-.18.27-.41.28-.66.03-.2-.02-.39-.12-.55-.29-.47-1.04-.69-2.28-.69l-1.29.07-.87-.58c-.63-.52-1.2-1.43-1.6-2.56l.04-.14c.33-1.33.64-2.94-.02-3.6a.85.85%200%200%200-.61-.24h-.24c-.37%200-.7.39-.79.77-.37%201.33-.15%202.06.22%203.27v.01c-.25.88-.57%201.9-1.08%202.93l-.96%201.8-.89.49c-1.2.75-1.77%201.59-1.88%202.12-.04.19-.02.36.05.54l.03.05.48.31.44.11c.81%200%201.73-.95%202.97-3.07l.18-.07c1.03-.33%202.31-.56%204.03-.75%201.03.51%202.24.74%203%20.74.44%200%20.74-.11.91-.3m-.41-.71.09.11c-.01.1-.04.11-.09.13h-.04l-.19.02c-.46%200-1.17-.19-1.9-.51.09-.1.13-.1.23-.1%201.4%200%201.8.25%201.9.35M7.83%2017c-.65%201.19-1.24%201.85-1.69%202%20.05-.38.5-1.04%201.21-1.69zm3.02-6.91c-.23-.9-.24-1.63-.07-2.05l.07-.12.15.05c.17.24.19.56.09%201.1l-.03.16-.16.82z'/%3e%3c/svg%3e`,bd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%231e88e5'%20d='M12%2018.08c-6.63%200-12-2.72-12-6.08s5.37-6.08%2012-6.08S24%208.64%2024%2012s-5.37%206.08-12%206.08m-5.19-7.95c.54%200%20.91.1%201.09.31.18.2.22.56.13%201.03-.1.53-.29.87-.58%201.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5%205.55h1.44l.34-1.75h1.23c.54%200%20.98-.06%201.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28%206.58h1.42l.74-3.77h1.14c.36%200%20.6.06.71.18s.13.34.07.66l-.57%202.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12%207.35zM18%2010.13c.55%200%20.91.1%201.09.31.18.2.22.56.13%201.03-.1.53-.29.87-.57%201.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5%205.55h1.44l.34-1.75h1.22c.55%200%201-.06%201.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z'/%3e%3c/svg%3e`,xd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23e64a19'%20d='M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m7%201.5V9h5.5zM8%2011v2h1v6H8v1h4v-1h-1v-2h2a3%203%200%200%200%203-3%203%203%200%200%200-3-3zm5%202a1%201%200%200%201%201%201%201%201%200%200%201-1%201h-2v-2z'/%3e%3c/svg%3e`,Sd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2303a9f4'%20d='M29.07%206H7.677A1.535%201.535%200%200%200%206.24%207.113l-4.2%2017.774A.852.852%200%200%200%202.93%2026h21.393a1.535%201.535%200%200%200%201.436-1.113L29.96%207.112A.852.852%200%200%200%2029.07%206M8.626%2023.797a1.4%201.4%200%200%201-1.814-.31l-.007-.009a1.075%201.075%200%200%201%20.315-1.599l9.6-6.061-6.102-5.852-.01-.01a1.068%201.068%200%200%201%20.084-1.625l.037-.03a1.38%201.38%200%200%201%201.8.07l7.233%206.957a1.1%201.1%200%200%201%20.236.739%201.08%201.08%200%200%201-.412.79c-.074.04-.146.119-10.951%206.935ZM24%2022.94A1.135%201.135%200%200%201%2022.803%2024h-5.634a1.061%201.061%200%201%201%20.001-2.112h5.633A1.134%201.134%200%200%201%2024%2022.938Z'/%3e%3c/svg%3e`,Cd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23f44336'%20d='M2%208h4v1H2zm0%206h4v1H2zm9-10h3v1h-3zM2%202h3v1H2z'/%3e%3cpath%20fill='%23f9a825'%20d='M9%202h3v1H9zm1%204h4v1h-4zm-5%206h1v1H5zm-3-2h6v1H2z'/%3e%3cpath%20fill='%2326a69a'%20d='M2%2012h3v1H2zm7-4h5v1H9zM2%204h4v1H2zm3-2h4v1H5z'/%3e%3cpath%20fill='%23ba68c8'%20d='M2%206h3v1H2zm7-2h2v1H9zm-1%206h4v1H8z'/%3e%3c/svg%3e`,wd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%230288d1'%20d='M9.86%202A2.86%202.86%200%200%200%207%204.86v1.68h4.29c.39%200%20.71.57.71.96H4.86A2.86%202.86%200%200%200%202%2010.36v3.781a2.86%202.86%200%200%200%202.86%202.86h1.18v-2.68a2.85%202.85%200%200%201%202.85-2.86h5.25c1.58%200%202.86-1.271%202.86-2.851V4.86A2.86%202.86%200%200%200%2014.14%202zm-.72%201.61c.4%200%20.72.12.72.71s-.32.891-.72.891c-.39%200-.71-.3-.71-.89s.32-.711.71-.711'/%3e%3cpath%20fill='%23fdd835'%20d='M17.959%207v2.68a2.85%202.85%200%200%201-2.85%202.859H9.86A2.85%202.85%200%200%200%207%2015.389v3.75a2.86%202.86%200%200%200%202.86%202.86h4.28A2.86%202.86%200%200%200%2017%2019.14v-1.68h-4.291c-.39%200-.709-.57-.709-.96h7.14A2.86%202.86%200%200%200%2022%2013.64V9.86A2.86%202.86%200%200%200%2019.14%207zM8.32%2011.513l-.004.004.038-.004zm6.54%207.276c.39%200%20.71.3.71.89a.71.71%200%200%201-.71.71c-.4%200-.72-.12-.72-.71s.32-.89.72-.89'/%3e%3c/svg%3e`,Td=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bcd4'%20d='M16%2012c7.444%200%2012%202.59%2012%204s-4.556%204-12%204-12-2.59-12-4%204.556-4%2012-4m0-2c-7.732%200-14%202.686-14%206s6.268%206%2014%206%2014-2.686%2014-6-6.268-6-14-6'/%3e%3cpath%20fill='%2300bcd4'%20d='M16%2014a2%202%200%201%200%202%202%202%202%200%200%200-2-2'/%3e%3cpath%20fill='%2300bcd4'%20d='M10.458%205.507c2.017%200%205.937%203.177%209.006%208.493%203.722%206.447%203.757%2011.687%202.536%2012.392a.9.9%200%200%201-.457.1c-2.017%200-5.938-3.176-9.007-8.492C8.814%2011.553%208.779%206.313%2010%205.608a.9.9%200%200%201%20.458-.1m-.001-2A2.87%202.87%200%200%200%209%203.875C6.13%205.532%206.938%2012.304%2010.804%2019c3.284%205.69%207.72%209.493%2010.74%209.493A2.87%202.87%200%200%200%2023%2028.124c2.87-1.656%202.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z'/%3e%3cpath%20fill='%2300bcd4'%20d='M21.543%205.507a.9.9%200%200%201%20.457.1c1.221.706%201.186%205.946-2.536%2012.393-3.07%205.316-6.99%208.493-9.007%208.493a.9.9%200%200%201-.457-.1C8.779%2025.686%208.814%2020.446%2012.536%2014c3.07-5.316%206.99-8.493%209.007-8.493m0-2c-3.02%200-7.455%203.804-10.74%209.493C6.939%2019.696%206.13%2026.468%209%2028.124a2.87%202.87%200%200%200%201.457.369c3.02%200%207.455-3.804%2010.74-9.493C25.061%2012.304%2025.87%205.532%2023%203.876a2.87%202.87%200%200%200-1.457-.369'/%3e%3c/svg%3e`,Ed=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M16%2012c7.444%200%2012%202.59%2012%204s-4.556%204-12%204-12-2.59-12-4%204.556-4%2012-4m0-2c-7.732%200-14%202.686-14%206s6.268%206%2014%206%2014-2.686%2014-6-6.268-6-14-6'/%3e%3cpath%20fill='%230288d1'%20d='M16%2014a2%202%200%201%200%202%202%202%202%200%200%200-2-2'/%3e%3cpath%20fill='%230288d1'%20d='M10.458%205.507c2.017%200%205.937%203.177%209.006%208.493%203.722%206.447%203.757%2011.687%202.536%2012.392a.9.9%200%200%201-.457.1c-2.017%200-5.938-3.176-9.007-8.492C8.814%2011.553%208.779%206.313%2010%205.608a.9.9%200%200%201%20.458-.1m-.001-2A2.87%202.87%200%200%200%209%203.875C6.13%205.532%206.938%2012.304%2010.804%2019c3.284%205.69%207.72%209.493%2010.74%209.493A2.87%202.87%200%200%200%2023%2028.124c2.87-1.656%202.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z'/%3e%3cpath%20fill='%230288d1'%20d='M21.543%205.507a.9.9%200%200%201%20.457.1c1.221.706%201.186%205.946-2.536%2012.393-3.07%205.316-6.99%208.493-9.007%208.493a.9.9%200%200%201-.457-.1C8.779%2025.686%208.814%2020.446%2012.536%2014c3.07-5.316%206.99-8.493%209.007-8.493m0-2c-3.02%200-7.455%203.804-10.74%209.493C6.939%2019.696%206.13%2026.468%209%2028.124a2.87%202.87%200%200%200%201.457.369c3.02%200%207.455-3.804%2010.74-9.493C25.061%2012.304%2025.87%205.532%2023%203.876a2.87%202.87%200%200%200-1.457-.369'/%3e%3c/svg%3e`,Dd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%201C4.136%201%201%204.136%201%208s3.136%207%207%207%207-3.136%207-7-3.136-7-7-7m1%2011H7V7.5h2zm0-6H7V4h2z'/%3e%3c/svg%3e`,Od=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23f44336'%20d='M18.041%203.177c2.24.382%202.879%201.919%202.843%203.527V6.67l-1.013%2013.266-13.132.897h.008c-1.093-.044-3.518-.151-3.634-3.545l1.217-2.222%202.462%205.74%202.097-6.77-.045.009.018-.018%206.85%202.186L13.945%209.3l6.53-.409-5.144-4.212%202.71-1.51v.009M3.113%2017.252v.017zM6.916%206.874c2.63-2.622%206.033-4.168%207.34-2.844%201.297%201.306-.072%204.523-2.702%207.135-2.666%202.613-6.015%204.248-7.322%202.933-1.306-1.324.036-4.612%202.675-7.224z'/%3e%3c/svg%3e`,kd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='m30%2012-4-2V6h-4l-2-4-4%202-4-2-2%204H6v4l-4%202%202%204-2%204%204%202v4h4l2%204%204-2%204%202%202-4h4v-4l4-2-2-4ZM6%2016a9.9%209.9%200%200%201%20.842-4H10v8H6.842A9.9%209.9%200%200%201%206%2016m10%2010a9.98%209.98%200%200%201-7.978-4H16v-2h-2v-2h4c.819.819.297%202.308%201.179%203.37a1.89%201.89%200%200%200%201.46.63h3.34A9.98%209.98%200%200%201%2016%2026m-2-12v-2h4a1%201%200%200%201%200%202Zm11.158%206H24a2.006%202.006%200%200%201-2-2%202%202%200%200%200-2-2%203%203%200%200%200%203-3q0-.08-.004-.161A3.115%203.115%200%200%200%2019.83%2010H8.022a9.986%209.986%200%200%201%2017.136%2010'/%3e%3c/svg%3e`,Ad=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ec407a'%20d='M27.837%205.673a4.33%204.33%200%200%200-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3%2026.3%200%200%200-8.76%204.966c-2.752%202.542-3.438%204.925-3.189%206.194.523%202.668%203.274%204.539%205.485%206.042.418.284.822.559%201.175.816-1.429.76-4.261%202.444-5.088%204.248a3.88%203.88%200%200%200-.118%203.332A2.37%202.37%200%200%200%206.869%2029.8a5.6%205.6%200%200%200%201.49.2%206.35%206.35%200%200%200%205.19-2.856%206.74%206.74%200%200%200%20.864-5.382%207.3%207.3%200%200%201%202.044-.03%203.92%203.92%200%200%201%202.816%201.311%201.82%201.82%200%200%201%20.423%201.262%201.55%201.55%200%200%201-.772%201.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93%202.93%200%200%200%202.145-2.651%204%204%200%200%200-1.197-2.904%205.94%205.94%200%200%200-4.396-1.626%2010.6%2010.6%200%200%200-2.672.304%2020%2020%200%200%200-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263%202.468-4.532%206.964-6.744%204.016-1.976%207.254-2.037%208.944-1.438a2%202%200%200%201%201.204.883%202.77%202.77%200%200%201-.36%202.47%209.71%209.71%200%200%201-7.425%204.304%203.86%203.86%200%200%201-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225%201.189a3.9%203.9%200%200%200%202.407%201.92%2011.7%2011.7%200%200%200%207.128-.671c3.527-1.35%206.681-5.202%205.756-8.787M11.895%2024.475a4%204%200%200%201-.192.468%204.5%204.5%200%200%201-.753%201.081%202.83%202.83%200%200%201-2.533%201.107c-.056-.032-.078-.146-.085-.193a3.28%203.28%200%200%201%201.076-2.284%2011.3%2011.3%200%200%201%202.644-1.933%203.85%203.85%200%200%201-.157%201.754'/%3e%3c/svg%3e`,jd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M19.43%2012.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5%200%200%200-.61-.22l-2.49%201c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49%200%200%200%2014%202h-4c-.25%200-.46.18-.49.42l-.38%202.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6%200%200%200-.18-.03c-.17%200-.34.09-.43.25l-2%203.46c-.13.22-.07.49.12.64l2.11%201.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11%201.65c-.19.15-.24.42-.12.64l2%203.46a.5.5%200%200%200%20.61.22l2.49-1c.52.4%201.08.73%201.69.98l.38%202.65c.03.24.24.42.49.42h4c.25%200%20.46-.18.49-.42l.38-2.65c.61-.25%201.17-.59%201.69-.98l2.49%201q.09.03.18.03c.17%200%20.34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14%201.13.89.7%201.08.84-.7%201.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16%201.13-.2%201.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21%201.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21%201.27.51%201.04.42.9-.68c.43-.32.84-.56%201.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19%201.35.16%201.13%201.06.43c.43.18.83.41%201.23.71l.91.7%201.06-.43%201.27-.51.7%201.21-1.07.85-.89.7zM12%208c-2.21%200-4%201.79-4%204s1.79%204%204%204%204-1.79%204-4-1.79-4-4-4m0%206c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202'/%3e%3c/svg%3e`,Md=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffb300'%20d='M29.168%2014.03a2.7%202.7%200%200%200-1.968-.83%202.51%202.51%200%200%200-1.929.8h-4.443l3.078-3.078a2.835%202.835%200%200%200%202.857-2.842%202.6%202.6%200%200%200-.831-1.969%202.82%202.82%200%200%200-2.014-.788%202.67%202.67%200%200%200-1.968.788%202.36%202.36%200%200%200-.812%201.922L18%2011.17V6.726a2.51%202.51%200%200%200%20.8-1.929%202.7%202.7%200%200%200-.832-1.968%202.745%202.745%200%200%200-3.936%200%202.7%202.7%200%200%200-.832%201.968%202.51%202.51%200%200%200%20.8%201.93v4.443l-3.138-3.138a2.36%202.36%200%200%200-.812-1.922%202.66%202.66%200%200%200-1.968-.788%202.83%202.83%200%200%200-2.014.788%202.6%202.6%200%200%200-.831%201.969%202.74%202.74%200%200%200%20.831%202.013%202.8%202.8%200%200%200%202.026.829l3.078%203.078H6.729a2.51%202.51%200%200%200-1.929-.8%202.7%202.7%200%200%200-1.968.831%202.745%202.745%200%200%200%200%203.937%202.7%202.7%200%200%200%201.968.832%202.51%202.51%200%200%200%201.929-.8h4.443l-3.078%203.077a2.835%202.835%200%200%200-2.857%202.842%202.6%202.6%200%200%200%20.831%201.969%202.82%202.82%200%200%200%202.014.788%202.67%202.67%200%200%200%201.968-.788%202.36%202.36%200%200%200%20.812-1.922L14%2020.827v4.444a2.51%202.51%200%200%200-.8%201.929%202.784%202.784%200%200%200%204.768%201.968A2.7%202.7%200%200%200%2018.8%2027.2a2.51%202.51%200%200%200-.8-1.929v-4.444l3.138%203.138a2.36%202.36%200%200%200%20.812%201.922%202.66%202.66%200%200%200%201.968.788%202.83%202.83%200%200%200%202.014-.788%202.6%202.6%200%200%200%20.831-1.969%202.74%202.74%200%200%200-.831-2.013%202.8%202.8%200%200%200-2.026-.829L20.828%2018h4.443a2.51%202.51%200%200%200%201.93.8%202.784%202.784%200%200%200%201.967-4.769Z'/%3e%3c/svg%3e`,Nd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ff6e40'%20d='M17.087%2019.721c-2.36%201.36-5.59%201.5-8.86.1a13.8%2013.8%200%200%201-6.23-5.32c.67.55%201.46%201%202.3%201.4%203.37%201.57%206.73%201.46%209.1%200-3.37-2.59-6.24-5.96-8.37-8.71-.45-.45-.78-1.01-1.12-1.51%208.28%206.05%207.92%207.59%202.41-1.01%204.89%204.94%209.43%207.74%209.43%207.74.16.09.25.16.36.22.1-.25.19-.51.26-.78.79-2.85-.11-6.12-2.08-8.81%204.55%202.75%207.25%207.91%206.12%2012.24-.03.11-.06.22-.05.39%202.24%202.83%201.64%205.78%201.35%205.22-1.21-2.39-3.48-1.65-4.62-1.17'/%3e%3c/svg%3e`,Pd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%238bc34a'%20d='M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m7%201.5V9h5.5zm4%207.5h-4v2h1l-2%201.67L10%2013h1v-2H7v2h1l3%202.5L8%2018H7v2h4v-2h-1l2-1.67L14%2018h-1v2h4v-2h-1l-3-2.5%203-2.5h1z'/%3e%3c/svg%3e`,Fd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%234db6ac'%20d='M23.5%2012H8c.89-2.3%204.02-4%207.75-4s6.86%201.7%207.75%204M14%2012h15.5c-.89%202.3-4.02%204-7.75%204s-6.86-1.7-7.75-4m3.5%208H2c.89-2.3%204.02-4%207.75-4s6.86%201.7%207.75%204M8%2020h15.5c-.89%202.3-4.02%204-7.75%204S8.89%2022.3%208%2020'/%3e%3c/svg%3e`,Id=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffca28'%20d='M20%204v2h-2v4.531l.264.461%207.473%2013.078a2%202%200%200%201%20.263.992V26a2%202%200%200%201-2%202H8a2%202%200%200%201-2-2v-.938a2%202%200%200%201%20.264-.992l7.473-13.078.263-.46V6h-2V4zm0-2h-8a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202v2L4.527%2023.078A4%204%200%200%200%204%2025.062V26a4%204%200%200%200%204%204h16a4%204%200%200%200%204-4v-.938a4%204%200%200%200-.527-1.984L20%2010V8a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2'/%3e%3ccircle%20cx='17'%20cy='17'%20r='1'%20fill='%23ffca28'/%3e%3cpath%20fill='%23ffca28'%20d='M19.72%2020.715a1%201%200%200%200-1.134-.318%205%205%200%200%201-1.18.262%203.95%203.95%200%200%201-1.862-.292%202.74%202.74%200%200%200-3.371.489%202%202%200%200%200-.237.35L10%2024h12Z'/%3e%3c/svg%3e`,Ld=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bcd4'%20d='M20%204v2h-2v4.531l.264.461%207.473%2013.078a2%202%200%200%201%20.263.992V26a2%202%200%200%201-2%202H8a2%202%200%200%201-2-2v-.938a2%202%200%200%201%20.264-.992l7.473-13.078.263-.46V6h-2V4zm0-2h-8a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202v2L4.527%2023.078A4%204%200%200%200%204%2025.062V26a4%204%200%200%200%204%204h16a4%204%200%200%200%204-4v-.938a4%204%200%200%200-.527-1.984L20%2010V8a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2'/%3e%3ccircle%20cx='17'%20cy='17'%20r='1'%20fill='%2300bcd4'/%3e%3cpath%20fill='%2300bcd4'%20d='M19.72%2020.715a1%201%200%200%200-1.134-.318%205%205%200%200%201-1.18.262%203.95%203.95%200%200%201-1.862-.292%202.74%202.74%200%200%200-3.371.489%202%202%200%200%200-.237.35L10%2024h12Z'/%3e%3c/svg%3e`,Rd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M20%204v2h-2v4.531l.264.461%207.473%2013.078a2%202%200%200%201%20.263.992V26a2%202%200%200%201-2%202H8a2%202%200%200%201-2-2v-.938a2%202%200%200%201%20.264-.992l7.473-13.078.263-.46V6h-2V4zm0-2h-8a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202v2L4.527%2023.078A4%204%200%200%200%204%2025.062V26a4%204%200%200%200%204%204h16a4%204%200%200%200%204-4v-.938a4%204%200%200%200-.527-1.984L20%2010V8a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2'/%3e%3ccircle%20cx='17'%20cy='17'%20r='1'%20fill='%230288d1'/%3e%3cpath%20fill='%230288d1'%20d='M19.72%2020.715a1%201%200%200%200-1.134-.318%205%205%200%200%201-1.18.262%203.95%203.95%200%200%201-1.862-.292%202.74%202.74%200%200%200-3.371.489%202%202%200%200%200-.237.35L10%2024h12Z'/%3e%3c/svg%3e`,zd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23cfd8dc'%20d='M4%206V4h8v2H9v7H7V6z'/%3e%3cpath%20fill='%23ef5350'%20d='M4%201v1H2v12h2v1H1V1zm8%200v1h2v12h-2v1h3V1z'/%3e%3c/svg%3e`,Bd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23757575'%20d='M15%202H6a2.006%202.006%200%200%200-2%202v22a2.006%202.006%200%200%200%202%202h6v-4H6v-2h6v-2H6v-2h6v-2H6v-2h6v-2h2V4l8%208h2v-1Z'%20data-mit-no-recolor='true'/%3e%3cpath%20fill='%230288d1'%20d='M12%2012v18h18V12Zm8%206h-2v8h-2v-8h-2v-2h6Zm8%200h-4v2h2a2.006%202.006%200%200%201%202%202v2a2.006%202.006%200%200%201-2%202h-4v-2h4v-2h-2a2.006%202.006%200%200%201-2-2v-2a2.006%202.006%200%200%201%202-2h4Z'/%3e%3c/svg%3e`,Vd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%230288d1'%20d='M2%202v12h12V2zm4%206h3v1H8v4H7V9H6zm5%200h2v1h-2v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201h-2v-1h2v-1h-1a1.003%201.003%200%200%201-1-1V9a1.003%201.003%200%200%201%201-1'/%3e%3c/svg%3e`,Hd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cg%20fill='%230288d1'%3e%3cpath%20d='M2%202v12h12V2zm1%201h10v10H3z'/%3e%3cpath%20d='M5%207v1h1v4h1V8h1V7zm5%200a1.003%201.003%200%200%200-1%201v1a1.003%201.003%200%200%200%201%201h1v1H9v1h2a1.003%201.003%200%200%200%201-1v-1a1.003%201.003%200%200%200-1-1h-1V8h2V7z'/%3e%3c/g%3e%3c/svg%3e`,Ud=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff9800'%20d='m24%206%202%206h-4l-2-6h-3l2%206h-4l-2-6h-3l2%206H8L6%206H5a3%203%200%200%200-3%203v14a3%203%200%200%200%203%203h22a3%203%200%200%200%203-3V6Z'/%3e%3c/svg%3e`,Wd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23a0f'%20d='M29.313%2012h-6.664a1.427%201.427%200%200%201-1.1-2.24l4.398-6.676A.703.703%200%200%200%2025.397%202H8.428a.62.62%200%200%200-.55.289l-5.77%208.627A.703.703%200%200%200%202.658%2012h8.175a1.427%201.427%200%200%201%201.099%202.24l-4.48%206.676A.702.702%200%200%200%208%2022l6.695.002A1.34%201.34%200%200%201%2016%2023.375v5.934a.652.652%200%200%200%201.168.433l12.694-16.586a.725.725%200%200%200-.55-1.156'/%3e%3c/svg%3e`,Gd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%2301579b'%20d='M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m7%201.5V9h5.5zM7%2013l1.5%207h2l1.5-3%201.5%203h2l1.5-7h1v-2h-4v2h1l-.9%204.2L13%2015h-2l-1.1%202.2L9%2013h1v-2H6v2z'/%3e%3c/svg%3e`,Kd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%238bc34a'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4c0-1.11.89-2%202-2m.12%2013.5%203.74%203.74%201.42-1.41-2.33-2.33%202.33-2.33-1.42-1.41zm11.16%200-3.74-3.74-1.42%201.41%202.33%202.33-2.33%202.33%201.42%201.41z'/%3e%3c/svg%3e`,qd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ff5252'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12c0%201.1-.9%202-2%202H6c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2m12%2016v-2H9v2zm-4-4v-2H6v2z'/%3e%3c/svg%3e`,Jd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23afb42b'%20d='M14%2017h-2v-2h-2v-2h2v2h2m0-6h-2v2h2v2h-2v-2h-2V9h2V7h-2V5h2v2h2m5-4H5c-1.11%200-2%20.89-2%202v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2V5a2%202%200%200%200-2-2'/%3e%3c/svg%3e`,Yd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23fbc02d'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23fffde7'%20d='M10%209H8v1h3V7h-1zm4%200V7h-1v3h3V9Zm-6%204h2v2h1v-3H8Zm5%200v2h1v-2h2v-1h-3z'/%3e%3c/svg%3e`,Xd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%238d6e63'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23d7ccc8'%20d='M7.5%2011c-.277%200-.5.223-.5.5v2c0%20.277.223.5.5.5h8c.277%200%20.5-.223.5-.5v-2c0-.277-.223-.5-.5-.5Z'/%3e%3c/svg%3e`,Zd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23c0ca33'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23f0f4c3'%20d='M6%2010h4v4H6zm5%200h4v4h-4zM6%205h4v4H6zm4.172%202L13%204.172%2015.829%207%2013%209.829z'/%3e%3c/svg%3e`,Qd=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%2300acc1'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%2380deea'%20d='M11.5%2012.075A1.6%201.6%200%200%201%209.882%2010.5a1.62%201.62%200%201%201%201.62%201.575m3.437-1.138a4%204%200%200%200%20.032-.438%204%204%200%200%200-.032-.45l.976-.733a.223.223%200%200%200%20.056-.288l-.926-1.556a.23.23%200%200%200-.283-.1l-1.15.45a3.4%203.4%200%200%200-.783-.44l-.171-1.193A.23.23%200%200%200%2012.425%206h-1.85a.23.23%200%200%200-.231.189l-.171%201.193a3.4%203.4%200%200%200-.781.44l-1.152-.45a.23.23%200%200%200-.282.1l-.926%201.556a.22.22%200%200%200%20.056.288l.975.734a4%204%200%200%200-.032.45%204%204%200%200%200%20.032.437l-.975.746a.22.22%200%200%200-.056.288l.925%201.558a.235.235%200%200%200%20.283.099l1.152-.455a3.2%203.2%200%200%200%20.781.446l.171%201.192a.23.23%200%200%200%20.232.189h1.85a.23.23%200%200%200%20.232-.189l.17-1.192a3.4%203.4%200%200%200%20.783-.446l1.15.455a.24.24%200%200%200%20.284-.1l.924-1.557a.223.223%200%200%200-.055-.288Z'/%3e%3c/svg%3e`,$d=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cpath%20id='a'%20fill='%23d1c4e9'%20d='M7%2010V9H6v4h1v-1h1v1a1%201%200%200%201-1%201H6a1%201%200%200%201-1-1V9a1%201%200%200%201%201-1h1a1%201%200%200%201%201%201v1Zm5%200V9a1%201%200%200%200-1-1h-1a1%201%200%200%200-1%201v1c0%20.42.179%201.17%201.373%201.483.346.092.627.323.627.517v1h-1v-1H9v1a1%201%200%200%200%201%201h1a1%201%200%200%200%201-1v-1a1.67%201.67%200%200%200-1.373-1.483C10%2010.352%2010%2010.097%2010%2010V9h1v1Zm4%200V9a1%201%200%200%200-1-1h-1a1%201%200%200%200-1%201v1c0%20.42.179%201.17%201.373%201.483.346.092.627.323.627.517v1h-1v-1h-1v1a1%201%200%200%200%201%201h1a1%201%200%200%200%201-1v-1a1.67%201.67%200%200%200-1.373-1.483C14%2010.352%2014%2010.097%2014%2010V9h1v1Z'/%3e%3c/defs%3e%3cpath%20id='folder'%20fill='%237e57c2'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cg%20id='motive'%3e%3cuse%20xlink:href='%23a'/%3e%3cuse%20xlink:href='%23a'/%3e%3c/g%3e%3c/svg%3e`,ef=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%230277bd'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23b3e5fc'%20d='M12%205H8.5a.5.5%200%200%200-.5.5v8a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5V8Zm0%208H9v-1h3zm2-2H9v-1h5zm-2.414-2.586V6L14%208.414Z'/%3e%3c/svg%3e`,tf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23ff7043'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23ffccbc'%20d='m6.297%209.295%202.892-2.897.846.85a.99.99%200%200%200%20.465%201.116v2.772a1%201%200%200%200-.5.865%201.001%201.001%200%200%200%202.001%200%201%201%200%200%200-.5-.865V8.704l1.035%201.046a.6.6%200%200%200-.035.25%201.001%201.001%200%201%200%201.001-1.001.6.6%200%200%200-.25.035l-1.287-1.285a.99.99%200%200%200-.575-1.171%201.05%201.05%200%200%200-.64-.045l-.851-.846.396-.39a.987.987%200%200%201%201.41%200l3.998%203.998a.987.987%200%200%201%200%201.41l-3.998%203.998a.987.987%200%200%201-1.41%200l-3.998-3.998a.987.987%200%200%201%200-1.41'/%3e%3c/svg%3e`,nf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%237e57c2'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23d1c4e9'%20d='M12.5%205A1.5%201.5%200%200%200%2011%206.5a1.5%201.5%200%200%200%201%201.41V12a1%201%200%200%201-2%200v-1h1L9%209v3a2%202%200%200%200%204%200V7.91a1.5%201.5%200%200%200%201-1.41A1.5%201.5%200%200%200%2012.5%205m0%201a.5.5%200%201%201%200%201%20.5.5%200%200%201%200-1'/%3e%3c/svg%3e`,rf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23009688'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23b2dfdb'%20d='M12%205H8.5a.5.5%200%200%200-.5.5v8a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5V8Zm-2%203a1%201%200%201%201-1%201%201.005%201.005%200%200%201%201-1m4%205H9l2-2%201%201%202-2zm-2.414-4.586V6L14%208.414Z'/%3e%3c/svg%3e`,af=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23c0ca33'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23f0f4c3'%20d='M11.5%208a1.5%201.5%200%200%200%20.002-3H11.5A1.5%201.5%200%200%200%2010%206.5%201.5%201.5%200%200%200%2011.5%208m0%201.987C10.387%208.947%208.523%207.996%207%208v5c1.595%200%203.425%201.002%204.5%202%201.113-1.039%202.978-2.002%204.5-2V8c-1.522-.003-3.387.947-4.5%201.986'/%3e%3c/svg%3e`,of=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23039be5'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23b3e5fc'%20d='M11%205a5%205%200%201%200%205%205%205%205%200%200%200-5-5m3.459%203H12.98a8%208%200%200%200-.671-1.77A4.02%204.02%200%200%201%2014.459%208M11%206a7%207%200%200%201%20.945%202h-1.89A7%207%200%200%201%2011%206m-1.309.23A8%208%200%200%200%209.02%208H7.541a4.02%204.02%200%200%201%202.15-1.77M7.131%2011a3.85%203.85%200%200%201%200-2h1.704a7.8%207.8%200%200%200%200%202zm.41%201H9.02a8%208%200%200%200%20.671%201.77A4.02%204.02%200%200%201%207.541%2012M11%2014a7%207%200%200%201-.945-2h1.89A7%207%200%200%201%2011%2014m1.155-3h-2.31a6.7%206.7%200%200%201%200-2h2.31a6.7%206.7%200%200%201%200%202m.154%202.77A8%208%200%200%200%2012.98%2012h1.479a4.02%204.02%200%200%201-2.15%201.77m2.56-2.77h-1.704a7.8%207.8%200%200%200%200-2h1.704a3.85%203.85%200%200%201%200%202'/%3e%3c/svg%3e`,sf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23fbc02d'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23fff9c4'%20d='M9.5%206a.5.5%200%200%200-.5.5v6a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5v-6a.5.5%200%200%200-.5-.5zm.5%201h5v1h-5zM7%208v6.5a.5.5%200%200%200%20.5.5H14v-1H8V8zm3%201h5v1h-5zm0%202h3v1h-3z'/%3e%3c/svg%3e`,cf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%2343a047'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23c8e6c9'%20d='M8.707%207.293%2010%206H6v4l1.293-1.293%202.455%202.455a.85.85%200%200%201%20.252.608V14h2v-2.23a2.84%202.84%200%200%200-.838-2.022ZM14.68%206l-2.805%202.465.285.285a2.8%202.8%200%200%201%20.78%201.445L16%207.505Z'/%3e%3c/svg%3e`,lf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23546e7a'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23cfd8dc'%20d='M14%206h-3a2%202%200%200%200-2%202v4h1V8h4v4.947a1.04%201.04%200%200%201-.832%201.04A1%201%200%200%201%2012%2013H8a2%202%200%200%200%202%202h3a2%202%200%200%200%202-2V8h1a2%202%200%200%200-2-2'/%3e%3c/svg%3e`,uf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23fbc02d'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23fffde7'%20d='M7%207.5v2a.5.5%200%200%200%20.5.5h8a.5.5%200%200%200%20.5-.5v-2a.5.5%200%200%200-.5-.5h-8a.5.5%200%200%200-.5.5M10%209H8V8h2zm2%200h-1V8h1zm-5%202.5v2a.5.5%200%200%200%20.5.5h8a.5.5%200%200%200%20.5-.5v-2a.5.5%200%200%200-.5-.5h-8a.5.5%200%200%200-.5.5m3%201.5H8v-1h2zm2%200h-1v-1h1z'/%3e%3c/svg%3e`,df=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%234caf50'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23c8e6c9'%20d='M9.225%2015a.5.5%200%200%201-.12-.014.57.568%200%200%201-.414-.661l1.549-7.872a.566.565%200%200%201%20.254-.372.53.53%200%200%201%20.4-.067.57.57%200%200%201%20.415.662l-1.552%207.872a.56.56%200%200%201-.253.371.53.53%200%200%201-.28.081m3.105-1h-.038a.54.54%200%200%201-.382-.206.583.582%200%200%201%20.057-.774l2.664-2.483-2.653-2.312a.583.582%200%200%201-.08-.772.54.54%200%200%201%20.377-.218.53.53%200%200%201%20.406.129l3.126%202.727a.579.578%200%200%201%20.002.862l-3.114%202.904a.536.535%200%200%201-.365.144zm-4.661%200a.536.535%200%200%201-.365-.146L4.186%2010.95a.58.58%200%200%201-.005-.846l.01-.01%203.128-2.726a.516.515%200%200%201%20.4-.13.54.54%200%200%201%20.38.218.583.582%200%200%201-.08.773l-2.65%202.31%202.663%202.482a.579.578%200%200%201%20.056.774.536.535%200%200%201-.381.206z'/%3e%3c/svg%3e`,ff=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%2300bfa5'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23a7ffeb'%20d='M8%206v1h1v6a2%202%200%200%200%204%200V7h1V6Zm2.5%207a.5.5%200%201%201%20.5-.5.5.5%200%200%201-.5.5m1-2a.5.5%200%201%201%20.5-.5.5.5%200%200%201-.5.5m.5-2h-2V7h2z'/%3e%3c/svg%3e`,pf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%237cb342'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23dcedc8'%20d='M9.5%206a.5.5%200%200%200-.5.5v6a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5v-6a.5.5%200%200%200-.5-.5zM12%207h1v2h2v1h-2v2h-1v-2h-2V9h2zM7%208v6.5a.5.5%200%200%200%20.5.5H14v-1H8V8z'/%3e%3c/svg%3e`,mf=new Set([`png`,`jpg`,`jpeg`,`gif`,`ico`,`webp`,`bmp`,`avif`]),hf=new Set([`zip`,`tar`,`gz`,`tgz`,`rar`,`7z`,`bz2`,`xz`]),gf=new Set([`csv`,`tsv`,`psv`,`xls`,`xlsx`,`xlsm`,`ods`]),_f=new Set([`aac`,`aiff`,`flac`,`m4a`,`mp3`,`ogg`,`opus`,`wav`,`wma`]),vf=new Set([`avi`,`flv`,`m4v`,`mkv`,`mov`,`mp4`,`mpeg`,`mpg`,`webm`,`wmv`]),yf=new Set([`eot`,`otf`,`ttf`,`woff`,`woff2`]),bf=new Set([`cer`,`cert`,`crt`,`der`,`p12`,`pfx`]),xf=new Set([`asc`,`key`,`pem`,`pub`]),Sf=new Set([`doc`,`docx`,`odt`,`rtf`]),Cf=new Set([`odp`,`pot`,`potx`,`pps`,`ppsx`,`ppt`,`pptx`]),wf=new Set([`cfg`,`cnf`,`conf`,`config`,`ini`,`option`,`prefs`,`properties`,`props`,`settings`]);function Tf(e){return e.replace(/\\/g,`/`)}function Ef(e){let t=Tf(e);return t.slice(t.lastIndexOf(`/`)+1)}function Df(e){let t=e.lastIndexOf(`.`);return t>0?e.slice(t+1):``}function Of(e){return/(?:^|[.\-_])(spec|test)\.[^.]+$/i.test(e)||/(?:^|[.\-_])tests?\.[^.]+$/i.test(e)}function kf(e){if(e===`readme`||e.startsWith(`readme.`))return`readme`;if(e===`license`||e.startsWith(`license.`)||e===`licence`||e.startsWith(`licence.`)||e===`copying`||e.startsWith(`copying.`))return`license`;if(e===`makefile`||e.startsWith(`makefile.`))return`makefile`;if(e===`dockerfile`||e.endsWith(`.dockerfile`)||e.startsWith(`docker-compose`)||e===`compose.yml`||e===`compose.yaml`)return`docker`;if(/^vite\.config\.(?:[cm]?[jt]s)$/.test(e))return`vite`;if(e===`package.json`||e===`package-lock.json`||e===`.nvmrc`||e===`.node-version`)return`nodejs`;if(e===`.npmignore`||e===`.npmrc`)return`npm`;if(e===`tsconfig.json`||e.startsWith(`tsconfig.`))return`tsconfig`;if(e===`eslint.config.js`||e===`eslint.config.mjs`||e===`eslint.config.cjs`||e===`eslint.config.ts`||e===`.eslintrc`||e.startsWith(`.eslintrc.`))return`eslint`;if(e===`.prettierrc`||e.startsWith(`.prettierrc.`)||e.startsWith(`prettier.config.`))return`prettier`;if(e.startsWith(`tailwind.config.`))return`tailwindcss`;if(e===`.gitignore`||e===`.gitattributes`||e===`.gitmodules`)return`git`;if(e===`.env`||e.startsWith(`.env.`))return`settings`;if(e.endsWith(`.lock`)||e.endsWith(`-lock.json`)||e.endsWith(`-lock.yaml`)||e.endsWith(`-lock.yml`))return`lock`}function Af(e){let t=Ef(e).toLowerCase(),n=kf(t);if(n)return n;let r=Df(t);return r===`tsx`?Of(t)?`test-ts`:`react-ts`:r===`jsx`?Of(t)?`test-jsx`:`react`:r===`ts`?t.endsWith(`.d.ts`)?`typescript-def`:Of(t)?`test-ts`:`typescript`:r===`js`||r===`mjs`||r===`cjs`?Of(t)?`test-js`:`javascript`:t.endsWith(`.js.map`)||t.endsWith(`.mjs.map`)||t.endsWith(`.cjs.map`)?`javascript-map`:mf.has(r)?`image`:r===`svg`?`svg`:hf.has(r)?`zip`:gf.has(r)?`table`:_f.has(r)?`audio`:vf.has(r)?`video`:yf.has(r)?`font`:bf.has(r)?`certificate`:xf.has(r)?`key`:Sf.has(r)?`word`:Cf.has(r)?`powerpoint`:wf.has(r)?`settings`:r===`json`||r===`jsonc`?`json`:r===`html`||r===`htm`?`html`:r===`css`?`css`:r===`scss`?`sass`:r===`less`?`less`:r===`md`||r===`mdx`||r===`markdown`?`markdown`:r===`yml`||r===`yaml`?`yaml`:r===`toml`?`toml`:r===`xml`?`xml`:r===`sql`?`database`:r===`py`?`python`:r===`go`?`go`:r===`rs`?`rust`:r===`java`?`java`:r===`c`||r===`h`?`c`:r===`cpp`||r===`cc`||r===`cxx`||r===`hpp`?`cpp`:r===`cs`?`csharp`:r===`php`?`php`:r===`rb`?`ruby`:r===`swift`?`swift`:r===`kt`||r===`kts`?`kotlin`:r===`ps1`?`powershell`:r===`sh`||r===`bash`||r===`zsh`?`console`:r===`pdf`?`pdf`:r===`log`?`log`:`document`}function jf(e,t=!1){let n=Ef(e).toLowerCase();return n===`.git`||n===`.svn`||n===`.hg`||n===`git`?`folder-git`:n===`src`||n===`source`||n===`sources`?`folder-src`:n===`components`||n===`widgets`||n===`fragments`?`folder-components`:n===`test`||n===`tests`||n===`__test__`||n===`__tests__`||n===`spec`||n===`specs`?`folder-test`:n===`doc`||n===`docs`||n===`documentation`?`folder-docs`:n===`server`||n===`servers`||n===`backend`||n===`backends`?`folder-server`:n===`api`||n===`apis`||n===`restapi`?`folder-api`:n===`asset`||n===`assets`||n===`resource`||n===`resources`||n===`static`?`folder-resource`:n===`image`||n===`images`||n===`img`||n===`imgs`||n===`icons`?`folder-images`:n===`public`||n===`www`||n===`wwwroot`?`folder-public`:n===`config`||n===`configs`||n===`configuration`||n===`.config`?`folder-config`:n===`lib`||n===`libs`||n===`library`||n===`vendor`?`folder-lib`:n===`hook`||n===`hooks`?`folder-hook`:n===`util`||n===`utils`||n===`utility`||n===`utilities`?`folder-utils`:n===`route`||n===`routes`||n===`router`||n===`routers`?`folder-routes`:n===`script`||n===`scripts`||n===`scripting`?`folder-scripts`:n===`style`||n===`styles`||n===`stylesheet`||n===`stylesheets`||n===`css`?`folder-css`:`folder-base`}var Mf={audio:Uu,c:Wu,certificate:Gu,console:Ku,cpp:qu,csharp:Ju,css:Yu,database:Xu,docker:Zu,document:Qu,eslint:$u,font:ed,git:td,go:nd,html:rd,image:id,java:ad,javascript:od,"javascript-map":sd,json:cd,key:ld,kotlin:ud,less:dd,license:fd,lock:pd,log:md,makefile:hd,markdown:gd,nodejs:_d,npm:vd,pdf:yd,php:bd,powerpoint:xd,powershell:Sd,prettier:Cd,python:wd,react:Td,"react-ts":Ed,readme:Dd,ruby:Od,rust:kd,sass:Ad,settings:jd,svg:Md,swift:Nd,table:Pd,tailwindcss:Fd,"test-js":Id,"test-jsx":Ld,"test-ts":Rd,toml:zd,tsconfig:Bd,typescript:Vd,"typescript-def":Hd,video:Ud,vite:Wd,word:Gd,xml:Kd,yaml:qd,zip:Jd},Nf={"folder-api":Yd,"folder-base":Xd,"folder-components":Zd,"folder-config":Qd,"folder-css":$d,"folder-docs":ef,"folder-git":tf,"folder-hook":nf,"folder-images":rf,"folder-lib":af,"folder-public":of,"folder-resource":sf,"folder-routes":cf,"folder-scripts":lf,"folder-server":uf,"folder-src":df,"folder-test":ff,"folder-utils":pf};function Pf({src:e,className:t=`size-3.5`}){return(0,P.jsx)(`img`,{src:e,alt:``,"aria-hidden":`true`,draggable:!1,className:t})}function Ff({path:e,className:t}){return(0,P.jsx)(Pf,{src:Mf[Af(e)],className:t})}function If({name:e,open:t,className:n}){return(0,P.jsx)(Pf,{src:Nf[jf(e,t)],className:n})}function Lf(e){let t=e?.trim();if(t){if(/^[a-zA-Z]:[\\/]/.test(t)||t.startsWith(`/`)&&!t.startsWith(`/api/`))return t;try{let e=new URL(t);return e.protocol===`file:`?decodeURIComponent(e.pathname):void 0}catch{return}}}function Rf(e){if(e.kind===`browser`)return Lf(e.url);if(e.kind===`reader`)return(e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0])?.path}function zf(e){let t=Lf(e);if(t!==void 0)return`file:${t.replace(/\\/g,`/`)}`;let n=e?.trim();if(n)return`url:${n}`}function Bf(e,t){let n=zf(t);if(n)return e.find(e=>e.kind===`browser`&&zf(e.url)===n)}var Vf=3,Hf=5e7;function Uf(e){let t=e.replace(/\r\n/g,`
|
|
34
|
-
`).replace(/\r/g,`
|
|
35
|
-
`).split(`
|
|
36
|
-
`);return t.length>1&&t[t.length-1]===``&&t.pop(),t}function Wf(e,t){let n=Uf(e),r=Uf(t);if(n.length*r.length>Hf)return;let i=Array.from({length:n.length+1},()=>new Uint32Array(r.length+1));for(let e=n.length-1;e>=0;--e)for(let t=r.length-1;t>=0;--t)i[e][t]=n[e]===r[t]?i[e+1][t+1]+1:Math.max(i[e+1][t],i[e][t+1]);let a=[],o=0,s=0,c=1,l=1;for(;o<n.length||s<r.length;){if(o<n.length&&s<r.length&&n[o]===r[s]){a.push({kind:`context`,oldLine:c,newLine:l,text:n[o]}),o+=1,s+=1,c+=1,l+=1;continue}if(s<r.length&&(o>=n.length||i[o][s+1]>=i[o+1][s])){a.push({kind:`add`,newLine:l,text:r[s]}),s+=1,l+=1;continue}o<n.length&&(a.push({kind:`delete`,oldLine:c,text:n[o]}),o+=1,c+=1)}return a}function Gf(e){let t=e.map(e=>e.kind!==`context`);e.forEach((n,r)=>{if(n.kind===`context`)return;let i=Math.max(0,r-Vf),a=Math.min(e.length-1,r+Vf);for(let e=i;e<=a;e+=1)t[e]=!0});let n=[],r=0,i=0;for(;r<e.length;){if(t[r]||e[r].kind!==`context`){n.push(e[r]),r+=1;continue}let a=r;for(;r<e.length&&!t[r]&&e[r].kind===`context`;)r+=1;let o=e.slice(a,r);n.push({kind:`collapsed`,id:`collapsed-${i++}-${a}`,count:o.length,rows:o})}return n}function Kf(e){return e===`add`?`bg-emerald-500/12 text-foreground`:e===`delete`?`bg-red-500/12 text-foreground`:`bg-background text-foreground/90`}function qf(e){return e===`add`?`+`:e===`delete`?`-`:` `}function Jf({row:e}){let t=e.kind===`delete`?e.oldLine:e.newLine??e.oldLine;return(0,P.jsxs)(`div`,{className:j(`grid w-max min-w-full grid-cols-[3rem_auto] text-[13px] leading-6`,Kf(e.kind)),children:[(0,P.jsx)(`span`,{className:j(`select-none pr-3 text-right font-mono`,e.kind===`delete`&&`text-red-600 dark:text-red-500`,e.kind===`add`&&`text-emerald-600 dark:text-emerald-500`,e.kind===`context`&&`text-muted-foreground/62`),children:t??``}),(0,P.jsxs)(`code`,{className:`whitespace-pre pr-4 font-mono`,children:[(0,P.jsx)(`span`,{className:j(`mr-3 select-none`,e.kind===`add`&&`text-emerald-600 dark:text-emerald-500`,e.kind===`delete`&&`text-red-600 dark:text-red-500`),children:qf(e.kind)}),e.text||` `]})]})}function Yf(e,t,n){let r=new Set(e[t]??[]);return r.has(n)?r.delete(n):r.add(n),{...e,[t]:[...r]}}function Xf({diff:e,loading:t,error:n}){let[r,i]=(0,N.useState)({}),a=e?`${e.path}\u0000${e.oldContent.length}\u0000${e.newContent.length}`:``,o=(0,N.useMemo)(()=>new Set(r[a]??[]),[a,r]),s=(0,N.useMemo)(()=>{if(!e)return;let t=Wf(e.oldContent,e.newContent);return t?Gf(t):void 0},[e]);return t?(0,P.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:M(`workspaceLoadingDiff`)}):n?(0,P.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-destructive`,children:n}):e?s?s.length===0?(0,P.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:M(`workspaceNoDiffPreview`)}):(0,P.jsx)(`div`,{className:`min-w-0 max-w-full overflow-hidden rounded-b-xl border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background`,children:(0,P.jsx)(`div`,{className:`max-h-[28rem] min-w-0 overflow-auto pb-1`,children:(0,P.jsx)(`div`,{className:`w-max min-w-full py-2`,children:s.map(e=>{if(e.kind!==`collapsed`)return(0,P.jsx)(Jf,{row:e},`${e.kind}:${e.oldLine??``}:${e.newLine??``}:${e.text}`);let t=o.has(e.id);return(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`div`,{className:`grid w-full min-w-0 grid-cols-[3rem_minmax(0,1fr)] gap-1 py-1 pr-4`,children:[(0,P.jsx)(`button`,{type:`button`,className:`flex h-12 items-center justify-center rounded-lg bg-muted/60 text-muted-foreground/75 transition-colors hover:bg-muted/78 hover:text-foreground/80`,onClick:()=>{i(t=>Yf(t,a,e.id))},"aria-expanded":t,title:M(`workspaceUnmodifiedLines`,{count:e.count}),children:(0,P.jsx)(f,{className:j(`size-4 transition-transform`,t&&`rotate-180`)})}),(0,P.jsx)(`button`,{type:`button`,className:`flex h-12 items-center rounded-lg bg-muted/60 px-4 text-left text-base font-medium text-muted-foreground/80 transition-colors hover:bg-muted/78 hover:text-foreground/80`,onClick:()=>{i(t=>Yf(t,a,e.id))},"aria-expanded":t,children:M(`workspaceUnmodifiedLines`,{count:e.count})})]}),t?e.rows.map(t=>(0,P.jsx)(Jf,{row:t},`hidden:${e.id}:${t.oldLine}:${t.newLine}`)):null]},e.id)})})})}):(0,P.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:M(`workspaceDiffTooLarge`)}):(0,P.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:M(`workspaceNoDiffPreview`)})}function Zf(e){return M(e===`added`?`workspaceStatusAdded`:e===`deleted`?`workspaceStatusDeleted`:e===`renamed`?`workspaceStatusRenamed`:e===`untracked`?`workspaceStatusUntracked`:e===`conflicted`?`workspaceStatusConflict`:`workspaceStatusModified`)}function Qf(e){let t=e.replace(/\\/g,`/`);return t.split(`/`).filter(Boolean).pop()||t||`—`}function $f(e,t,n){return e?.action===t&&(n?e.path===n:!e.path)}function ep(e){return!!(e.unstaged||e.status===`untracked`||e.conflict||!e.staged)}function tp({files:e,selectedPath:t,expandedDiff:n,expandedLoading:a,expandedError:o,onSelectFile:c,onRestoreFile:u,onStageFile:d,onUnstageFile:f,onOpenFile:p,onRestoreAll:m,onStageAll:h,onUnstageAll:g,showUnstageAll:_=!1,pendingAction:v,emptyMessage:y=M(`workspaceNoWorkingTreeChanges`)}){let b=e.filter(ep),x=e.filter(e=>e.staged),S=$f(v,`restore`),C=$f(v,`stage`),T=$f(v,`unstage`),E=!!v;return(0,P.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col bg-background`,children:[(0,P.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-auto px-2 pb-20 pt-1`,children:e.length===0?(0,P.jsx)(`div`,{className:`px-3 py-4 text-xs text-muted-foreground/70`,children:y}):(0,P.jsx)(`div`,{className:`min-w-0 divide-y divide-[color-mix(in_oklab,var(--border)_28%,transparent)]`,children:e.map(e=>{let m=t===e.path,h=Qf(e.path),g=$f(v,`restore`,e.path),y=$f(v,`stage`,e.path),b=$f(v,`unstage`,e.path),x=e.status===`deleted`,S=_,C=E||(S?!f||!e.staged:!d||!ep(e)),T=E||!u,ee=E||!p||x,D=e.oldPath?`${e.oldPath} → ${e.path}`:e.path;return(0,P.jsxs)(`div`,{className:j(`group min-w-0 overflow-hidden`,m&&`rounded-xl bg-muted/30`),children:[(0,P.jsxs)(`div`,{className:j(`grid min-h-[40px] grid-cols-[minmax(0,1fr)_auto] items-center gap-2 rounded-xl transition-colors`,m?`bg-muted/40`:`hover:bg-muted/24`),children:[(0,P.jsxs)(`button`,{type:`button`,className:`grid min-w-0 grid-cols-[24px_minmax(0,1fr)_auto] items-center gap-3 px-3 py-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>c(e.path),title:`${Zf(e.status)} · ${D}`,"aria-expanded":m,children:[(0,P.jsx)(Ff,{path:e.path,className:`size-[15px] shrink-0`}),(0,P.jsx)(`span`,{className:`min-w-0 truncate font-medium leading-[18px] text-foreground/90`,children:h}),typeof e.additions==`number`&&typeof e.deletions==`number`?(0,P.jsxs)(`span`,{className:`min-w-[64px] shrink-0 whitespace-nowrap text-right font-mono text-sm font-medium leading-[18px]`,children:[(0,P.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-500`,children:[`+`,e.additions]}),(0,P.jsxs)(`span`,{className:`ml-1.5 text-red-600 dark:text-red-500`,children:[`-`,e.deletions]})]}):(0,P.jsx)(`span`,{className:`min-w-[64px]`})]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 pr-2 text-muted-foreground/55 opacity-80 transition-opacity group-hover:opacity-100`,children:[(0,P.jsx)(`button`,{type:`button`,className:`inline-flex size-[26px] items-center justify-center rounded-full transition-colors hover:bg-destructive/10 hover:text-destructive disabled:cursor-not-allowed disabled:opacity-40`,onClick:()=>u?.(e),disabled:T,"aria-label":M(`workspaceRestoreFile`),title:M(`workspaceRestoreFile`),children:g?(0,P.jsx)(s,{className:`size-3.5 animate-spin`}):(0,P.jsx)(r,{className:`size-4`})}),(0,P.jsx)(`button`,{type:`button`,className:j(`inline-flex size-[26px] items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-40`,S?`hover:bg-amber-500/10 hover:text-amber-600 dark:hover:text-amber-500`:`hover:bg-emerald-500/10 hover:text-emerald-600 dark:hover:text-emerald-500`),onClick:()=>S?f?.(e):d?.(e),disabled:C,"aria-label":M(S?`workspaceUnstageFile`:`workspaceStageFile`),title:M(S?`workspaceUnstageFile`:`workspaceStageFile`),children:y||b?(0,P.jsx)(s,{className:`size-3.5 animate-spin`}):S?(0,P.jsx)(l,{className:`size-4`}):(0,P.jsx)(i,{className:`size-4`})}),(0,P.jsx)(`button`,{type:`button`,className:`inline-flex size-[26px] items-center justify-center rounded-full transition-colors hover:bg-muted/35 hover:text-foreground/85 disabled:cursor-not-allowed disabled:opacity-40`,onClick:()=>p?.(e),disabled:ee,"aria-label":M(`workspaceOpenFileInNewTab`),title:M(x?`workspaceCannotOpenDeletedFile`:`workspaceOpenFileInNewTab`),children:(0,P.jsx)(w,{className:`size-4`})})]})]}),m?(0,P.jsx)(Xf,{diff:n,loading:a,error:o}):null]},`${e.status}:${e.oldPath??``}:${e.path}`)})})}),(0,P.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-4 z-20 flex justify-center px-2`,children:(0,P.jsxs)(`div`,{className:`pointer-events-auto inline-flex max-w-full items-center gap-1 rounded-full border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background/95 p-1 shadow-quickforge`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`inline-flex h-8 min-w-0 items-center gap-2 rounded-full px-3 text-sm font-medium text-muted-foreground/78 transition-colors hover:bg-destructive/10 hover:text-destructive disabled:cursor-not-allowed disabled:opacity-40`,onClick:m,disabled:!m||e.length===0||E,"aria-label":M(`workspaceRestoreAll`),title:M(`workspaceRestoreAll`),children:[S?(0,P.jsx)(s,{className:`size-3.5 animate-spin`}):(0,P.jsx)(r,{className:`size-3.5`}),(0,P.jsx)(`span`,{className:`truncate`,children:M(`workspaceRestoreAll`)})]}),(0,P.jsxs)(`button`,{type:`button`,className:j(`inline-flex h-8 min-w-0 items-center gap-2 rounded-full px-3 text-sm font-medium text-muted-foreground/78 transition-colors disabled:cursor-not-allowed disabled:opacity-40`,_?`hover:bg-amber-500/10 hover:text-amber-600 dark:hover:text-amber-500`:`hover:bg-emerald-500/10 hover:text-emerald-600 dark:hover:text-emerald-500`),onClick:_?g:h,disabled:_?!g||x.length===0||E:!h||b.length===0||E,"aria-label":M(_?`workspaceUnstageAll`:`workspaceStageAll`),title:M(_?`workspaceUnstageAll`:`workspaceStageAll`),children:[C||T?(0,P.jsx)(s,{className:`size-3.5 animate-spin`}):_?(0,P.jsx)(l,{className:`size-3.5`}):(0,P.jsx)(i,{className:`size-3.5`}),(0,P.jsx)(`span`,{className:`truncate`,children:M(_?`workspaceUnstageAll`:`workspaceStageAll`)})]})]})})]})}function $(e){let t=(e||`.`).trim().replace(/\\/g,`/`).replace(/^\.\/+/,``).replace(/^\/+|\/+$/g,``);if(!t||t===`.`)return`.`;let n=[];for(let e of t.split(`/`))!e||e===`.`||(e===`..`?n.pop():n.push(e));return n.join(`/`)||`.`}function np(e){let t=$(e);if(t===`.`)return;let n=t.lastIndexOf(`/`);return n<0?`.`:t.slice(0,n)}function rp(e){let t=$(e);return t===`.`?0:t.split(`/`).length}function ip(e,t){let n=$(e),r=$(t);return r===`.`||n===r||n.startsWith(`${r}/`)}function ap(e,t){return e[$(t)]??{entries:[],status:`idle`,nextCursor:null,generation:0}}function op(e){let t=new Set;return e.filter(e=>{let n=$(e.path);return t.has(n)?!1:(t.add(n),!0)})}function sp(e,t){if(t.type===`reset`)return{};if(t.type===`remove`){let n=t.paths.map($),r=!1,i={};for(let[t,a]of Object.entries(e))n.some(e=>ip(t,e))?r=!0:i[t]=a;return r?i:e}let n=$(t.path),r=ap(e,n);if(t.type===`request`)return{...e,[n]:{...r,status:`loading`,error:void 0,generation:t.generation,requestMode:t.append?`append`:`replace`,requestCursor:t.append?t.cursor:void 0}};if(r.generation!==t.generation)return e;if(t.type===`failure`)return{...e,[n]:{...r,status:`error`,error:t.error}};let i=op(t.append?[...r.entries,...t.entries]:t.entries);return{...e,[n]:{entries:i,status:`loaded`,error:void 0,nextCursor:t.nextCursor,generation:t.generation,requestMode:void 0,requestCursor:void 0}}}function cp(e,t){return[`.`,...t].map($).filter((e,t,n)=>n.indexOf(e)===t).filter(t=>t===`.`||e[t]&&e[t].status!==`idle`).sort((e,t)=>rp(e)-rp(t)||e.localeCompare(t))}function lp(e,t,n){if(!n)return!0;if(t.length<e.entries.length)return!1;let r=new Set(t.map(e=>$(e.path)));return e.entries.every(e=>r.has($(e.path)))}function up(e,t){return!!ap(e,t).nextCursor}function dp(e){return e.requestMode===`append`&&e.requestCursor?{append:!0,cursor:e.requestCursor}:{append:!1}}function fp(e,t,n){let r=$(t),i=new Set(n.filter(e=>e.type===`directory`).map(e=>$(e.path)));return Object.keys(e).filter(e=>e===r?!1:np(e)===r&&!i.has(e))}function pp(e,t){return Object.keys(e).filter(e=>t.some(t=>ip(e,t)))}function mp(e){return e?e.status===`added`?`A`:e.status===`deleted`?`D`:e.status===`renamed`?`R`:e.status===`untracked`?`U`:`M`:``}function hp({projectId:e,path:t}){let[n,r]=(0,N.useState)(!1);return n?(0,P.jsx)(Ff,{path:t,className:`size-4 shrink-0`}):(0,P.jsx)(`img`,{src:Me(e,t),alt:``,"aria-hidden":!0,loading:`lazy`,decoding:`async`,onError:()=>r(!0),className:`size-4 shrink-0 rounded-[3px] object-cover ring-1 ring-black/5 dark:ring-white/10`})}function gp({entries:e,depth:t,props:n}){return e.map(e=>{let r=$(e.path),i=e.type===`directory`,a=i&&n.directoriesExpandable!==!1,o=a&&n.expandedPaths.has(r),c=ap(n.treeState,r),l=n.selectedPath===e.path,u=mp(n.gitStatuses?.[e.path]),f=(i?void 0:je(e.path))===`image`,p=!!n.projectId&&f,m=!!n.onPreviewFile&&Re(e.path);return(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`button`,{type:`button`,className:`group flex h-8 w-full items-center gap-2 rounded-md px-2 text-left text-sm transition-colors ${l?`bg-muted/28 text-foreground/90`:`text-muted-foreground/72 hover:bg-muted/20 hover:text-foreground/85`}`,style:{paddingLeft:`${.5+t*.75}rem`},onClick:()=>{if(a)n.onToggleDirectory(r);else if(i)return;else f&&n.onPreviewFile?n.onPreviewFile(e.path):n.onSelectFile(e.path)},title:e.path,children:[i?a&&c.status===`loading`&&c.entries.length===0?(0,P.jsx)(s,{className:`size-3.5 shrink-0 animate-spin`}):a?(0,P.jsx)(d,{className:`size-3.5 shrink-0 transition-transform ${o?`rotate-90`:``}`}):(0,P.jsx)(`span`,{className:`w-3.5 shrink-0`}):(0,P.jsx)(`span`,{className:`w-3.5 shrink-0`}),i?(0,P.jsx)(If,{name:e.name,open:o,className:`size-4 shrink-0`}):p?(0,P.jsx)(hp,{projectId:n.projectId,path:e.path}):(0,P.jsx)(Ff,{path:e.path,className:`size-4 shrink-0`}),(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),u?(0,P.jsx)(`span`,{className:`shrink-0 font-mono text-xs text-emerald-600 dark:text-emerald-500`,children:u}):null,m?(0,P.jsx)(`span`,{role:`button`,tabIndex:0,"aria-label":M(`openPreview`),title:M(`openPreview`),className:`-mr-1 shrink-0 rounded p-0.5 text-muted-foreground/60 opacity-0 transition-opacity hover:bg-muted/40 hover:text-foreground/85 focus-visible:opacity-100 focus-visible:text-foreground/85 focus-visible:outline-none group-hover:opacity-100`,onClick:t=>{t.stopPropagation(),n.onPreviewFile?.(e.path)},onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),t.stopPropagation(),n.onPreviewFile?.(e.path))},children:(0,P.jsx)(D,{className:`size-4`})}):null]}),i&&o?(0,P.jsxs)(`div`,{children:[c.status===`error`?(0,P.jsxs)(`div`,{className:`py-1 text-xs text-destructive`,style:{paddingLeft:`${1.75+t*.75}rem`},children:[(0,P.jsx)(`div`,{className:`truncate`,title:c.error,children:c.error||M(`workspaceLoadFailed`)}),(0,P.jsx)(`button`,{type:`button`,className:`mt-1 text-xs font-medium text-foreground/75 hover:text-foreground`,onClick:()=>{dp(c).append?n.onLoadMore(r):n.onRetryDirectory(r)},children:M(`retry`)})]}):null,c.status===`loaded`&&c.entries.length===0?(0,P.jsx)(`div`,{className:`py-1 text-xs text-muted-foreground/55`,style:{paddingLeft:`${1.75+t*.75}rem`},children:M(`workspaceEmptyDirectory`)}):null,(0,P.jsx)(gp,{entries:c.entries,depth:t+1,props:n}),up(n.treeState,r)?(0,P.jsx)(`button`,{type:`button`,className:`my-1 text-xs font-medium text-muted-foreground/70 hover:text-foreground disabled:opacity-50`,style:{marginLeft:`${1.75+t*.75}rem`},disabled:c.status===`loading`,onClick:()=>n.onLoadMore(r),children:c.status===`loading`?M(`workspaceLoading`):M(`workspaceLoadMore`)}):null]}):null]},e.path)})}function _p(e){let t=ap(e.treeState,`.`);return t.status===`error`&&e.rootEntries.length===0?(0,P.jsxs)(`div`,{className:`px-2 py-3 text-sm text-destructive`,children:[(0,P.jsx)(`div`,{children:t.error||M(`workspaceLoadFailed`)}),(0,P.jsx)(`button`,{type:`button`,className:`mt-2 text-xs font-medium text-foreground/75 hover:text-foreground`,onClick:()=>{dp(t).append?e.onLoadMore(`.`):e.onRetryDirectory(`.`)},children:M(`retry`)})]}):t.status===`loading`&&e.rootEntries.length===0?(0,P.jsx)(`div`,{className:`px-2 py-3 text-xs text-muted-foreground/70`,children:M(`workspaceLoading`)}):t.status===`loaded`&&e.rootEntries.length===0?(0,P.jsx)(`div`,{className:`px-2 py-3 text-sm text-muted-foreground/70`,children:M(`workspaceNoFilesToDisplay`)}):(0,P.jsxs)(`div`,{className:`space-y-0.5`,children:[t.status===`error`?(0,P.jsxs)(`div`,{className:`px-2 py-1 text-xs text-destructive`,children:[(0,P.jsx)(`span`,{children:t.error||M(`workspaceLoadFailed`)}),` `,(0,P.jsx)(`button`,{type:`button`,className:`font-medium text-foreground/75 hover:text-foreground`,onClick:()=>{dp(t).append?e.onLoadMore(`.`):e.onRetryDirectory(`.`)},children:M(`retry`)})]}):null,(0,P.jsx)(gp,{entries:e.rootEntries,depth:0,props:e}),up(e.treeState,`.`)?(0,P.jsx)(`button`,{type:`button`,className:`my-1 ml-2 text-xs font-medium text-muted-foreground/70 hover:text-foreground disabled:opacity-50`,disabled:t.status===`loading`,onClick:()=>e.onLoadMore(`.`),children:t.status===`loading`?M(`workspaceLoading`):M(`workspaceLoadMore`)}):null]})}var vp=`subagent-run-detail-body`;function yp({payload:e}){let t=(0,N.useRef)(null);return(0,N.useEffect)(()=>{t.current&&(t.current.payload=e)},[e]),(0,P.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 py-4`,children:(0,P.jsx)(vp,{ref:t,payload:e})})}var bp=3e4,xp=240,Sp=32*1024*1024,Cp=null;function wp(){if(!Cp){let e=new De({storeName:`workspace-cache`,maxEntries:xp,maxBytes:Sp});if(!e.available())return null;Cp=e}return Cp}function Tp(e){return e||ue()}function Ep(e,t,n){return de([Tp(e),t,`directory`,n])}function Dp(e,t){return de([Tp(e),t,`expanded`])}function Op(e,t,n){return de([Tp(e),t,`file`,n])}function kp(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.name==`string`&&typeof t.path==`string`&&(t.type===`file`||t.type===`directory`)}function Ap(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.schemaVersion===1&&typeof t.projectId==`string`&&typeof t.path==`string`&&Array.isArray(t.entries)&&t.entries.every(kp)&&(t.nextCursor===null||typeof t.nextCursor==`string`)&&typeof t.truncated==`boolean`&&typeof t.fetchedAt==`number`&&Number.isFinite(t.fetchedAt)}function jp(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.schemaVersion===1&&typeof t.projectId==`string`&&Array.isArray(t.expandedPaths)&&t.expandedPaths.every(e=>typeof e==`string`)}function Mp(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.schemaVersion===1&&typeof t.projectId==`string`&&typeof t.path==`string`&&typeof t.content==`string`&&typeof t.size==`number`&&Number.isFinite(t.size)&&typeof t.mtimeMs==`number`&&Number.isFinite(t.mtimeMs)&&typeof t.language==`string`&&typeof t.fetchedAt==`number`&&Number.isFinite(t.fetchedAt)}async function Np(e,t,n){let r=wp();if(!r)return null;let i=Ep(e,t,n),a=await r.get(i);return a===null?null:Ap(a)?a:(await r.delete(i),null)}function Pp(e,t=Date.now(),n=bp){let r=t-e.fetchedAt;return r>=0&&r<=n}async function Fp(e,t,n,r,i,a){let o=wp();if(!o)return!1;let s={schemaVersion:1,projectId:t,path:n,entries:r,nextCursor:i,truncated:a,fetchedAt:Date.now()};return o.put(Ep(e,t,n),s)}async function Ip(e,t){let n=wp();if(!n)return null;let r=Dp(e,t),i=await n.get(r);return i===null?null:jp(i)?i:(await n.delete(r),null)}async function Lp(e,t,n){let r=wp();if(!r)return!1;let i={schemaVersion:1,projectId:t,expandedPaths:n};return r.put(Dp(e,t),i)}async function Rp(e,t,n){let r=wp();if(!r)return null;let i=Op(e,t,n),a=await r.get(i);return a===null?null:Mp(a)?a:(await r.delete(i),null)}async function zp(e,t,n){let r=wp();if(!r||n.content.length>1048576)return!1;let i={schemaVersion:1,projectId:t,path:n.path,content:n.content,size:n.size,mtimeMs:n.mtimeMs,language:n.language,fetchedAt:Date.now()};return r.put(Op(e,t,n.path),i)}function Bp(e,t){return typeof t.size!=`number`||!Number.isFinite(t.size)||typeof t.mtimeMs!=`number`||!Number.isFinite(t.mtimeMs)?!1:e.size===t.size&&e.mtimeMs===t.mtimeMs}function Vp(e){return e===`idle`}function Hp(e){return e===`error`}function Up(e,t){return e&&t===`idle`}function Wp(e){return e.trim().length>=2?`search`:`tree`}function Gp(e){return{query:e,status:e.length>=2?`debouncing`:`idle`,entries:[],truncated:!1}}function Kp(e,t){return e.query===t&&e.status===`loaded`?e.entries:[]}function qp(e){return e.type===`file`}function Jp(e,t,n){return!e||e.id===n?!1:e.kind===`subagent`?!e.projectId||e.projectId===t:!!(t&&e.projectId===t)}var Yp=`quickforge:workspace-inspector-tabs:v1:`;function Xp(e){return`${Yp}${e}`}function Zp(e,t){return e===`browser`?`browser`:`${e}:${t}`}function Qp(e){return e===`files`||e===`review`||e===`terminal`||e===`browser`||e===`reader`}function $p(){try{return globalThis.localStorage}catch{return}}function em(e){if(!Array.isArray(e))return[];let t=new Set,n=[];for(let r of e){if(!r||typeof r!=`object`||Array.isArray(r))continue;let e=r;if(!(typeof e.id!=`string`||!e.id||!Qp(e.kind))){if(e.kind===`review`){if(t.has(e.kind))continue;t.add(e.kind)}if(e.kind===`reader`){let t=e.reader;if(!t||t.mode!==`file`||typeof t.path!=`string`||!t.path)continue;let r=Zp(t.mode,t.path);n.push({id:e.id,kind:e.kind,readerTabs:[{id:r,mode:t.mode,path:t.path,loading:!0}],activeReaderTabId:r});continue}n.push({id:e.id,kind:e.kind,...e.kind===`browser`&&typeof e.url==`string`?{url:e.url}:{},...e.kind===`review`?{reviewView:e.reviewView===`review`?`review`:`changes`}:{},...e.kind===`terminal`&&typeof e.terminalSessionId==`string`?{terminalSessionId:e.terminalSessionId}:{},...e.kind===`files`||e.kind===`review`?{readerTabs:[],activeReaderTabId:void 0}:{}})}}return n}function tm(e,t=$p()){if(!t)return{tabs:[]};try{let n=t.getItem(Xp(e));if(!n)return{tabs:[]};let r=JSON.parse(n),i=em(r?.tabs),a=typeof r?.activePanelTabId==`string`&&i.some(e=>e.id===r.activePanelTabId)?r.activePanelTabId:i[0]?.id;return a?{tabs:i,activePanelTabId:a}:{tabs:i}}catch{return{tabs:[]}}}function nm(e,t){let n=e.flatMap(e=>{if(e.kind===`subagent`)return[];if(e.kind===`reader`){let t=e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0];return!t||t.mode!==`file`?[]:[{id:e.id,kind:e.kind,reader:{mode:t.mode,path:t.path}}]}return[{id:e.id,kind:e.kind,...e.kind===`browser`?{url:e.url||``}:{},...e.kind===`review`?{reviewView:e.reviewView||`changes`}:{},...e.kind===`terminal`&&e.terminalSessionId?{terminalSessionId:e.terminalSessionId}:{}}]});return{tabs:n,activePanelTabId:t&&n.some(e=>e.id===t)?t:n[0]?.id}}function rm(e,t,n,r=$p()){if(!r)return!1;try{return r.setItem(Xp(e),JSON.stringify(nm(t,n))),!0}catch{return!1}}function im(e,t,n){if(t===n)return e;let r=e.findIndex(e=>e.id===t),i=e.findIndex(e=>e.id===n);if(r===-1||i===-1)return e;let a=[...e],[o]=a.splice(r,1);return a.splice(i,0,o),a}function am(e,t){return e.find(e=>e.kind===`subagent`&&e.subagentRun?.runId===t)}function om(e,t){let n=am(e,t.runId);return!n||n.subagentRun?.fingerprint===t.fingerprint?e:e.map(e=>e.id===n.id?{...e,subagentRun:t}:e)}function sm(e,t,n){let r=am(e,t.runId);return r?{tabs:e.map(e=>e.id===r.id?{...e,subagentRun:t}:e),tabId:r.id,created:!1}:{tabs:[...e,{id:n,kind:`subagent`,subagentRun:t}],tabId:n,created:!0}}function cm(e){return e.reduce((e,t)=>{let n=t.id.match(/-(\d+)$/);if(!n)return e;let r=Number(n[1]);return Number.isFinite(r)?Math.max(e,r):e},0)+1}function lm(){let e,t=0;return{token:n=>(n!==e&&(e=n,t+=1),{projectId:n,epoch:t}),isCurrent:n=>n.projectId===e&&n.epoch===t,invalidate:()=>(t+=1,t)}}function um(){if(typeof window>`u`)return 0;let e=window.getComputedStyle(document.body).getPropertyValue(`--quickforge-desktop-titlebar-height`).trim();if(!e)return 0;let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function dm(e,t){return e===`browser`?`browser`:`${e}:${t}`}var fm=[{kind:`files`,label:M(`rightPanelFiles`),description:M(`rightPanelFilesDesc`),icon:ee},{kind:`review`,label:M(`rightPanelReview`),description:M(`rightPanelReviewDesc`),icon:S},{kind:`terminal`,label:M(`rightPanelTerminal`),description:M(`rightPanelTerminalDesc`),icon:re},{kind:`browser`,label:M(`rightPanelBrowser`),description:M(`rightPanelBrowserDesc`),icon:ne}],pm=[{value:`unstaged`,label:M(`workspaceReviewFilterUnstaged`)},{value:`staged`,label:M(`workspaceReviewFilterStaged`)},{value:`all`,label:M(`workspaceReviewFilterAllBranches`)},{value:`last`,label:M(`workspaceReviewFilterLastRun`)}],mm=Object.fromEntries(fm.map(e=>[e.kind,e]));function hm(e){return e===`review`?`changes`:e}function gm(e){let t=e.trim();if(!t)return`about:blank`;if(/^[a-zA-Z]:[\\/]/.test(t))return ze(t);try{let e=new URL(t);return e.protocol===`about:`?t:e.protocol===`file:`?ze(decodeURIComponent(e.pathname)):e.host||t}catch{return ze(t)}}function _m(e){if(!(e.kind===`reader`||e.kind===`subagent`))return mm[e.kind]}function vm(e,t){if(e.kind===`subagent`){let t=e.subagentRun?.label||M(`subagentRunDetails`);return e.subagentRun?.task?`${t} · ${e.subagentRun.task}`:t}if(e.kind===`terminal`)return t||M(`rightPanelTerminal`);if(e.kind===`browser`)return gm(e.url||``);if(e.kind===`reader`){let t=e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0];return t?ze(t.path):M(`rightPanelFiles`)}return mm[e.kind].label}function ym(e,t){return e.kind===`subagent`?e.subagentRun?.statusLabel||t:e.kind===`browser`?e.url||t:e.kind===`reader`&&(e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0])?.path||t}function bm({id:e,children:t}){let{attributes:n,listeners:r,setNodeRef:i,transform:a,transition:o,isDragging:s}=ge({id:e});return(0,P.jsx)(`div`,{ref:i,style:{transform:me.Translate.toString(a),transition:s?void 0:o},className:j(`flex shrink-0 items-center gap-1`,s&&`relative z-30 opacity-55 drop-shadow-sm`),children:t({listeners:r,attributes:n,isDragging:s})})}var xm=340,Sm=380,Cm=640,wm=`quickforge_workspaceInspectorWidth_v2`,Tm=140,Em=200,Dm=400;function Om(){if(typeof window>`u`)return Sm;try{let e=window.localStorage.getItem(wm);if(!e)return Sm;let t=Number(e);return Number.isFinite(t)?Math.min(Cm,Math.max(xm,t)):Sm}catch{return Sm}}function km(e,t){let n=e?.trim();if(!n)return``;let r=n.replace(/\\/g,`/`).replace(/^\.\/+/g,``),i=t?.trim().replace(/\\/g,`/`).replace(/\/+$/g,``);return i&&r.startsWith(`${i}/`)&&(r=r.slice(i.length+1)),r.replace(/^\/+/,``)}function Am(e,t){let n=new Set;for(let r of e){let e=km(r.path,t),i=km(r.outputFile,t);e&&n.add(e),i&&n.add(i)}return n}function jm(e){return M(e===`staged`?`workspaceNoStagedChanges`:e===`last`?`workspaceNoLastRunChanges`:`workspaceNoWorkingTreeChanges`)}function Mm(e){return e?e.language===`markdown`||/\.(md|mdx|markdown)$/i.test(e.path):!1}function Nm(e){return`Diff for ${e.oldPath?`${e.oldPath} -> ${e.path}`:e.path}\n\n--- OLD\n${e.oldContent}\n\n--- NEW\n${e.newContent}`}function Pm({project:e,path:t,mode:n,file:r,diff:i,loading:o,error:s,navigationVisible:c,onNavigationVisibleChange:l,allowExternalOpen:u=!0}){let[f,p]=(0,N.useState)(),[m,h]=(0,N.useState)(`preview`),[g,v]=(0,N.useState)(!1),[y,b]=(0,N.useState)(!1),S=(0,N.useRef)(null);async function C(e,t){t&&(await navigator.clipboard.writeText(t),p(e),v(!1),window.setTimeout(()=>p(void 0),1200))}async function w(t){if(!(!e?.id||!T))try{await be(e.id,T,t)}catch(e){let n=M(t===`explorer`?`openInExplorerFailed`:t===`idea`?`openInIDEAFailed`:`openInVSCodeFailed`);await Ve(e instanceof Error?e.message:n)}}let T=n===`file`?r?.path||t:i?.path||t,E=(0,N.useMemo)(()=>km(T).split(`/`).filter(Boolean),[T]),D=[e?.name,...E].filter(Boolean).join(` > `),te=n===`file`&&Mm(r),ne=n===`file`&&(!te||m===`source`),re=n===`file`?r?.content:i?Nm(i):void 0,O=(0,N.useMemo)(()=>n===`diff`&&i?Hu(i.oldContent,i.newContent):void 0,[n,i]);return(0,N.useEffect)(()=>{if(!g)return;let e=e=>{S.current?.contains(e.target)||v(!1)},t=e=>{e.key===`Escape`&&v(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[g]),(0,P.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,P.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 border-b border-border px-3`,children:[O?(0,P.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px] font-medium`,children:[(0,P.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-400`,children:[`+`,O.added]}),(0,P.jsxs)(`span`,{className:`ml-1.5 text-red-600 dark:text-red-400`,children:[`-`,O.removed]})]}):null,(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden text-sm`,title:D||T,children:[e?.name?(0,P.jsx)(`span`,{className:`shrink-0 truncate text-muted-foreground/75`,children:e.name}):null,E.map((t,n)=>{let r=n===E.length-1;return(0,P.jsxs)(`div`,{className:j(`flex min-w-0 items-center gap-1.5`,r?`min-w-0`:`shrink-0`),children:[e?.name||n>0?(0,P.jsx)(d,{className:`size-4 shrink-0 text-muted-foreground/55`}):null,(0,P.jsx)(`span`,{className:j(`truncate`,r?`font-medium text-foreground/92`:`text-muted-foreground/75`),children:t})]},`${t}-${n}`)})]}),(0,P.jsxs)(`div`,{ref:S,className:`flex shrink-0 items-center gap-1`,children:[te?(0,P.jsx)(`button`,{type:`button`,className:`inline-flex h-8 items-center rounded-xl px-2.5 text-sm font-medium text-foreground/82 transition-colors hover:bg-muted/30 hover:text-foreground`,onClick:()=>{h(e=>e===`preview`?`source`:`preview`),v(!1)},children:M(m===`preview`?`viewMarkdownSource`:`returnToMarkdownPreview`)}):null,(0,P.jsxs)(`div`,{className:`relative`,children:[(0,P.jsx)(Fe,{variant:`ghost`,size:`icon`,className:j(`size-8 rounded-xl text-muted-foreground/75`,g&&`bg-muted/45 text-foreground/90`),onClick:()=>v(e=>!e),"aria-label":M(`readerMoreActions`),title:M(`readerMoreActions`),"aria-haspopup":`menu`,"aria-expanded":g,children:(0,P.jsx)(x,{className:`size-4`})}),g?(0,P.jsxs)(`div`,{className:`absolute right-0 top-10 z-50 w-56 rounded-2xl border border-[color-mix(in_oklab,var(--border)_38%,transparent)] bg-popover p-1.5 text-popover-foreground shadow-quickforge`,role:`menu`,"aria-label":M(`readerMoreActions`),children:[(0,P.jsxs)(`button`,{type:`button`,className:`flex h-10 w-full items-center gap-3 rounded-xl px-3 text-left text-sm font-medium text-foreground/86 transition-colors hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-45`,onClick:()=>void C(`path`,T),disabled:!T,role:`menuitem`,children:[f===`path`?(0,P.jsx)(a,{className:`size-4 shrink-0`}):(0,P.jsx)(_,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,P.jsx)(`span`,{children:M(`copyPath`)})]}),(0,P.jsxs)(`button`,{type:`button`,className:`flex h-10 w-full items-center gap-3 rounded-xl px-3 text-left text-sm font-medium text-foreground/86 transition-colors hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-45`,onClick:()=>void C(`content`,re),disabled:!re,role:`menuitem`,children:[f===`content`?(0,P.jsx)(a,{className:`size-4 shrink-0`}):(0,P.jsx)(_,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,P.jsx)(`span`,{children:M(n===`file`?`copyFileContent`:`copyDiffContent`)})]}),(0,P.jsxs)(`button`,{type:`button`,className:`flex h-10 w-full items-center gap-3 rounded-xl px-3 text-left text-sm font-medium text-foreground/86 transition-colors hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-45`,onClick:()=>{b(e=>!e),v(!1)},disabled:!ne,role:`menuitemcheckbox`,"aria-checked":y,children:[(0,P.jsx)(A,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,P.jsx)(`span`,{className:`min-w-0 flex-1`,children:M(`enableWordWrap`)}),y?(0,P.jsx)(a,{className:`size-4 shrink-0 text-muted-foreground/80`}):null]})]}):null]}),(0,P.jsx)(Fe,{variant:`ghost`,size:`icon`,className:j(`size-8 rounded-xl text-muted-foreground/75`,c&&`bg-muted/45 text-foreground/90`),onClick:()=>l(!c),"aria-label":M(c?`hideFileNavigation`:`showFileNavigation`),title:M(c?`hideFileNavigation`:`showFileNavigation`),"aria-pressed":c,children:(0,P.jsx)(ee,{className:`size-4`})}),u?(0,P.jsx)(Se,{project:e,disabled:!T,onOpenInExplorer:()=>{w(`explorer`)},onOpenInVSCode:()=>{w(`vscode`)},onOpenInIDEA:()=>{w(`idea`)}}):null]})]}),(0,P.jsxs)(`div`,{className:`min-h-0 flex-1 bg-background`,children:[o?(0,P.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground/70`,children:M(`openingReader`)}):null,!o&&s?(0,P.jsx)(`div`,{className:`p-4 text-sm text-destructive`,children:s}):null,!o&&!s&&n===`file`&&r?te?(0,P.jsx)(Bu,{projectId:e?.id,path:r.path,content:r.content,language:r.language,mode:m,wordWrap:y},r.path):(0,P.jsx)(Pu,{path:r.path,content:r.content,language:r.language,wordWrap:y}):null,!o&&!s&&n===`diff`&&i?(0,P.jsx)(Vu,{path:i.path,oldContent:i.oldContent,newContent:i.newContent,language:i.language,status:i.status}):null]})]})}function Fm({project:e,artifacts:t,changesCount:n,changedPaths:r,isGitRepository:i,gitBranch:a,onSelectFile:o,onSelectDiff:s,onPreviewFile:c}){let[l,u]=(0,N.useState)(!1),[d,p]=(0,N.useState)(()=>new Set),m=Ie(t),h=t.filter(e=>e.command);function g(e){p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}return(0,P.jsxs)(`div`,{className:`space-y-3 p-2`,children:[(0,P.jsxs)(`div`,{className:`rounded-lg border border-border bg-background px-3 py-3`,children:[(0,P.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold text-foreground/90`,children:[(0,P.jsx)(ie,{className:`size-3.5 text-emerald-600 dark:text-emerald-500`}),M(`workspaceCurrentArtifacts`)]}),t.length===0?(0,P.jsx)(`div`,{className:`mt-2 text-xs leading-5 text-muted-foreground/70`,children:M(`workspaceNoArtifacts`)}):(0,P.jsxs)(`div`,{className:`mt-3 space-y-3`,children:[m.length?(0,P.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,P.jsxs)(`div`,{className:`text-[11px] font-medium uppercase tracking-wide text-muted-foreground/60`,children:[M(`workspaceFiles`),` `,m.length]}),m.slice(0,8).map(e=>{let t=e.path,n=Re(t),i=r.has(t),a=typeof e.addedLines==`number`||typeof e.removedLines==`number`;return(0,P.jsxs)(`div`,{className:`group flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5 text-xs text-foreground/85 transition-colors hover:bg-muted/20`,children:[(0,P.jsx)(Ff,{path:t,className:`size-3.5 shrink-0`}),(0,P.jsx)(`button`,{type:`button`,className:`min-w-0 flex-1 truncate text-left font-medium`,onClick:()=>n?c(t):i?s(t):o(t),title:t,children:e.title||ze(t)}),a?(0,P.jsxs)(`span`,{className:`shrink-0 font-mono text-[10px] font-medium`,children:[(0,P.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-400`,children:[`+`,e.addedLines??0]}),(0,P.jsxs)(`span`,{className:`ml-1 text-red-600 dark:text-red-400`,children:[`-`,e.removedLines??0]})]}):null,(0,P.jsx)(`span`,{className:`shrink-0 rounded-full bg-muted/30 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground/70`,children:e.kind}),n?(0,P.jsx)(`button`,{type:`button`,className:`shrink-0 inline-flex size-5 items-center justify-center text-blue-600 opacity-0 transition-opacity hover:bg-blue-500/10 hover:text-blue-700 group-hover:opacity-100 dark:text-blue-400`,onClick:()=>c(t),"aria-label":M(`previewArtifact`),title:M(`previewArtifact`),children:(0,P.jsx)(D,{className:`size-3.5`})}):null,(0,P.jsx)(`button`,{type:`button`,className:`shrink-0 rounded-md px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground/70 opacity-0 transition-opacity hover:bg-muted/25 group-hover:opacity-100`,onClick:()=>i?s(t):o(t),children:M(i?`workspaceViewDiff`:`artifactPreviewViewSource`)})]},e.id)}),m.length>8?(0,P.jsxs)(`div`,{className:`px-2 text-[11px] text-muted-foreground/60`,children:[`+`,m.length-8]}):null]}):null,h.length?(0,P.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] font-medium uppercase tracking-wide text-muted-foreground/60 transition-colors hover:bg-muted/15 hover:text-foreground/75`,onClick:()=>u(e=>!e),"aria-expanded":l,children:[(0,P.jsx)(f,{className:j(`size-3.5 transition-transform`,l?``:`-rotate-90`)}),(0,P.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[M(`workspaceCommands`),` `,h.length]})]}),l?(0,P.jsx)(`div`,{className:`space-y-1`,children:h.map((e,t)=>{let n=d.has(e.id);return(0,P.jsxs)(`div`,{className:`rounded-md bg-muted/15 text-[11px] text-muted-foreground/80`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 px-2 py-1.5 text-left transition-colors hover:bg-muted/20`,onClick:()=>g(e.id),"aria-expanded":n,children:[(0,P.jsx)(f,{className:j(`size-3 shrink-0 transition-transform`,n?``:`-rotate-90`)}),(0,P.jsxs)(`span`,{className:`shrink-0 font-medium text-muted-foreground/65`,children:[`#`,t+1]}),(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono`,children:e.command})]}),n?(0,P.jsxs)(`div`,{className:`space-y-1 px-2 pb-2 pt-1.5`,children:[(0,P.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-[11px] leading-5 text-foreground/80`,children:e.command}),e.outputFile?(0,P.jsxs)(`div`,{className:`text-[10px] text-muted-foreground/65`,children:[M(`workspaceCommandOutput`),`: `,(0,P.jsx)(`span`,{className:`font-mono`,children:e.outputFile})]}):null]}):null]},e.id)})}):null]}):null]})]}),(0,P.jsxs)(`div`,{className:`rounded-lg border border-border bg-muted/10 px-3 py-3`,children:[(0,P.jsx)(`div`,{className:`text-xs font-medium text-foreground/85`,children:e?.name??M(`noProjectSelected`)}),(0,P.jsx)(`div`,{className:`mt-1 text-[11px] text-muted-foreground/65`,children:i?`${M(`workspaceCurrentBranch`)}: ${a||M(`unknown`)} · ${n} ${M(`workspaceChangeCount`)}`:M(`workspaceNotGitRepository`)})]})]})}function Im({project:e,open:t,onOpenChange:n,onOpenCommitPush:r,onOpenProjectInExplorer:o,onOpenProjectInVSCode:s,onOpenProjectInIDEA:c,onPreviewArtifact:l,request:d,onRequestHandled:h,artifacts:_=[],pendingTerminalCommand:y,onPendingTerminalCommandHandled:b,globalTerminalOpen:x=!1,onShowGlobalTerminal:S,onFullscreenChange:C}){let[w,E]=(0,N.useReducer)(sp,{}),[D,ne]=(0,N.useState)(()=>new Set),[O,ae]=(0,N.useState)(!1),[A,oe]=(0,N.useState)(()=>Gp(``)),[de,me]=(0,N.useState)([]),[ge,De]=(0,N.useState)(),[Ae,je]=(0,N.useState)(!1),[Me,Ie]=(0,N.useState)(`idle`),[Re,ze]=(0,N.useState)(),[Be,We]=(0,N.useState)(``),[Ge,Ke]=(0,N.useState)(`unstaged`),[Je,Ye]=(0,N.useState)(),[Xe,Ze]=(0,N.useState)(),[Qe,$e]=(0,N.useState)(!1),[et,tt]=(0,N.useState)(),nt=!!S,rt=(0,N.useMemo)(()=>nt?fm:fm.filter(e=>e.kind!==`terminal`),[nt]),it=(0,N.useRef)(void 0);it.current||=e?.id?tm(e.id):{tabs:[]};let[F,ot]=(0,N.useState)(()=>{let e=it.current?.tabs??[];return nt?e:e.filter(e=>e.kind!==`terminal`)}),[st,ct]=(0,N.useState)(()=>it.current?.activePanelTabId),[lt,ut]=(0,N.useState)(),[dt,ft]=(0,N.useState)(!1),[pt,mt]=(0,N.useState)(!1),[ht,I]=(0,N.useState)(!1),[gt,_t]=(0,N.useState)(),[L,R]=(0,N.useState)(Em),[vt,z]=(0,N.useState)(!0),[B,yt]=(0,N.useState)(!1),[bt,xt]=(0,N.useState)(t),[St,Ct]=(0,N.useState)(!1),[wt,Tt]=(0,N.useState)(Om),[Et,Dt]=(0,N.useState)(!1),[V,Ot]=(0,N.useState)(!1),[kt,At]=(0,N.useState)(!1),jt=(0,N.useRef)(null),Mt=(0,N.useRef)(null),Nt=(0,N.useRef)(null),Pt=(0,N.useRef)(null),Ft=(0,N.useRef)(null),It=(0,N.useRef)(null),Lt=(0,N.useRef)(null),Rt=(0,N.useRef)(null),zt=(0,N.useRef)(null),Bt=(0,N.useRef)(null),Vt=(0,N.useRef)(null),Ht=(0,N.useRef)(cm(it.current?.tabs??[])),Ut=(0,N.useRef)(void 0),Wt=(0,N.useRef)(void 0),Gt=(0,N.useRef)(void 0),Kt=(0,N.useRef)(void 0),H=(0,N.useRef)(lm()),qt=(0,N.useRef)(new Set),Jt=(0,N.useRef)(new Set),Yt=(0,N.useRef)(void 0),Xt=(0,N.useRef)(0),Zt=(0,N.useRef)(0),Qt=(0,N.useRef)(new Map),$t=(0,N.useRef)(new Set),U=(0,N.useRef)(null),W=(0,N.useRef)(null),en=(0,N.useRef)(null);(0,N.useEffect)(()=>{let e=H.current,t=Qt.current,n=$t.current;return()=>{e.invalidate();for(let e of t.values())e.abort();t.clear(),n.clear(),U.current?.abort(),W.current!==null&&window.clearTimeout(W.current),en.current?.abort()}},[]);let G=e?.id;G&&H.current.token(G);let tn=(0,N.useMemo)(()=>F.map(e=>e.id),[F]),nn=ke(le(Ee,{activationConstraint:{distance:6}})),rn=(0,N.useCallback)(e=>({...e.transform,y:0}),[]),K=(0,N.useMemo)(()=>F.find(e=>e.id===st),[st,F]),an=K?.activeReaderTabId,on=(0,N.useMemo)(()=>K?.readerTabs||[],[K?.readerTabs]),q=(0,N.useMemo)(()=>on.find(e=>e.id===an),[an,on]),sn=!!(q&&q.mode!==`browser`&&(K?.kind===`reader`||K?.kind===`review`&&q.mode===`diff`)),cn=K?.kind===`files`,ln=sn||cn,un=cn||!sn||vt,dn=K?.kind===`review`?K.reviewView===`review`?`overview`:`changes`:`files`,fn=(0,N.useMemo)(()=>{let e={};for(let t of de)e[t.path]=t;return e},[de]),pn=(0,N.useMemo)(()=>{let e=new Set;for(let t of de)e.add(t.path),t.oldPath&&e.add(t.oldPath);return e},[de]),mn=ap(w,`.`).entries,hn=Be.trim(),gn=hn.length>=2?Kp(A,hn):mn,_n=Me===`loading`,vn=(0,N.useMemo)(()=>Am(_,e?.path),[_,e?.path]),yn=(0,N.useMemo)(()=>Ge===`staged`?de.filter(e=>e.staged):Ge===`all`?de:Ge===`last`?de.filter(e=>vn.has(e.path)||(e.oldPath?vn.has(e.oldPath):!1)):de.filter(e=>e.unstaged||e.status===`untracked`||e.conflict||e.status===`conflicted`),[de,vn,Ge]),bn=Je?yn.find(e=>e.path===Je):void 0;function xn(e){me(e.files),De(e.branch),je(e.isGitRepository),Ie(`loaded`),ze(void 0)}async function Sn(e,t,n,r){_t({action:e,path:t});try{xn(await n())}catch(e){await Ve(e instanceof Error?e.message:r)}finally{_t(void 0)}}async function Cn(e){G&&await Sn(`stage`,e.path,()=>Te(G,e.path),M(`workspaceStageFailed`))}async function wn(){G&&await Sn(`stage`,void 0,()=>_e(G),M(`workspaceStageFailed`))}async function Tn(e){G&&await Sn(`unstage`,e.path,()=>ce(G,e.path),M(`workspaceUnstageFailed`))}async function En(){G&&await Sn(`unstage`,void 0,()=>He(G),M(`workspaceUnstageFailed`))}async function Dn(e){G&&await Oe({title:M(`workspaceRestoreConfirmTitle`),description:M(`workspaceRestoreFileConfirm`,{path:e.path}),confirmLabel:M(`workspaceRestoreFile`),cancelLabel:M(`cancel`),variant:`destructive`})&&await Sn(`restore`,e.path,()=>fe(G,e.path),M(`workspaceRestoreFailed`))}async function On(){G&&await Oe({title:M(`workspaceRestoreConfirmTitle`),description:M(`workspaceRestoreAllConfirm`),confirmLabel:M(`workspaceRestoreAll`),cancelLabel:M(`cancel`),variant:`destructive`})&&await Sn(`restore`,void 0,()=>Ce(G),M(`workspaceRestoreFailed`))}function kn(e){e.status!==`deleted`&&Z(e.path)}async function An(t){if(e){if(!bn){t===`explorer`?o?.(e):t===`idea`?c?.(e):s?.(e);return}if(G)try{await be(G,bn.path,t)}catch(e){let n=M(t===`explorer`?`openInExplorerFailed`:t===`idea`?`openInIDEAFailed`:`openInVSCodeFailed`);await Ve(e instanceof Error?e.message:n)}}}(0,N.useEffect)(()=>{!Je||yn.some(e=>e.path===Je)||(Ye(void 0),Ze(void 0),tt(void 0),$e(!1))},[Je,yn]),(0,N.useEffect)(()=>{if(t){let e=!1;return queueMicrotask(()=>{e||(xt(!0),window.requestAnimationFrame(()=>{e||Ct(!0)}))}),()=>{e=!0}}let e=!1;queueMicrotask(()=>{e||Ct(!1)});let n=window.setTimeout(()=>xt(!1),180);return V&&(zt.current?.cancel(),Bt.current=null,Ot(!1),At(!1),C?.(!1),jt.current?.removeAttribute(`style`)),()=>{e=!0,window.clearTimeout(n)}},[V,C,t]),(0,N.useEffect)(()=>{if(!dt&&!pt&&!ht)return;let e=e=>{let t=e.target;dt&&!Mt.current?.contains(t)&&ft(!1),pt&&!Nt.current?.contains(t)&&mt(!1),ht&&!Pt.current?.contains(t)&&I(!1)},t=e=>{e.key===`Escape`&&(ft(!1),mt(!1),I(!1))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[dt,ht,pt]),(0,N.useEffect)(()=>{if(!(!t||!Jp(d,G,Kt.current))){if(Kt.current=d.id,d.kind===`review`)Ut.current?.(`review`,d.view);else if(d.kind===`reader`)Gt.current?.(d.path);else if(d.kind===`browser`)Ut.current?.(`browser`,`browser`,{url:d.url});else if(d.kind===`subagent`){let e=Le.get(d.payload.runId)??d.payload;Wt.current?.(e)}else Ut.current?.(d.kind,hm(d.kind));h?.(d.id)}},[h,t,G,d]),(0,N.useEffect)(()=>{try{window.localStorage.setItem(wm,String(wt))}catch{}},[wt]);let jn=(0,N.useCallback)(()=>{Tt(e=>e<Cm?Cm:e)},[]);(0,N.useEffect)(()=>{!St||V||(K?.kind===`browser`||K?.kind===`terminal`||K?.kind===`subagent`||an)&&jn()},[K?.kind,an,St,V,jn]);let Mn=(0,N.useCallback)(async(e,t={})=>{if(!G)return!1;let n=$(e),r=ap(w,n);if(!t.force&&!t.append&&(r.status===`loading`||r.status===`loaded`))return!0;if(Qt.current.has(n))return!1;let i=t.cursor??(r.requestMode===`append`?r.requestCursor:r.nextCursor)??void 0;if(t.append&&!i)return!1;let a=new AbortController;Qt.current.set(n,a),Zt.current+=1;let o=Zt.current,s=H.current.token(G);E({type:`request`,path:n,generation:o,append:t.append,cursor:i});try{if(!t.force&&!t.append&&r.status===`idle`){let e=await Np(ue(),G,n);if(e&&H.current.isCurrent(s)&&!a.signal.aborted&&(E({type:`success`,path:n,generation:o,entries:e.entries,nextCursor:e.nextCursor}),Pp(e)))return!0}if(t.force&&!t.append){let e=[],t,i=null;do{let r=await se(G,n,{cursor:t,signal:a.signal});if(!H.current.isCurrent(s)||a.signal.aborted)return!1;e.push(...r.entries),i=r.nextCursor,t=r.nextCursor||void 0}while(t&&!lp(r,e,i));E({type:`success`,path:n,generation:o,entries:e,nextCursor:i}),i===null&&Fp(ue(),G,n,e,i,!1);let c=fp(w,n,e);if(c.length>0){for(let e of c)$t.current.add(e);let e=pp(w,c);E({type:`remove`,paths:c}),ne(t=>{let n=new Set(t);for(let e of t)c.some(t=>ip(e,t))&&n.delete(e);return e.length>0||n.size!==t.size?n:t})}}else{let e=await se(G,n,{cursor:t.append?i:void 0,signal:a.signal});if(!H.current.isCurrent(s)||a.signal.aborted)return!1;if(E({type:`success`,path:n,generation:o,entries:e.entries,nextCursor:e.nextCursor,append:t.append}),!t.append&&e.nextCursor===null&&!e.truncated&&Fp(ue(),G,n,e.entries,e.nextCursor,e.truncated),!t.append&&!e.nextCursor){let t=fp(w,n,e.entries);if(t.length>0){for(let e of t)$t.current.add(e);E({type:`remove`,paths:t}),ne(e=>{let n=new Set(e);for(let r of e)t.some(e=>ip(r,e))&&n.delete(r);return n})}}}return!0}catch(e){return a.signal.aborted||!H.current.isCurrent(s)||E({type:`failure`,path:n,generation:o,error:e instanceof Error?e.message:M(`workspaceLoadFailed`)}),!1}finally{Qt.current.get(n)===a&&Qt.current.delete(n)}},[G,w]),Nn=(0,N.useCallback)(async(e=!1)=>{if(!G||en.current&&!e)return;en.current?.abort();let t=new AbortController;en.current=t;let n=H.current.token(G);Ie(`loading`),ze(void 0);try{let e=await Pe(G,t.signal);if(t.signal.aborted||!H.current.isCurrent(n))return;xn(e)}catch(e){if(t.signal.aborted||!H.current.isCurrent(n))return;ze(e instanceof Error?e.message:M(`workspaceLoadFailed`)),Ie(`error`)}finally{en.current===t&&(en.current=null)}},[G]);function Pn(e){let t=$(e),n=D.has(t),r=new Set(D);n?r.delete(t):r.add(t),ne(r),G&&Lp(ue(),G,[...r]),n||Mn(t)}let Fn=(0,N.useCallback)(async e=>{let t=e.trim();if(W.current!==null&&(window.clearTimeout(W.current),W.current=null),U.current?.abort(),!G||t.length<2)return oe(Gp(t)),!1;let n=new AbortController;U.current=n;let r=H.current.token(G);oe({query:t,status:`loading`,entries:[],truncated:!1});try{let e=await he(G,t,{limit:100,signal:n.signal});return n.signal.aborted||!H.current.isCurrent(r)?!1:(oe({query:t,status:`loaded`,entries:e.entries,truncated:e.truncated}),!0)}catch(e){return n.signal.aborted||!H.current.isCurrent(r)||oe({query:t,status:`error`,entries:[],truncated:!1,error:e instanceof Error?e.message:M(`workspaceLoadFailed`)}),!1}finally{U.current===n&&(U.current=null)}},[G]);async function In(){$t.current.clear(),ae(!0);try{let e=cp(w,D),t=[];for(let n of e){if([...$t.current].some(e=>ip(n,e)))continue;let e=np(n);e&&t.some(t=>ip(e,t))||await Mn(n,{force:!0})||t.push(n)}if(!K||q?.mode!==`file`)return;let n=q.id;q.loading||Jt.current.add(n),Bn(K.id,e=>({...e,readerTabs:(e.readerTabs||[]).map(e=>e.id===n?{...e,loading:!0,error:void 0}:e)}))}finally{ae(!1)}}(0,N.useEffect)(()=>{!G||!Up(t,ap(w,`.`).status)||Mn(`.`)},[Mn,t,G,w]),(0,N.useEffect)(()=>{!G||K?.kind!==`review`||Vp(Me)&&Nn()},[K?.kind,Me,Nn,G]),(0,N.useEffect)(()=>{let e=Be.trim();if(U.current?.abort(),W.current!==null&&window.clearTimeout(W.current),oe(Gp(e)),!G||e.length<2){W.current=null;return}return W.current=window.setTimeout(()=>{W.current=null,Fn(e)},300),()=>{W.current!==null&&(window.clearTimeout(W.current),W.current=null)}},[Be,G,Fn]),(0,N.useEffect)(()=>{E({type:`reset`}),ne(new Set),ae(!1),oe(Gp(``)),Ie(`idle`),ze(void 0),me([]),De(void 0),je(!1);for(let e of Qt.current.values())e.abort();Qt.current.clear(),$t.current.clear(),U.current?.abort(),W.current!==null&&(window.clearTimeout(W.current),W.current=null),en.current?.abort()},[G]),(0,N.useEffect)(()=>{if(!G||!t||Yt.current===G)return;Yt.current=G;let e=H.current.token(G);(async()=>{let t=await Ip(ue(),G);if(!t||!H.current.isCurrent(e))return;let n=[...new Set(t.expandedPaths.map($))].filter(e=>e!==`.`);if(n.length!==0){ne(new Set(n));for(let e of n)Mn(e)}})()},[t,G,Mn]),(0,N.useEffect)(()=>Le.subscribe(e=>{ot(t=>om(t,e))}),[]),(0,N.useEffect)(()=>{G&&rm(G,F,st)},[st,F,G]),(0,N.useEffect)(()=>{!st||F.some(e=>e.id===st)||ct(F[0]?.id)},[st,F]);let Ln=(0,N.useCallback)(async(e,t,n,r,i={})=>{if(!G)return;let a=ue(),o=n=>{Bn(e,e=>({...e,readerTabs:(e.readerTabs||[]).map(e=>e.id===t?{...e,file:n,loading:!1,error:void 0}:e)}))},s=n=>{Bn(e,e=>({...e,readerTabs:(e.readerTabs||[]).map(e=>e.id===t?{...e,loading:!1,error:n instanceof Error?n.message:M(`workspaceOpenFileFailed`)}:e)}))};if(!i.bypassCacheRead){let e=await Rp(a,G,n);if(e){o({path:e.path,content:e.content,size:e.size,mtimeMs:e.mtimeMs,language:e.language,readonly:!0});try{let t=await ye(G,n);if(!H.current.isCurrent(r)||Bp(e,t))return;let i=await Ne(G,n);if(!H.current.isCurrent(r))return;o(i),zp(a,G,i)}catch{}return}}try{let e=await Ne(G,n);if(!H.current.isCurrent(r))return;o(e),zp(a,G,e)}catch(e){if(!H.current.isCurrent(r))return;s(e)}},[G]);(0,N.useEffect)(()=>{if(!G)return;let e=F.flatMap(e=>e.kind===`reader`?(e.readerTabs||[]).filter(e=>e.loading&&e.mode===`file`).map(t=>({panelTabId:e.id,reader:t})):[]);for(let{panelTabId:t,reader:n}of e){let e=`${G}:${n.id}`;if(qt.current.has(e))continue;qt.current.add(e);let r=H.current.token(G),i=Jt.current.has(n.id);Jt.current.delete(n.id),Ln(t,n.id,n.path,r,{bypassCacheRead:i}).finally(()=>{qt.current.delete(e)})}},[F,G,Ln]);function Rn(e,t){let n=`${e}-${Ht.current++}`;return e===`browser`?{id:n,kind:e,url:t?.url||``}:e===`reader`?{id:n,kind:e,readerTabs:t?.readerTab?[t.readerTab]:[],activeReaderTabId:t?.readerTab?.id}:e===`files`||e===`review`?{id:n,kind:e,...e===`review`?{reviewView:t?.reviewView||`changes`}:{},readerTabs:t?.readerTab?[t.readerTab]:[],activeReaderTabId:t?.readerTab?.id}:{id:n,kind:e}}function zn(e){return Rn(`reader`,{readerTab:e})}function Bn(e,t){ot(n=>n.map(n=>n.id===e?t(n):n))}function Vn(e,t=hm(e),n){let r=e===`review`?F.find(e=>e.kind===`review`):e===`browser`&&n?.url?Bf(F,n.url):void 0,i=r||Rn(e,{...n,...e===`review`?{reviewView:t===`review`?`review`:`changes`}:{}});return r||ot(e=>[...e,i]),r?.kind===`review`&&Bn(r.id,e=>({...e,reviewView:t===`review`?`review`:`changes`})),r?.kind===`browser`&&Bn(r.id,e=>({...e,reloadNonce:(e.reloadNonce??0)+1})),ct(i.id),ft(!1),i}Ut.current=Vn;function Hn(e){let t=sm(F,e,`subagent-${Ht.current}`);t.created&&(Ht.current+=1),ot(t.tabs),ct(t.tabId),ft(!1)}Wt.current=Hn;function J(e){ct(e.id)}function Un(e){ut(e.active.id),ft(!1),mt(!1)}function Wn(){ut(void 0)}function Gn(e){Wn();let{active:t,over:n}=e;n&&ot(e=>im(e,t.id,n.id))}function Kn(e){ot(t=>{let r=t.findIndex(t=>t.id===e),i=t.filter(t=>t.id!==e);return i.length===0?(ct(void 0),n(!1),i):(st===e&&ct((i[r]??i[r-1])?.id),i)})}function qn(){ot(e=>{let t=e.find(e=>e.id===st)??e[0];return t?(ct(t.id),[t]):e}),mt(!1)}function Y(){ot([]),ct(void 0),mt(!1),n(!1)}function X(e){if(l&&G){l(G,e);return}Z(e)}async function Z(e){if(!G)return;let t=H.current.token(G),n=dm(`file`,e),r=F.find(e=>e.kind===`reader`&&e.readerTabs?.some(e=>e.id===n));if(r){ct(r.id),Bn(r.id,e=>({...e,activeReaderTabId:n,readerTabs:(e.readerTabs||[]).map(e=>e.id===n?{...e,loading:!0,error:void 0}:e)}));return}let i=zn({id:n,mode:`file`,path:e,loading:!0});ot(e=>[...e,i]),ct(i.id);let a=`${G}:${n}`;qt.current.add(a);try{await Ln(i.id,n,e,t)}finally{qt.current.delete(a)}}Gt.current=Z;async function Jn(e,t){if(!G)return;let n=H.current.token(G),r=F.find(e=>e.kind===`review`)||Vn(`review`,t?`changes`:`review`);ct(r.id),t&&r.kind===`review`&&Bn(r.id,e=>({...e,reviewView:`changes`}));let i=dm(`diff`,e);if(r.readerTabs?.some(e=>e.id===i)){Bn(r.id,e=>({...e,activeReaderTabId:i}));return}let a={id:i,mode:`diff`,path:e,loading:!0};Bn(r.id,e=>({...e,readerTabs:[...e.readerTabs||[],a],activeReaderTabId:i}));try{let t=await xe(G,e);if(!H.current.isCurrent(n))return;Bn(r.id,e=>({...e,readerTabs:(e.readerTabs||[]).map(e=>e.id===i?{...e,diff:t,loading:!1,error:void 0}:e)}))}catch(e){if(!H.current.isCurrent(n))return;Bn(r.id,t=>({...t,readerTabs:(t.readerTabs||[]).map(t=>t.id===i?{...t,loading:!1,error:e instanceof Error?e.message:M(`workspaceOpenDiffFailed`)}:t)}))}}async function Yn(e){if(!G)return;let t=H.current.token(G);if(Je===e){Xt.current+=1,Ye(void 0),Ze(void 0),tt(void 0),$e(!1);return}let n=Xt.current+1;Xt.current=n,Ye(e),Ze(void 0),tt(void 0),$e(!0);try{let r=await xe(G,e);if(Xt.current!==n||!H.current.isCurrent(t))return;Ze(r)}catch(e){if(Xt.current!==n||!H.current.isCurrent(t))return;tt(e instanceof Error?e.message:M(`workspaceOpenDiffFailed`))}finally{Xt.current===n&&H.current.isCurrent(t)&&$e(!1)}}async function Xn(e){await Jn(e,!1)}function Zn(e){Lt.current={startX:e.clientX,startWidth:wt,currentWidth:wt},Vt.current={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect},document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,Dt(!0),e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}function Q(e){let t=Lt.current,n=jt.current;!t||!n||(t.currentWidth=Math.min(Cm,Math.max(xm,t.startWidth+t.startX-e.clientX)),Rt.current===null&&(Rt.current=window.requestAnimationFrame(()=>{Rt.current=null;let e=Lt.current;!e||!jt.current||(jt.current.style.width=`${e.currentWidth}px`)})))}function Qn(e){let t=Lt.current?.currentWidth;Lt.current=null,Rt.current!==null&&(window.cancelAnimationFrame(Rt.current),Rt.current=null),typeof t==`number`&&(jt.current&&(jt.current.style.width=`${t}px`),Tt(t));let n=Vt.current;n&&(document.body.style.cursor=n.cursor,document.body.style.userSelect=n.userSelect,Vt.current=null),Dt(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}}function $n(e){Ft.current={startX:e.clientX,startWidth:L,currentWidth:L},document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,yt(!0),e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}function er(e){let t=Ft.current;t&&(t.currentWidth=Math.min(Dm,Math.max(Tm,t.startWidth+t.startX-e.clientX)),It.current===null&&(It.current=window.requestAnimationFrame(()=>{It.current=null;let e=Ft.current;e&&R(e.currentWidth)})))}function tr(e){let t=Ft.current?.currentWidth;Ft.current=null,It.current!==null&&(window.cancelAnimationFrame(It.current),It.current=null),typeof t==`number`&&R(t),document.body.style.cursor=``,document.body.style.userSelect=``,yt(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}}let nr=(0,N.useCallback)(e=>{let t=jt.current;if(!t){let t=!V;Ot(t),C?.(t),t||e?.();return}V&&e&&(Bt.current=e),zt.current?.cancel();let n=t.getBoundingClientRect(),r=window.innerWidth,i=um(),a=window.innerHeight-i,o=`${i}px`,s=`${a}px`,c=`cubic-bezier(0.22, 1, 0.36, 1)`;if(At(!0),!V){window.requestAnimationFrame(()=>{let e=jt.current;if(!e)return;Object.assign(e.style,{position:`fixed`,left:`${n.left}px`,top:`${n.top}px`,right:`auto`,bottom:`auto`,width:`${n.width}px`,height:`${n.height}px`,minWidth:`0px`,maxWidth:`none`,zIndex:`40`});let t=e.animate([{left:`${n.left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`},{left:`0px`,top:o,width:`${r}px`,height:s}],{duration:240,easing:c,fill:`forwards`});zt.current=t,t.onfinish=()=>{zt.current=null,Ot(!0),C?.(!0),window.requestAnimationFrame(()=>{t.cancel(),e.removeAttribute(`style`),window.requestAnimationFrame(()=>At(!1))})},t.oncancel=()=>{zt.current=null,Bt.current=null,At(!1)}});return}window.requestAnimationFrame(()=>{let e=jt.current;if(!e)return;Object.assign(e.style,{position:`fixed`,left:`0px`,top:o,right:`auto`,bottom:`auto`,width:`${n.width}px`,height:s,zIndex:`40`});let t=r-wt,i=e.animate([{left:`0px`,top:o,width:`${n.width}px`,height:s},{left:`${t}px`,top:o,width:`${wt}px`,height:s}],{duration:240,easing:c,fill:`forwards`});zt.current=i,i.onfinish=()=>{zt.current=null,Ot(!1),C?.(!1);let t=Bt.current;Bt.current=null,window.requestAnimationFrame(()=>{i.cancel(),e.style.position=``,e.style.left=``,e.style.top=``,e.style.right=``,e.style.bottom=``,e.style.height=``,e.style.zIndex=``,e.style.width=`${wt}px`,e.style.minWidth=`${xm}px`,e.style.maxWidth=`${Cm}px`,window.requestAnimationFrame(()=>{At(!1),t?.()})})},i.oncancel=()=>{zt.current=null,Bt.current=null,At(!1)}})},[V,C,wt]);return(0,N.useEffect)(()=>{if(!V)return;let e=e=>{e.key===`Escape`&&nr()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[V,nr]),(0,N.useEffect)(()=>()=>{C?.(!1)},[C]),(0,N.useEffect)(()=>()=>{Rt.current!==null&&window.cancelAnimationFrame(Rt.current),It.current!==null&&window.cancelAnimationFrame(It.current),zt.current?.cancel(),jt.current&&jt.current.removeAttribute(`style`);let e=Vt.current;e&&(document.body.style.cursor=e.cursor,document.body.style.userSelect=e.userSelect)},[]),bt?(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(`aside`,{ref:jt,className:j(`relative hidden shrink-0 overflow-hidden flex-col bg-background transition-[width,min-width,max-width,opacity,transform] duration-200 ease-out will-change-[width,opacity,transform] lg:flex`,St?`translate-x-0 opacity-100`:`w-0 min-w-0 max-w-0 translate-x-4 opacity-0`,Et?`transition-none`:``,V?`quickforge-workspace-inspector-fullscreen z-40 rounded-none border-l-0`:void 0),style:St?V?void 0:{width:wt,minWidth:xm,maxWidth:Cm}:void 0,children:[St&&!V?(0,P.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-valuemin":xm,"aria-valuemax":Cm,"aria-valuenow":wt,className:`absolute inset-y-0 -left-2 z-20 w-4 cursor-col-resize bg-transparent`,onPointerDown:Zn,onPointerMove:Q,onPointerUp:Qn,onPointerCancel:Qn}):null,(0,P.jsxs)(`div`,{className:j(`flex h-14 shrink-0 items-center gap-2 border-b border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background pl-3 transition-opacity duration-150`,V?`pr-2`:`pr-[5.5rem]`,kt?`opacity-0`:`opacity-100`),children:[F.length>0?(0,P.jsxs)(`div`,{ref:Nt,className:`relative shrink-0`,children:[(0,P.jsx)(`button`,{type:`button`,className:`flex size-9 items-center justify-center rounded-2xl bg-transparent text-muted-foreground/85 transition-colors hover:bg-muted/45 hover:text-foreground/90`,onClick:()=>mt(e=>!e),"aria-label":M(`rightPanelOpenTabsTitle`),title:M(`rightPanelOpenTabsTitle`),"aria-haspopup":`menu`,"aria-expanded":pt,children:(0,P.jsx)(f,{className:j(`size-4 transition-transform`,pt&&`rotate-180`)})}),pt?(0,P.jsxs)(`div`,{className:`absolute left-0 top-12 z-40 w-72 max-w-[calc(100vw-2rem)] overflow-hidden rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-2 shadow-quickforge`,role:`menu`,children:[(0,P.jsx)(`div`,{className:`max-h-[min(25rem,calc(100dvh-10rem))] overflow-y-auto overscroll-contain`,children:F.map(t=>{let n=_m(t)?.icon,r=Rf(t),i=t.id===st,a=vm(t,e?.name),o=ym(t,a);return(0,P.jsxs)(`div`,{className:j(`group flex h-10 w-full items-center gap-2 rounded-xl px-2 transition-colors`,i?`bg-muted/55 text-foreground`:`text-foreground/86 hover:bg-muted/34 hover:text-foreground`),role:`none`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`flex min-w-0 flex-1 items-center gap-2 text-left text-sm font-medium`,onClick:()=>{J(t),mt(!1)},role:`menuitem`,title:o,children:[r?(0,P.jsx)(Ff,{path:r,className:`size-4 shrink-0`}):t.kind===`subagent`?(0,P.jsx)(v,{className:`size-4 shrink-0 text-muted-foreground/80`}):n?(0,P.jsx)(n,{className:`size-4 shrink-0 text-muted-foreground/80`}):(0,P.jsx)(ie,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:a})]}),(0,P.jsx)(`button`,{type:`button`,className:`inline-flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground/70 opacity-70 transition-colors hover:bg-destructive/10 hover:text-destructive group-hover:opacity-100`,onClick:e=>{e.stopPropagation(),Kn(t.id)},"aria-label":M(`close`),children:(0,P.jsx)(T,{className:`size-3.5`})})]},t.id)})}),(0,P.jsxs)(`div`,{className:`mt-2 border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] pt-2`,children:[(0,P.jsx)(`button`,{type:`button`,className:`flex h-9 w-full items-center rounded-xl px-3 text-left text-sm font-medium text-foreground/80 transition-colors hover:bg-muted/40 hover:text-foreground disabled:pointer-events-none disabled:opacity-40`,onClick:qn,disabled:F.length<=1,role:`menuitem`,children:M(`rightPanelCloseOtherTabs`)}),(0,P.jsx)(`button`,{type:`button`,className:`flex h-9 w-full items-center rounded-xl px-3 text-left text-sm font-medium text-foreground/80 transition-colors hover:bg-destructive/10 hover:text-destructive`,onClick:Y,role:`menuitem`,children:M(`rightPanelCloseAllTabs`)})]})]}):null]}):null,(0,P.jsx)(ve,{sensors:nn,collisionDetection:Ue,onDragStart:Un,onDragEnd:Gn,onDragCancel:Wn,modifiers:[rn],children:(0,P.jsx)(we,{items:tn,strategy:pe,children:(0,P.jsxs)(`div`,{className:j(`flex min-w-0 flex-1 items-center gap-1 overflow-x-auto`,lt&&`cursor-grabbing`),children:[F.map((t,n)=>{let r=_m(t)?.icon,i=Rf(t),a=t.id===st,o=vm(t,e?.name),s=ym(t,o);return(0,P.jsx)(bm,{id:t.id,children:({listeners:e,attributes:c,isDragging:l})=>(0,P.jsxs)(P.Fragment,{children:[n>0?(0,P.jsx)(`span`,{"aria-hidden":`true`,className:`mx-0.5 h-3.5 w-px bg-[color-mix(in_oklab,var(--muted-foreground)_18%,transparent)]`}):null,(0,P.jsxs)(`button`,{type:`button`,className:j(`group flex h-10 max-w-40 cursor-grab items-center gap-2 rounded-2xl px-3 text-[13px] font-medium transition-[background-color,color,box-shadow] active:cursor-grabbing`,a?`bg-[color-mix(in_oklab,var(--muted)_86%,transparent)] text-foreground/82 hover:bg-[color-mix(in_oklab,var(--muted)_86%,transparent)]`:`text-muted-foreground/45 hover:bg-[color-mix(in_oklab,var(--muted)_72%,transparent)] hover:text-muted-foreground/72`,l&&`shadow-quickforge`),onClick:()=>{lt||J(t)},title:s,...e,...c,children:[i?(0,P.jsx)(Ff,{path:i,className:j(`size-4 shrink-0 transition-opacity`,a?`opacity-100`:`opacity-55 group-hover:opacity-85`)}):t.kind===`subagent`?(0,P.jsx)(v,{className:j(`size-4 shrink-0`,a?`text-foreground/74`:`text-muted-foreground/45 group-hover:text-muted-foreground/72`)}):r?(0,P.jsx)(r,{className:j(`size-4 shrink-0`,a?`text-foreground/74`:`text-muted-foreground/45 group-hover:text-muted-foreground/72`)}):(0,P.jsx)(ie,{className:j(`size-4 shrink-0`,a?`text-foreground/74`:`text-muted-foreground/45 group-hover:text-muted-foreground/72`)}),(0,P.jsx)(`span`,{className:`min-w-0 truncate`,children:o}),(0,P.jsx)(`span`,{role:`button`,tabIndex:0,className:j(`ml-0.5 inline-flex size-5 shrink-0 cursor-default items-center justify-center rounded-full opacity-0 transition-all hover:bg-black hover:text-white group-hover:opacity-100`,a&&`opacity-100`),onPointerDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),Kn(t.id)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),Kn(t.id))},"aria-label":M(`close`),children:(0,P.jsx)(T,{className:`size-3.5`})})]})]})},t.id)}),F.length===0?(0,P.jsx)(`div`,{className:`min-w-0 flex-1`}):null]})})}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[F.length>0||V?(0,P.jsxs)(`div`,{ref:Mt,className:`relative shrink-0`,children:[(0,P.jsx)(Fe,{variant:`ghost`,size:`icon`,type:`button`,className:`rounded-[10px] text-muted-foreground/85 hover:bg-muted/45 hover:text-foreground/90 disabled:opacity-40`,onClick:()=>ft(e=>!e),"aria-label":M(`rightPanelAddTab`),title:M(`rightPanelAddTab`),"aria-haspopup":`menu`,"aria-expanded":dt,children:(0,P.jsx)(i,{className:`size-[18px] stroke-[1.85]`})}),dt?(0,P.jsx)(`div`,{className:`absolute right-0 top-12 z-40 w-64 rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-2 shadow-quickforge`,role:`menu`,children:rt.map(e=>{let t=e.icon;return(0,P.jsxs)(`button`,{type:`button`,className:j(`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-[15px] font-medium transition-colors`,e.kind===K?.kind?`bg-muted/55 text-foreground`:`text-foreground/86 hover:bg-muted/34 hover:text-foreground`),onClick:()=>Vn(e.kind,hm(e.kind)),role:`menuitem`,children:[(0,P.jsx)(t,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label})]},e.kind)})}):null]}):null,(0,P.jsx)(Fe,{variant:`ghost`,size:`icon`,className:`shrink-0 rounded-[10px] text-muted-foreground/85 hover:bg-muted/45 hover:text-foreground/90 disabled:opacity-40`,disabled:kt,onClick:()=>nr(),"aria-label":M(V?`workspaceExitFullscreen`:`workspaceFullscreen`),title:M(V?`workspaceExitFullscreen`:`workspaceFullscreen`),children:V?(0,P.jsx)(p,{className:`size-[18px] stroke-[1.85]`}):(0,P.jsx)(m,{className:`size-[18px] stroke-[1.85]`})}),V?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Fe,{variant:`ghost`,size:`icon`,className:j(`shrink-0 rounded-[10px] text-muted-foreground/85 hover:bg-muted/45 hover:text-foreground/90 disabled:opacity-40`,x&&`bg-accent text-accent-foreground hover:bg-accent hover:text-accent-foreground`),disabled:kt||!S,onClick:()=>nr(S),"aria-label":M(`rightPanelTerminal`),title:M(`rightPanelTerminal`),children:(0,P.jsx)(re,{className:`size-[18px] stroke-[1.85]`})}),(0,P.jsx)(Fe,{variant:`ghost`,size:`icon`,className:`shrink-0 rounded-[10px] bg-accent text-accent-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-40`,disabled:kt,onClick:()=>nr(()=>n(!1)),"aria-label":M(`workspaceCollapseRightPanel`),title:M(`workspaceCollapseRightPanel`),children:(0,P.jsx)(u,{className:`size-[18px] stroke-[1.85]`})})]}):null]})]}),(0,P.jsx)(`div`,{className:j(`flex min-h-0 flex-1 transition-opacity duration-150`,kt?`opacity-0`:`opacity-100`),children:!e?.id&&K?.kind!==`subagent`?(0,P.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground/70`,children:M(`workspaceSelectProject`)}):K?K.kind===`subagent`?(0,P.jsx)(yp,{payload:K.subagentRun}):K.kind===`browser`?(0,P.jsx)(at,{url:K.url||``,onUrlChange:e=>{Bn(K.id,t=>({...t,url:e}))},projectId:e?.id,externalReloadToken:K.reloadNonce}):K.kind===`terminal`?(0,P.jsx)(qe,{project:e,pendingCommand:y,onPendingCommandHandled:b,onCollapse:()=>Kn(K.id),variant:`panel`,singleSession:!0,panelInstanceId:K.id,panelSessionId:K.terminalSessionId,onPanelSessionReady:e=>Bn(K.id,t=>({...t,terminalSessionId:e}))},K.id):(0,P.jsxs)(P.Fragment,{children:[ln?(0,P.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col bg-background`,children:q?(0,P.jsx)(Pm,{project:e,path:q.path,mode:q.mode,file:q.file,diff:q.diff,loading:q.loading,error:q.error,navigationVisible:vt,onNavigationVisibleChange:z,allowExternalOpen:!!(o||s||c)},q.id):cn?(0,P.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center px-6`,children:(0,P.jsxs)(`div`,{className:`max-w-sm text-center`,children:[(0,P.jsx)(ee,{className:`mx-auto size-8 stroke-[1.6] text-muted-foreground/35`}),(0,P.jsx)(`div`,{className:`mt-3 text-sm font-medium text-foreground/85`,children:M(`workspaceOpenFileTitle`)}),(0,P.jsx)(`div`,{className:`mt-1 text-xs leading-5 text-muted-foreground/60`,children:M(`workspaceOpenFileDescription`)})]})}):null}):null,ln&&(cn||vt)?(0,P.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-valuemin":Tm,"aria-valuemax":Dm,"aria-valuenow":L,className:j(`group relative z-10 w-1.5 shrink-0 cursor-col-resize bg-transparent transition-colors`,B?`bg-primary/30`:`hover:bg-[color-mix(in_oklab,var(--border)_52%,transparent)]`),onPointerDown:$n,onPointerMove:er,onPointerUp:tr,onPointerCancel:tr}):null,un?(0,P.jsx)(`div`,{className:j(`flex min-h-0 min-w-0 flex-col bg-muted/20`,ln?`shrink-0 border-l-[0.5px] border-[color-mix(in_oklab,var(--border)_34%,transparent)]`:`flex-1`),style:ln?{width:L,minWidth:Tm,maxWidth:Dm}:void 0,children:(0,P.jsxs)(`div`,{className:j(`min-h-0 min-w-0 flex-1 p-2`,dn===`changes`?`flex flex-col overflow-hidden`:`overflow-auto`),children:[dn===`overview`?(0,P.jsx)(Fm,{project:e,artifacts:_,changesCount:de.length,changedPaths:pn,isGitRepository:Ae,gitBranch:ge,onSelectFile:Z,onSelectDiff:Xn,onPreviewFile:X}):null,dn===`files`?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`mb-2 flex items-center gap-1`,children:[(0,P.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-center gap-2 rounded-md border-[0.5px] border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-2.5 py-2 text-sm text-muted-foreground/65 focus-within:text-foreground/85`,children:[(0,P.jsx)(g,{className:`size-4 shrink-0`}),(0,P.jsx)(`input`,{value:Be,onChange:e=>We(e.target.value),placeholder:M(`workspaceFilterFiles`),className:`min-w-0 flex-1 bg-transparent text-sm text-foreground/85 outline-none placeholder:text-muted-foreground/50`})]}),(0,P.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-xl text-muted-foreground/72 transition-colors hover:bg-muted/30 hover:text-foreground/85 disabled:cursor-not-allowed disabled:opacity-60`,onClick:()=>{Wp(Be)===`search`?Fn(Be):In()},disabled:O||A.status===`loading`,"aria-label":M(`refreshWorkspace`),title:M(`refreshWorkspace`),children:(0,P.jsx)(k,{className:j(`size-3.5`,(O||A.status===`loading`)&&`animate-spin`)})})]}),Be.trim().length===1?(0,P.jsx)(`div`,{className:`px-2 py-2 text-xs text-muted-foreground/60`,children:M(`workspaceSearchMinChars`)}):null,A.status===`error`?(0,P.jsxs)(`div`,{className:`flex items-start gap-2 px-2 py-2 text-xs text-destructive`,children:[(0,P.jsx)(`span`,{className:`min-w-0 flex-1`,children:A.error||M(`workspaceLoadFailed`)}),(0,P.jsx)(`button`,{type:`button`,className:`shrink-0 rounded-md px-1.5 py-0.5 font-medium text-foreground/75 hover:bg-muted/45 hover:text-foreground`,onClick:()=>void Fn(Be),children:M(`retry`)})]}):null,A.status===`debouncing`||A.status===`loading`?(0,P.jsx)(`div`,{className:`px-2 py-2 text-xs text-muted-foreground/70`,children:M(`workspaceSearching`)}):null,A.status===`loaded`&&gn.length===0?(0,P.jsx)(`div`,{className:`px-2 py-3 text-sm text-muted-foreground/70`,children:M(`workspaceNoSearchResults`)}):null,A.status===`loaded`&&A.truncated?(0,P.jsx)(`div`,{className:`px-2 py-1 text-xs text-muted-foreground/60`,children:M(`workspaceSearchTruncated`)}):null,hn.length<2||A.status===`loaded`&&gn.length>0?(0,P.jsx)(_p,{treeState:hn.length>=2?{".":{entries:gn,status:`loaded`,nextCursor:null,generation:0}}:w,rootEntries:gn,expandedPaths:hn.length>=2?new Set:D,directoriesExpandable:hn.length<2,selectedPath:q?.mode===`file`?q.path:void 0,gitStatuses:fn,onToggleDirectory:e=>{hn.length<2&&Pn(e)},onRetryDirectory:e=>void Mn(e,{force:!0}),onLoadMore:e=>void Mn(e,{append:!0}),onSelectFile:e=>{let t=gn.find(t=>t.path===e);(hn.length<2||!t||qp(t))&&Z(e)},onPreviewFile:X,projectId:G}):null]}):null,dn===`changes`?Hp(Me)?(0,P.jsxs)(`div`,{className:`p-2 text-sm text-destructive`,children:[(0,P.jsx)(`div`,{children:Re||M(`workspaceLoadFailed`)}),(0,P.jsxs)(`button`,{type:`button`,className:`mt-2 inline-flex h-8 items-center gap-1.5 rounded-xl border border-[color-mix(in_oklab,var(--border)_45%,transparent)] bg-background px-3 text-xs font-medium text-foreground/82 transition-colors hover:bg-muted/30`,onClick:()=>void Nn(!0),children:[(0,P.jsx)(k,{className:`size-3.5`}),M(`retry`)]})]}):_n?(0,P.jsx)(`div`,{className:`px-2 py-3 text-xs text-muted-foreground/70`,children:M(`workspaceLoading`)}):Ae?(0,P.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 shrink-0 flex-wrap items-center justify-between gap-x-2 gap-y-1.5 pb-2`,children:[(0,P.jsxs)(`div`,{ref:Pt,className:`relative min-w-24 flex-1`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`inline-flex h-8 w-full min-w-0 max-w-full items-center gap-2 rounded-xl border border-[color-mix(in_oklab,var(--border)_45%,transparent)] bg-background px-3 text-sm font-medium text-foreground/86 transition-colors hover:border-border/60 hover:bg-muted/30 hover:text-foreground`,onClick:()=>I(e=>!e),"aria-haspopup":`menu`,"aria-expanded":ht,title:M(`workspaceReviewFilter`),children:[(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:pm.find(e=>e.value===Ge)?.label}),(0,P.jsx)(f,{className:j(`size-3.5 shrink-0 text-muted-foreground/70 transition-transform`,ht&&`rotate-180`)})]}),ht?(0,P.jsx)(`div`,{className:`absolute left-0 top-10 z-40 w-48 rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-1.5 shadow-quickforge`,role:`menu`,"aria-label":M(`workspaceReviewFilter`),children:pm.map(e=>{let t=e.value===Ge;return(0,P.jsxs)(`button`,{type:`button`,className:j(`flex h-9 w-full items-center gap-2 rounded-xl px-2.5 text-left text-sm font-medium transition-colors`,t?`bg-muted/55 text-foreground`:`text-foreground/82 hover:bg-muted/34 hover:text-foreground`),onClick:()=>{Ke(e.value),I(!1)},role:`menuitemradio`,"aria-checked":t,children:[(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),t?(0,P.jsx)(a,{className:`size-3.5 shrink-0 text-muted-foreground/80`}):null]},e.value)})}):null]}),(0,P.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[(0,P.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-xl text-muted-foreground/72 transition-colors hover:bg-muted/30 hover:text-foreground/85 disabled:cursor-not-allowed disabled:opacity-60`,onClick:()=>void Nn(!0),disabled:_n,"aria-label":M(`refreshWorkspace`),title:M(`refreshWorkspace`),children:(0,P.jsx)(k,{className:j(`size-3.5`,_n&&`animate-spin`)})}),o||s||c?(0,P.jsx)(Se,{project:e,disabledTargets:bn?.status===`deleted`?{vscode:!0,idea:!0}:void 0,targetDisabledLabel:M(`workspaceCannotOpenDeletedFile`),onOpenInExplorer:()=>{An(`explorer`)},onOpenInVSCode:()=>{An(`vscode`)},onOpenInIDEA:()=>{An(`idea`)}}):null,r?(0,P.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-xl text-muted-foreground/72 transition-colors hover:bg-muted/30 hover:text-foreground/85`,onClick:r,"aria-label":M(`gitToolsCommitOrPush`),title:M(`gitToolsCommitOrPush`),children:(0,P.jsx)(te,{className:`size-3.5`})}):null]})]}),(0,P.jsx)(tp,{files:yn,selectedPath:Je,expandedDiff:Xe,expandedLoading:Qe,expandedError:et,onSelectFile:Yn,onRestoreFile:Dn,onStageFile:Cn,onUnstageFile:Tn,onOpenFile:kn,onRestoreAll:On,onStageAll:wn,onUnstageAll:En,showUnstageAll:Ge===`staged`,pendingAction:gt,emptyMessage:jm(Ge)})]}):(0,P.jsx)(`div`,{className:`px-2 py-3 text-xs text-muted-foreground/70`,children:M(`workspaceNotGitRepository`)}):null]})}):null]}):(0,P.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center px-5`,children:(0,P.jsxs)(`div`,{className:`w-full max-w-[26rem] space-y-4`,children:[(0,P.jsxs)(`div`,{className:`text-center font-sans`,children:[(0,P.jsx)(`div`,{className:`text-lg font-semibold leading-tight tracking-[-0.01em] text-foreground/90`,children:M(`rightPanelOpenTabsTitle`)}),(0,P.jsx)(`div`,{className:`mt-2 text-sm leading-5 text-muted-foreground/70`,children:M(`rightPanelOpenTabsDescription`)})]}),(0,P.jsx)(`div`,{className:`space-y-2`,children:rt.map(e=>{let t=e.icon;return(0,P.jsxs)(`button`,{type:`button`,className:`flex w-full cursor-pointer items-center gap-3 rounded-xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-muted/60 px-4 py-3 text-left transition-colors hover:bg-muted/72 active:bg-muted/82`,onClick:()=>Vn(e.kind,hm(e.kind)),children:[(0,P.jsx)(t,{className:`size-4 shrink-0 text-muted-foreground/78`}),(0,P.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,P.jsx)(`div`,{className:`text-sm font-medium text-foreground/90`,children:e.label}),(0,P.jsx)(`div`,{className:`mt-0.5 text-xs leading-4 text-muted-foreground/60`,children:e.description})]})]},e.kind)})})]})})})]})}):null}export{Im as WorkspaceInspector};
|