1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3048],{6671:(e,t,r)=>{"use strict";r.d(t,{MathJaxHandler:()=>n});var o=r(12115);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js";if(window.MathJax||(window.MathJax={tex:{inlineMath:[["\\(","\\)"]]}}),document.querySelector('script[src="'.concat(t,'"]'))){if(e){var r,o;(null==(r=window.MathJax)?void 0:r.typeset)?window.MathJax.typeset():(null==(o=window.MathJax)?void 0:o.mathml2chtml)&&window.MathJax.mathml2chtml()}}else{let e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){var e,t;(null==(e=window.MathJax)?void 0:e.typeset)?window.MathJax.typeset():(null==(t=window.MathJax)?void 0:t.mathml2chtml)&&window.MathJax.mathml2chtml()},document.head.appendChild(e)}};function n(e){let{hasLatex:t}=e;return(0,o.useEffect)(()=>{t&&setTimeout(()=>{a(!0)},500)},[t]),null}},7714:(e,t,r)=>{"use strict";r.d(t,{EmbedHandler:()=>s});var o=r(12115);let a=["codepen.io","twitter.com","x.com","youtube.com","youtu.be","glitch.com","github.com","soundcloud.com","anchor.fm","spotify.com","giphy.com","gph.is","codesandbox.io","canva.com","twitch.tv","expo.io","repl.it","runkit.com","vimeo.com","loom.com","hashnode.com","facebook.com","fb.watch","instagram.com","instagr.am","snappify.io","snappify.com","stackblitz.com"],n=async e=>{var t,r;if(!e)return;let o="".concat("https://beta.webembeds.com","/api/embed"),n=e.getAttribute("href");if(!n)return;let s=!1;for(let e of a)if(n.includes(e)){s=!0;break}try{let e=new URL(o);e.searchParams.set("maxwidth","800"),e.searchParams.set("url",encodeURIComponent(n)),n.includes("twitch.tv")&&e.searchParams.set("customHost",encodeURIComponent(window.location.hostname)),n.includes("open.spotify.com")&&(e.searchParams.set("width","300"),e.searchParams.set("height","380")),n.includes("vimeo.com")&&e.searchParams.set("width","640"),s||e.searchParams.set("forceFallback","1"),o=e.toString()}catch(e){return}let l=await fetch(o,{credentials:"same-origin"});if(200!==l.status)return;let i=await l.json();if(null==(t=i.data)?void 0:t.error)return;let c=i.data.output,{parentNode:d}=e;if(!d)return;if(-1!==c.html.indexOf("gist.github.com")){let e=document.createElement("iframe");e.setAttribute("width","100%"),e.setAttribute("frameBorder","0"),e.setAttribute("scrolling","no"),e.id="gist-".concat(new Date().getTime()),d.innerHTML="",d.appendChild(e);let t="<html><body onload=\"parent.adjustIframeSize && parent.adjustIframeSize('".concat(e.id,"', document.body.scrollHeight)\">").concat(c.html,"</body></html>"),r=e.document;if(e.contentDocument?r=e.contentDocument:e.contentWindow&&(r=e.contentWindow.document),!r)return;r.open(),r.writeln(t),r.close();return}let{width:m,thumbnail_height:u,html:h,provider_name:f}=c;if("Instagram"===f){let e=document.createElement("iframe");e.srcdoc=h,e.width=m,u&&(e.height=String(u+5)),e.style.overflow="hidden",e.setAttribute("scrolling","no"),e.onload=e=>{var t;if(!e.target)return;let r=e.target,o=null==r||null==(t=r.contentWindow)?void 0:t.document;o&&o.body.scrollHeight>0&&(r.height=o.body.scrollHeight)},d.innerHTML="",d.appendChild(e);return}
1d.innerHTML=h,Array.from(d.querySelectorAll("script")).forEach(e=>{var t;if(!e)return;let r=document.createElement("script");Array.from(e.attributes).forEach(e=>r.setAttribute(e.name,e.value)),e.innerHTML&&r.appendChild(document.createTextNode(e.innerHTML)),null==(t=e.parentNode)||t.replaceChild(r,e)}),"Facebook"===f&&"FB"in window&&(null==(r=window.FB)||r.init({version:"v2.7",xfbml:!0}))};function s(){return(0,o.useEffect)(()=>{document.querySelectorAll("a.embed-card").forEach(e=>{n(e)})},[]),null}window.adjustIframeSize=(e,t)=>{let r=document.getElementById(e);r&&(r.style.height="".concat(t,"px"))}},32478:(e,t,r)=>{"use strict";r.d(t,{CodeHighlighter:()=>n});var o=r(12115),a=r(90487);function n(){return(0,o.useEffect)(()=>{a.A.highlightAll(),document.querySelectorAll("article pre").forEach(e=>{if(e.querySelector(".copy-code-button"))return;e.style.position="relative";let t=document.createElement("button");t.className="copy-code-button",t.innerHTML='\n <i class="fa-jelly fa-clipboard copy-icon" style="font-size: 16px;"></i>\n <i class="fa-jelly fa-check check-icon" style="font-size: 16px; display: none;"></i>\n ',t.setAttribute("aria-label","Copy code"),t.setAttribute("title","Copy code"),Object.assign(t.style,{position:"absolute",top:"8px",right:"8px",padding:"6px",background:"hsl(var(--muted))",border:"1px solid hsl(var(--border))",borderRadius:"6px",cursor:"pointer",opacity:"0",transition:"opacity 0.2s ease",display:"flex",alignItems:"center",justifyContent:"center",color:"hsl(var(--muted-foreground))",zIndex:"10"}),e.addEventListener("mouseenter",()=>{t.style.opacity="1"}),e.addEventListener("mouseleave",()=>{t.style.opacity="0"}),t.addEventListener("click",async r=>{r.preventDefault(),r.stopPropagation();let o=e.querySelector("code"),a=o?o.textContent:e.textContent;if(a)try{await navigator.clipboard.writeText(a);let e=t.querySelector(".copy-icon"),r=t.querySelector(".check-icon");e&&r&&(e.style.display="none",r.style.display="block",t.style.color="hsl(var(--primary))",setTimeout(()=>{e.style.display="block",r.style.display="none",t.style.color="hsl(var(--muted-foreground))"},2e3))}catch(e){console.error("Failed to copy code:",e)}}),e.appendChild(t)})},[]),null}},33884:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Avatar:()=>l,AvatarFallback:()=>c,AvatarImage:()=>i});var o=r(95155),a=r(12115),n=r(219),s=r(25016);let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,o.jsx)(n.bL,{ref:t,className:(0,s.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",r),...a})});l.displayName=n.bL.displayName;let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,o.jsx)(n._V,{ref:t,className:(0,s.cn)("aspect-square h-full w-full",r),...a})});i.displayName=n._V.displayName;let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,o.jsx)(n.H4,{ref:t,className:(0,s.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",r),...a})});c.displayName=n.H4.displayName},51285:(e,t,r)=>{"use strict";r.d(t,{CommentsSection:()=>h});var o=r(95155),a=r(12115),n=r(62044),s=r(52619),l=r.n(s),i=r(33884),c=r(97003),d=r(16602),m=r(84436);
1function u(e){let{comment:t,isReply:r=!1}=e;return(0,o.jsx)("div",{className:r?"pl-5 sm:pl-8 border-l-2 border-border":"",children:(0,o.jsxs)("div",{className:"flex gap-3",children:[(0,o.jsx)(l(),{href:"https://hashnode.com/@".concat(t.author.username),target:"_blank",rel:"noopener",className:"shrink-0",children:(0,o.jsxs)(i.Avatar,{className:"".concat(r?"h-7 w-7":"h-8 w-8"," border border-border transition-opacity hover:opacity-80"),children:[(0,o.jsx)(i.AvatarImage,{src:t.author.profilePicture?(0,m.y)(t.author.profilePicture,{}):void 0,alt:t.author.name}),(0,o.jsx)(i.AvatarFallback,{className:"bg-muted text-muted-foreground font-semibold text-sm",children:t.author.name.charAt(0).toUpperCase()})]})}),(0,o.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,o.jsx)(l(),{href:"https://hashnode.com/@".concat(t.author.username),target:"_blank",rel:"noopener",className:"font-medium text-foreground hover:text-primary transition-colors",children:t.author.name}),(0,o.jsx)("span",{className:"text-muted-foreground",children:function(e){let t=new Date(e),r=new Date().getTime()-t.getTime(),o=Math.floor(r/6e4),a=Math.floor(r/36e5),n=Math.floor(r/864e5);return o<1?"just now":o<60?"".concat(o,"m ago"):a<24?"".concat(a,"h ago"):n<30?"".concat(n,"d ago"):n<365?"".concat(Math.floor(n/30),"mo ago"):"".concat(Math.floor(n/365),"y ago")}(t.dateAdded)})]}),(0,o.jsx)("div",{className:"mt-1 text-sm text-foreground prose dark:prose-invert prose-sm max-w-none [&>p]:my-1 [&>p:first-child]:mt-0 [&>p:last-child]:mb-0",dangerouslySetInnerHTML:{__html:t.content.html}}),t.totalReactions>0&&(0,o.jsxs)("div",{className:"mt-1.5 flex items-center gap-1.5 text-sm text-muted-foreground",children:[(0,o.jsx)("i",{className:"fa-regular fa-heart","aria-hidden":!0}),(0,o.jsx)("span",{children:t.totalReactions})]})]})]})})}function h(e){let{host:t,slug:r,postUrl:s,initialEdges:i,initialPageInfo:m,totalComments:h}=e,f=(0,n.tH)(),[p,x]=(0,a.useState)(i),[g,b]=(0,a.useState)(m),[v,y]=(0,a.useState)(!1),w=(0,a.useCallback)(async()=>{if(g.hasNextPage&&!v){y(!0);try{var e,o,a;let n=null==(a=(await f.query(d.ID,{host:t,slug:r,first:10,after:g.endCursor}).toPromise()).data)||null==(o=a.publication)||null==(e=o.post)?void 0:e.comments;n&&(x(e=>[...e,...n.edges]),b(n.pageInfo))}finally{y(!1)}}},[f,t,r,g,v]);return(0,o.jsxs)("section",{className:"space-y-5",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("h2",{className:"text-lg font-bold tracking-tight",children:["Comments",h>0?" (".concat(h,")"):""]}),(0,o.jsxs)(l(),{href:s,target:"_blank",rel:"noopener",className:"inline-flex items-center gap-2 rounded-md border border-border px-3 py-1.5 text-sm font-medium text-foreground transition hover:border-primary hover:text-primary",children:[(0,o.jsx)("i",{className:"fa-regular fa-comment","aria-hidden":!0}),"Join the discussion"]})]}),0===p.length?(0,o.jsxs)("p",{className:"text-sm text-muted-foreground py-5 text-center",children:["No comments yet."," ",(0,o.jsx)(l(),{href:s,target:"_blank",rel:"noopener",className:"text-primary hover:underline",children:"Be the first to comment."})]}):(0,o.jsxs)("div",{className:"space-y-5",children:[p.map(e=>(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)(u,{comment:e.node}),e.node.replies.edges.length>0&&(0,o.jsx)("div",{className:"ml-4 sm:ml-5 space-y-3",children:e.node.replies.edges.map(e=>(0,o.jsx)(u,{comment:e.node,isReply:!0},e.node.id))})]},e.node.id)),g.hasNextPage&&(0,o.jsx)("div",{className:"flex justify-center pt-2",children:(0,o.jsx)(c.$,{variant:"outline",size:"sm",onClick:w,disabled:v,children:v?"Loading...":"Load more comments"})})]})]})}},54960:(e,t,r)=>{"use strict";r.d(t,{ImageZoom:()=>n});var o=r(95155),a=r(12115);function n(){let[e,t]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=document.querySelector(".prose");if(!e)return;let r=Array.from(e.querySelectorAll("img")).filter(t=>{let r=t.parentElement;for(;r&&r!==e;){if("A"===r.tagName)return!1;r=r.parentElement}return!0}),o=e=>{t(e.currentTarget.src)};
1return r.forEach(e=>{e.style.cursor="zoom-in",e.addEventListener("click",o)}),()=>{r.forEach(e=>{e.removeEventListener("click",o)})}},[]);let r=()=>{t(null)};return e?(0,o.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center backdrop-blur-lg p-4",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:r,role:"dialog","aria-modal":"true","aria-label":"Zoomed image",children:[(0,o.jsx)("button",{className:"absolute top-4 right-4 text-foreground hover:text-muted-foreground transition-colors bg-background backdrop-blur-sm rounded-full p-2",onClick:r,"aria-label":"Close zoomed image",children:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,o.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,o.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,o.jsx)("img",{src:e,alt:"Zoomed view",className:"max-w-full max-h-full object-contain cursor-zoom-out",onClick:r})]}):null}},62031:(e,t,r)=>{"use strict";r.d(t,{ReadingModeToggle:()=>a});var o=r(95155);function a(e){let{slug:t}=e;return(0,o.jsxs)("a",{href:"/".concat(encodeURIComponent(t),".md"),target:"_blank",rel:"noopener",className:"inline-flex items-center gap-2 text-muted-foreground transition-colors hover:text-foreground",children:[(0,o.jsx)("i",{className:"fa-brands fa-markdown","aria-hidden":!0}),"View as Markdown"]})}},69203:(e,t,r)=>{Promise.resolve().then(r.bind(r,652)),Promise.resolve().then(r.bind(r,32478)),Promise.resolve().then(r.bind(r,51285)),Promise.resolve().then(r.bind(r,7714)),Promise.resolve().then(r.bind(r,54960)),Promise.resolve().then(r.bind(r,6671)),Promise.resolve().then(r.bind(r,91337)),Promise.resolve().then(r.bind(r,20730)),Promise.resolve().then(r.bind(r,62031)),Promise.resolve().then(r.bind(r,78655)),Promise.resolve().then(r.bind(r,33884)),Promise.resolve().then(r.t.bind(r,52619,23)),Promise.resolve().then(r.t.bind(r,81356,23))},78655:(e,t,r)=>{"use strict";r.d(t,{TableOfContents:()=>c});var o=r(95155),a=r(12115),n=r(47650),s=r(52619),l=r.n(s),i=r(25016);function c(e){let{headings:t,title:r="On this page",className:s}=e,[c,d]=a.useState(!1),[m,u]=a.useState(!1),[h,f]=a.useState("");a.useEffect(()=>{u(!0)},[]),a.useEffect(()=>{let e=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting);t.length>0&&f(t[0].target.id)},{rootMargin:"-10% 0% -85% 0%"});return t.forEach(t=>{let{id:r}=t,o=document.getElementById(r);o&&e.observe(o)}),()=>e.disconnect()},[t]);let p=a.useMemo(()=>{let e=new Set;return t.filter(t=>!e.has(t.id)&&(e.add(t.id),!0))},[t]);if(p.length<=1)return null;let x=(0,o.jsxs)("div",{className:"xl:hidden",children:[(0,o.jsxs)("button",{onClick:()=>d(!0),className:"fixed bottom-6 right-6 z-50 flex items-center gap-2 px-4 h-11 rounded-full bg-muted backdrop-blur-sm text-foreground border border-border shadow-md hover:bg-muted hover:shadow-lg transition-all","aria-label":"Open table of contents",children:[(0,o.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h8M4 18h16"})}),(0,o.jsx)("span",{className:"text-sm font-medium",children:"Contents"})]}),c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"fixed inset-0 z-50 bg-background backdrop-blur-sm",onClick:()=>d(!1)}),(0,o.jsxs)("div",{className:"fixed inset-x-4 bottom-4 top-20 z-50 rounded-lg border bg-card shadow-lg overflow-hidden flex flex-col",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,o.jsx)("h2",{className:"text-lg font-semibold",children:"Table of Contents"}),(0,o.jsx)("button",{onClick:()=>d(!1),className:"rounded-md p-1 hover:bg-accent transition-colors","aria-label":"Close",children:(0,o.jsx)("svg",{className:"h-5 w-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,o.jsx)("nav",{className:"flex-1 overflow-y-auto px-4 py-4 space-y-1","aria-label":r,children:p.map(e=>(0,o.jsx)(l(),{href:"#".concat(e.id),onClick:()=>d(!1),className:"block rounded px-3 py-2 text-sm text-muted-foreground transition hover:bg-muted hover:text-foreground",style:{marginLeft:"".concat(.75*Math.max(0,e.level-2),"rem")},children:e.text},e.id))})]})]})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:(0,i.cn)("hidden xl:block group/toc relative",s),children:(0,o.jsxs)("div",{className:"grid",children:[(0,o.jsxs)("div",{className:"[grid-area:1/1] opacity-0 group-hover/toc:opacity-100 transition-opacity duration-200 max-h-[calc(100vh-3rem)] overflow-y-auto",children:[(0,o.jsx)("p",{className:"text-sm font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:r}),(0,o.jsx)("nav",{"aria-label":r,children:p.map(e=>(0,o.jsx)(l(),{href:"#".concat(e.id),className:(0,i.cn)("block py-1 text-sm transition-colors hover:text-foreground",e.id===h?"text-foreground font-medium":"text-muted-foreground"),style:{paddingLeft:"".concat(.75*Math.max(0,e.level-2),"rem")},children:e.text},e.id))})]}),(()=>{let e=[...p.map(e=>Math.min(48,Math.max(10,e.text.length)))];for(let t=0;t<p.length;t++){let r=0;for(let o=t+1;o<p.length&&!(p[o].level<=p[t].level);o++)r=Math.max(r,e[o]);r>0&&(e[t]=Math.max(e[t],r+6))}let t=p.findIndex(e=>e.id===h),r=(()=>
1{if(-1===t)return -1;let e=p[t].level;if(e===Math.min(...p.map(e=>e.level)))return t;for(let r=t-1;r>=0;r--)if(p[r].level<e)return r;return t})();return(0,o.jsxs)("div",{className:"[grid-area:1/1] relative flex flex-col gap-px transition-opacity duration-200 group-hover/toc:opacity-0 pointer-events-none self-start max-h-[calc(100vh-3rem)] overflow-hidden pl-3",children:[(0,o.jsx)("div",{className:(0,i.cn)("absolute left-0 w-0.5 rounded-full bg-foreground transition-all duration-300",-1===r?"opacity-0":"opacity-100"),style:{transform:"translateY(".concat(13*Math.max(0,r),"px)"),height:"".concat((Math.max(0,t)-Math.max(0,r)+1)*13-1,"px")}}),p.map((t,r)=>(0,o.jsx)("div",{className:"flex items-center h-3",style:{paddingLeft:"".concat(10*Math.max(0,t.level-2),"px")},children:(0,o.jsx)("div",{className:(0,i.cn)("h-0.5 rounded-full transition-all duration-300",t.id===h?"bg-foreground":"bg-border"),style:{width:"".concat(t.id===h?Math.min(e[r]+8,56):e[r],"px")}})},t.id))]})})()]})}),m&&(0,n.createPortal)(x,document.body)]})}},84436:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});let o="".concat("https://cdn.hashnode.com/res/hashnode/image/upload/v1707121372242/57c3ede2-19a1-4530-beec-fae5db66c6a2.png?auto=compress",",format&format=webp"),a=(e,t,r)=>{if(!e)return r;{if("?sz=200"===e)return o;let r=e.replace("hashnode.imgix.net","cdn.hashnode.com");if(-1!==e.indexOf("//res.cloudinary.com/hashnode")&&-1!==e.indexOf("/upload/")){let t=e.split("/upload/"),o=t[1].substring(t[1].lastIndexOf(".")+1);if(-1!==t[1].indexOf("ama_banners")){let e=t[1].substring(1,t[1].indexOf("/")),a=t[1].substring(t[1].indexOf("/")+1,t[1].lastIndexOf("."));r="".concat(t[0],"/upload/").concat(a,"/").concat(e,".").concat(o,"?auto=compress,format&format=webp")}else{let e=t[1].split("/");0===e[0].indexOf("v")&&(e[0]=e[0].substring(1)),r="".concat(t[0],"/upload/").concat(e[1].substring(0,e[1].lastIndexOf(".")),"/").concat(e[0],".").concat(o,"?auto=compress,format&format=webp")}r=r.replace("//res.cloudinary.com","//cdn.hashnode.com/res").replace("http://","https://")}else if(-1!==e.indexOf("//cdn.hashnode.com")&&-1!==e.indexOf("/upload/")){let t=e.split("/upload/"),o=/^[^/]+\/\d+\.\w+($|\?)/.test(t[1]);0===t[1].indexOf("v")||o||(r="".concat(t[0],"/upload/").concat(t[1].substring(t[1].indexOf("/")+1)))}if(-1===r.indexOf("//cdn.hashnode.com"))return r;let a="";if(Object.keys(t).forEach(e=>{"w"===e||"h"===e||"mask"===e||"corner-radius"===e?a+="".concat(e,"=").concat(t[e],"&"):"fill"===e?a+="fit=fill&fill=".concat(t[e],"&"):"c"===e&&(a+="fit=crop&crop=".concat("face"===t[e]?"faces":"entropy","&"))}),"none"===t.q)return"".concat(r,"?").concat(a);if(-1!==r.indexOf("?")){let e=r.split("?");r=e[0],a+="&"!==e[1].slice(-1)?"".concat(e[1],"&"):e[1]}return a?a+=-1!==e.indexOf(".gif")?"auto=format,compress&gif-q=60&format=webm":"auto=compress,format&format=webp":a=-1!==e.indexOf(".gif")?"auto=format,compress&gif-q=60&format=webm":"auto=compress,format&format=webp","".concat(r,"?").concat(a)}}},91337:(e,t,r)=>{"use strict";r.d(t,{MermaidHandler:()=>l});var o=r(12115),a=r(5379),n=r(37485);let s="data-mermaid";function l(){let{resolvedTheme:e}=(0,a.D)(),t=(0,o.useRef)(new Set),r=(0,o.useId)().replace(/:/g,""),l=(0,o.useCallback)(async()=>{let o=document.querySelectorAll("[".concat(s,"]"));if(0===o.length)return;n.A.initialize({startOnLoad:!1,theme:"dark"===e?"dark":"default",fontFamily:"inherit"});let a=0;for(let e of o){let o=e.getAttribute(s);if(o)try{let s="".concat(r,"-mermaid-").concat(a++),{svg:l}=await n.A.render(s,o);e.innerHTML=l,t.current.add(e)}catch(e){console.error("Mermaid rendering error:",e)}}},[e,r]);return(0,o.useEffect)(()=>
1{l()},[l]),(0,o.useEffect)(()=>{t.current.size>0&&l()},[e,l]),null}}},e=>{e.O(0,[590,4554,7563,5001,2423,9216,1545,3091,652,730,8441,8229,1255,7358],()=>e(e.s=69203)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.