{"version":3,"file":"identifiers.cjs","sources":["../../../../../../node_modules/semver/internal/identifiers.js"],"sourcesContent":["const numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n  const anum = numeric.test(a)\n  const bnum = numeric.test(b)\n\n  if (anum && bnum) {\n    a = +a\n    b = +b\n  }\n\n  return a === b ? 0\n    : (anum && !bnum) ? -1\n    : (bnum && !anum) ? 1\n    : a < b ? -1\n    : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n  compareIdentifiers,\n  rcompareIdentifiers,\n}\n"],"names":[],"mappings":";;AAAA,MAAM,UAAU;AAChB,MAAM,qBAAqB,CAAC,GAAG,MAAM;AACnC,QAAM,OAAO,QAAQ,KAAK,CAAC;AAC3B,QAAM,OAAO,QAAQ,KAAK,CAAC;AAE3B,MAAI,QAAQ,MAAM;AAChB,QAAI,CAAC;AACL,QAAI,CAAC;AAAA,EACT;AAEE,SAAO,MAAM,IAAI,IACZ,QAAQ,CAAC,OAAQ,KACjB,QAAQ,CAAC,OAAQ,IAClB,IAAI,IAAI,KACR;AACN;AAEA,MAAM,sBAAsB,CAAC,GAAG,MAAM,mBAAmB,GAAG,CAAC;AAE7D,IAAA,cAAiB;AAAA,EACf;AAAA,EACA;AACF;;","x_google_ignoreList":[0]}