PageSourceSearch

https://atocos.com/_next/static/chunks/2193.e915c64680e29e9b.js

js atocos.com collected 2026-10-02 00:29:15 UTC 7,220 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2193],{17311:(e,n,t)=>{t.d(n,{M:()=>d});var r=t(9715),a=t(9114),i=t(83905);function d(e){var n,t,d,l={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(n=e,i.A(n.nodes(),function(e){var t=n.node(e),a=n.parent(e),i={v:e};return r.A(t)||(i.value=t),r.A(a)||(i.parent=a),i})),edges:(t=e,i.A(t.edges(),function(e){var n=t.edge(e),a={v:e.v,w:e.w};return r.A(e.name)||(a.name=e.name),r.A(n)||(a.value=n),a}))};return r.A(e.graph())||(d=e.graph(),l.value=(0,a.A)(d,4)),l}t(45121)},22193:(e,n,t)=>{t.d(n,{IU:()=>g,OS:()=>v,dc:()=>w,ju:()=>l,sc:()=>b});var r=t(63612),a=t(55534),i=t(1120),d=t(17311),l=new Map,o=new Map,s=new Map,g=(0,a.K)(()=>{o.clear(),s.clear(),l.clear()},"clear"),c=(0,a.K)((e,n)=>{let t=o.get(n)||[];return r.R.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),u=(0,a.K)((e,n)=>{let t=o.get(n)||[];return r.R.info("Descendants of ",n," is ",t),r.R.info("Edge is ",e),e.v!==n&&e.w!==n&&(t?t.includes(e.v)||c(e.v,n)||c(e.w,n)||t.includes(e.w):(r.R.debug("Tilt, ",n,",not in descendants"),!1))},"edgeInCluster"),f=(0,a.K)((e,n,t,a)=>{r.R.warn("Copying children of ",e,"root",a,"data",n.node(e),a);let i=n.children(e)||[];e!==a&&i.push(e),r.R.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(i=>{if(n.children(i).length>0)f(i,n,t,a);else{let d=n.node(i);r.R.info("cp ",i," to ",a," with parent ",e),t.setNode(i,d),a!==n.parent(i)&&(r.R.warn("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==a&&i!==e?(r.R.debug("Setting parent",i,e),t.setParent(i,e)):(r.R.info("In copy ",e,"root",a,"data",n.node(e),a),r.R.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==a,"node!==clusterId",i!==e));let l=n.edges(i);r.R.debug("Copying Edges",l),l.forEach(i=>{r.R.info("Edge",i);let d=n.edge(i.v,i.w,i.name);r.R.info("Edge data",d,a);try{if(u(i,a)){let e=o.get(a)||[],l=e.includes(i.v)||c(i.v,a)||i.v===a,s=e.includes(i.w)||c(i.w,a)||i.w===a;if(l&&s)r.R.info("Copying as ",i.v,i.w,d,i.name),t.setEdge(i.v,i.w,d,i.name),r.R.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]));else{let e=l?a:i.v,t=s?a:i.w;r.R.info("Rebinding cross-boundary edge as ",e,t,d,i.name),n.setEdge(e,t,d,i.name)}}else r.R.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",a," clusterId:",e)}catch(e){r.R.error(e)}})}r.R.debug("Removing node",i),n.removeNode(i)})},"copy"),h=(0,a.K)((e,n)=>{let t=n.children(e),r=[...t];for(let a of t)s.set(a,e),r=[...r,...h(a,n)];return r},"extractDescendants"),p=(0,a.K)((e,n,t)=>{let r=e.edges().filter(e=>e.v===n||e.w===n),a=e.edges().filter(e=>e.v===t||e.w===t),i=r.map(e=>({v:e.v===n?t:e.v,w:e.w===n?n:e.w})),d=a.map(e=>({v:e.v,w:e.w}));return i.filter(e=>d.some(n=>e.v===n.v&&e.w===n.w))},"findCommonEdges"),w=(0,a.K)((e,n,t)=>{let a,i=n.children(e);if(r.R.trace("Searching children of id ",e,i),i.length<1)return e;for(let e of i){let r=w(e,n,t),i=p(n,t,r);if(r)if(!(i.length>0))return r;else a=r}return a},"findNonClusterChild"),R=(0,a.K)(e=>l.has(e)&&l.get(e).externalConnections&&l.has(e)?l.get(e).id:e,"getAnchorId"),v=(0,a.K)((e,n)=>{if(!e||n>10)return void r.R.debug("Opting out, no graph ");for(let n of(r.R.debug("Opting in, graph "),e.nodes().forEach(function(n){e.children(n).length>0&&(r.R.warn("Cluster identified",n," Replacement id in edges: ",w(n,e,n)),o.set(n,h(n,e)),l.set(n,{id:w(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let t=e.children(n),a=e.edges();t.length>0?(r.R.debug("Cluster identified",n,o),a.forEach(e=>{c(e.v,n)^c(e.w,n)&&(r.R.warn("Edge: ",e," leaves cluster ",n),r.R.warn("Descendants of XXX ",n,": ",o.get(n)),l.get(n).externalConnections=!0)})):r.R.debug("Not a cluster ",n,o)}),l.keys())){let t=l.get(n).id,r=e.parent(t);r!==n&&l.has(r)&&!l.get(r).externalConnections&&(l.get(n).id=r);let a=e.edges().some(e=>e.v===n);if(t&&l.get(n)?.externalConnections&&a&&x(e,t,n)){let r=E(e,n,e.parent(t));r&&(l.get(n).id=r)}}
1e.edges().forEach(function(n){let t=e.edge(n);r.R.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.R.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let a=n.v,i=n.w;if(r.R.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l.get(n.v)," --- ",l.get(n.w)),l.get(n.v)||l.get(n.w)){if(r.R.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),a=R(n.v),i=R(n.w),e.removeEdge(n.v,n.w,n.name),a!==n.v){let r=e.parent(a);l.get(r).externalConnections=!0,t.fromCluster=n.v}if(i!==n.w){let r=e.parent(i);l.get(r).externalConnections=!0,t.toCluster=n.w}r.R.warn("Fix Replacing with XXX",a,i,n.name),e.setEdge(a,i,t,n.name)}}),r.R.warn("Adjusted Graph",d.M(e)),m(e,0),r.R.trace(l)},"adjustClustersAndEdges"),m=(0,a.K)((e,n)=>{if(r.R.warn("extractor - ",n,d.M(e),e.children("D")),n>10)return void r.R.error("Bailing out");let t=e.nodes(),a=!1;for(let n of t){let t=e.children(n);a=a||t.length>0}if(!a)return void r.R.debug("Done, no node has children",e.nodes());for(let a of(r.R.debug("Nodes = ",t,n),t))if(r.R.debug("Extracting node",a,l,l.has(a)&&!l.get(a).externalConnections,!e.parent(a),e.node(a),e.children("D")," Depth ",n),l.has(a))if(l.get(a)?.clusterData?.explicitDir&&e.children(a)&&e.children(a).length>0){r.R.warn("Cluster with explicit dir, creating subgraph for children",a,n);let t=l.get(a).clusterData.dir,o=new i.T({multigraph:!0,compound:!0}).setGraph({rankdir:t,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});f(a,e,o,a);let s=e.node(a)||{};e.setNode(a,{...s,clusterNode:!0,id:a,clusterData:l.get(a).clusterData,label:l.get(a).label,graph:o}),r.R.warn("Subgraph for cluster with explicit dir created:",a,d.M(o))}else if(!l.get(a).externalConnections&&e.children(a)&&e.children(a).length>0){r.R.warn("Cluster without external connections, without a parent and with children",a,n);let t="TB"===e.graph().rankdir?"LR":"TB";l.get(a)?.clusterData?.dir&&(t=l.get(a).clusterData.dir,r.R.warn("Fixing dir",l.get(a).clusterData.dir,t));let o=new i.T({multigraph:!0,compound:!0}).setGraph({rankdir:t,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});f(a,e,o,a);let s=e.node(a)||{};e.setNode(a,{...s,clusterNode:!0,id:a,clusterData:l.get(a).clusterData,label:l.get(a).label,graph:o}),r.R.debug("Old graph after copy",d.M(e))}else r.R.warn("Cluster ** ",a," **not meeting the criteria !externalConnections:",!l.get(a).externalConnections," no parent: ",!e.parent(a)," children ",e.children(a)&&e.children(a).length>0,e.children("D"),n),r.R.debug(l);else r.R.debug("Not a cluster",a,n);for(let a of(t=e.nodes(),r.R.warn("New list of nodes",t),t)){let t=e.node(a);r.R.warn(" Now next level",a,t),t?.clusterNode&&m(t.graph,n+1)}},"extractor"),C=(0,a.K)((e,n)=>{if(0===n.length)return[];let t=Object.assign([],n);return n.forEach(n=>{let r=e.children(n),a=C(e,r);t=[...t,...a]}),t},"sorter"),b=(0,a.K)(e=>C(e,e.children()),"sortNodesByHierarchy"),x=(0,a.K)((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){let n=l.get(r);if(n&&!n.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),E=(0,a.K)((e,n,t)=>{for(let r of e.children(n)??[]){if(r===t||c(r,t))continue;let a=w(r,e,n);if(a&&!x(e,a,n))return a}return null},"findSafeAnchorNode")}}]);

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.