{"version":3,"sources":["jsdelivr-header.js","/npm/@babel/plugin-syntax-import-attributes@7.28.6/src/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2FCNA,IAAA,mBAAA,QAAA,8BAAqD,SAAA,QAAA,SAMtC,EAAA,6BAAQ,CAAC,GAAO,6BAG7B,GAFA,EAAI,cAA+B,uBAGP,MAA1B,GACkC,kBAA3B,EAEP,MAAM,IAAI,MACR,6DAIJ,MAAO,CACL,KAAM,2BAEN,mBAAkB,WAAE,EAAU,cAAE,IACO,MAArC,EAAc,0BAAd,EAAc,wBAA4B,QAE1C,MAAM,EACJ,EAAW,QAAQ,QAAQ,qBACQ,IAAjC,IACF,EAAW,QAAQ,OAAO,EAA6B,GACvD,GAAyB,GAGvB,EACF,EAAW,QAAQ,KAAK,yBAA0B,CAChD,mBACA,CAAE,wBAAwB,KAG5B,EAAW,QAAQ,KAAK,mBAE5B,EACD","file":"/npm/@babel/plugin-syntax-import-attributes@7.28.6/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@babel/plugin-syntax-import-attributes@7.28.6/lib/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","import { declare } from \"@babel/helper-plugin-utils\";\n\nexport interface Options {\n  deprecatedAssertSyntax?: boolean;\n}\n\nexport default declare((api, { deprecatedAssertSyntax }: Options) => {\n  api.assertVersion(REQUIRED_VERSION(\"^7.22.0 || ^8.0.0-0\"));\n\n  if (\n    deprecatedAssertSyntax != null &&\n    typeof deprecatedAssertSyntax !== \"boolean\"\n  ) {\n    throw new Error(\n      \"'deprecatedAssertSyntax' must be a boolean, if specified.\",\n    );\n  }\n\n  return {\n    name: \"syntax-import-attributes\",\n\n    manipulateOptions({ parserOpts, generatorOpts }) {\n      generatorOpts.importAttributesKeyword ??= \"with\";\n\n      const importAssertionsPluginIndex =\n        parserOpts.plugins.indexOf(\"importAssertions\");\n      if (importAssertionsPluginIndex !== -1) {\n        parserOpts.plugins.splice(importAssertionsPluginIndex, 1);\n        deprecatedAssertSyntax = true;\n      }\n\n      if (deprecatedAssertSyntax) {\n        parserOpts.plugins.push(\"deprecatedImportAssert\", [\n          \"importAttributes\",\n          { deprecatedAssertSyntax: true },\n        ]);\n      } else {\n        parserOpts.plugins.push(\"importAttributes\");\n      }\n    },\n  };\n});\n"]}