1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7584],{57038:function(e,t,a){function l(e,t){var a,l,n;e.accDescr&&(null===(a=t.setAccDescription)||void 0===a||a.call(t,e.accDescr)),e.accTitle&&(null===(l=t.setAccTitle)||void 0===l||l.call(t,e.accTitle)),e.title&&(null===(n=t.setDiagramTitle)||void 0===n||n.call(t,e.title))}a.d(t,{A:function(){return l}}),(0,a(99573).eW)(l,"populateCommonDb")},34452:function(e,t,a){a.d(t,{j:function(){return r}});var l=a(66764),n=a(99573),r=(0,n.eW)((e,t,a,r)=>{e.attr("class",a);let{width:o,height:c,x:d,y:p}=s(e,t);(0,l.v2)(e,c,o,r);let h=i(d,p,o,c,t);e.attr("viewBox",h),n.cM.debug("viewBox configured: ".concat(h," with padding: ").concat(t))},"setupViewPortForSVG"),s=(0,n.eW)((e,t)=>{var a;let l=(null===(a=e.node())||void 0===a?void 0:a.getBBox())||{width:0,height:0,x:0,y:0};return{width:l.width+2*t,height:l.height+2*t,x:l.x,y:l.y}},"calculateDimensionsWithPadding"),i=(0,n.eW)((e,t,a,l,n)=>"".concat(e-n," ").concat(t-n," ").concat(a," ").concat(l),"createViewBox")},27584:function(e,t,a){a.d(t,{diagram:function(){return b}});var l,n=a(66462),r=a(34452),s=a(66005),i=a(57038),o=a(42877),c=a(66764),d=a(99573),p=a(18442),h=a(53082),u=(l=class{getNodes(){return this.nodes}getConfig(){var e;let t=c.vZ,a=(0,c.iE)();return(0,o.Rb)({...t.treemap,...null!==(e=a.treemap)&&void 0!==e?e:{}})}addNode(e,t){if(this.nodes.push(e),this.levels.set(e,t),0===t){var a;this.outerNodes.push(e),null!==(a=this.root)&&void 0!==a||(this.root=e)}}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){var a;let l=null!==(a=this.classes.get(e))&&void 0!==a?a:{id:e,styles:[],textStyles:[]},n=t.replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(e=>{(0,s.Fh)(e)&&((null==l?void 0:l.textStyles)?l.textStyles.push(e):l.textStyles=[e]),(null==l?void 0:l.styles)?l.styles.push(e):l.styles=[e]}),this.classes.set(e,l)}getClasses(){return this.classes}getStylesForClass(e){var t,a;return null!==(a=null===(t=this.classes.get(e))||void 0===t?void 0:t.styles)&&void 0!==a?a:[]}clear(){(0,c.ZH)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=c.GN,this.getAccTitle=c.eu,this.setDiagramTitle=c.g2,this.getDiagramTitle=c.Kr,this.getAccDescription=c.Mx,this.setAccDescription=c.U$}},(0,d.eW)(l,"TreeMapDB"),l);function m(e){if(!e.length)return[];let t=[],a=[];return e.forEach(e=>{let l={name:e.name,children:"Leaf"===e.type?void 0:[]};for(l.classSelector=null==e?void 0:e.classSelector,(null==e?void 0:e.cssCompiledStyles)&&(l.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(l.value=e.value);a.length>0&&a[a.length-1].level>=e.level;)a.pop();if(0===a.length)t.push(l);else{let e=a[a.length-1].node;e.children?e.children.push(l):e.children=[l]}"Leaf"!==e.type&&a.push({node:l,level:e.level})}),t}(0,d.eW)(m,"buildHierarchy");var y=(0,d.eW)((e,t)=>{var a,l,n,r;(0,i.A)(e,t);let s=[];for(let r of null!==(a=e.TreemapRows)&&void 0!==a?a:[])"ClassDefStatement"===r.$type&&t.addClass(null!==(l=r.className)&&void 0!==l?l:"",null!==(n=r.styleText)&&void 0!==n?n:"");for(let a of null!==(r=e.TreemapRows)&&void 0!==r?r:[]){let e=a.item;if(!e)continue;let l=a.indent?parseInt(a.indent):0,n=f(e),r=e.classSelector?t.getStylesForClass(e.classSelector):[],i=r.length>0?r:void 0,o={level:l,name:n,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:i};s.push(o)}let o=m(s),c=(0,d.eW)((e,a)=>{for(let l of e)t.addNode(l,a),l.children&&l.children.length>0&&c(l.children,a+1)},"addNodesRecursively");c(o,0)},"populate"),f=(0,d.eW)(e=>e.name?String(e.name):"","getItemName"),g={parser:{yy:void 0},parse:(0,d.eW)(async e=>{try{var t;let a=p.Qc,l=await a("treemap",e);d.cM.debug("Treemap AST:",l);let n=null===(t=g.parser)||void 0===t?void 0:t.yy;if(!(n instanceof u))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");y(l,n)}catch(e){throw d.cM.error("Error parsing treemap:",e),e}},"parse")},S=(0,d.eW)((e,t,a,l)=>{var i,o;let p;let u=l.db,m=u.getConfig(),y=null!==(i=m.padding)&&void 0!==i?i:10,f=u.getDiagramTitle(),g=u.getRoot(),{themeVariables:S}=(0,c.iE)();if(!g)return;let x=f?30:0,v=(0,n.P)(t),b=m.nodeWidth?10*m.nodeWidth:960,C=m.nodeHeight?10*m.nodeHeight:500,w=C+x;v.attr("viewBox","0 0 ".concat(b," ").concat(w)),(0,c.v2)(v,w,b,m.useMaxWidth);try{let e=m.valueFormat||",";if("$0,0"===e)p=(0,d.eW)(e=>"$"+(0,h.WUZ)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),a=t?t[0]:"";p=(0,d.eW)(e=>"$"+(0,h.WUZ)(","+a)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);p=(0,d.eW)(e=>"$"+(0,h.WUZ)(t||"")(e),"valueFormat")}else p=(0,h.WUZ)(e)}catch(e){d.cM.error("Error creating format function:",e),p=(0,h.WUZ)(",")}let W=(0,h.PKp)().range(["transparent",S.cScale0,S.cScale1,S.cScale2,S.cScale3,S.cScale4,S.cScale5,S.cScale6,S.cScale7,S.cScale8,S.cScale9,S.cScale10,S.cScale11]),L=(0,h.PKp)().range(["transparent",S.cScalePeer0,S.cScalePeer1,S.cScalePeer2,S.cScalePeer3,S.cScalePeer4,S.cScalePeer5,S.cScalePeer6,S.cScalePeer7,S.cScalePeer8,S.cScalePeer9,S.cScalePeer10,S.cScalePeer11]),T=(0,h.PKp)().range([S.cScaleLabel0,S.cScaleLabel1,S.cScaleLabel2,
1S.cScaleLabel3,S.cScaleLabel4,S.cScaleLabel5,S.cScaleLabel6,S.cScaleLabel7,S.cScaleLabel8,S.cScaleLabel9,S.cScaleLabel10,S.cScaleLabel11]);f&&v.append("text").attr("x",b/2).attr("y",x/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(f);let k=v.append("g").attr("transform","translate(0, ".concat(x,")")).attr("class","treemapContainer"),M=(0,h.bT9)(g).sum(e=>{var t;return null!==(t=e.value)&&void 0!==t?t:0}).sort((e,t)=>{var a,l;return(null!==(a=t.value)&&void 0!==a?a:0)-(null!==(l=e.value)&&void 0!==l?l:0)}),P=(0,h.pNI)().size([b,C]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(y).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0)(M),z=P.descendants().filter(e=>e.children&&e.children.length>0),F=k.selectAll(".treemapSection").data(z).enter().append("g").attr("class","treemapSection").attr("transform",e=>"translate(".concat(e.x0,",").concat(e.y0,")"));F.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),F.append("clipPath").attr("id",(e,a)=>"clip-section-".concat(t,"-").concat(a)).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),F.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>"treemapSection section".concat(t)).attr("fill",e=>W(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>L(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),F.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("style",e=>0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+T(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(0===e.depth)return;let t=(0,h.Ys)(this),a=e.data.name;t.text(a);let l=e.x1-e.x0,n=Math.max(15,!1!==m.showValues&&e.value?l-10-30-10-6:l-6-6),r=t.node();if(r.getComputedTextLength()>n){let e=a;for(;e.length>0;){if(0===(e=a.substring(0,e.length-1)).length){t.text("..."),r.getComputedTextLength()>n&&t.text("");break}if(t.text(e+"..."),r.getComputedTextLength()<=n)break}}}),!1!==m.showValues&&F.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+T(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let N=P.leaves(),D=k.selectAll(".treemapLeafGroup").data(N).enter().append("g").attr("class",(e,t)=>"treemapNode treemapLeafGroup leaf".concat(t).concat(e.data.classSelector?" ".concat(e.data.classSelector):"","x")).attr("transform",e=>"translate(".concat(e.x0,",").concat(e.y0,")"));D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?W(e.parent.data.name):W(e.data.name)).attr("style",e=>(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?W(e.parent.data.name):W(e.data.name)).attr("stroke-width",3),D.append("clipPath").attr("id",(e,a)=>"clip-".concat(t,"-").concat(a)).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),D.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+T(e.data.name)+";"+(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>"url(#clip-".concat(t,"-").concat(a,")")).text(e=>e.data.name).each(function(e){let t=(0,h.Ys)(this),a=e.x1-e.x0,l=e.y1-e.y0,n=t.node(),r=a-8,s=l-8;if(r<10||s<10){t.style("display","none");return}let i=parseInt(t.style("font-size"),10);for(;n.getComputedTextLength()>r&&i>8;)i--,t.style("font-size","".concat(i,"px"));let o=Math.max(6,Math.min(28,Math.round(.6*i))),c=i+2+o;for(;c>s&&i>8&&(!((o=Math.max(6,Math.min(28,Math.round(.6*--i))))<6)||8!==i);)t.style("font-size","".concat(i,"px")),c=i+2+o;t.style("font-size","".concat(i,"px")),(n.getComputedTextLength()>r||i<8||s<i)&&t.style("display","none")}),!1!==m.showValues&&D.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+T(e.data.name)+";"+(0,s.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>"url(#clip-".concat(t,"-").concat(a,")")).text(e=>e.value?p(e.value):"").each(function(e){let t=(0,h.Ys)(this),a=this.parentNode;if(!a){t.style("display","none");return}let l=(0,h.Ys)(a).select(".treemapLabel");if(l.empty()||"none"===l.style("display")){t.style("display","none");return}let n=parseFloat(l.style("font-size")),r=Math.max(6,Math.min(28,Math.round(.6*n)));t.style("font-size","".concat(r,"px"));let s=(e.y1-e.y0)/2+n/2+2;t.attr("y",s);let i=e.x1-e.x0,o=e.y1-e.y0;t.node().getComputedTextLength()>i-8||s+r>o-4||r<6?t.style("display","none"):t.style("display",null)});let U=null!==(o=m.diagramPadding)&&void 0!==o?o:8;(0,r.j)(v,U,"flowchart",(null==m?void 0:m.useMaxWidth)||!1)},"draw"),x=(0,d.eW)(function(e,t){return t.db.getClasses()},"getClasses"),v={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},b={parser:g,get db(){return new u},renderer:{draw:S,getClasses:x},styles:(0,d.eW)(function(){var e,t,a;let{treemap:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,c.xN)(),r=(0,c.iE)(),s=(0,o.Rb)(n,r.themeVariables),i=(0,o.Rb)(v,l),d=null!==(e=i.titleColor)&&void 0!==e?e:s.titleColor,p=null!==(t=i.labelColor)&&void 0!==t?t:s.textColor,h=null!==(a=i.valueColor)&&void 0!==a?a:s.textColor;return"\n .treemapNode.section {\n stroke: ".concat(i.sectionStrokeColor,";\n stroke-width: ").concat(i.sectionStrokeWidth,";\n fill: ").concat(i.sectionFillColor,";\n }\n .treemapNode.leaf {\n stroke: ").concat(i.leafStrokeColor,";\n stroke-width: ").concat(i.leafStrokeWidth,";\n fill: ").concat(i.leafFillColor,";\n }\n .treemapLabel {\n fill: ").concat(p,";\n font-size: ").concat(i.labelFontSize,";\n }\n .treemapValue {\n fill: ").concat(h,";\n font-size: ").concat(i.valueFontSize,";\n }\n .treemapTitle {\n fill: ").concat(d,";\n font-size: ").concat(i.titleFontSize,";\n }\n ")},"getStyles")}}}]);
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.