{"version":3,"sources":["jsdelivr-header.js","/npm/shery-ts-countdown@1.0.0/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACLA,aACA,MAAM,cAAgB,KAClB,QAAQ,OAAO,WAAW,GAAI,GAC9B,QAAQ,OAAO,UAAU,EAAE,EAE/B,IAAI,SAAqC,GAA1B,OAAO,QAAQ,KAAK,IACnC,GAAuC,iBAA5B,OAAO,QAAQ,KAAK,IAAkB,CAC7C,IAAI,EAAW,aAAY,KACvB,GAAI,SAAW,EAAG,CACd,IAAI,EAAU,KAAK,MAAM,SAAW,IAChC,EAAU,SAAW,GACzB,gBACA,QAAQ,OAAO,MAAM,GAAG,aAAmB,WAC3C,UAAsB,CAC1B,MAEI,cAAc,GACd,QAAQ,IAAI,iBAChB,GACD,IACP,MAEI,QAAQ,MAAM","file":"/npm/shery-ts-countdown@1.0.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/shery-ts-countdown@1.0.0/dist/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","#!/usr/bin/env node\n\"use strict\";\nconst clearLastLine = () => {\n    process.stdout.moveCursor(0, -1); // up one line\n    process.stdout.clearLine(1); // from cursor to end\n};\nlet duration = Number(process.argv[2]) * 60;\nif (typeof Number(process.argv[2]) === \"number\") {\n    let interval = setInterval(() => {\n        if (duration > 0) {\n            let minutes = Math.floor(duration / 60);\n            let seconds = duration % 60;\n            clearLastLine();\n            process.stdout.write(`${minutes} min ::: ${seconds} sec\\n`);\n            duration = duration - 1;\n        }\n        else {\n            clearInterval(interval);\n            console.log(\"Timer Finished\");\n        }\n    }, 1000);\n}\nelse {\n    console.error(\"please enter a number\");\n}\n"]}