{"version":3,"sources":["jsdelivr-header.js","/npm/@smartthings/cli@2.0.2/dist/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,OAAQ,iBACR,SAAU,mBACV,UAAW,eACT,YAAe,uBACf,aAAgB,sBACzB,MAAM,IAAM,KAAK,MAAM,GAAG,aAAa,KAAK,iBAAiB,QAAS,KAAM,gBAAiB,gBACtF,MAAM,cAAgB,KACzB,MAAM,EAAW,MAAM,QAAQ,QAAQ,OAqBvC,OApBA,EACK,WAAW,eACX,QAAQ,IAAI,SACZ,QAAQ,UACR,SACA,gBACA,KAAK,KAAK,IAAI,IAAK,EAAS,kBAC5B,oBAEA,cAAc,CACf,eAAgB,aAChB,WAAY,WAEX,oBAAoB,CACrB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,IAEf,WAAW,8BAA+B,kCAExC,CAAQ","file":"/npm/@smartthings/cli@2.0.2/dist/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@smartthings/cli@2.0.2/dist/src/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 fs from 'node:fs';\nimport path from 'node:path';\nimport yargs from 'yargs';\nimport { hideBin } from 'yargs/helpers';\nimport { commands } from './commands/index.js';\nconst pkg = JSON.parse(fs.readFileSync(path.join(import.meta.dirname, '..', 'package.json'), 'utf8'));\nexport const buildInstance = () => {\n    const instance = yargs(hideBin(process.argv));\n    instance\n        .scriptName('smartthings')\n        .version(pkg.version)\n        .command(commands)\n        .strict()\n        .demandCommand()\n        .wrap(Math.min(160, instance.terminalWidth()))\n        .recommendCommands()\n        /* eslint-disable @typescript-eslint/naming-convention */\n        .updateStrings({\n        'Positionals:': 'Arguments:',\n        'Options:': 'Flags:',\n    })\n        .parserConfiguration({\n        'greedy-arrays': false,\n        'strip-aliased': true,\n        'strip-dashed': true,\n    })\n        .completion('generate-completions-script', 'output completion script setup');\n    /* eslint-enable @typescript-eslint/naming-convention */\n    return instance;\n};\n"]}