function nte_tooltip_targets(t){return"function"!=typeof $?null:t?$(t):$('[data-toggle="tooltip"]')}function nte_ensure_tooltip_style(){if(document.getElementById("nteTooltipPointerStyle"))return;let t=document.createElement("style");t.id="nteTooltipPointerStyle",t.textContent=".tooltip{pointer-events:none!important}",(document.head||document.documentElement).appendChild(t)}document.addEventListener("nru_destroy_tooltips",t=>{let e=nte_tooltip_targets(t.detail);e&&e.each(function(){try{$(this).tooltip("destroy")}catch(t){try{$(this).tooltip("dispose")}catch(t){}}try{$(this).removeData("bs.tooltip").removeData("tooltip")}catch(t){}})}),document.addEventListener("nru_init_tooltips",()=>{nte_ensure_tooltip_style();let t=nte_tooltip_targets();t&&t.tooltip()});