import{__module as e}from"../../../../../_virtual/index34.mjs";import r from"../../../../../_virtual/index13.mjs";import{__require as t}from"../../utils/declarationValueIndex.mjs";import{__require as a}from"../../utils/isSingleLineString.mjs";import{__require as s}from"../../utils/whitespaceChecker.mjs";import{__require as i}from"../../utils/namespace.mjs";import{__require as n}from"../../utils/ruleUrl.mjs";var l;function o(){if(l)return e.exports;l=1;const{utils:o}=r,c=t(),p=a(),u=s(),f=i(),m=n(),d=f("dollar-variable-colon-space-after"),x=o.ruleMessages(d,{expectedAfter:()=>'Expected single space after ":"',rejectedAfter:()=>'Unexpected whitespace after ":"',expectedAfterSingleLine:()=>'Expected single space after ":" with a single-line value',expectedAfterAtLeast:()=>'Expected at least one space after ":"'}),w={url:m(d),fixable:!0};function _(e){const r=u("space",e,x);return(t,a)=>{o.validateOptions(a,d,{actual:e,possible:["always","never","always-single-line","at-least-one-space"]})&&g({root:t,result:a,locationChecker:r.after,checkedRuleName:d,position:"after",expectation:e})}}function g({locationChecker:e,root:r,result:t,checkedRuleName:a,position:s,expectation:i}){r.walkDecls(r=>{if(void 0===r.prop||"$"!==r.prop[0])return;const n=()=>{if(("always-single-line"!==i||p(r.value))&&r.raws.between)if("before"===s){const e="never"===i?":":" :";r.raws.between=r.raws.between.replace(/\s*:/,e)}else if("after"===s){const e="at-least-one-space"===i?/:(?! )/:/:\s*/,t="never"===i?":":": ";r.raws.between=r.raws.between.replace(e,t)}},l=c(r)+r.raw("between").length-1,u=r.toString().slice(0,l);for(let s=0;s<u.length;s++)if(":"===u[s]){e({source:u,index:s,lineCheckStr:r.value,err:e=>{o.report({message:e,node:r,index:s,endIndex:s,result:t,ruleName:a,fix:n})}});break}})}return _.ruleName=d,_.messages=x,_.meta=w,e.exports=_,e.exports.variableColonSpaceChecker=g,e.exports}export{o as __require};