{"version":3,"sources":["jsdelivr-header.js","/npm/@babel/preset-flow@7.24.7/src/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2FCNA,IAAA,mBAAA,QAAA,8BACA,+BAAA,QAAA,4CACA,kBAAA,QAAA,0BAAsD,SAAA,QAAA,SAEvC,EAAA,mCAAc,CAAC,EAAK,KACjC,EAAI,cAA+B,GACnC,MAAM,IACJ,EAAG,mBACH,EAAkB,iBAClB,GAA0D,EAC1D,6BAA8B,GAAkB,IAC9C,EAAA,2BAAiB,GAEf,EAAiB,CACrB,CAAC,uCAAyB,CAAE,MAAK,wBAGnC,GAAI,EAAiB,CACnB,GAAI,OAAO,SAAS,QAAQ,SAAS,KAAM,IAAM,GAC/C,MAAM,IAAI,MACR,6DAQJ,EAAQ,QAAQ,oCAClB,CAEA,OAAI,EACK,CAAE,WAGJ,CACL,UAAW,CACT,CACE,KAAM,GAAwB,MAAZ,IAAqB,UAAU,KAAK,GACtD,YAGL","file":"/npm/@babel/preset-flow@7.24.7/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@babel/preset-flow@7.24.7/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 { declarePreset } from \"@babel/helper-plugin-utils\";\nimport transformFlowStripTypes from \"@babel/plugin-transform-flow-strip-types\";\nimport normalizeOptions from \"./normalize-options.ts\";\n\nexport default declarePreset((api, opts) => {\n  api.assertVersion(REQUIRED_VERSION(7));\n  const {\n    all,\n    allowDeclareFields,\n    ignoreExtensions = process.env.BABEL_8_BREAKING ? false : true,\n    experimental_useHermesParser: useHermesParser = false,\n  } = normalizeOptions(opts);\n\n  const plugins: any[] = [\n    [transformFlowStripTypes, { all, allowDeclareFields }],\n  ];\n\n  if (useHermesParser) {\n    if (Number.parseInt(process.versions.node, 10) < 12) {\n      throw new Error(\n        \"The Hermes parser is only supported in Node 12 and later.\",\n      );\n    }\n    if (IS_STANDALONE) {\n      throw new Error(\n        \"The Hermes parser is not supported in the @babel/standalone.\",\n      );\n    }\n    plugins.unshift(\"babel-plugin-syntax-hermes-parser\");\n  }\n\n  if (ignoreExtensions) {\n    return { plugins };\n  }\n\n  return {\n    overrides: [\n      {\n        test: filename => filename == null || !/\\.tsx?$/.test(filename),\n        plugins,\n      },\n    ],\n  };\n});\n"]}