import{isString as e,isRegExp as s}from"../../utils/validateTypes.mjs";import t from"../../utils/getRuleSelector.mjs";import r from"../../utils/isStandardSyntaxRule.mjs";import l from"../../utils/matchesStringOrRegExp.mjs";import o from"../../utils/parseSelector.mjs";import i from"../../utils/report.mjs";import m from"../../utils/ruleMessages.mjs";import u from"../../utils/validateOptions.mjs";import a from"../../utils/vendor.mjs";const d="selector-pseudo-element-disallowed-list",n=m(d,{rejected:e=>`Unexpected pseudo-element "${e}"`}),p=m=>(p,c)=>{u(c,d,{actual:m,possible:[e,s]})&&p.walkRules(e=>{r(e)&&e.selector.includes("::")&&o(t(e),c,e)?.walkPseudos(s=>{const t=s.value;if(":"!==t.charAt(1))return;const r=t.slice(2);if(!l(a.unprefixed(r),m))return;const o=s.sourceIndex,u=o+t.length;i({index:o,endIndex:u,message:n.rejected,messageArgs:[t],node:e,result:c,ruleName:d})})})};p.primaryOptionArray=!0,p.ruleName=d,p.messages=n,p.meta={url:"https://stylelint.io/user-guide/rules/selector-pseudo-element-disallowed-list"};export{p as default};