import{__module as e}from"../../../../../_virtual/index33.mjs";import{__require as r}from"../../../../postcss-value-parser/lib/index.mjs";import t from"../../../../../_virtual/index13.mjs";import{__require as i}from"../../utils/namespace.mjs";import{__require as s}from"../../utils/ruleUrl.mjs";var a;function n(){if(a)return e.exports;a=1;const n=r(),{utils:u}=t,o=i(),m=s(),l=o("dimension-no-non-numeric-values"),p=u.ruleMessages(l,{rejected:e=>`Expected "$value * 1${e}" instead of "#{$value}${e}". Consider writing "value" in terms of ${e} originally.`}),c={url:m(l)},d=["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms","Hz","kHz","dpi","dpcm","dppx","x","fr"];function v(e){return(r,t)=>{u.validateOptions(t,l,{actual:e})&&r.walkDecls(e=>{n(e.value).walk(r=>{if("word"!==r.type)return;if(!function(e){let r=!1;if(e.match(/^#{\$[a-z]*$/))return!0;return d.forEach(t=>{const i=new RegExp(`^#{[$a-z_0-9 +-]*}${t};?$`);e.match(i)&&(r=!0)}),r}(r.value))return;const i=new RegExp(`#{[$a-z_0-9 +-]*}(${d.join("|")});?`),s=e.value.match(i);if(!s)return;const a=s[1];u.report({ruleName:l,result:t,message:p.rejected(a),word:s[0],node:e})})})}}return v.ruleName=l,v.messages=p,v.meta=c,e.exports=v,e.exports.units=d,e.exports}export{n as __require};