{"version":3,"sources":["jsdelivr-header.js","/npm/eslint-plugin-html@8.2.1/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,MAAM,KAAO,QAAQ,SACf,kBAAE,mBAAsB,QAAQ,kBAChC,gCACJ,iCACE,QAAQ,+BACN,gBAAkB,QAAQ,qBAEhC,OAAO,QAAU,gBAEjB,MAAM,+BACJ,kDAYI,QAAU,CACd,KAAK,KAAK,MAAO,SAAU,aAC3B,KAAK,KAAK,MAAO,cAKnB,SAAS,qBAAqB,GAC5B,IAAI,GAAQ,EAEZ,IAAK,MAAM,KAAO,QAAQ,MAAO,CAC/B,IAAK,QAAQ,KAAM,GAAW,EAAI,SAAS,IAAU,SAErD,MAAM,EAAS,QAAQ,MAAM,GACzB,GAAU,EAAO,UACnB,EAAG,GACH,GAAQ,EAEZ,CAEK,GACH,QAAQ,KACN,gRAGN,CAEA,SAAS,MAAM,GACb,MAAM,EAAS,oBAAoB,IAEY,IAA3C,EAAO,kCAGX,EAAO,iCAAkC,EAGrC,EAAO,UAAU,iDACnB,EAAO,UAAU,+CACf,gCACE,EACA,EAAO,UAAU,iDAKnB,EAAO,UAAU,2BACnB,EAAO,UAAU,yBAA2B,kBAC1C,EAAO,UAAU,2BAGvB,CAEA,SAAS,oBAAoB,GAC3B,MAAM,EAAS,EAAO,QAAQ,OAC1B,EAAO,QAAQ,OACf,EAAO,QACX,GACoB,mBAAX,GAC4B,mBAA5B,EAAO,UAAU,OAExB,OAAO,CAEX,CAzDA,qBAAqB","file":"/npm/eslint-plugin-html@8.2.1/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/eslint-plugin-html@8.2.1/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\"\n\nconst path = require(\"path\")\nconst { createVerifyPatch } = require(\"./verifyPatch\")\nconst {\n  createVerifyWithFlatConfigPatch,\n} = require(\"./verifyWithFlatConfigPatch\")\nconst pluginReference = require(\"./pluginReference\")\n\nmodule.exports = pluginReference\n\nconst LINTER_ISPATCHED_PROPERTY_NAME =\n  \"__eslint-plugin-html-verify-function-is-patched\"\n\n// Disclaimer:\n//\n// This is not a long term viable solution. ESLint needs to improve its processor API to\n// provide access to the configuration before actually preprocess files, but it's not\n// planed yet. This solution is quite ugly but shouldn't alter eslint process.\n//\n// Related github issues:\n// https://github.com/eslint/eslint/issues/3422\n// https://github.com/eslint/eslint/issues/4153\n\nconst needles = [\n  path.join(\"lib\", \"linter\", \"linter.js\"), // ESLint 6+\n  path.join(\"lib\", \"linter.js\"), // ESLint 5-\n]\n\niterateESLintModules(patch)\n\nfunction iterateESLintModules(fn) {\n  let found = false\n\n  for (const key in require.cache) {\n    if (!needles.some((needle) => key.endsWith(needle))) continue\n\n    const module = require.cache[key]\n    if (module && module.exports) {\n      fn(module)\n      found = true\n    }\n  }\n\n  if (!found) {\n    console.warn(\n      `⚠ eslint-plugin-html warning: ESLint is not loaded, HTML files will fail to lint. If you don't intend to lint HTML files, you can safely ignore this warning. If you think this is a bug, please file a report at https://github.com/BenoitZugmeyer/eslint-plugin-html/issues`\n    )\n  }\n}\n\nfunction patch(module) {\n  const Linter = getLinterFromModule(module)\n  // ignore if verify function is already been patched sometime before\n  if (Linter[LINTER_ISPATCHED_PROPERTY_NAME] === true) {\n    return\n  }\n  Linter[LINTER_ISPATCHED_PROPERTY_NAME] = true\n\n  // ESLint >= 8.4.0\n  if (Linter.prototype._verifyWithFlatConfigArrayAndWithoutProcessors) {\n    Linter.prototype._verifyWithFlatConfigArrayAndWithoutProcessors =\n      createVerifyWithFlatConfigPatch(\n        module,\n        Linter.prototype._verifyWithFlatConfigArrayAndWithoutProcessors\n      )\n  }\n\n  // ESLint >= 4.7.0 .. < 10.0\n  if (Linter.prototype._verifyWithoutProcessors) {\n    Linter.prototype._verifyWithoutProcessors = createVerifyPatch(\n      Linter.prototype._verifyWithoutProcessors\n    )\n  }\n}\n\nfunction getLinterFromModule(module) {\n  const Linter = module.exports.Linter\n    ? module.exports.Linter // ESLint 6+\n    : module.exports // ESLint 5-\n  if (\n    typeof Linter === \"function\" &&\n    typeof Linter.prototype.verify === \"function\"\n  ) {\n    return Linter\n  }\n}\n"]}