function e(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function t(e){return typeof e==`boolean`?e:void 0}function n(e){return e?.dangerouslyAllowNameMatching===!0}function r(r,i){let a=[],o=e(r.channels);if(!o)return a;let s=e(o[i]);if(!s)return a;let c=`channels.${i}`,l=`${c}.dangerouslyAllowNameMatching`,u=n(s);a.push({prefix:c,account:s,dangerousNameMatchingEnabled:u,dangerousFlagPath:l});let d=e(s.accounts);if(!d)return a;for(let n of Object.keys(d)){let r=e(d[n]);if(!r)continue;let i=`${c}.accounts.${n}`,o=t(r.dangerouslyAllowNameMatching);a.push({prefix:i,account:r,dangerousNameMatchingEnabled:o??u,dangerousFlagPath:o==null?l:`${i}.dangerouslyAllowNameMatching`})}return a}export{n,r as t};
