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