text: var e="";window&&(e=window.navigator.userAgent||"");var n=function(n){void 0===n&&(n=e);var t,o={};return(t=n.match(/rv:([\d.]+)\) like gecko/i))?o.ie=t[1]:(t=n.match(/msie ([\d\.]+)/i))?o.ie=t[1]:(t=n.match(/edge\/([\d\.]+)/i))?o.edge=t[1]:(t=n.match(/firefox\/([\d\.]+)/i))?o.firefox=t[1]:(t=n.match(/(?:opera|opr).([\d\.]+)/i))?o.opera=t[1]:(t=n.match(/chrome\/([\d\.]+)/i))?o.chrome=t[1]:(t=n.match(/version\/([\d\.]+).*safari/i))&&(o.safari=t[1]),o.ie?{type:"IE",version:o.ie}:o.edge?{type:"EDGE",version:o.edge}:o.firefox?{type:"Firefox",version:o.firefox}:o.chrome?{type:"Chrome",version:o.chrome}:o.opera?{type:"Opera",version:o.opera}:o.safari?{type:"Safari",version:o.safari}:{type:"Unkonwn",version:""}},t="",o="";window&&(t=window.navigator.userAgent||"",o=window.navigator.appVersion||"");var r=function(){try{var e=t,n=o;return/mac/i.test(n)?"MacOSX":/win/i.test(n)?"windows":/linux/i.test(n)?"linux":/iphone/i.test(e)||/ipad/i.test(e)||/ipod/i.test(e)?"ios":/android/i.test(t)?"android":/win/i.test(n)&&/phone/i.test(e)?"windowsPhone":"Unkonwn"}catch(e){return"Unkonwn"}},i="";window&&(i=window.navigator.userAgent);var a=function(e){return void 0===e&&(e=i),!!e.match(/(iPhone|iPod|Android|ios)/i)},u=function(e,n){void 0===n&&(n=160);var t=null,o=+new Date;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=+new Date;clearTimeout(t),a-o?(e.apply(void 0,r),o=a):t=setTimeout(function(){e.apply(void 0,r)},n)}},d=function(e,n){void 0===n&&(n=160);var t=null;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];clearTimeout(t),t=setTimeout(function(){e.apply(void 0,o)},n)}},f=function(e,n){var t=/\B(?=(\d{3})+(?=\b))(?<=\b(?<!\.)\d*)/g;return void 0===n?e.toString().replace(t,","):(+e).toFixed(n).toString().replace(t,",")},c=function(){return"#"+Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")},s=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.floor(e+Math.random()*(n+1-e))},p=function(e){return/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(e)},v=function(e){return/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(""+e)},l=function(e){return/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(""+e)},w=function(e){return/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/i.test(e)},m=function(e){return void 0===e&&(e=+new Date),new Date(e+288e5).toJSON().substr(0,19).replace("T"," ")},h=function(e){var n=+new Date-+new Date(e),t=parseInt(""+n/864e5),o=parseInt(""+n/36e5),r=parseInt(""+n/6e4),i=parseInt(""+t/30),a=parseInt(""+i/12);return a?a+"年前":i?i+"个月前":t?t+"天前":o?o+"小时前":r?r+"分钟前":"刚刚"},y=function(e){var n=+new Date,t=+new Date(e)-n,o=0,r=0,i=0,a=0;return t>=0&&(o=Math.floor(t/1e3/3600/24),r=Math.floor(t/1e3/60/60%24),i=Math.floor(t/1e3/60%60),a=Math.floor(t/1e3%60)),o+"天 "+r+"小时 "+i+"分钟 "+a+"秒"};function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=function(e){if(null==e)return e+"";if("object"===g(e)||"function"==typeof e){var n=Object.prototype.toString.call(e),t=/ (.*?)\]$/.exec(n);return t&&t[1]?t[1].toLowerCase():"object"}return g(e)},x=function(e){if(void 0===e&&(e=window.location.href),-1===e.indexOf("?"))return{};var n="?"===e[0]?e.substr(1):e.substring(e.lastIndexOf("?")+1);if(""===n)return{};n=n.split("&");for(var t={},o=0;o<n.length;o++){var r=n[o].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return t},I=function(e){if(!e)return"";var n=[];for(var t in e){var o=e[t];if(o instanceof Array)for(var r=0;r<o.length;++r){var i=encodeURIComponent(t+"["+r+"]"),a=encodeURIComponent(o[r]);n.push(i+"="+a)}else n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]))}return n.join("&")};export{d as debounce,n as getExplore,r as getOS,x as getUrlParams,p as isEmail,v as isIdCard,a as isMobile,l as isPhoneNum,w as isUrl,f as milliFormat,c as randomColor,s as randomNum,u as throttle,m as timeFormat,h as timeFormatPass,y as timeFormatRemain,b as type,I as urlQueryString};
  //# sourceMappingURL=hhp-utils.min.esm.js.map
  