import e from"../../../../../_virtual/index13.mjs";import{__require as t}from"../../utils/moduleNamespace.mjs";import{__require as r}from"../../utils/namespace.mjs";import{__require as n}from"../../utils/ruleUrl.mjs";var s,a;function u(){if(a)return s;a=1;const{utils:u}=e,i=t(),o=r(),m=n(),l=o("at-each-key-value-single-line"),c=u.ruleMessages(l,{expected:"Use @each $key, $value in $map syntax instead of $value: map-get($map, $key)"}),p={url:m(l)};function f(e){return(t,r)=>{if(!u.validateOptions(r,l,{actual:e}))return;const n=i(t,"sass:map");t.walkAtRules("each",e=>{const t=function(e){const t=e.split("in");return[t[0].split(",").map(e=>e.trim()),t[1].trim()]}(e.params);2!==t[0].length&&g(t[1],n)&&e.walkDecls(s=>{if("$"!==s.prop[0])return;if(!function(e,t){const r=x("get\\((.*),(.*)\\)",t);return new RegExp(r).test(e)}(s.value,n))return;const a=function(e,t){const r=x("get\\((.*), ?(.*)\\)",t),n=e.match(new RegExp(r));return[n[1],n[2]]}(s.value,n);a[0]===function(e,t){if(g(e,t)){const r=x("keys\\((.*)\\)",t);return e.match(new RegExp(r))[1]}return e}(t[1],n)&&a[1]===t[0][0]&&u.report({message:c.expected,node:e,result:r,ruleName:l,word:e.params})})})}}function g(e,t){const r=x("keys\\(.*\\)",t);return new RegExp(r).test(e)}function x(e,t){return null!==t?`(?:${t}\\.|map-)${e}`:e}return f.ruleName=l,f.messages=c,f.meta=p,s=f}export{u as __require};