import{a}from"./chunk-EX334LQM.js";import{d as n}from"./chunk-53W3MT4O.js";import{lh as o}from"./chunk-RAOXHQSQ.js";function t(e){return new RegExp("^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$").test(e);}function r(e){return e?e.includes("@"):!1;}var u=e=>{if(!e.value)return null;let i=[],l=o(e.value);for(let s of l)t(s)===!1&&i.push(""+s+" \u7121\u6548\n        ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],l=o(e.value);for(let s of l)t(s)===!1&&r(s)===!1&&i.push(""+s+" \u7121\u6548\n        ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},H={VALIDATORS:[n.required,u,a],MESSAGES:{required:"\u7DB2\u57DF\u5FC5\u586B\u3002",validHosts:"\u8F38\u5165\u7684\u4E3B\u6A5F\u7121\u6548\u3002",unique:"\u8F38\u5165\u7684\u4E3B\u6A5F\u5305\u542B\u4E86\u91CD\u8907\u7684\u9805\u76EE\u3002"}},v={VALIDATORS:[n.required,d,a],MESSAGES:{required:"\u7DB2\u57DF\u5FC5\u586B\u3002",validHostsOrHandles:"\u4E3B\u6A5F\u6216\u4EE3\u865F\u7121\u6548\u3002",unique:"\u4E3B\u6A5F\u6216\u4EE3\u865F\u5305\u542B\u4E86\u91CD\u8907\u7684\u9805\u76EE\u3002"}};export{t as a,H as b,v as c};/**i18n:aa38438cfc6bb6877c9985433629bf5f310ba8cfd6183982ad2c0c8f601d3935*///# sourceMappingURL=chunk-4M7LIK5D.js.map