{"version":3,"sources":["jsdelivr-header.js","/npm/@nuxt/eslint-plugin@1.12.1/dist/index.mjs"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,mBAAsB,kCACtB,gBAAmB,2BAE5B,SAAS,WAAW,GAIlB,OAHoB,YAAY,aAC7B,GAAS,+CAA+C,KAEpD,CAAY,EACrB,CAEA,MAAM,gBAAkC,IAAI,IAAI,CAC9C,SACA,UACA,SACA,QACA,MACA,OACA,cAEI,OAAS,WAAW,CACxB,KAAM,qBACN,KAAM,CACJ,KAAM,aACN,KAAM,CACJ,YAAa,iDAEf,OAAQ,GACR,SAAU,CACR,QAAS,mEAEX,QAAS,QAEX,eAAgB,GAChB,OAAS,IAAY,CACnB,iBAAmB,IACjB,GAAI,EAAK,OAAO,OAAS,eAAe,YAAmC,YAArB,EAAK,OAAO,MAAsB,EAAK,SAAS,OAAS,eAAe,YAAc,gBAAgB,IAAI,EAAK,SAAS,MAAO,CACnL,MAAM,EAAS,EAAK,SAAS,KAC7B,EAAQ,OAAO,CACb,OACA,UAAW,UACX,KAAM,CACJ,UAEF,IAAM,GAAU,EAAM,YAAY,EAAM,eAAe,MAE3D,OAKA,iBAAmB,CACvB,OAAQ,CACN,OAEA,YACA,UACA,MACA,MAEF,OAAQ,CACN,QAGE,WAAa,CAEjB,QACA,UAEA,UACA,QAEA,UACA,UAEA,MAEA,MACA,QACA,aACA,UACA,WAEA,MACA,MACA,MACA,SACA,YACG,iBAAiB,OACpB,qBAEA,YACA,gBAEA,MACA,UACA,SACA,SACA,eACA,YACA,WACA,aACA,aAEA,QACA,aACA,SACA,gBACA,eAEA,UACA,QACA,WACA,aACA,YACA,eAEA,MACA,YACA,QACA,WAEA,SACA,WACA,eACA,oBAEA,WACG,iBAAiB,OACpB,iBACA,oBAEA,OACA,UACA,aACA,UAEA,OACA,YAEA,QACA,WAEA,SAGI,OAAS,WAAW,CACxB,KAAM,yBACN,KAAM,CACJ,KAAM,aACN,KAAM,CACJ,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2B,MAGvB,MAAQ,CACZ,KAAM,CACJ,KAAM,uBAER,oBAGO","file":"/npm/@nuxt/eslint-plugin@1.12.1/dist/index.mjs","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@nuxt/eslint-plugin@1.12.1/dist/index.mjs\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { AST_NODE_TYPES } from '@typescript-eslint/types';\nimport { ESLintUtils } from '@typescript-eslint/utils';\n\nfunction createRule(rule) {\n  const _createRule = ESLintUtils.RuleCreator(\n    (name) => `https://eslint.nuxt.com/packages/plugin#nuxt${name}`\n  );\n  return _createRule(rule);\n}\n\nconst processSuffixes = /* @__PURE__ */ new Set([\n  \"client\",\n  \"browser\",\n  \"server\",\n  \"nitro\",\n  \"dev\",\n  \"test\",\n  \"prerender\"\n]);\nconst rule$2 = createRule({\n  name: \"prefer-import-meta\",\n  meta: {\n    type: \"suggestion\",\n    docs: {\n      description: \"Prefer using `import.meta.*` over `process.*`\"\n    },\n    schema: [],\n    messages: {\n      default: \"Replace `process.{{ suffix }}` with `import.meta.{{ suffix }}`.\"\n    },\n    fixable: \"code\"\n  },\n  defaultOptions: [],\n  create: (context) => ({\n    MemberExpression: (node) => {\n      if (node.object.type === AST_NODE_TYPES.Identifier && node.object.name === \"process\" && node.property.type === AST_NODE_TYPES.Identifier && processSuffixes.has(node.property.name)) {\n        const suffix = node.property.name;\n        context.report({\n          node,\n          messageId: \"default\",\n          data: {\n            suffix\n          },\n          fix: (fixer) => fixer.replaceText(node, `import.meta.${suffix}`)\n        });\n      }\n    }\n  })\n});\n\nconst OFFICIAL_MODULES = {\n  client: [\n    \"site\",\n    // SEO module\n    \"colorMode\",\n    \"content\",\n    \"mdc\",\n    \"ui\"\n  ],\n  server: [\n    \"hub\"\n  ]\n};\nconst ORDER_KEYS = [\n  // Ids\n  \"appId\",\n  \"buildId\",\n  // Extends\n  \"extends\",\n  \"theme\",\n  // Extensions\n  \"modules\",\n  \"plugins\",\n  // Env ($production, $development, $test)\n  /^\\$/,\n  // Nuxt Core Features\n  \"ssr\",\n  \"pages\",\n  \"components\",\n  \"imports\",\n  \"devtools\",\n  // Client-side Integrations\n  \"app\",\n  \"css\",\n  \"vue\",\n  \"router\",\n  \"unhead\",\n  ...OFFICIAL_MODULES.client,\n  \"spaLoadingTemplate\",\n  // Runtime Configs\n  \"appConfig\",\n  \"runtimeConfig\",\n  // Dirs\n  \"dir\",\n  \"rootDir\",\n  \"srcDir\",\n  \"appDir\",\n  \"workspaceDir\",\n  \"serverDir\",\n  \"buildDir\",\n  \"modulesDir\",\n  \"analyzeDir\",\n  // Resultions\n  \"alias\",\n  \"extensions\",\n  \"ignore\",\n  \"ignoreOptions\",\n  \"ignorePrefix\",\n  // Build Pipeline Configs\n  \"builder\",\n  \"build\",\n  \"generate\",\n  \"routeRules\",\n  \"sourcemap\",\n  \"optimization\",\n  // Development\n  \"dev\",\n  \"devServer\",\n  \"watch\",\n  \"watchers\",\n  // Feature flags\n  \"future\",\n  \"features\",\n  \"experimental\",\n  \"compatibilityDate\",\n  // Nitro\n  \"nitro\",\n  ...OFFICIAL_MODULES.server,\n  \"serverHandlers\",\n  \"devServerHandlers\",\n  // Tooling Integrations\n  \"vite\",\n  \"webpack\",\n  \"typescript\",\n  \"postcss\",\n  // Other Integrations\n  \"test\",\n  \"telemetry\",\n  // Logging\n  \"debug\",\n  \"logLevel\",\n  // Hooks\n  \"hooks\"\n];\n\nconst rule$1 = createRule({\n  name: \"nuxt-config-keys-order\",\n  meta: {\n    type: \"suggestion\",\n    docs: {\n      description: \"Prefer recommended order of Nuxt config properties\"\n    },\n    schema: [],\n    messages: {\n      default: 'Expected config key \"{{a}}\" to come before \"{{b}}\"'\n    },\n    fixable: \"code\"\n  },\n  defaultOptions: [],\n  create(context) {\n    return {\n      ExportDefaultDeclaration(node) {\n        let object;\n        if (node.declaration.type === \"ObjectExpression\") {\n          object = node.declaration;\n        } else if (node.declaration.type === \"CallExpression\" && node.declaration.arguments[0].type === \"ObjectExpression\") {\n          object = node.declaration.arguments[0];\n        }\n        if (!object) {\n          return;\n        }\n        const hasFixes = sort(context, object);\n        if (!hasFixes) {\n          const envProps = object.properties.filter((i) => i.type === \"Property\" && i.key.type === \"Identifier\" && i.key.name.startsWith(\"$\"));\n          for (const prop of envProps) {\n            if (prop.value.type === \"ObjectExpression\")\n              sort(context, prop.value);\n          }\n        }\n      }\n    };\n  }\n});\nfunction sort(context, node) {\n  return sortAst(\n    context,\n    node,\n    node.properties,\n    (prop) => {\n      if (prop.type === \"Property\")\n        return getString(prop.key);\n      return null;\n    },\n    sortKeys\n  );\n}\nfunction sortKeys(a, b) {\n  const indexA = ORDER_KEYS.findIndex((k) => typeof k === \"string\" ? k === a : k.test(a));\n  const indexB = ORDER_KEYS.findIndex((k) => typeof k === \"string\" ? k === b : k.test(b));\n  if (indexA === -1 && indexB !== -1)\n    return 1;\n  if (indexA !== -1 && indexB === -1)\n    return -1;\n  if (indexA < indexB)\n    return -1;\n  if (indexA > indexB)\n    return 1;\n  return a.localeCompare(b);\n}\nfunction sortAst(context, node, list, getName, sort2 = (a, b) => a.localeCompare(b), insertComma = true) {\n  const firstToken = context.sourceCode.getFirstToken(node);\n  const lastToken = context.sourceCode.getLastToken(node);\n  if (!firstToken || !lastToken)\n    return false;\n  if (list.length < 2)\n    return false;\n  const reordered = list.slice();\n  const ranges = /* @__PURE__ */ new Map();\n  const names = /* @__PURE__ */ new Map();\n  const rangeStart = Math.max(\n    firstToken.range[1],\n    context.sourceCode.getIndexFromLoc({\n      line: list[0].loc.start.line,\n      column: 0\n    })\n  );\n  let rangeEnd = rangeStart;\n  for (let i = 0; i < list.length; i++) {\n    const item = list[i];\n    let name = getName(item);\n    if (typeof name === \"string\")\n      name = [name];\n    names.set(item, name);\n    let lastRange = item.range[1];\n    const nextToken = context.sourceCode.getTokenAfter(item);\n    if (nextToken?.type === \"Punctuator\" && nextToken.value === \",\")\n      lastRange = nextToken.range[1];\n    const nextChar = context.sourceCode.getText()[lastRange];\n    let text = getTextOf(context.sourceCode, [rangeEnd, lastRange]);\n    if (nextToken === lastToken && insertComma)\n      text += \",\";\n    if (nextChar === \"\\n\") {\n      lastRange++;\n      text += \"\\n\";\n    }\n    ranges.set(item, [rangeEnd, lastRange, text]);\n    rangeEnd = lastRange;\n  }\n  const segments = [];\n  let segmentStart = -1;\n  for (let i = 0; i < list.length; i++) {\n    if (names.get(list[i]) == null) {\n      if (segmentStart > -1)\n        segments.push([segmentStart, i]);\n      segmentStart = -1;\n    } else {\n      if (segmentStart === -1)\n        segmentStart = i;\n    }\n  }\n  if (segmentStart > -1 && segmentStart !== list.length - 1)\n    segments.push([segmentStart, list.length]);\n  for (const [start, end] of segments) {\n    reordered.splice(\n      start,\n      end - start,\n      ...reordered.slice(start, end).sort((a, b) => {\n        const nameA = names.get(a);\n        const nameB = names.get(b);\n        const length = Math.max(nameA.length, nameB.length);\n        for (let i = 0; i < length; i++) {\n          const a2 = nameA[i];\n          const b2 = nameB[i];\n          if (a2 == null || b2 == null || a2 === b2)\n            continue;\n          return sort2(a2, b2);\n        }\n        return 0;\n      })\n    );\n  }\n  const changed = reordered.some((prop, i) => prop !== list[i]);\n  if (!changed)\n    return false;\n  const newContent = reordered.map((i) => ranges.get(i)[2]).join(\"\");\n  context.report({\n    node,\n    messageId: \"default\",\n    data: {\n      a: names.get(reordered[0])[0],\n      b: names.get(reordered[1])[0]\n    },\n    fix(fixer) {\n      return fixer.replaceTextRange([rangeStart, rangeEnd], newContent);\n    }\n  });\n}\nfunction getTextOf(sourceCode, node) {\n  if (!node)\n    return \"\";\n  if (Array.isArray(node))\n    return sourceCode.text.slice(node[0], node[1]);\n  return sourceCode.getText(node);\n}\nfunction getString(node) {\n  if (node.type === \"Identifier\")\n    return node.name;\n  if (node.type === \"Literal\")\n    return String(node.raw);\n  return null;\n}\n\nconst rule = createRule({\n  name: \"no-nuxt-config-test-key\",\n  meta: {\n    type: \"problem\",\n    docs: {\n      description: \"Disallow setting `test` key in Nuxt config\"\n    },\n    schema: [],\n    messages: {\n      default: \"Do not set `test` key in Nuxt config. The test environment is automatically detected.\"\n    }\n  },\n  defaultOptions: [],\n  create(context) {\n    return {\n      ExportDefaultDeclaration(node) {\n        let object;\n        if (node.declaration.type === \"ObjectExpression\") {\n          object = node.declaration;\n        } else if (node.declaration.type === \"CallExpression\" && node.declaration.arguments[0]?.type === \"ObjectExpression\") {\n          object = node.declaration.arguments[0];\n        }\n        if (!object) {\n          return;\n        }\n        for (const prop of object.properties) {\n          if (prop.type === \"Property\" && prop.key.type === \"Identifier\" && prop.key.name === \"test\" && (prop.value.type === \"Literal\" && typeof prop.value.value === \"boolean\" || prop.value.type === \"Identifier\" && (prop.value.name === \"true\" || prop.value.name === \"false\"))) {\n            context.report({\n              node: prop,\n              messageId: \"default\"\n            });\n          }\n        }\n      }\n    };\n  }\n});\n\nconst rules = {\n  \"prefer-import-meta\": rule$2,\n  \"nuxt-config-keys-order\": rule$1,\n  \"no-nuxt-config-test-key\": rule\n};\n\nconst index = {\n  meta: {\n    name: \"@nuxt/eslint-plugin\"\n  },\n  rules\n};\n\nexport { index as default };\n"]}