import"./index-90c12cc1.js";function t(t){let n="";const r=Math.floor(t/1e3),o=Math.floor(r/86400),e=Math.floor(r%86400/3600);return o>0&&(n+=`${o}天`),e>0&&(n+=`${e}小时`),`还剩${n}自动确认`}function n(t){return/^1[3456789]\d{9}$/.test(t)}function r(t,n,r,o){return function(e){return e<=t?r:e>=n?o:(o-r)*(e-t)/(n-t)+r}}function o(t,n){return(Math.random()*(n-t)+t).toFixed(2)}function e(t){const n=t-Date.now();if(n<=0)return{days:"00",hours:"00",minutes:"00",seconds:"00"};let r=Math.floor(n/36e5),o=Math.floor(n%36e5/6e4),e=Math.floor(n%6e4/1e3);return{hours:r.toString().padStart(2,"0"),minutes:o.toString().padStart(2,"0"),seconds:e.toString().padStart(2,"0")}}const a=t=>{if(!t)return;t.indexOf("?")>0&&(t=t.split("?").at(-1));const n=t.split("&").map((t=>t.split("="))),r=new Map(n);return Object.fromEntries(r)};export{a,r as b,n as c,o as d,t as f,e as g};
