const o=(o,e="Docs")=>{n("View",o,e),t("View",o,e)},e=(o,e,i="Docs")=>{e&&e.preventDefault(),n("Click",o,i),t("Click",o,i),setTimeout(()=>{const o=a(null==e?void 0:e.target);o.target&&"_blank"===o.target.toLowerCase()?window.open(o.href):o.href&&(document.location=o.href)},150)},n=(o,e,n)=>{(window._hsq=window._hsq||[]).push(["trackEvent",{id:`${n} ad - ${o} - ${e}`}])},t=(o,e,n)=>{window.gtag?window.gtag("event",`Docs ad - ${o} - ${e}`,{event_category:`${n} ad - ${o}`,event_label:e}):console.warn("Unable to track Google Analytics event, gtag not found",o,e)},a=o=>o.href?o:o.parentNode?a(o.parentNode):void 0;export{o as a,e as t}