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:m,isString:p}=s(),c=r(),u=i(),d=c("at-import-partial-extension-whitelist"),_=o.ruleMessages(d,{rejected:e=>`Unexpected extension ".${e}" in imported partial name`}),f={url:u(d),deprecated:!0};function h(e){const t=[].concat(e);return(s,r)=>{o.validateOptions(r,d,{actual:e,possible:[p,m]})&&(r.warn("'at-import-partial-extension-whitelist' has been deprecated, and will be removed in '7.0'. Use 'at-import-partial-extension-allowed-list' instead.",{stylelintType:"deprecation",stylelintReference:"https://github.com/stylelint-scss/stylelint-scss/blob/v6.1.0/src/rules/at-import-partial-extension-whitelist/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.some(e=>p(e)&&l===e||m(e)&&-1!==l.search(e))||o.report({message:_.rejected(a),node:s,word:a,result:r,ruleName:d}))}(s,e)})}))}}return h.ruleName=d,h.messages=_,h.meta=f,a=h}export{n as __require};