import e from"../../utils/isStandardSyntaxAtRule.mjs";import{isString as t}from"../../utils/validateTypes.mjs";import r from"../../utils/report.mjs";import s from"../../utils/ruleMessages.mjs";import l from"../../utils/validateOptions.mjs";import a from"../../utils/vendor.mjs";const i="at-rule-allowed-list",o=s(i,{rejected:e=>`Unexpected at-rule "${e}"`}),m=s=>(m,u)=>{if(!l(u,i,{actual:s,possible:[t]}))return;const n=[s].flat();m.walkAtRules(t=>{const s=t.name;if(!e(t))return;if(n.includes(a.unprefixed(s).toLowerCase()))return;const l=`@${s}`;r({message:o.rejected,messageArgs:[l],node:t,result:u,ruleName:i,word:l})})};m.primaryOptionArray=!0,m.ruleName=i,m.messages=o,m.meta={url:"https://stylelint.io/user-guide/rules/at-rule-allowed-list"};export{m as default};