import{getSegmentConfig as n}from"../../../segment-config/index.js";var r=function(n){var r=new Map;return n.forEach((function(n){var i=n.chain;i.forEach((function(n,e){e>0&&r.set(n,i.slice(0,e))}))})),r},i=function(n){var r=new Map;return n.forEach((function(n){var i=n.chain;i.forEach((function(n,e){e<i.length-1&&r.set(n,i.slice(e+1))}))})),r},e=function(e){var t=[{chain:n(e).cascadeChain}];return{hierarchies:t,upstream:r(t),downstream:i(t)}},t={drilling:e("drilling"),intervention:e("intervention")},a=function(n){return t[n]};export{i as buildDownstreamMap,r as buildUpstreamMap,a as getCascadeMaps};
//# sourceMappingURL=cascade-hierarchies.js.map
