import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/atRuleParamIndex.mjs";import{__require as s}from"../../utils/whitespaceChecker.mjs";import{__require as a}from"../../utils/namespace.mjs";import{__require as i}from"../../utils/ruleUrl.mjs";var t,n;function m(){if(n)return t;n=1;const{utils:m}=e,o=r(),u=s(),l=a(),p=i(),c=l("at-mixin-parentheses-space-before"),f=m.ruleMessages(c,{rejectedBefore:()=>"Unexpected whitespace before parentheses in mixin declaration",expectedBefore:()=>"Expected a single space before parentheses in mixin declaration"}),x={url:p(c),fixable:!0};function d(e){return(r,s)=>{if(!m.validateOptions(s,c,{actual:e,possible:["always","never"]}))return;const a=/^([\w-]+)\s*\(/,i="always"===e?"$1 (":"$1(",t=u("space",e,f).before;r.walkAtRules("mixin",e=>{const r=()=>{e.params=e.params.replace(a,i)},n=e.params.indexOf("("),u=o(e);t({source:e.params,index:n,err:a=>m.report({message:a,node:e,result:s,ruleName:c,index:u+n,endIndex:u+n,fix:r})})})}}return d.ruleName=c,d.messages=f,d.meta=x,t=d}export{m as __require};