"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[922],{57922:function(e,o,r){var t,l,n,d,a,i,c,s,g,u,p=r(48777),y=r(53608);let h=[{selector:"node",style:{label:"data(id)",width:"data(width)",height:"data(height)",shape:"roundrectangle","text-margin-x":20,"background-height":42,"background-width":42,"background-position-x":"24px","background-position-y":"16px","background-image":"data(image)","font-size":24,"font-family":"Fira Code","font-weight":600,"background-color":"#f4f4f5",color:"#27272a","border-width":1,"border-style":"solid","border-color":"#e4e4e7","text-halign":"center","text-valign":"center","overlay-opacity":0}},{selector:"node.dim",style:{opacity:.2}},{selector:"node.hover",style:{"background-color":"#09090b",color:"#FFF","border-color":"#09090b"}},{selector:"node.dark",style:{"background-color":"#27272a","border-color":"#3f3f46",color:"#fff"}}];(t=i||(i={})).Dark="dark",t.Light="light",t.System="system",(l=c||(c={})).NPM_LOCKFILE="package-lock.json",l.YARN_LOCKFILE="yarn.lock",l.PNPM_LOCKFILE="pnpm-lock.yaml",(n=s||(s={})).PEER="peer",n.DEVELOPMENT="development",n.PRODUCTION="production",(d=g||(g={})).NODE="node",d.REACT="react",d.NEXT="next",(a=u||(u={})).PNPM="pnpm",a.YARN="yarn",a.NPM="npm";let k={light:{default:"#e4e4e7",development:"#0284c7",peer:"#0284c7",production:"#059669",violation:"#FF0000"},dark:{default:"#27272a",development:"#0284c7",peer:"#0284c7",production:"#059669",violation:"#FF0000"}},m=[{selector:"edge",style:{width:3,"target-arrow-color":k.light.default,"target-arrow-shape":"triangle","curve-style":"unbundled-bezier","source-endpoint":"0% 50%","target-endpoint":"0% -50%","arrow-scale":1.3,"line-color":k.light.default}},{selector:"edge.dark",style:{"line-color":k.dark.default,"target-arrow-color":k.dark.default}},{selector:`edge.${s.PRODUCTION}`,style:{"line-color":k.light.production,"target-arrow-color":k.light.production,"overlay-color":k.light.production,width:3}},{selector:`edge.${s.DEVELOPMENT}`,style:{"line-color":k.light.development,"target-arrow-color":k.light.development,"overlay-color":k.light.development,width:3}},{selector:`edge.${s.PEER}`,style:{"line-color":k.light.peer,"target-arrow-color":k.light.peer,"overlay-color":k.light.peer,width:3}},{selector:`edge.dark.${s.PRODUCTION}`,style:{"line-color":k.dark.production,"target-arrow-color":k.dark.production,"overlay-color":k.dark.production,width:3}},{selector:`edge.dark.${s.DEVELOPMENT}`,style:{"line-color":k.dark.development,"target-arrow-color":k.dark.development,"overlay-color":k.dark.development,width:3}},{selector:`edge.dark.${s.PEER}`,style:{"line-color":k.dark.peer,"target-arrow-color":k.dark.peer,"overlay-color":k.dark.peer,width:3}},{selector:"edge.violation",style:{"line-color":k.dark.violation,"target-arrow-color":k.dark.violation,"overlay-color":k.dark.violation,"z-index":10}},{selector:"edge.dim",style:{"z-index":0,opacity:.1}},{selector:"edge.dark.dim",style:{"z-index":0,opacity:.2}},{selector:"edge.hover",style:{"z-index":100,"overlay-padding":8,"overlay-opacity":.35}}];var v=r(54515);p.use(y),p.use(v),g.REACT,g.NODE,g.NEXT;let f={name:"dagre",animate:!1,rankSep:240,nodeSep:140,nodeDimensionsIncludeLabels:!0};p.use(y);let E=async({elements:e})=>{let o=p({styleEnabled:!0,style:[...h,...m],elements:e});return o.layout(f).run(),o.elements().jsons()};function w(e){return o=>{let r=e(o);return r.jsons()}}w(({traversalGraph:e,renderGraph:o,selector:r})=>{let t=e.nodes().filter(r),l=o.nodes(),n=l.union(t),d=n.nodes().edgesTo(n.nodes()),a=n.union(d);return a}),w(({traversalGraph:e,renderGraph:o,id:r})=>{let t=e.$id(r),l=t.union(t.outgoers()),n=o.elements().union(l);return n}),w(({traversalGraph:e,renderGraph:o,id:r})=>{let t=e.$id(r),l=t.union(t.incomers()),n=l.nodes(),d=n.edgesTo(n),a=o.elements().union(n).union(d);return a}),w(({renderGraph:e})=>e.elements()),w(({traversalGraph:e,selector:o})=>{let r=e.nodes().filter(o),t=r.edgesTo(r);return e.collection().union(r).union(t)}),w(({traversalGraph:e})=>e.elements()),w(({traversalGraph:e})=>e.collection()),w(({traversalGraph:e,renderGraph:o,id:r})=>{let t=o.$id(r).successors(),l=e.$id(r).incomers().successors();return l.length>0?e.collection().union(e.$id(r)).union(t).intersection(l):o.elements()}),w(({traversalGraph:e,renderGraph:o,id:r})=>{let t=e.$id(r).successors();return o.elements().difference(t)}),w(({traversalGraph:e,renderGraph:o,selector:r})=>{let t=e.collection(),l=e.nodes().filter(r),n=l.connectedEdges();return t.merge(l).merge(n),o.elements().difference(t)}),addEventListener("message",async e=>{let o=await E({elements:e.data});try{postMessage(o)}catch(e){console.error(e)}})}}]);