You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
586 B
1 lines
586 B
import{i as e}from"./_initCloneObject-K-Y0ueWp.js";import{i as s}from"./toString-eibgRg41.js";var f=/\s/;function o(r){for(var t=r.length;t--&&f.test(r.charAt(t)););return t}var c=/^\s+/;function m(r){return r&&r.slice(0,o(r)+1).replace(c,"")}var n=NaN,a=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt;function x(r){if(typeof r=="number")return r;if(s(r))return n;if(e(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=e(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=m(r);var i=p.test(r);return i||b.test(r)?y(r.slice(2),i?2:8):a.test(r)?n:+r}export{x as t};
|