{"ast":null,"code":"import getIdentifierNames from \"./util/getIdentifierNames\";\nexport default class NameManager {\n  __init() {\n    this.usedNames = new Set();\n  }\n  constructor(code, tokens) {\n    ;\n    NameManager.prototype.__init.call(this);\n    this.usedNames = new Set(getIdentifierNames(code, tokens));\n  }\n  claimFreeName(name) {\n    const newName = this.findFreeName(name);\n    this.usedNames.add(newName);\n    return newName;\n  }\n  findFreeName(name) {\n    if (!this.usedNames.has(name)) {\n      return name;\n    }\n    let suffixNum = 2;\n    while (this.usedNames.has(name + String(suffixNum))) {\n      suffixNum++;\n    }\n    return name + String(suffixNum);\n  }\n}","map":{"version":3,"names":["getIdentifierNames","NameManager","__init","usedNames","Set","constructor","code","tokens","prototype","call","claimFreeName","name","newName","findFreeName","add","has","suffixNum","String"],"sources":["C:/Users/user/Desktop/000newport/node_modules/sucrase/dist/esm/NameManager.js"],"sourcesContent":["\nimport getIdentifierNames from \"./util/getIdentifierNames\";\n\nexport default class NameManager {\n    __init() {this.usedNames = new Set()}\n\n  constructor(code, tokens) {;NameManager.prototype.__init.call(this);\n    this.usedNames = new Set(getIdentifierNames(code, tokens));\n  }\n\n  claimFreeName(name) {\n    const newName = this.findFreeName(name);\n    this.usedNames.add(newName);\n    return newName;\n  }\n\n  findFreeName(name) {\n    if (!this.usedNames.has(name)) {\n      return name;\n    }\n    let suffixNum = 2;\n    while (this.usedNames.has(name + String(suffixNum))) {\n      suffixNum++;\n    }\n    return name + String(suffixNum);\n  }\n}\n"],"mappings":"AACA,OAAOA,kBAAkB,MAAM,2BAA2B;AAE1D,eAAe,MAAMC,WAAW,CAAC;EAC7BC,MAAMA,CAAA,EAAG;IAAC,IAAI,CAACC,SAAS,GAAG,IAAIC,GAAG,CAAC,CAAC;EAAA;EAEtCC,WAAWA,CAACC,IAAI,EAAEC,MAAM,EAAE;IAAC;IAACN,WAAW,CAACO,SAAS,CAACN,MAAM,CAACO,IAAI,CAAC,IAAI,CAAC;IACjE,IAAI,CAACN,SAAS,GAAG,IAAIC,GAAG,CAACJ,kBAAkB,CAACM,IAAI,EAAEC,MAAM,CAAC,CAAC;EAC5D;EAEAG,aAAaA,CAACC,IAAI,EAAE;IAClB,MAAMC,OAAO,GAAG,IAAI,CAACC,YAAY,CAACF,IAAI,CAAC;IACvC,IAAI,CAACR,SAAS,CAACW,GAAG,CAACF,OAAO,CAAC;IAC3B,OAAOA,OAAO;EAChB;EAEAC,YAAYA,CAACF,IAAI,EAAE;IACjB,IAAI,CAAC,IAAI,CAACR,SAAS,CAACY,GAAG,CAACJ,IAAI,CAAC,EAAE;MAC7B,OAAOA,IAAI;IACb;IACA,IAAIK,SAAS,GAAG,CAAC;IACjB,OAAO,IAAI,CAACb,SAAS,CAACY,GAAG,CAACJ,IAAI,GAAGM,MAAM,CAACD,SAAS,CAAC,CAAC,EAAE;MACnDA,SAAS,EAAE;IACb;IACA,OAAOL,IAAI,GAAGM,MAAM,CAACD,SAAS,CAAC;EACjC;AACF"},"metadata":{},"sourceType":"module","externalDependencies":[]}