import e from"../../../../../_virtual/_node_path.mjs";import t from"../../../../../_virtual/index13.mjs";import{__require as s}from"../../utils/validateTypes.mjs";import{__require as r}from"../../utils/namespace.mjs";import{__require as i}from"../../utils/ruleUrl.mjs";var a,l;function n(){if(l)return a;l=1;const n=e,{utils:o}=t,{isRegExp:c,isString:p}=s(),m=r(),u=i(),d=m("at-import-partial-extension-blacklist"),f=o.ruleMessages(d,{rejected:e=>`Unexpected extension ".${e}" in imported partial name`}),_={url:u(d),deprecated:!0};function x(e){const t=[].concat(e);return(s,r)=>{o.validateOptions(r,d,{actual:e,possible:[p,c]})&&(r.warn("'at-import-partial-extension-blacklist' has been deprecated, and will be removed in '7.0'. Use 'at-import-partial-extension-disallowed-list' instead.",{stylelintType:"deprecation",stylelintReference:"https://github.com/stylelint-scss/stylelint-scss/blob/v6.1.0/src/rules/at-import-partial-extension-blacklist/README.md"}),s.walkAtRules("import",e=>{e.params.split(",").forEach(s=>{!function(e,s){const i=e.replace(/^\s*(["'])\s*/,"").replace(/\s*(["'])\s*$/,""),a=n.extname(i).slice(1),l=a.toLowerCase();a&&"url("!==i.slice(0,4)&&".css"!==i.slice(-4)&&-1===i.search("//")&&-1===i.search(/[\s,)"']\w+$/)&&t.forEach(e=>{(p(e)&&l===e||c(e)&&-1!==l.search(e))&&o.report({message:f.rejected(a),node:s,word:a,result:r,ruleName:d})})}(s,e)})}))}}return x.ruleName=d,x.messages=f,x.meta=_,a=x}export{n as __require};