{"version":3,"sources":["jsdelivr-header.js","/npm/typewise-semver@1.0.0-alpha.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,OAAS,QAAQ,UAErB,QAAQ,MAAQ,SAAU,GACxB,IAAI,EAAiB,iBAAN,EAAiB,OAAO,MAAM,GAAK,EAC9C,EAAI,CAAE,EAAE,MAAO,EAAE,MAAO,EAAE,OAAQ,OAAO,EAAE,YAM/C,YAHa,IAAT,EAAE,SAA6B,IAAT,EAAE,KAC1B,EAAE,GAAK,MAEF,CACT,EAEA,QAAQ,UAAY,SAAU,GAC5B,IAAI,EAAI,EAAE,MAAM,EAAG,GAAG,KAAK,KAO3B,OANY,MAAR,EAAE,KACJ,GAAK,IAAM,EAAE,GACD,MAAR,EAAE,KACJ,GAAK,IAAM,EAAE,KAGV,CACT","file":"/npm/typewise-semver@1.0.0-alpha.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/typewise-semver@1.0.0-alpha.0/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","var semver = require('semver')\n\nexports.parse = function (s) {\n  var v = typeof s === 'string' ? semver.parse(s) : s\n  var a = [ v.major, v.minor, v.patch ].concat(v.prerelease)\n\n  // if prerelease tag without associated version, sort first amonst tags\n  if (a[3] !== undefined && a[4] === undefined) {\n    a[4] = null\n  }\n  return a\n}\n\nexports.stringify = function (a) {\n  var v = a.slice(0, 3).join('.')\n  if (a[3] != null) {\n    v += '-' + a[3]\n    if (a[4] != null) {\n      v += '.' + a[4]\n    }\n  }\n  return v\n}\n"]}