import{Ht as e,zt as t}from"./icon-K_9KhGme.js";var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}var i=/^\s+/;function a(e){return e&&e.slice(0,r(e)+1).replace(i,``)}var o=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function d(n){if(typeof n==`number`)return n;if(e(n))return o;if(t(n)){var r=typeof n.valueOf==`function`?n.valueOf():n;n=t(r)?r+``:r}if(typeof n!=`string`)return n===0?n:+n;n=a(n);var i=c.test(n);return i||l.test(n)?u(n.slice(2),i?2:8):s.test(n)?o:+n}function f(e,t,n=.03){return e-t>n}export{d as n,f as t};