UNPKG

@scania/tegel

Version:
1 lines 323 B
import{d as r}from"./p-52bf0fdf.js";const n=r=>r.previousElementSibling,t=(t,o)=>function(n,t,o){let e=o(n);for(;e;){const n=r(e,t);if(n)return n;e=o(e)}return null}(t,o,n),o=r=>{const n=r.tagName.toLowerCase(),t=r.getAttribute("role");return["h1","h2","h3","h4","h5","h6"].includes(n)||"heading"===t};export{t as g,o as i}