var navHospital=navHospital||(function(){const bc=document.body.classList
let n=document.getElementById('navigationContainer')
function removeLinks(array){if(!Array.isArray(array))
return false
let as=Array.from(n.querySelectorAll('a')),filtered=as.filter(function(a){let h=a.getAttribute('href')
if(h){let _h=h.toLowerCase()
return array.some(function(l){return _h.includes(l)})}})
filtered.forEach(function(a){let li=a.parentElement,ul=li.parentElement,_li=ul.parentElement,_ul=_li.parentElement,_a=_li.firstElementChild
if(li.tagName!='LI')
return false
if(!li.querySelector('ul')){li.remove()
if(ul.children.length===0){if(_li.tagName==='LI'&&_a.tagName==='A'){let h=_a.getAttribute('href')
if(h){let _h=h.toLowerCase()
if(array.some(function(l){return _h.includes(l)})||['#','','javascript:void(0);'].some(function(l){return _h===l})){_li.remove()
if(_ul.tagName==='UL'&&_ul.children.length===0)
_ul.remove()
return false}
else if(array.some(function(l){return _h.includes(l)})){_a.href='#'}}}
ul.remove()}}
else{a.href='#'}})
let remaining=filtered.filter(function(a){return n.contains(a)})
if(remaining.length){remaining.forEach(function(a){let li=a.parentElement,ul=a.nextElementSibling
if(!ul&&li.tagName==='LI')
li.remove()})}}
function setNavigation(el){if(!el instanceof HTMLElement)
return false
n=el}
if(bc.contains('_245')){const t3s=n.querySelectorAll('.nav_ul ul ul')
t3s.forEach(function(el){el.remove()})}
return{setNavigation:setNavigation,removeLinks:removeLinks}})();