const a={s:"\u79D2",m:"\u5206",h:"\u65F6",d:"\u5929",w:"\u5468",M:"\u6708",y:"\u5E74",forever:"\u6C38\u4E45"},t=[{label:"\u79D2",value:"s"},{label:"\u5206",value:"m"},{label:"\u65F6",value:"h"},{label:"\u5929",value:"d"},{label:"\u5468",value:"w"},{label:"\u6708",value:"M"},{label:"\u5E74",value:"y"},{label:"\u6C38\u4E45",value:"forever"}],u=e=>{switch(e){case"s":return 59;case"m":return 59;case"h":return 23;case"d":return 31;case"w":return 52;case"M":return 12;case"y":return 100;case"forever":return 99999999;default:return 0}},n=e=>{if(!e||!e.value||!e.unit)return 0;if(e.unit==="forever")return-1;const r=parseInt(e.value);switch(e.unit){case"s":return r;case"m":return r*60;case"h":return r*60*60;case"d":return r*60*60*24;case"w":return r*60*60*24*7;case"M":return r*60*60*24*30;case"y":return r*60*60*24*365;default:return 0}};export{t as a,n as b,u as g,a as t};
