import"./index-BTglIPU2.js?v=1773287522785";import{a as i}from"./check-CNel7fTH.js?v=1773287522785";const a=({complex:t,trigger:n})=>({trigger:n||["blur","change"],validator:(r,e)=>(e=e.trim(),e===""?new Error("密码不能为空"):t.length&&e.length<t.length?new Error("密码长度必须大于等于".concat(t.length,"位")):!0)}),g=({trigger:t}={})=>({trigger:t||["blur","change"],validator:(n,r)=>{const e=["/","/www","/bin","/boot","/dev","/etc","/lib","/media","/mnt","/opt","/proc","/root","/run","/sbin","/srv","/sys","/tmp","/usr","/var"],o=Array.from(new Set(e));return r=r.trim(),r===""?new Error("目录不能为空"):o.includes(r)?new Error("目录为系统保留目录, 请重新选择"):!0}}),c=({trigger:t}={})=>({trigger:t||["blur","input"],validator:(n,r)=>{if(r){if(!i(r))return new Error("端口格式错误, 请填写1-65535之间的数字")}else return new Error("Port cannot be empty");return!0}});export{g as a,a as b,c as v};
