PageSourceSearch

https://app.pulumi.com/chunk-RDV7FHHG.js

js pulumi.com collected 2026-10-01 08:41:59 UTC 9,258 bytes, 34 lines download raw bytes

vendor: 4,117 bytes, lines 1-5
1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fbddbd1e-adff-5fdc-95b7-4f4d37c0bb9e")}catch(e){}}();
3import{a as G}from"./chunk-6MRZZVFL.js";import{a as O}from"./chunk-4XOMIVVV.js";import{a as W}from"./chunk-5YYKK5BO.js";import{a as Y}from"./chunk-JE5CYETL.js";import"./chunk-BCURNYD7.js";import"./chunk-OZBAEEG3.js";import"./chunk-KFSQEYMX.js";import"./chunk-D5VZV23O.js";import"./chunk-NLV7VSO3.js";import"./chunk-LHWM6OY6.js";import"./chunk-GVZ5IDJC.js";import"./chunk-PGSG5M2D.js";import"./chunk-KUX5NN3Y.js";import"./chunk-CB7EZ5JL.js";import"./chunk-RO3T7V4S.js";import"./chunk-JDZDMVNY.js";import"./chunk-NI3WHUNF.js";import"./chunk-47DTPZVN.js";import"./chunk-FGY6DL73.js";import"./chunk-7BBWNLDG.js";import{b as X,d as z}from"./chunk-QZWNWD5T.js";import{o as B}from"./chunk-7CVAWM56.js";import"./chunk-UYY2SUBL.js";import{G as A,N as E,S as L,T as D,U as _,V as M,W as S,X as R,Y as H,j as N,t as y}from"./chunk-R7NWFH2F.js";import{a as I}from"./chunk-6Y25ZMFA.js";import"./chunk-DZAP62TN.js";import"./chunk-GPGWTJBM.js";import"./chunk-LWC2IYO2.js";import{a as f}from"./chunk-4PJLQSXC.js";import{j as b}from"./chunk-LQBRM3ES.js";var U=/[─━│┃└┗├┣]/,j=/[└┗├┣]/,ne=/[─━]/,P=/^[\s│┃]+$/,F=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,Z=/^\s*%%/,ie="    ";function J(r){return r.some(t=>U.test(t))}f(J,"isBoxDrawingFormat");function K(r){for(let t of r){let e=j.exec(t);if(e?.index&&e.index>0)return e.index}return 4}f(K,"inferSegmentWidth");function Q(r,t){return r.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let s=parseInt(n,10),i=t.get(s);return i?`line ${i}`:e})}f(Q,"remapErrorLines");function ee(r){let t=r.split(`
4`),e=new Map,n=-1;for(let[p,c]of t.entries())if(c.trim()==="treeView-beta"){n=p;break}if(n===-1)return{text:r,lineMap:e};let s=[];for(let p=n+1;p<t.length;p++){let c=t[p];c.trim()===""||Z.test(c)||F.test(c)||P.test(c)||s.push(c.replace(/\t/g,"    "))}if(!J(s))return{text:r,lineMap:e};let i=K(s),o=[],a=0;for(let p=0;p<=n;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=n+1;p<t.length;p++){let c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if(Z.test(c)){o.push(c),a++,e.set(a,h);continue}if(F.test(c)){o.push(c),a++,e.set(a,h);continue}if(P.test(c))continue;let l=c.replace(/\t/g,"    "),m=j.exec(l);if(m?.index!==void 0){let g=m.index,w=Math.round(g/i)+1,u=g+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;let v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let re=ie.repeat(w);o.push(re+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(U.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
5`),lineMap:e}}f(ee,"preprocessBoxDrawing");var x=new O(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),oe=f(()=>{x.reset(),L()},"clear"),se=f(()=>x.records.stack[0],"getRoot"),ae=f(()=>x.records.cnt,"getCount"),ce=N.treeView,le=f(()=>B(ce,y().treeView),"getConfig"),de=f((r,t,e,n,s,i)=>{for(;r<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();let o={id:x.records.cnt++,level:r,name:t,nodeType:e,icon:s,cssClass:n,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),he={clear:oe,addNode:de,getRoot:se,getCount:ae,getConfig:le,getAccTitle:_,getAccDescription:S,getDiagramTitle:H,setAccDescription:M,setAccTitle:D,setDiagramTitle:R},T=he,pe=f(r=>{G(r,T);for(let t of r.nodes){let e=typeof t.indent=="number"?t.indent:0,n=t.name,s=n.endsWith("/");s&&(n=n.slice(0,-1));let i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconA
5nnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?A(c,y()):void 0;T.addNode(e,n,i,o,p,d)}},"populate"),fe={parse:f(r=>b(null,null,function*(){let{text:t,lineMap:e}=ee(r);try{let n=yield Y("treeView",t);I.debug(n),pe(n)}catch(n){throw e.size>0&&n instanceof Error&&(n.message=Q(n.message,e)),n}}),"parse")},C={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function te(r,t){let e=t?.filenameIcons?.[r];if(e)return e;let n=r.lastIndexOf(".");if(n>0){let s=r.substring(n).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}f(te,"detectIcon");function V(r,t){return r.includes(":")?r:r in C.icons||!t?`${C.prefix}:${r}`:`${t}:${r}`}f(V,"qualifyIcon");function k(r,t){if(r.icon!=="none"){if(r.icon)return V(r.icon,t.defaultIconPack);if(t.showIcons){if(r.nodeType==="file"){let e=te(r.name,t);if(e==="none")return;if(e)return V(e,t.defaultIconPack)}return`${C.prefix}:${r.nodeType==="directory"?"folder":"file"}`}}}f(k,"getNodeIcon");X([{name:C.prefix,icons:C}]);var $=14,ge=4,ue=16,me=f((r,t)=>b(null,null,function*(){let e=[],n=f(i=>{let o=k(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(n)},"collect");n(r);let s=yield Promise.all(e.map(a=>b(null,[a],function*({icon:i,node:o}){return{id:o.id,svg:yield z(i,{height:$,width:$})}})));return new Map(s.map(({id:i,svg:o})=>[i,o]))}),"resolveNodeIcons"),we=f((r,t,e,n,s,i)=>{let o=n.append("g"),a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);let p=$+ge,c=k(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${r+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");let h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:m}=h.node().getBBox(),g=l+s.paddingY*2,w=r+s.paddingX+(d?p:0);h.attr("x",w),h.attr("y",t+g/2);let u=w+m,v=m+s.paddingX*2+(d?p:0);return e.BBox={x:r,y:t,width:v,height:g},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",r).attr("y",t+1).attr("width",0).attr("height",g-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+g/2}},"positionLabel"),q=f((r,t,e,n,s,i)=>r.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),xe=f((r,t,e,n)=>{let s=0,i=0,o=[],a=f((d,h,l,m)=>
5{let g=m*(l.rowIndent+l.paddingX),w=we(g,s,h,d,l,n);o.push(w);let{height:u,width:v}=h.BBox;q(d,g-l.rowIndent,s+u/2,g,s+u/2,l.lineThickness),i=Math.max(i,g+v),s+=u},"drawNode"),p=f((d,h=0)=>{a(r,d,e,h),d.children.forEach(w=>{p(w,h+1)});let{x:l,y:m,height:g}=d.BBox;if(d.children.length){let{y:w,height:u}=d.children[d.children.length-1].BBox;q(r,l+e.paddingX,m+g,l+e.paddingX,w+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);let c=o.filter(d=>d.node.description);if(c.length>0){let h=Math.max(...o.map(l=>l.labelRightEdge))+ue;for(let l of c){let g=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+g.width+e.paddingX)}}for(let d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){let h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){let l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),ve=f((r,t,e,n)=>b(null,null,function*(){I.debug(`Rendering treeView diagram
6`+r);let s=n.db,i=s.getRoot(),o=s.getConfig(),a=W(t),p=a.append("g");p.attr("class","tree-view");let c=yield me(i,o),{totalHeight:d,totalWidth:h}=xe(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),E(a,d,h,o.useMaxWidth)}),"draw"),be={draw:ve},Ce=be,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},ye=f(({treeView:r})=>{let{labelFontSize:t,labelColor:e,lineColor:n,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=B(Ie,r);return`
7    .treeView-node-label {
8        font-size: ${t};
9        fill: ${e};
10        white-space: pre;
11    }
12    .treeView-node-dir {
13        font-weight: bold;
14    }
15    .treeView-node-line {
16        stroke: ${n};
17    }
18    .treeView-node-icon {
19        color: ${s};
20    }
21    .treeView-node-description {
22        font-size: ${t};
23        fill: ${i};
24        font-style: italic;
25        white-space: pre;
26    }
27    .treeView-highlight-bg {
28        fill: ${o};
29        stroke: ${a};
30        stroke-width: 1;
31    }
32    `},"styles"),Be=ye,_e={db:T,renderer:Ce,parser:fe,styles:Be};export{_e as diagram};
33
34//# debugId=fbddbd1e-adff-5fdc-95b7-4f4d37c0bb9e

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.