"use strict";!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ResponsiveTable=e()}(window,function(){return function(t,e){let r=null;const i=()=>{t.parentNode.querySelector("table").scrollWidth<=t.parentNode.clientWidth?t.removeAttribute("tabindex"):r&&(r.innerText+=" "+e.scrollableText)};if(t){(r=t.querySelector("caption"))&&!r.hasAttribute("id")&&(o=Math.random().toString(36).substr(2,16),r.setAttribute("id","responsive-table-caption-caption-"+o),t.setAttribute("aria-labelledby",r.getAttribute("id"))),t.setAttribute("tabindex","0"),t.setAttribute("role","group");var o=t.querySelector("tr"),l=o.querySelectorAll("th");if(o.getElementsByTagName("th").length===o.querySelectorAll("*").length)for(let t=0;t<l.length;t++)l[t].hasAttribute("scope")||l[t].setAttribute("scope","col");var n=t.querySelectorAll("tr");for(let t=0;t<n.length;t++){var s=n[t].firstElementChild;s.hasAttribute("scope")||s.setAttribute("scope","row")}i()}return{}}});