/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
var m="forge-aria-controls-placeholder";function f(n,e){let t=n.toLowerCase().indexOf(e.toLowerCase());if(t!==-1){let o=t+e.length,r=document.createElement("span"),i=document.createElement("span");return i.style.fontWeight="bold",i.textContent=n.substring(t,o),r.appendChild(document.createTextNode(n.substring(0,t))),r.appendChild(i),r.appendChild(document.createTextNode(n.substring(o))),r}}function v(n,{capture:e=!0,pointerenter:u=!0,focusin:t=!0}={}){let o,r=()=>{typeof o=="function"&&o()};return{userInteraction:new Promise(p=>{let s={once:!0,capture:e},d=a=>{t&&n.removeEventListener("focusin",c,s),p(a)},c=a=>{u&&n.removeEventListener("pointerenter",d,s),p(a)};o=()=>{u&&n.removeEventListener("pointerenter",d,s),t&&n.removeEventListener("focusin",c,s)},u&&n.addEventListener("pointerenter",d,s),t&&n.addEventListener("focusin",c,s)}),destroy:r}}function l(n,e){return e===0?0:n/100*e}function E(n,e){return e===0?0:n*100/e}function x(n,e,u,t=0,o=100){let r=u-e,i=n-e;return!r||!i?t:i*o/r+t}function b(...n){return Math.min(...n.map(e=>e!=null?e:Number.POSITIVE_INFINITY))}function h(...n){return Math.max(...n.map(e=>e!=null?e:Number.NEGATIVE_INFINITY))}function I(){if(document.getElementById(m))return;let e=document.createElement("div");e.id=m,document.body.appendChild(e)}function L(n){let e=document.getElementById(m);e&&n.setAttribute("aria-controls",e.id)}export{m as a,f as b,v as c,l as d,E as e,x as f,b as g,h,I as i,L as j};
//# sourceMappingURL=chunk.KYH5GKVI.js.map
