1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1141],{11141:function(t,e,a){a.d(e,{diagram:function(){return z}});var n,i=a(45619),r=a(52016),d=a(80424),s=a(14563),o=a(76602),g=a(5402),l=a(1846),p=a(16052),h=(0,r.eW)(t=>t.append("circle").attr("class","start-state").attr("r",(0,r.nV)().state.sizeUnit).attr("cx",(0,r.nV)().state.padding+(0,r.nV)().state.sizeUnit).attr("cy",(0,r.nV)().state.padding+(0,r.nV)().state.sizeUnit),"drawStartState"),c=(0,r.eW)(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,r.nV)().state.textHeight).attr("class","divider").attr("x2",2*(0,r.nV)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),x=(0,r.eW)((t,e)=>{let a=t.append("text").attr("x",2*(0,r.nV)().state.padding).attr("y",(0,r.nV)().state.textHeight+2*(0,r.nV)().state.padding).attr("font-size",(0,r.nV)().state.fontSize).attr("class","state-title").text(e.id),n=a.node().getBBox();return t.insert("rect",":first-child").attr("x",(0,r.nV)().state.padding).attr("y",(0,r.nV)().state.padding).attr("width",n.width+2*(0,r.nV)().state.padding).attr("height",n.height+2*(0,r.nV)().state.padding).attr("rx",(0,r.nV)().state.radius),a},"drawSimpleState"),V=(0,r.eW)((t,e)=>{let a=(0,r.eW)(function(t,e,a){let n=t.append("tspan").attr("x",2*(0,r.nV)().state.padding).text(e);a||n.attr("dy",(0,r.nV)().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*(0,r.nV)().state.padding).attr("y",(0,r.nV)().state.textHeight+1.3*(0,r.nV)().state.padding).attr("font-size",(0,r.nV)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=n.height,d=t.append("text").attr("x",(0,r.nV)().state.padding).attr("y",i+.4*(0,r.nV)().state.padding+(0,r.nV)().state.dividerMargin+(0,r.nV)().state.textHeight).attr("class","state-description"),s=!0,o=!0;e.descriptions.forEach(function(t){s||(a(d,t,o),o=!1),s=!1});let g=t.append("line").attr("x1",(0,r.nV)().state.padding).attr("y1",(0,r.nV)().state.padding+i+(0,r.nV)().state.dividerMargin/2).attr("y2",(0,r.nV)().state.padding+i+(0,r.nV)().state.dividerMargin/2).attr("class","descr-divider"),l=d.node().getBBox(),p=Math.max(l.width,n.width);return g.attr("x2",p+3*(0,r.nV)().state.padding),t.insert("rect",":first-child").attr("x",(0,r.nV)().state.padding).attr("y",(0,r.nV)().state.padding).attr("width",p+2*(0,r.nV)().state.padding).attr("height",l.height+i+2*(0,r.nV)().state.padding).attr("rx",(0,r.nV)().state.radius),t},"drawDescrState"),u=(0,r.eW)((t,e,a)=>{let n=(0,r.nV)().state.padding,i=2*(0,r.nV)().state.padding,d=t.node().getBBox(),s=d.width,o=d.x,g=t.append("text").attr("x",0).attr("y",(0,r.nV)().state.titleShift).attr("font-size",(0,r.nV)().state.fontSize).attr("class","state-title").text(e.id),l=g.node().getBBox().width+i,p,h=Math.max(l,s);h===s&&(h+=i);let c=t.node().getBBox();e.doc,p=o-n,l>s&&(p=(s-h)/2+n),Math.abs(o-c.x)<n&&l>s&&(p=o-(l-s)/2);let x=1-(0,r.nV)().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",c.height+(0,r.nV)().state.textHeight+(0,r.nV)().state.titleShift+1).attr("rx","0"),g.attr("x",p+n),l<=s&&g.attr("x",o+(h-i)/2-l/2+n),t.insert("rect",":first-child").attr("x",p).attr("y",(0,r.nV)().state.titleShift-(0,r.nV)().state.textHeight-(0,r.nV)().state.padding).attr("width",h).attr("height",3*(0,r.nV)().state.textHeight).attr("rx",(0,r.nV)().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",(0,r.nV)().state.titleShift-(0,r.nV)().state.textHeight-(0,r.nV)().state.padding).attr("width",h).attr("height",c.height+3+2*(0,r.nV)().state.textHeight).attr("rx",(0,r.nV)().state.radius),t},"addTitleAndBox"),f=(0,r.eW)(t=>(t.append("circle").attr("class","end-state-outer").attr("r",(0,r.nV)().state.sizeUnit+(0,r.nV)().state.miniPadding).attr("cx",(0,r.nV)().state.padding+(0,r.nV)().state.sizeUnit+(0,r.nV)().state.miniPadding).attr("cy",(0,r.nV)().state.padding+(0,r.nV)().state.sizeUnit+(0,r.nV)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,r.nV)().state.sizeUnit).attr("cx",(0,r.nV)().state.padding+(0,r.nV)().state.sizeUnit+2).attr("cy",(0,r.nV)().state.padding+(0,r.nV)().state.sizeUnit+2)),"drawEndState"),y=(0,r.eW)((t,e)=>{let a=(0,r.nV)().state.forkWidth,n=(0,r.nV)().state.forkHeight;if(e.parentId){let t=a;a=n,n=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",n).attr("x",(0,r.nV)().state.padding).attr("y",(0,r.nV)().state.padding)},"drawForkJoinState"),w=(0,r.eW)((t,e,a,n)=>{let i=0,d=n.append("text");d.style("text-anchor","start"),d.attr("class","noteText");let s=t.replace(/\r\n/g,"<br/>"),o=(s=s.replace(/\n/g,"<br/>")).split(r.SY.lineBreakRegex),g=1.25*(0,r.nV)().state.noteMargin;for(let t of o){let n=t.trim();if(n.length>0){let t=d.append("tspan");t.text(n),0===g&&(g+=t.node().getBBox().height),i+=g,t.attr("x",e+(0,r.nV)().state.noteMargin),t.attr("y",a+i+1.25*(0,r.nV)().state.noteMargin)}}return{textWidth:d.node().getBBox().width,textHeight:i}},"_drawLongText"),b=(0,r.eW)((t,e)=>{e.attr("class","state-note");let a=e.append("rect").attr("x",0).attr("y",(0,r.nV)().state.padding),{textWidth:n,textHeight:i}=w(t,0,0,e.append("g"));return a.attr("height",i+2*(0,r.nV)().state.noteMargin),a.attr("width",n+2*(0,r.nV)().state.noteMargin),a},"drawNote"),B=(0,r.eW)(function(t,e){let a=e.id,n={id:a,label:e.id,width:0,height:0},i=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&h(i),"end"===e.type&&f(i),"fork"!==e.type&&"join"!==e.type||y(i,e),"note"===e.type&&b(e.note.text,i),"divider"===e.type&&c(i),"default"===e.type&&0===e.descriptions.length&&x(i,e),"default"===e.type&&e.descriptions.length>0&&V(i,e);let d=i.node().getBBox();return n.width=d.width+2*(0,r.nV)().state.padding,n.height=d.height+2*(0,r.nV)().state.padding,n},"drawState"),m=0,M=(0,r.eW)(function(t,e,a){let n=(0,r.eW)(function(t){switch(t){case i.oI.relationType.AGGREGATION:return"aggregation";case i.oI.relationType.EXTENSION:return"extension";case i.oI.relationType.COMPOSITION:return"composition";case i.oI.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));let s=e.points,o=(0,l.Z)().x(function(t){return t.x}).y(function(t){return t.y}).curve(p.ZP),g=t.append("path").attr("d",o(s)).attr("id","edge"+m).attr("class","transition"),h="";if((0,r.nV)().state.arrowMarkerAbsolute&&(h=(0,r.Gr)(!0)),g.attr("marker-end","url("+h+"#"+n(i.oI.relationType.DEPENDENCY)+"End)"),void 0!==a.title){let n=t.append("g").attr("class","stateLabel"),{x:i,y:s}=d.w8.calcLabelPosition(e.points),o=r.SY.getRows(a.title),g=0,l=[],p=0,h=0;for(let t=0;t<=o.length;t++){let e=n.append("text").attr("text-anchor","middle").text(o[t]).attr("x",i).attr("y",s+g),a=e.node().getBBox();p=Math.max(p,a.width),h=Math.min(h,a.x),r.cM.info(a.x,i,s+g),0===g&&(g=e.node().getBBox().height,r.cM.info("Title height",g,s)),l.push(e)}let c=g*o.length;if(o.length>1){let t=(o.length-1)*g*.5;l.forEach((e,a)=>e.attr("y",s+a*g-t)),c=g*o.length}let x=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",i-p/2-(0,r.nV)().state.padding/2).attr("y",s-c/2-(0,r.nV)().state.padding/2-3.5).attr("width",p+(0,r.nV)().state.padding).attr("height",c+(0,r.nV)().state.padding),r.cM.info(x)}m++},"drawEdge"),k={},S=(0,r.eW)(function(){},"setConf"),E=(0,r.eW)(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),N=(0,r.eW)(function(t,e,a,i){let d;n=(0,r.nV)().state;let s=(0,r.nV)().securityLevel;"sandbox"===s&&(d=(0,g.Z)("#i"+e));let o=(0,g.Z)("sandbox"===s?d.nodes()[0].contentDocument.body:"body"),l="sandbox"===s?d.nodes()[0].contentDocument:document;r.cM.debug("Rendering diagram "+t);let p=o.select("[id='".concat(e,"']"));E(p),v(i.db.getRootDoc(),p,void 0,!1,o,l,i);let h=n.padding,c=p.node().getBBox(),x=c.width+2*h,V=c.height+2*h;(0,r.v2)(p,V,1.75*x,n.useMaxWidth),p.attr("viewBox","".concat(c.x-n.padding," ").concat(c.y-n.padding," ")+x+" "+V)},"draw"),W=(0,r.eW)(t=>t?t.length*n.fontSizeFactor:1,"getLabelWidth"),v=(0,r.eW)((t,e,a,i,d,g,l)=>{let p=new s.k({compound:!0,multigraph:!0}),h,c=!0;for(h=0;h<t.length;h++)if("relation"===t[h].stmt){c=!1;break}a?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:n.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:n.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});let x=l.db.getStates(),V=l.db.getRelations();for(let t of Object.keys(x)){let r;let s=x[t];
1if(a&&(s.parentId=a),s.doc){let t=e.append("g").attr("id",s.id).attr("class","stateGroup");r=v(s.doc,t,s.id,!i,d,g,l);{let e=(t=u(t,s,i)).node().getBBox();r.width=e.width,r.height=e.height+n.padding/2,k[s.id]={y:n.compositTitleSize}}}else r=B(e,s,p);if(s.note){let t=B(e,{descriptions:[],id:s.id+"-note",note:s.note,type:"note"},p);"left of"===s.note.position?(p.setNode(r.id+"-note",t),p.setNode(r.id,r)):(p.setNode(r.id,r),p.setNode(r.id+"-note",t)),p.setParent(r.id,r.id+"-group"),p.setParent(r.id+"-note",r.id+"-group")}else p.setNode(r.id,r)}r.cM.debug("Count=",p.nodeCount(),p);let f=0;V.forEach(function(t){f++,r.cM.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:W(t.title),height:n.labelHeight*r.SY.getRows(t.title).length,labelpos:"c"},"id"+f)}),(0,o.b)(p),r.cM.debug("Graph after layout",p.nodes());let y=e.node();p.nodes().forEach(function(t){void 0!==t&&void 0!==p.node(t)?(r.cM.warn("Node "+t+": "+JSON.stringify(p.node(t))),d.select("#"+y.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(k[t]?k[t].y:0)-p.node(t).height/2)+" )"),d.select("#"+y.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2),g.querySelectorAll("#"+y.id+" #"+t+" .divider").forEach(t=>{let e=t.parentElement,a=0,n=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),Number.isNaN(n=parseInt(e.getAttribute("data-x-shift"),10))&&(n=0)),t.setAttribute("x1",0-n+8),t.setAttribute("x2",a-n-8)})):r.cM.debug("No Node "+t+": "+JSON.stringify(p.node(t)))});let w=y.getBBox();
1p.edges().forEach(function(t){void 0!==t&&void 0!==p.edge(t)&&(r.cM.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),M(e,p.edge(t),p.edge(t).relation))}),w=y.getBBox();let b={id:a||"root",label:a||"root",width:0,height:0};return b.width=w.width+2*n.padding,b.height=w.height+2*n.padding,r.cM.debug("Doc rendered",b,p),b},"renderDoc"),z={parser:i.J8,get db(){return new i.oI(1)},renderer:{setConf:S,draw:N},styles:i.Ee,init:(0,r.eW)(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}}]);
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.