PageSourceSearch

https://news.enechange.co.jp/_next/static/chunks/3328.73fb84de3e77dbaa.js

js enechange.co.jp collected 2026-10-02 05:01:33 UTC 8,567 bytes, 27 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3328],{19215:(e,t,i)=>{function r(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}i.d(t,{S:()=>r}),(0,i(55534).K)(r,"populateCommonDb")},22919:(e,t,i)=>{i.d(t,{m:()=>n});var r=i(55534),n=class{constructor(e){this.init=e,this.records=this.init()}static{(0,r.K)(this,"ImperativeState")}reset(){this.records=this.init()}}},73328:(e,t,i)=>{i.d(t,{diagram:()=>W});var r=i(22919),n=i(19215),o=i(76391),a=i(36415),s=i(7611),l=i(2876),d=i(63612),c=i(55534),h=i(86446),f=/[─━│┃└┗├┣]/,p=/[└┗├┣]/,g=/[─━]/,u=/^[\s│┃]+$/,w=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,x=/^\s*%%/;function m(e){return e.some(e=>f.test(e))}function b(e){for(let t of e){let e=p.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function y(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let r=parseInt(i,10),n=t.get(r);return n?`line ${n}`:e})}function $(e){let t=e.split("\n"),i=new Map,r=-1;for(let[e,i]of t.entries())if("treeView-beta"===i.trim()){r=e;break}if(-1===r)return{text:e,lineMap:i};let n=[];for(let e=r+1;e<t.length;e++){let i=t[e];!(""===i.trim()||x.test(i)||w.test(i))&&(u.test(i)||n.push(i.replace(/\t/g,"    ")))}if(!m(n))return{text:e,lineMap:i};let o=b(n),a=[],s=0;for(let e=0;e<=r;e++)a.push(t[e]),s++,i.set(s,e+1);for(let e=r+1;e<t.length;e++){let r=t[e],n=r.trim(),l=e+1;if(""===n||x.test(r)||w.test(r)){a.push(r),s++,i.set(s,l);continue}if(u.test(r))continue;let d=r.replace(/\t/g,"    "),c=p.exec(d);if(c?.index!==void 0){let e=c.index,t=Math.round(e/o)+1,r=e+1;for(;r<d.length&&g.test(d[r]);)r++;for(;r<d.length&&" "===d[r];)r++;let n=d.slice(r).trimEnd();if(!n)throw Error(`Line ${l}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let h="    ".repeat(t);a.push(h+n),s++,i.set(s,l)}else if(/^[\s─━│┃└┗├┣]+$/.test(d))continue;else if(f.test(d))a.push(r),s++,i.set(s,l);else if(/^\s+/.test(d))throw Error(`Line ${l}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);else a.push(r),s++,i.set(s,l)}return{text:a.join("\n"),lineMap:i}}(0,c.K)(m,"isBoxDrawingFormat"),(0,c.K)(b,"inferSegmentWidth"),(0,c.K)(y,"remapErrorLines"),(0,c.K)($,"preprocessBoxDrawing");var k=new r.m(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),K=(0,c.K)(()=>{k.reset(),(0,l.IU)()},"clear"),v=(0,c.K)(()=>k.records.stack[0],"getRoot"),V=(0,c.K)(()=>k.records.cnt,"getCount"),B=l.UI.treeView,C=(0,c.K)(()=>(0,s.$t)(B,(0,l.zj)().treeView),"getConfig"),I={clear:K,addNode:(0,c.K)((e,t,i,r,n,o)=>{for(;e<=k.records.stack[k.records.stack.length-1].level;)k.records.stack.pop();let a={id:k.records.cnt++,level:e,name:t,nodeType:i,icon:n,cssClass:r,description:o,children:[]};k.records.stack[k.records.stack.length-1].children.push(a),k.records.stack.push(a)},"addNode"),getRoot:v,getCount:V,getConfig:C,getAccTitle:l.iN,getAccDescription:l.m7,getDiagramTitle:l.ab,setAccDescription:l.EI,setAccTitle:l.SV,setDiagramTitle:l.ke},T=(0,c.K)(e=>{for(let t of((0,n.S)(e,I),e.nodes)){let e="number"==typeof t.indent?t.indent:0,i=t.name,r=i.endsWith("/");r&&(i=i.slice(0,-1));let n=r?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,s=void 0!==a?a||"none":void 0,d=t.descAnnotation||void 0,c=d?(0,l.jZ)(d,(0,l.zj)()):void 0;I.addNode(e,i,n,o,s,c)}},"populate"),D={parse:(0,c.K)(async e=>{let{text:t,lineMap:i}=$(e);try{let e=await (0,h.qg)("treeView",t);d.R.debug(e),T(e)}catch(e){throw i.size>0&&e instanceof Error&&(e.message=y(e.message,i)),e}},"parse")},E={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 A(e,t){let i=t?.filenameIcons?.[e];if(i)return i;let r=e.lastIndexOf(".");if(r>0){let i=e.substring(r).toLowerCase(),n=t?.extensionIcons;return n?.[i]??n?.[i.slice(1)]}}function M(e,t){return e.includes(":")?e:e in E.icons||!t?`${E.prefix}:${e}`:`${t}:${e}`}function N(e,t){if("none"!==e.icon){if(e.icon)return M(e.icon,t.defaultIconPack);if(t.showIcons){if("file"===e.nodeType){let i=A(e.name,t);if("none"===i)return;if(i)return M(i,t.defaultIconPack)}return`${E.prefix}:${"directory"===e.nodeType?"folder":"file"}`}}}(0,c.K)(A,"detectIcon"),(0,c.K)(M,"qualifyIcon"),(0,c.K)(N,"getNodeIcon"),(0,a.pC)([{name:E.prefix,icons:E}]);var S=(0,c.K)((e,t)=>`tv-icon-${e}-${t.replace(/[^\w-]/g,"-")}
1`,"iconSymbolId"),z=(0,c.K)(async(e,t,i,r)=>{let n=new Set,o=(0,c.K)(e=>{let t=N(e,i);t&&n.add(t),e.children.forEach(o)},"collect");if(o(t),0===n.size)return;let s=await Promise.all([...n].map(async e=>({icon:e,svg:await (0,a.WY)(e,{height:14,width:14})}))),l=e.append("defs");for(let{icon:e,svg:t}of s)l.append("g").attr("id",S(r,e)).html(t)},"injectIconDefs"),X=(0,c.K)((e,t,i,r,n,o)=>{let a=r.append("g"),s="treeView-node-label";"directory"===i.nodeType&&(s+=" treeView-node-dir"),i.cssClass&&(s+=` ${i.cssClass}`);let l=N(i,n),d=void 0!==l;l&&a.append("use").attr("xlink:href",`#${S(o,l)}`).attr("x",e+n.paddingX).attr("y",t+n.paddingY).attr("class","treeView-node-icon");let c=a.append("text").text(i.name).attr("dominant-baseline","middle").attr("class",s),{height:h,width:f}=c.node().getBBox(),p=h+2*n.paddingY,g=e+n.paddingX+18*!!d;c.attr("x",g),c.attr("y",t+p/2);let u=g+f;return i.BBox={x:e,y:t,width:f+2*n.paddingX+18*!!d,height:p},i.cssClass?.split(/\s+/).includes("highlight")&&a.insert("rect",":first-child").attr("x",e).attr("y",t+1).attr("width",0).attr("height",p-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:i,nodeGroup:a,labelRightEdge:u,centerY:t+p/2}},"positionLabel"),L=(0,c.K)((e,t,i,r,n,o)=>e.append("line").attr("x1",t).attr("y1",i).attr("x2",r).attr("y2",n).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),R=(0,c.K)((e,t,i,r)=>{let n=0,o=0,a=[],s=(0,c.K)((e,t,i,s)=>{let l=s*(i.rowIndent+i.paddingX),d=X(l,n,t,e,i,r);a.push(d);let{height:c,width:h}=t.BBox;L(e,l-i.rowIndent,n+c/2,l,n+c/2,i.lineThickness),o=Math.max(o,l+h),n+=c},"drawNode"),l=(0,c.K)((t,r=0)=>{s(e,t,i,r),t.children.forEach(e=>{l(e,r+1)});let{x:n,y:o,height:a}=t.BBox;if(t.children.length){let{y:r,height:s}=t.children[t.children.length-1].BBox;L(e,n+i.paddingX,o+a,n+i.paddingX,r+s/2+i.lineThickness/2,i.lineThickness)}},"processNode");l(t);let d=a.filter(e=>e.node.description);if(d.length>0){let e=Math.max(...a.map(e=>e.labelRightEdge))+16;for(let t of d){let r=t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",e).attr("y",t.centerY).node().getBBox();o=Math.max(o,e+r.width+i.paddingX)}}for(let e of a)if(e.node.cssClass?.split(/\s+/).includes("highlight")){let t=e.nodeGroup.select(".treeView-highlight-bg");if(!t.empty()){let i=o-e.node.BBox.x+8;t.attr("width",i),o=Math.max(o,e.node.BBox.x+i+2)}}return{totalHeight:n,totalWidth:o}},"drawTree"),j=(0,c.K)(async(e,t,i,r)=>{d.R.debug("Rendering treeView diagram\n"+e);let n=r.db,a=n.getRoot(),s=n.getConfig(),c=(0,o.D)(t);await z(c,a,s,t);let h=c.append("g");h.attr("class","tree-view");let{totalHeight:f,totalWidth:p}=R(h,a,s,t);c.attr("viewBox",`-${s.lineThickness/2} 0 ${p} ${f}`),(0,l.a$)(c,f,p,s.useMaxWidth)},"draw"),Y={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},W={db:I,renderer:{draw:j},parser:D,styles:(0,c.K)(({treeView:e})=>{let{labelFontSize:t,labelColor:i,lineColor:r,iconColor:n,descriptionColor:o,highlightBg:a,highlightStroke:l}=(0,s.$t)(Y,e);return`
2    .treeView-node-label {
3        font-size: ${t};
4        fill: ${i};
5        white-space: pre;
6    }
7    .treeView-node-dir {
8        font-weight: bold;
9    }
10    .treeView-node-line {
11        stroke: ${r};
12    }
13    .treeView-node-icon {
14        color: ${n};
15    }
16    .treeView-node-description {
17        font-size: ${t};
18        fill: ${o};
19        font-style: italic;
20        white-space: pre;
21    }
22    .treeView-highlight-bg {
23        fill: ${a};
24        stroke: ${l};
25        stroke-width: 1;
26    }
27    `},"styles")}}}]);

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.