import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/validateTypes.mjs";import{__require as t}from"../../utils/namespace.mjs";import{__require as s}from"../../utils/ruleUrl.mjs";var a,i;function u(){if(i)return a;i=1;const{utils:u}=e,{isRegExp:n,isString:o}=r(),m=t(),l=s(),p=m("at-function-pattern"),c=u.ruleMessages(p,{expected:(e,r)=>`Expected "${e}" to match pattern "${r}"`}),f={url:l(p)};function g(e){return(r,t)=>{if(!u.validateOptions(t,p,{actual:e,possible:[n,o]}))return;const s=o(e)?new RegExp(e):e;r.walkAtRules("function",r=>{const a=r.params.replace(/(\s*)\([\s\S]*\)/g,"");s.test(a)||u.report({message:c.expected,messageArgs:[a,e],node:r,result:t,ruleName:p,word:a})})}}return g.ruleName=p,g.messages=c,g.meta=f,a=g}export{u as __require};