Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

34.1 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["106"],{80016(e,r,a){a.d(r,{A:()=>S});var s=a(77760),t=a(74848),l=a(96540),i=a(83941),n=a(1113);let o=new Map;function d(e,r=!1){return r&&(document.querySelectorAll(`script[src="${e}"]`).forEach(e=>e.remove()),o.delete(e)),o.has(e)||o.set(e,new Promise((r,a)=>{let s=document.createElement("script");s.src=e,s.async=!0,s.onload=()=>r(),s.onerror=()=>{o.delete(e),a(Error(`blocked: ${e}`))},document.body.appendChild(s)})),o.get(e)}function c(){let e=(0,l.useRef)(null),[r,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let s=e.current;if(!s||r)return;if(!("IntersectionObserver"in window))return void a(!0);let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(a(!0),t.disconnect())},{rootMargin:"600px 0px"});return t.observe(s),()=>t.disconnect()},[r]),[e,r]}function m(e,r){let a=0,s=new WeakSet,t=e=>s.add(e.target);e.addEventListener("load",t,!0);let l=()=>{window.clearInterval(i),e.removeEventListener("load",t,!0)},i=window.setInterval(()=>{a+=1;let t=e.querySelector("iframe");t&&s.has(t)&&parseFloat(t.style.height)>80&&!e.querySelector("blockquote")?(l(),r()):a>80&&l()},250);return l}let h=e=>"number"==typeof e?new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e):"",j=e=>e?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"",u=e=>{try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}},x={x:(0,t.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M18.9 2H22l-6.8 7.8L23 22h-6.2l-4.8-6.3L6.4 22H3.3l7.3-8.3L1 2h6.3l4.4 5.8L18.9 2Zm-1.1 18h1.7L6.3 3.9H4.5L17.8 20Z"})}),github:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"})}),instagram:(0,t.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M12 2.2c3.2 0 3.6 0 4.8.1 3.3.1 4.8 1.7 4.9 4.9.1 1.3.1 1.6.1 4.8s0 3.6-.1 4.8c-.1 3.2-1.7 4.8-4.9 4.9-1.3.1-1.6.1-4.8.1s-3.6 0-4.8-.1c-3.3-.1-4.8-1.7-4.9-4.9C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.8C2.4 3.9 3.9 2.4 7.2 2.3 8.4 2.2 8.8 2.2 12 2.2Zm0 4.9a4.9 4.9 0 1 0 0 9.8 4.9 4.9 0 0 0 0-9.8Zm0 8.1a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4Zm5.1-9.4a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4Z"})}),youtube:(0,t.jsxs)("svg",{viewBox:"0 0 68 48","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"#f00",d:"M66.5 7.7a8.5 8.5 0 0 0-6-6C55.3.3 34 .3 34 .3s-21.3 0-26.5 1.4a8.5 8.5 0 0 0-6 6C.1 13 .1 24 .1 24s0 11 1.4 16.3a8.5 8.5 0 0 0 6 6C12.7 47.7 34 47.7 34 47.7s21.3 0 26.5-1.4a8.5 8.5 0 0 0 6-6C67.9 35 67.9 24 67.9 24s0-11-1.4-16.3Z"}),(0,t.jsx)("path",{fill:"#fff",d:"m27 34.3 17.8-10.3L27 13.7v20.6Z"})]}),play:(0,t.jsxs)("svg",{viewBox:"0 0 48 48","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"24",cy:"24",r:"24",fill:"rgba(0,0,0,.6)"}),(0,t.jsx)("path",{fill:"#fff",d:"m19 15 15 9-15 9z"})]}),bluesky:(0,t.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M5.2 3.5C7.9 5.5 10.8 9.6 12 12c1.2-2.4 4.1-6.5 6.8-8.5 2-1.4 5.2-2.6 5.2 1 0 .7-.4 6-.7 6.8-.9 3-4 3.8-6.8 3.3 4.9.8 6.1 3.6 3.4 6.3-5.1 5.2-7.3-1.3-7.9-3l-.1-.3-.1.3c-.6 1.7-2.8 8.2-7.9 3-2.7-2.7-1.5-5.5 3.4-6.3-2.8.5-5.9-.3-6.8-3.3C.4 10.5 0 5.2 0 4.5c0-3.6 3.2-2.4 5.2-1Z"})}),link:(0,t.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",d:"M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1"})}),star:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M8 .25a.75.75 0 0 1 .67.42l1.88 3.8 4.2.61a.75.75 0 0 1 .41 1.28l-3.04 2.96.72 4.18a.75.75 0 0 1-1.09.79L8 12.32l-3.75 1.97a.75.75 0 0 1-1.09-.79l.72-4.18L.84 6.36a.75.75 0 0 1 .41-1.28l4.2-.61L7.33.67A.75.75 0 0 1 8 .25Z"})}),fork:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M5 5.37v.25A2.25 2.25 0 0 0 7.25 7.9h1.5A2.25 2.25 0 0 0 11 5.62v-.25a2.25 2.25 0 1 1 1.5 0v.25a3.75 3.75 0 0 1-3.75 3.75h-.5v1.26a2.25 2.25 0 1 1-1.5 0V9.37h-.5A3.75 3.75 0 0 1 3.5 5.62v-.25a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.75 12.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})}),open:(0,t.jsxs)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"currentColor",d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"})]}),pr:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.12v5.26a2.25 2.25 0 1 1-1.5 0V5.37A2.25 2.25 0 0 1 1.5 3.25Zm5.68-1.03L9.25 0v1.5h1.5a2.75 2.75 0 0 1 2.75 2.75v6.38a2.25 2.25 0 1 1-1.5 0V4.25c0-.69-.56-1.25-1.25-1.25h-1.5v1.5L7.18 2.43a.25.25 0 0 1 0-.21ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})}),merged:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M5.45 5.15A2.25 2.25 0 1 0 4 5.37v5.26a2.25 2.25 0 1 0 1.5 0V8.05A4.48 4.48 0 0 0 9 9.75h1.13a2.25 2.25 0 1 0 0-1.5H9a3 3 0 0 1-2.95-2.47l-.6-.63ZM4.75 2.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Zm7.5-3a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"})}),closed:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5ZM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"})}),tag:(0,t.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M1 7.78V2.75C1 1.78 1.78 1 2.75 1h5.03c.46 0 .9.18 1.23.51l5.75 5.75a1.75 1.75 0 0 1 0 2.47l-5.03 5.03a1.75 1.75 0 0 1-2.47 0L1.5 9.01A1.73 1.73 0 0 1 1 7.78Zm1.5 0c0 .07.03.13.07.18l5.75 5.75a.25.25 0 0 0 .35 0l5.03-5.03a.25.25 0 0 0 0-.35L7.96 2.57a.25.25 0 0 0-.18-.07H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})})},p={TypeScript:"#3178c6",JavaScript:"#f1e05a",Python:"#3572A5",Go:"#00ADD8",Rust:"#dea584",Shell:"#89e051",Swift:"#F05138",Kotlin:"#A97BFF",Java:"#b07219","C++":"#f34b7d",C:"#555555",Ruby:"#701516",HTML:"#e34c26",CSS:"#563d7c",MDX:"#fcb32c"};function g({provider:e,url:r,children:a,label:s}){return(0,t.jsxs)("figure",{className:`mj-embed mj-embed--${e}`,"data-provider":e,children:[a,s&&(0,t.jsx)("figcaption",{children:(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:s})})]})}function f({url:e,d:r}){let{colorMode:a}=(0,i.G)(),[s,n]=c(),o=(0,l.useRef)(null),[h,j]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!n||!o.current)return;let e=!1,s=o.current;s.innerHTML="",j(!1);let t=m(s,()=>{e||j(!0)});return d("https://platform.twitter.com/widgets.js").then(()=>window.twttr?.widgets?.createTweet(r.id,s,{theme:a,dnt:!0,align:"center",conversation:"none"})).catch(()=>void 0),()=>{e=!0,t()}},[n,a,r.id]);let p=r.handle&&"i"!==r.handle?`@${r.handle}`:"";return(0,t.jsx)(g,{provider:"x",url:e,children:(0,t.jsxs)("div",{ref:s,children:[(0,t.jsx)("div",{ref:o,className:h?"mj-embed-live":"mj-embed-staging","aria-hidden":!h}),!h&&(0,t.jsxs)("a",{className:"mj-ecard mj-social",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("header",{children:[(0,t.jsxs)("span",{className:"mj-social-who",children:[(0,t.jsx)("strong",{children:r.author||p||"Post on X"}),r.author&&p&&(0,t.jsx)("span",{children:p})]}),(0,t.jsx)("span",{className:"mj-brand mj-brand--x",children:x.x})]}),r.text?(0,t.jsx)("p",{className:"mj-social-text",children:r.text}):(0,t.jsx)("p",{className:"mj-social-text is-dim",children:"View this post on X"}),(0,t.jsx)("footer",{children:r.date||u(e)})]})]})})}function b({url:e,provider:r,d:a,markup:s,script:i,fresh:n,rescan:o,fallback:h}){let[j,u]=c(),x=(0,l.useRef)(null),[p,f]=(0,l.useState)(!1),v=(0,l.useRef)({markup:s,script:i,fresh:n,rescan:o});return(0,l.useEffect)(()=>{let e=x.current,{markup:r,script:a,fresh:s,rescan:t}=v.current;if(!u||!e||!r)return;e.innerHTML=r;let l=m(e,()=>f(!0));return d(a,s).then(()=>t?.()).catch(()=>void 0),l},[u]),(0,t.jsx)(g,{provider:r,url:e,children:(0,t.jsxs)("div",{ref:j,children:[(0,t.jsx)("div",{ref:x,className:p?"mj-embed-live":"mj-embed-staging","aria-hidden":!p}),!p&&h]})})}let v=e=>e.replace(/[&<>"']/g,e=>`&#${e.charCodeAt(0)};`);function y({url:e,d:r}){let a=`https://www.instagram.com/${r.kind??"p"}/${r.id}/`,s=`<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="${v(a)}?utm_source=ig_embed" data-instgrm-version="14" style="margin:0 auto;max-width:540px;min-width:280px;width:100%"><a href="${v(a)}">View on Instagram</a></blockquote>`;return(0,t.jsx)(b,{url:e,provider:"instagram",d:r,markup:s,script:"https://www.instagram.com/embed.js",rescan:()=>window.instgrm?.Embeds?.process(),fallback:(0,t.jsxs)("a",{className:"mj-ecard mj-social mj-social--ig",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("header",{children:[(0,t.jsxs)("span",{className:"mj-social-who",children:[(0,t.jsx)("strong",{children:"Instagram"}),(0,t.jsx)("span",{children:"reel"===r.kind?"Reel":"Post"})]}),(0,t.jsx)("span",{className:"mj-brand mj-brand--ig",children:x.instagram})]}),(0,t.jsxs)("p",{className:"mj-social-text is-dim",children:["View this ","reel"===r.kind?"reel":"post"," on Instagram"]}),(0,t.jsx)("footer",{children:"instagram.com"})]})})}function k({url:e,d:r}){let a=r.uri&&r.cid?`<blockquote class="bluesky-embed" data-bluesky-uri="${v(r.uri)}" data-bluesky-cid="${v(r.cid)}"><p>${v(r.text??"")}</p></blockquote>`:null;return(0,t.jsx)(b,{url:e,provider:"bluesky",d:r,markup:a,script:"https://embed.bsky.app/static/embed.js",rescan:()=>window.bluesky?.scan?.(),fallback:(0,t.jsxs)("a",{className:"mj-ecard mj-social",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("header",{children:[(0,t.jsxs)("span",{className:"mj-social-who",children:[(0,t.jsx)("strong",{children:r.author||`@${r.handle}`}),(0,t.jsxs)("span",{children:["@",r.handle]})]}),(0,t.jsx)("span",{className:"mj-brand mj-brand--bsky",children:x.bluesky})]}),(0,t.jsx)("p",{className:`mj-social-text${r.text?"":" is-dim"}`,children:r.text||"View this post on Bluesky"}),(0,t.jsx)("footer",{children:"bsky.app"})]})})}function w({url:e,d:r}){let a=`<blockquote class="tiktok-embed" cite="${v(e)}" data-video-id="${v(r.id)}" style="max-width:605px;min-width:325px;margin:0 auto"><section><a href="${v(e)}">TikTok</a></section></blockquote>`;return(0,t.jsx)(b,{url:e,provider:"tiktok",d:r,markup:a,script:"https://www.tiktok.com/embed.js",fresh:!0,fallback:(0,t.jsx)(M,{url:e,d:{title:r.title||"Video on TikTok",description:r.author?`@${r.handle} \xb7 ${r.author}`:`@${r.handle}`,image:r.thumbnail,siteName:"TikTok"}})})}function N({url:e,provider:r,thumb:a,title:s,author:i,iframe:n,vertical:o}){let[d,c]=(0,l.useState)(!1),m="youtube"===r?"YouTube":"vimeo"===r?"Vimeo":u(e),h=`${i?`${i} \xb7 `:""}Watch on ${m}`;return(0,t.jsx)(g,{provider:r,url:e,label:h,children:(0,t.jsx)("div",{className:`mj-video${o?" is-vertical":""}`,children:d?(0,t.jsx)("iframe",{src:n,title:s??"Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"}):(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),"aria-label":`Play: ${s??"video"}`,children:[a&&(0,t.jsx)("img",{src:a,alt:"",loading:"lazy",decoding:"async"}),s&&(0,t.jsx)("span",{className:"mj-video-title",children:s}),(0,t.jsx)("span",{className:"mj-video-play",children:"youtube"===r?x.youtube:x.play})]})})})}function C({url:e,d:r}){let a=r.parts??[],s=r.fullName??r.repo??a.slice(0,2).join("/"),[l,i]=String(s).split("/");if("code"===r.kind){let a=String(r.sha??r.ref??""),l=/^[0-9a-f]{7,40}$/i.test(a),i=r.start===r.end?`L${r.start}`:`L${r.start}\u{2013}${r.end}`;return(0,t.jsxs)("figure",{className:"mj-embed mj-embed--github mj-gh-code","data-provider":"github",children:[(0,t.jsxs)("header",{className:"mj-gh mj-gh-code-head",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),(0,t.jsx)("a",{href:`https://github.com/${s}`,target:"_blank",rel:"noopener noreferrer",className:"mj-gh-code-repo",children:s}),(0,t.jsxs)("span",{className:`mj-gh-ref${l?" is-sha":""}`,title:l?`Pinned to commit ${a}`:`Branch or tag ${a}`,children:[l?"@ ":"",l?a.slice(0,7):a]}),(0,t.jsx)("a",{className:"mj-gh-code-link",href:e,target:"_blank",rel:"noopener noreferrer",children:"View on GitHub \u2197"})]}),(0,t.jsx)(n.A,{language:r.language??"text",title:`${r.path}  \xb7  ${i}`,showLineNumbers:r.start??1,children:String(r.code??"")}),r.commitTitle&&(0,t.jsxs)("figcaption",{className:"mj-gh-code-foot",children:["At ",(0,t.jsx)("a",{href:`https://github.com/${s}/commit/${a}`,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("code",{children:a.slice(0,7)})})," \xb7 ",r.commitTitle,r.commitDate?` \xb7 ${j(r.commitDate)}`:""]})]})}if("commit"===r.kind){let a=Math.max(1,...(r.files??[]).map(e=>e.additions+e.deletions));return(0,t.jsx)(g,{provider:"github",url:e,children:(0,t.jsxs)("a",{className:"mj-ecard mj-gh mj-gh-commit",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("div",{className:"mj-gh-repo",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),s,(0,t.jsx)("span",{className:"mj-gh-ref is-sha",children:String(r.sha??"").slice(0,7)})]}),(0,t.jsx)("strong",{className:"mj-gh-title mj-gh-commit-title",children:r.title}),r.body&&(0,t.jsx)("p",{className:"mj-gh-desc",children:r.body}),(0,t.jsxs)("div",{className:"mj-gh-meta",children:[r.avatar&&(0,t.jsx)("img",{src:r.avatar,alt:"",width:18,height:18,loading:"lazy"}),r.author&&(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:r.author})," committed ",j(r.date)]}),"number"==typeof r.fileCount&&(0,t.jsxs)("span",{children:[r.fileCount," file",1===r.fileCount?"":"s"," changed"]}),"number"==typeof r.additions&&(0,t.jsxs)("span",{className:"mj-gh-diff",children:[(0,t.jsxs)("ins",{children:["+",h(r.additions)]})," ",(0,t.jsxs)("del",{children:["\u2212",h(r.deletions)]})]})]}),r.files?.length>0&&(0,t.jsx)("ul",{className:"mj-gh-files",children:r.files.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("code",{children:e.name}),(0,t.jsxs)("span",{className:"mj-gh-bar","aria-label":`${e.additions} added, ${e.deletions} removed`,children:[(0,t.jsx)("i",{className:"is-add",style:{width:`${e.additions/a*100}%`}}),(0,t.jsx)("i",{className:"is-del",style:{width:`${e.deletions/a*100}%`}})]}),(0,t.jsxs)("span",{className:"mj-gh-diff",children:[(0,t.jsxs)("ins",{children:["+",e.additions]})," ",(0,t.jsxs)("del",{children:["\u2212",e.deletions]})]})]},e.name))})]})})}if("issue"===r.kind||"pull"===r.kind){let l="pull"===r.kind?r.merged?"merged":r.draft?"draft":r.state:"closed"===r.state&&"not_planned"===r.stateReason?"not-planned":r.state,i="pull"===r.kind?r.merged?x.merged:x.pr:"closed"===r.state?x.closed:x.open;return(0,t.jsx)(g,{provider:"github",url:e,children:(0,t.jsxs)("a",{className:"mj-ecard mj-gh",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("div",{className:"mj-gh-repo",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),s,(0,t.jsxs)("span",{className:"mj-gh-num",children:["#",r.number??a[3]]})]}),(0,t.jsxs)("div",{className:"mj-gh-title-row",children:[(0,t.jsxs)("span",{className:`mj-gh-state is-${l}`,children:[i,{open:"Open",closed:"Closed",merged:"Merged",draft:"Draft","not-planned":"Closed"}[l]??"Open"]}),(0,t.jsx)("strong",{className:"mj-gh-title",children:r.title??`${"pull"===r.kind?"Pull request":"Issue"} #${a[3]}`})]}),r.labels?.length>0&&(0,t.jsx)("div",{className:"mj-gh-labels",children:r.labels.map(e=>(0,t.jsx)("span",{style:{"--l":`#${e.color}`},children:e.name},e.name))}),(0,t.jsxs)("div",{className:"mj-gh-meta",children:[r.avatar&&(0,t.jsx)("img",{src:r.avatar,alt:"",width:18,height:18,loading:"lazy"}),r.author&&(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:r.author})," opened ",j(r.created)]}),"number"==typeof r.comments&&(0,t.jsxs)("span",{children:[r.comments," comment",1===r.comments?"":"s"]}),"number"==typeof r.additions&&(0,t.jsxs)("span",{className:"mj-gh-diff",children:[(0,t.jsxs)("ins",{children:["+",h(r.additions)]})," ",(0,t.jsxs)("del",{children:["\u2212",h(r.deletions)]})]})]})]})})}if("release"===r.kind)return(0,t.jsx)(g,{provider:"github",url:e,children:(0,t.jsxs)("a",{className:"mj-ecard mj-gh",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("div",{className:"mj-gh-repo",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),s]}),(0,t.jsxs)("div",{className:"mj-gh-title-row",children:[(0,t.jsxs)("span",{className:"mj-gh-state is-release",children:[x.tag,r.tag]}),(0,t.jsx)("strong",{className:"mj-gh-title",children:r.name}),r.prerelease&&(0,t.jsx)("span",{className:"mj-gh-pill",children:"Pre-release"})]}),r.body&&(0,t.jsx)("p",{className:"mj-gh-desc",children:r.body}),(0,t.jsx)("div",{className:"mj-gh-meta",children:r.published&&(0,t.jsxs)("span",{children:["Released ",j(r.published)]})})]})});if("user"===r.kind)return(0,t.jsx)(g,{provider:"github",url:e,children:(0,t.jsxs)("a",{className:"mj-ecard mj-gh mj-gh-user",href:e,target:"_blank",rel:"noopener noreferrer",children:[r.avatar&&(0,t.jsx)("img",{src:r.avatar,alt:"",width:64,height:64,loading:"lazy",className:"Organization"===r.type?"is-org":""}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mj-gh-title-row",children:[(0,t.jsx)("strong",{className:"mj-gh-title",children:r.name||r.login}),(0,t.jsx)("span",{className:"mj-gh-dim",children:r.login})]}),r.bio&&(0,t.jsx)("p",{className:"mj-gh-desc",children:r.bio}),(0,t.jsxs)("div",{className:"mj-gh-meta",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),"number"==typeof r.followers&&(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:h(r.followers)})," followers"]}),"number"==typeof r.repos&&(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:h(r.repos)})," repositories"]})]})]})]})});if("repo"===r.kind)return(0,t.jsx)(g,{provider:"github",url:e,children:(0,t.jsxs)("a",{className:"mj-ecard mj-gh mj-gh-repo-card",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("div",{className:"mj-gh-body",children:[(0,t.jsxs)("div",{className:"mj-gh-repo is-big",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),(0,t.jsxs)("span",{className:"mj-gh-dim",children:[l,"/"]}),(0,t.jsx)("b",{children:i})]}),r.description&&(0,t.jsx)("p",{className:"mj-gh-desc",children:r.description}),r.topics?.length>0&&(0,t.jsx)("div",{className:"mj-gh-topics",children:r.topics.map(e=>(0,t.jsx)("span",{children:e},e))}),(0,t.jsxs)("div",{className:"mj-gh-meta",children:[r.language&&(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{style:{background:p[r.language]??"#8b949e"}}),r.language]}),"number"==typeof r.stars&&(0,t.jsxs)("span",{children:[x.star,h(r.stars)]}),"number"==typeof r.forks&&(0,t.jsxs)("span",{children:[x.fork,h(r.forks)]}),r.license&&"NOASSERTION"!==r.license&&(0,t.jsx)("span",{children:r.license})]})]}),r.avatar&&(0,t.jsx)("img",{className:"mj-gh-owner",src:r.avatar,alt:"",width:72,height:72,loading:"lazy"})]})});let o=r.og??`https://opengraph.githubassets.com/mercury/${a.slice(0,4).join("/")}`;return(0,t.jsx)(M,{url:e,d:{title:r.title||s,description:r.description,image:o,siteName:"GitHub",icon:void 0},brand:x.github,wide:!0})}function $({url:e,d:r}){return(0,t.jsx)(g,{provider:"github",url:e,children:(0,t.jsxs)("a",{className:"mj-ecard mj-gh mj-gh-gist",href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("div",{className:"mj-gh-repo",children:[(0,t.jsx)("span",{className:"mj-gh-mark",children:x.github}),(0,t.jsxs)("span",{className:"mj-gh-dim",children:[r.owner??"gist"," /"]})," ",(0,t.jsx)("b",{children:r.filename??"gist"}),r.files>1&&(0,t.jsxs)("span",{className:"mj-gh-dim",children:["+",r.files-1," files"]})]}),r.description&&(0,t.jsx)("p",{className:"mj-gh-desc",children:r.description}),r.code&&(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:r.code})})]})})}function M({url:e,d:r,brand:a,wide:s}){let[i,n]=(0,l.useState)(!0),o=r.siteName||u(e);return(0,t.jsx)(g,{provider:"link",url:e,children:(0,t.jsxs)("a",{className:`mj-ecard mj-link${r.image&&i?" has-image":""}${s?" is-wide":""}`,href:e,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsxs)("div",{className:"mj-link-body",children:[(0,t.jsxs)("div",{className:"mj-link-site",children:[a?(0,t.jsx)("span",{className:"mj-gh-mark",children:a}):r.icon?(0,t.jsx)("img",{src:r.icon,alt:"",width:16,height:16,loading:"lazy",onError:e=>{e.target.style.display="none"}}):(0,t.jsx)("span",{className:"mj-gh-mark",children:x.link}),(0,t.jsx)("span",{children:o})]}),(0,t.jsx)("strong",{children:r.title||e}),r.description&&(0,t.jsx)("p",{children:r.description}),(0,t.jsx)("span",{className:"mj-link-host",children:u(e)})]}),r.image&&i&&(0,t.jsx)("img",{className:"mj-link-img",src:r.image,alt:"",loading:"lazy",decoding:"async",onError:()=>n(!1)})]})})}let B={"\u2713":"yes","\u25D0":"partial","\u2715":"no","?":"unknown"},S={...s.A,td:function(e){let r=(function e(r){let a=l.Children.toArray(r)[0];return"string"==typeof a?a:(0,l.isValidElement)(a)?e(a.props.children):""})(e.children).trimStart().charAt(0),a=B[r];if(!a)return(0,t.jsx)("td",{...e});let s=l.Children.toArray(e.children);return"string"==typeof s[0]&&(s[0]=s[0].trimStart().slice(1).trimStart()),(0,t.jsxs)("td",{...e,className:`mj-cell is-${a}${e.className?` ${e.className}`:""}`,children:[(0,t.jsx)("span",{className:"mj-mark","aria-hidden":"true",children:r}),(0,t.jsx)("span",{className:"mj-cell-text",children:s})]})},SocialEmbed:function({url:e,provider:r,data:a}){let{colorMode:s}=(0,i.G)(),l={};try{l=a?JSON.parse(a):{}}catch{l={}}switch(r){case"x":return(0,t.jsx)(f,{url:e,d:l});case"youtube":return(0,t.jsx)(N,{url:e,provider:"youtube",vertical:l.short,title:l.title,author:l.author,thumb:`https://i.ytimg.com/vi/${l.id}/hqdefault.jpg`,iframe:`https://www.youtube-nocookie.com/embed/${l.id}?autoplay=1&rel=0&modestbranding=1${l.start?`&start=${l.start}`:""}`});case"vimeo":return(0,t.jsx)(N,{url:e,provider:"vimeo",title:l.title,author:l.author,thumb:l.thumbnail,iframe:`https://player.vimeo.com/video/${l.id}?autoplay=1&dnt=1`});case"loom":return(0,t.jsx)(g,{provider:"loom",url:e,label:"Watch on Loom",children:(0,t.jsx)("div",{className:"mj-video",children:(0,t.jsx)("iframe",{src:`https://www.loom.com/embed/${l.id}`,title:"Loom video",loading:"lazy",allowFullScreen:!0})})});case"instagram":return(0,t.jsx)(y,{url:e,d:l});case"bluesky":return(0,t.jsx)(k,{url:e,d:l});case"tiktok":return(0,t.jsx)(w,{url:e,d:l});case"spotify":{let r=!["track","episode"].includes(l.kind);return(0,t.jsx)(g,{provider:"spotify",url:e,children:(0,t.jsx)("iframe",{className:"mj-spotify",style:{height:r?352:152},src:`https://open.spotify.com/embed/${l.kind}/${l.id}?utm_source=mercury&theme=${+("dark"!==s)}`,title:"Spotify",loading:"lazy",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"})})}case"codepen":return(0,t.jsx)(g,{provider:"codepen",url:e,label:"Open on CodePen",children:(0,t.jsx)("iframe",{className:"mj-codepen",src:`https://codepen.io/${l.user}/embed/${l.id}?default-tab=result&theme-id=${s}`,title:"CodePen",loading:"lazy",allowFullScreen:!0})});case"mastodon":return(0,t.jsx)(g,{provider:"mastodon",url:e,label:`Open on ${u(e)}`,children:(0,t.jsx)("iframe",{className:"mj-mastodon",src:`${e}/embed`,title:"Mastodon post",loading:"lazy",sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"})});case"github":return(0,t.jsx)(C,{url:e,d:l});case"gist":return(0,t.jsx)($,{url:e,d:l});default:return(0,t.jsx)(M,{url:e,d:l})}},Compare:function({children:e,caption:r,highlight:a}){return(0,t.jsxs)("figure",{className:`mj-compare${a?` hl-${a}`:""}`,children:[(0,t.jsx)("div",{className:"mj-compare-scroll",tabIndex:0,role:"region","aria-label":r??"Comparison table",children:e}),(0,t.jsxs)("div",{className:"mj-compare-legend","aria-hidden":"true",children:[(0,t.jsxs)("span",{className:"is-yes",children:[(0,t.jsx)("b",{children:"\u2713"})," Yes"]}),(0,t.jsxs)("span",{className:"is-partial",children:[(0,t.jsx)("b",{children:"\u25D0"})," Partly or opt-in"]}),(0,t.jsxs)("span",{className:"is-no",children:[(0,t.jsx)("b",{children:"\u2715"})," No"]}),(0,t.jsxs)("span",{className:"is-unknown",children:[(0,t.jsx)("b",{children:"?"})," Not documented"]})]}),r&&(0,t.jsx)("figcaption",{children:r})]})},BarChart:function({title:e,subtitle:r,data:a,unit:s="",reference:l,source:i,max:n}){let o=n??1.04*Math.max(...a.map(e=>e.value),l?.value??0),d=e=>`${new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e)}${s?` ${s}`:""}`,c=`${e}. ${a.map(e=>`${e.label}: ${d(e.value)}`).join("; ")}${l?`; ${l.label}: ${d(l.value)}`:""}.`;return(0,t.jsxs)("figure",{className:"mj-chart",children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("strong",{children:e}),r&&(0,t.jsx)("span",{children:r})]}),(0,t.jsxs)("div",{className:"mj-bars",role:"img","aria-label":c,children:[l&&(0,t.jsx)("div",{className:"mj-ref",style:{left:`calc(var(--mj-label-w) + (100% - var(--mj-label-w) - var(--mj-value-w)) * ${l.value/o})`},children:(0,t.jsxs)("span",{children:[l.label," \xb7 ",d(l.value)]})}),a.map(e=>{let r;return(0,t.jsxs)("div",{className:`mj-bar-row tone-${e.tone??"base"}`,tabIndex:0,children:[(0,t.jsx)("span",{className:"mj-bar-label",children:e.label}),(0,t.jsx)("span",{className:"mj-bar-track",children:(0,t.jsx)("i",{style:{width:(r=e.value,`${Math.max(.6,r/o*100)}%`)}})}),(0,t.jsx)("span",{className:"mj-bar-value",children:d(e.value)}),e.note&&(0,t.jsxs)("span",{className:"mj-bar-tip",role:"tooltip",children:[e.label,": ",d(e.value),". ",e.note]})]},e.label)})]}),(0,t.jsxs)("details",{className:"mj-chart-table",children:[(0,t.jsx)("summary",{children:"View as table"}),(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:"Measure"}),(0,t.jsx)("th",{children:"Value"}),(0,t.jsx)("th",{children:"Note"})]})}),(0,t.jsxs)("tbody",{children:[a.map(e=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:e.label}),(0,t.jsxs)("td",{children:[e.value.toLocaleString("en-US"),s?` ${s}`:""]}),(0,t.jsx)("td",{children:e.note??""})]},e.label)),l&&(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:l.label}),(0,t.jsxs)("td",{children:[l.value.toLocaleString("en-US"),s?` ${s}`:""]}),(0,t.jsx)("td",{children:"Reference line"})]})]})]})]}),i&&(0,t.jsx)("figcaption",{children:i})]})},Stats:function({items:e,source:r}){return(0,t.jsxs)("figure",{className:"mj-stats",children:[(0,t.jsx)("dl",{children:e.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:e.label}),(0,t.jsx)("dd",{children:e.value})]},e.label))}),r&&(0,t.jsx)("figcaption",{children:r})]})}}},47369(e,r,a){a.d(r,{A:()=>u});var s=a(74848),t=a(96540),l=a(11701),i=a(83941),n=a(952);let o="Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",d={dark:{background:"transparent",primaryColor:"#121c23",primaryTextColor:"#e8eef3",primaryBorderColor:"#2f5966",secondaryColor:"#1a1628",secondaryTextColor:"#e8eef3",secondaryBorderColor:"#4a3f73",tertiaryColor:"#1f1810",tertiaryTextColor:"#e8eef3",tertiaryBorderColor:"#6b4f2e",lineColor:"#5e7a86",textColor:"#c9d3d9",mainBkg:"#121c23",nodeBorder:"#2f5966",clusterBkg:"rgba(125, 211, 224, 0.04)",clusterBorder:"#21404a",titleColor:"#e8eef3",edgeLabelBackground:"#0d1216",noteBkgColor:"#1f1810",noteTextColor:"#f3e6d2",noteBorderColor:"#6b4f2e",actorBkg:"#121c23",actorBorder:"#2f5966",actorTextColor:"#e8eef3",actorLineColor:"#3a4d55",signalColor:"#9fb2bb",signalTextColor:"#d6dee3",labelBoxBkgColor:"#121c23",labelBoxBorderColor:"#2f5966",labelTextColor:"#e8eef3",loopTextColor:"#c9d3d9",activationBkgColor:"#1a2a33",activationBorderColor:"#3f7584",sequenceNumberColor:"#0b0e12"},light:{background:"transparent",primaryColor:"#eef6f8",primaryTextColor:"#111416",primaryBorderColor:"#93c4cf",secondaryColor:"#f3effb",secondaryTextColor:"#111416",secondaryBorderColor:"#bcaee6",tertiaryColor:"#fbf2e6",tertiaryTextColor:"#111416",tertiaryBorderColor:"#e3c193",lineColor:"#7f9199",textColor:"#2b3236",mainBkg:"#eef6f8",nodeBorder:"#93c4cf",clusterBkg:"rgba(11, 114, 133, 0.035)",clusterBorder:"#d3e2e6",titleColor:"#111416",edgeLabelBackground:"#fbfbf8",noteBkgColor:"#fbf2e6",noteTextColor:"#4a3418",noteBorderColor:"#e3c193",actorBkg:"#eef6f8",actorBorder:"#93c4cf",actorTextColor:"#111416",actorLineColor:"#c4d3d8",signalColor:"#5d6c73",signalTextColor:"#2b3236",labelBoxBkgColor:"#eef6f8",labelBoxBorderColor:"#93c4cf",labelTextColor:"#111416",loopTextColor:"#2b3236",activationBkgColor:"#dcedf1",activationBorderColor:"#6aaab8",sequenceNumberColor:"#ffffff"}},c=[[/^(flowchart|graph)\b/,"Flowchart"],[/^sequenceDiagram/,"Sequence"],[/^stateDiagram/,"State machine"],[/^classDiagram/,"Class diagram"],[/^erDiagram/,"Data model"],[/^gantt/,"Timeline"],[/^timeline/,"Timeline"],[/^journey/,"Journey"],[/^mindmap/,"Mind map"],[/^pie/,"Chart"],[/^xychart/,"Chart"],[/^quadrantChart/,"Quadrant"],[/^architecture/,"Architecture"],[/^block/,"Block diagram"],[/^gitGraph/,"Git graph"]];function m({result:e,onReady:r}){let a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let s=a.current;if(!s)return;e.bindFunctions?.(s);let t=s.querySelector("svg");if(t){let e,r=(e=t?.viewBox?.baseVal)&&e.width?e.width:t?.getBoundingClientRect().width??0;t.removeAttribute("height"),t.style.maxWidth=`${r}px`,t.style.minWidth=`${Math.round(Math.min(r,Math.max(460,.66*r)))}px`,t.style.width="100%",t.style.height="auto"}r?.(t)},[e,r]),(0,s.jsx)("div",{ref:a,className:`${n.MO} mj-diagram-svg`,dangerouslySetInnerHTML:{__html:e.svg}})}function h({svg:e,title:r,onClose:a}){let[l,i]=(0,t.useState)(1),n=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let e=document.body.style.overflow;document.body.style.overflow="hidden";let r=e=>{"Escape"===e.key&&a(),("+"===e.key||"="===e.key)&&i(e=>Math.min(4,e+.25)),"-"===e.key&&i(e=>Math.max(.5,e-.25))};return window.addEventListener("keydown",r),n.current?.focus(),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",r)}},[a]),(0,s.jsxs)("div",{className:"mj-diagram-viewer",role:"dialog","aria-modal":"true","aria-label":r??"Diagram",onClick:a,children:[(0,s.jsxs)("div",{className:"mj-diagram-viewer-bar",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("strong",{children:r??"Diagram"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{type:"button",onClick:()=>i(e=>Math.max(.5,e-.25)),"aria-label":"Zoom out",children:"\u2212"}),(0,s.jsxs)("button",{type:"button",onClick:()=>i(1),"aria-label":"Reset zoom",children:[Math.round(100*l),"%"]}),(0,s.jsx)("button",{type:"button",onClick:()=>i(e=>Math.min(4,e+.25)),"aria-label":"Zoom in",children:"+"}),(0,s.jsx)("button",{type:"button",onClick:a,"aria-label":"Close",children:"Close"})]})]}),(0,s.jsx)("div",{className:"mj-diagram-viewer-stage",ref:n,tabIndex:-1,onClick:e=>e.stopPropagation(),children:(0,s.jsx)("div",{className:"mj-diagram-viewer-svg",style:{width:`${100*l}%`},dangerouslySetInnerHTML:{__html:e}})})]})}function j({value:e}){let{colorMode:r}=(0,i.G)(),{source:a,title:l,caption:u,kind:x}=(0,t.useMemo)(()=>{let r,a,s,t,l;return s=e.split("\n").filter(e=>{let s=e.match(/^\s*%%\s*(title|caption)\s*:\s*(.+)$/i);return!s||("title"===s[1].toLowerCase()?r=s[2].trim():a=s[2].trim(),!1)}).join("\n").trim(),t=s.split("\n").find(e=>e.trim()&&!e.trim().startsWith("%%"))?.trim()??"",l=c.find(([e])=>e.test(t))?.[1]??"Diagram",{source:s,title:r,caption:a,kind:l}},[e]),p=(0,t.useMemo)(()=>({startOnLoad:!1,theme:"base",securityLevel:"strict",fontFamily:o,themeVariables:{...d["dark"===r?"dark":"light"],fontFamily:o,fontSize:"16px"},flowchart:{curve:"basis",padding:16,nodeSpacing:44,rankSpacing:52,htmlLabels:!0,useMaxWidth:!1,diagramPadding:12,wrappingWidth:280},sequence:{useMaxWidth:!1,mirrorActors:!1,width:112,actorMargin:18,wrap:!0,boxMargin:12,messageMargin:40,noteMargin:12,rightAngles:!1,showSequenceNumbers:!1},state:{useMaxWidth:!1},class:{useMaxWidth:!1},er:{useMaxWidth:!1},gantt:{useMaxWidth:!1}}),[r]),g=(0,n.cE)({text:a,config:p}),[f,b]=(0,t.useState)(!1),[v,y]=(0,t.useState)(!1),[k,w]=(0,t.useState)(!1),N=(0,t.useRef)(null),C=(0,t.useCallback)(()=>{let e=N.current;e&&w(e.scrollWidth>e.clientWidth+4)},[]);return(0,t.useEffect)(()=>{let e=N.current;if(!e||!("ResizeObserver"in window))return;let r=new ResizeObserver(()=>w(e.scrollWidth>e.clientWidth+4));return r.observe(e),()=>r.disconnect()},[g]),(0,s.jsxs)("figure",{className:"mj-diagram",children:[(0,s.jsxs)("header",{className:"mj-diagram-head",children:[(0,s.jsx)("span",{className:"mj-diagram-kind",children:x}),l&&(0,s.jsx)("strong",{className:"mj-diagram-title",children:l}),(0,s.jsxs)("span",{className:"mj-diagram-actions",children:[(0,s.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{y(!0),setTimeout(()=>y(!1),1800)}).catch(()=>void 0)},children:v?"Copied":"Copy source"}),(0,s.jsx)("button",{type:"button",onClick:()=>b(!0),disabled:!g,children:"Expand"})]})]}),(0,s.jsx)("div",{className:`mj-diagram-canvas${k?" is-scrolling":""}`,ref:N,children:g?(0,s.jsx)(m,{result:g,onReady:C}):(0,s.jsx)("div",{className:"mj-diagram-loading","aria-hidden":"true"})}),k&&(0,s.jsx)("div",{className:"mj-diagram-hint",children:"Scroll sideways or tap Expand to see the whole diagram"}),u&&(0,s.jsx)("figcaption",{children:u}),f&&g&&(0,s.jsx)(h,{svg:g.svg,title:l,onClose:()=>b(!1)})]})}function u({value:e}){return(0,s.jsx)(l.A,{fallback:({error:r})=>(0,s.jsxs)("figure",{className:"mj-diagram is-error",children:[(0,s.jsxs)("header",{className:"mj-diagram-head",children:[(0,s.jsx)("span",{className:"mj-diagram-kind",children:"Diagram error"}),(0,s.jsx)("strong",{className:"mj-diagram-title",children:String(r?.message??r).split("\n")[0]})]}),(0,s.jsx)("pre",{className:"mj-diagram-source",children:e})]}),children:(0,s.jsx)(j,{value:e})})}}}]);