@beecode/msh-cli 1.2.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/README.md +2 -2
  2. package/bin/msh.js +1 -1
  3. package/dist/app/cli-app.d.ts +5 -0
  4. package/dist/app/cli-app.d.ts.map +1 -0
  5. package/dist/app/cli-app.js +5 -9
  6. package/dist/app/http-server-app.d.ts +5 -0
  7. package/dist/app/http-server-app.d.ts.map +1 -0
  8. package/dist/app/http-server-app.js +3 -7
  9. package/dist/app/init/parse-and-route-args.d.ts +8 -0
  10. package/dist/app/init/parse-and-route-args.d.ts.map +1 -0
  11. package/dist/app/init/parse-and-route-args.js +5 -9
  12. package/dist/app/tui-app.d.ts +5 -0
  13. package/dist/app/tui-app.d.ts.map +1 -0
  14. package/dist/app/tui-app.js +3 -7
  15. package/dist/controller/cli-menu/main-menu.d.ts +6 -0
  16. package/dist/controller/cli-menu/main-menu.d.ts.map +1 -0
  17. package/dist/controller/cli-menu/main-menu.js +11 -11
  18. package/dist/controller/yargs-router/cli-router.d.ts +14 -0
  19. package/dist/controller/yargs-router/cli-router.d.ts.map +1 -0
  20. package/dist/controller/yargs-router/cli-router.js +34 -29
  21. package/dist/controller/yargs-router/git-router.d.ts +10 -0
  22. package/dist/controller/yargs-router/git-router.d.ts.map +1 -0
  23. package/dist/controller/yargs-router/git-router.js +51 -49
  24. package/dist/controller/yargs-router/npm-router.d.ts +7 -0
  25. package/dist/controller/yargs-router/npm-router.d.ts.map +1 -0
  26. package/dist/controller/yargs-router/npm-router.js +25 -26
  27. package/dist/dal/shell-dal.d.ts +12 -0
  28. package/dist/dal/shell-dal.d.ts.map +1 -0
  29. package/dist/dal/shell-dal.js +12 -18
  30. package/dist/index-cli.d.ts +2 -0
  31. package/dist/index-cli.d.ts.map +1 -0
  32. package/dist/index-cli.js +8 -11
  33. package/dist/index-init.d.ts +2 -0
  34. package/dist/index-init.d.ts.map +1 -0
  35. package/dist/index-init.js +7 -12
  36. package/dist/index-jest-setup.d.ts +6 -0
  37. package/dist/index-jest-setup.d.ts.map +1 -0
  38. package/dist/index-jest-setup.js +4 -0
  39. package/dist/index-server.d.ts +2 -0
  40. package/dist/index-server.d.ts.map +1 -0
  41. package/dist/index-server.js +6 -9
  42. package/dist/index-terminal-ui.d.ts +2 -0
  43. package/dist/index-terminal-ui.d.ts.map +1 -0
  44. package/dist/index-terminal-ui.js +6 -9
  45. package/dist/model/command/init-config.d.ts +5 -0
  46. package/dist/model/command/init-config.d.ts.map +1 -0
  47. package/dist/model/command/init-config.js +4 -8
  48. package/dist/model/command/interfaces.d.ts +12 -0
  49. package/dist/model/command/interfaces.d.ts.map +1 -0
  50. package/dist/model/command/interfaces.js +2 -3
  51. package/dist/model/command/project-command/git-clone-project-command.d.ts +15 -0
  52. package/dist/model/command/project-command/git-clone-project-command.d.ts.map +1 -0
  53. package/dist/model/command/project-command/git-clone-project-command.js +9 -12
  54. package/dist/model/command/project-command/git-simple-project-command.d.ts +16 -0
  55. package/dist/model/command/project-command/git-simple-project-command.d.ts.map +1 -0
  56. package/dist/model/command/project-command/git-simple-project-command.js +9 -13
  57. package/dist/model/command/project-command/git-tag-project-command.d.ts +12 -0
  58. package/dist/model/command/project-command/git-tag-project-command.d.ts.map +1 -0
  59. package/dist/model/command/project-command/git-tag-project-command.js +14 -12
  60. package/dist/model/command/project-command/npm-global-project-command.d.ts +21 -0
  61. package/dist/model/command/project-command/npm-global-project-command.d.ts.map +1 -0
  62. package/dist/model/command/project-command/npm-global-project-command.js +35 -37
  63. package/dist/model/command/project-command/npm-install-project-command.d.ts +9 -0
  64. package/dist/model/command/project-command/npm-install-project-command.d.ts.map +1 -0
  65. package/dist/model/command/project-command/npm-install-project-command.js +9 -16
  66. package/dist/model/command/project-command/project-command.d.ts +15 -0
  67. package/dist/model/command/project-command/project-command.d.ts.map +1 -0
  68. package/dist/model/command/project-command/project-command.js +7 -12
  69. package/dist/service/clear-service.d.ts +2 -0
  70. package/dist/service/clear-service.d.ts.map +1 -0
  71. package/dist/service/clear-service.js +4 -7
  72. package/dist/service/file-service.d.ts +7 -0
  73. package/dist/service/file-service.d.ts.map +1 -0
  74. package/dist/service/file-service.js +4 -7
  75. package/dist/service/init-config-service.d.ts +7 -0
  76. package/dist/service/init-config-service.d.ts.map +1 -0
  77. package/dist/service/init-config-service.js +13 -18
  78. package/dist/service/shell-service.d.ts +12 -0
  79. package/dist/service/shell-service.d.ts.map +1 -0
  80. package/dist/service/shell-service.js +29 -31
  81. package/dist/service/terminal-wrapper.d.ts +12 -0
  82. package/dist/service/terminal-wrapper.d.ts.map +1 -0
  83. package/dist/service/terminal-wrapper.js +6 -11
  84. package/dist/util/base-menu.d.ts +12 -0
  85. package/dist/util/base-menu.d.ts.map +1 -0
  86. package/dist/util/base-menu.js +20 -19
  87. package/dist/util/config.d.ts +21 -0
  88. package/dist/util/config.d.ts.map +1 -0
  89. package/dist/util/config.js +37 -41
  90. package/dist/util/constant.d.ts +5 -0
  91. package/dist/util/constant.d.ts.map +1 -0
  92. package/dist/util/constant.js +3 -6
  93. package/dist/util/logger.d.ts +3 -0
  94. package/dist/util/logger.d.ts.map +1 -0
  95. package/dist/util/logger.js +14 -13
  96. package/dist/util/object-util.d.ts +4 -0
  97. package/dist/util/object-util.d.ts.map +1 -0
  98. package/dist/util/object-util.js +3 -5
  99. package/dist/util/sub-menu.d.ts +8 -0
  100. package/dist/util/sub-menu.d.ts.map +1 -0
  101. package/dist/util/sub-menu.js +10 -11
  102. package/dist/util/update-notifier-util.d.ts +4 -0
  103. package/dist/util/update-notifier-util.d.ts.map +1 -0
  104. package/dist/util/update-notifier-util.js +5 -11
  105. package/lib/app/cli-app.d.ts +5 -0
  106. package/lib/app/cli-app.d.ts.map +1 -0
  107. package/lib/app/cli-app.js +29 -0
  108. package/lib/app/http-server-app.d.ts +5 -0
  109. package/lib/app/http-server-app.d.ts.map +1 -0
  110. package/lib/app/http-server-app.js +31 -0
  111. package/lib/app/init/parse-and-route-args.d.ts +8 -0
  112. package/lib/app/init/parse-and-route-args.d.ts.map +1 -0
  113. package/lib/app/init/parse-and-route-args.js +74 -0
  114. package/lib/app/tui-app.d.ts +5 -0
  115. package/lib/app/tui-app.d.ts.map +1 -0
  116. package/lib/app/tui-app.js +31 -0
  117. package/lib/controller/cli-menu/main-menu.d.ts +6 -0
  118. package/lib/controller/cli-menu/main-menu.d.ts.map +1 -0
  119. package/lib/controller/cli-menu/main-menu.js +74 -0
  120. package/lib/controller/yargs-router/cli-router.d.ts +14 -0
  121. package/lib/controller/yargs-router/cli-router.d.ts.map +1 -0
  122. package/lib/controller/yargs-router/cli-router.js +171 -0
  123. package/lib/controller/yargs-router/git-router.d.ts +10 -0
  124. package/lib/controller/yargs-router/git-router.d.ts.map +1 -0
  125. package/lib/controller/yargs-router/git-router.js +207 -0
  126. package/lib/controller/yargs-router/npm-router.d.ts +7 -0
  127. package/lib/controller/yargs-router/npm-router.d.ts.map +1 -0
  128. package/lib/controller/yargs-router/npm-router.js +94 -0
  129. package/lib/dal/shell-dal.d.ts +12 -0
  130. package/lib/dal/shell-dal.d.ts.map +1 -0
  131. package/lib/dal/shell-dal.js +61 -0
  132. package/lib/index-cli.d.ts +2 -0
  133. package/lib/index-cli.d.ts.map +1 -0
  134. package/lib/index-cli.js +14 -0
  135. package/lib/index-init.d.ts +2 -0
  136. package/lib/index-init.d.ts.map +1 -0
  137. package/lib/index-init.js +16 -0
  138. package/lib/index-jest-setup.d.ts +6 -0
  139. package/lib/index-jest-setup.d.ts.map +1 -0
  140. package/lib/index-jest-setup.js +10 -0
  141. package/lib/index-server.d.ts +2 -0
  142. package/lib/index-server.d.ts.map +1 -0
  143. package/lib/index-server.js +9 -0
  144. package/lib/index-terminal-ui.d.ts +2 -0
  145. package/lib/index-terminal-ui.d.ts.map +1 -0
  146. package/lib/index-terminal-ui.js +9 -0
  147. package/lib/model/command/init-config.d.ts +5 -0
  148. package/lib/model/command/init-config.d.ts.map +1 -0
  149. package/lib/model/command/init-config.js +53 -0
  150. package/lib/model/command/interfaces.d.ts +12 -0
  151. package/lib/model/command/interfaces.d.ts.map +1 -0
  152. package/lib/model/command/interfaces.js +1 -0
  153. package/lib/model/command/project-command/git-clone-project-command.d.ts +15 -0
  154. package/lib/model/command/project-command/git-clone-project-command.d.ts.map +1 -0
  155. package/lib/model/command/project-command/git-clone-project-command.js +77 -0
  156. package/lib/model/command/project-command/git-simple-project-command.d.ts +16 -0
  157. package/lib/model/command/project-command/git-simple-project-command.d.ts.map +1 -0
  158. package/lib/model/command/project-command/git-simple-project-command.js +70 -0
  159. package/lib/model/command/project-command/git-tag-project-command.d.ts +12 -0
  160. package/lib/model/command/project-command/git-tag-project-command.d.ts.map +1 -0
  161. package/lib/model/command/project-command/git-tag-project-command.js +73 -0
  162. package/lib/model/command/project-command/npm-global-project-command.d.ts +21 -0
  163. package/lib/model/command/project-command/npm-global-project-command.d.ts.map +1 -0
  164. package/lib/model/command/project-command/npm-global-project-command.js +217 -0
  165. package/lib/model/command/project-command/npm-install-project-command.d.ts +9 -0
  166. package/lib/model/command/project-command/npm-install-project-command.d.ts.map +1 -0
  167. package/lib/model/command/project-command/npm-install-project-command.js +66 -0
  168. package/lib/model/command/project-command/project-command.d.ts +15 -0
  169. package/lib/model/command/project-command/project-command.d.ts.map +1 -0
  170. package/lib/model/command/project-command/project-command.js +69 -0
  171. package/lib/package.json +1 -0
  172. package/lib/service/clear-service.d.ts +2 -0
  173. package/lib/service/clear-service.d.ts.map +1 -0
  174. package/lib/service/clear-service.js +24 -0
  175. package/lib/service/file-service.d.ts +7 -0
  176. package/lib/service/file-service.d.ts.map +1 -0
  177. package/lib/service/file-service.js +14 -0
  178. package/lib/service/init-config-service.d.ts +7 -0
  179. package/lib/service/init-config-service.d.ts.map +1 -0
  180. package/lib/service/init-config-service.js +55 -0
  181. package/lib/service/shell-service.d.ts +12 -0
  182. package/lib/service/shell-service.d.ts.map +1 -0
  183. package/lib/service/shell-service.js +64 -0
  184. package/lib/service/terminal-wrapper.d.ts +12 -0
  185. package/lib/service/terminal-wrapper.d.ts.map +1 -0
  186. package/lib/service/terminal-wrapper.js +72 -0
  187. package/lib/util/base-menu.d.ts +12 -0
  188. package/lib/util/base-menu.d.ts.map +1 -0
  189. package/lib/util/base-menu.js +134 -0
  190. package/lib/util/config.d.ts +21 -0
  191. package/lib/util/config.d.ts.map +1 -0
  192. package/lib/util/config.js +50 -0
  193. package/lib/util/constant.d.ts +5 -0
  194. package/lib/util/constant.d.ts.map +1 -0
  195. package/lib/util/constant.js +15 -0
  196. package/lib/util/logger.d.ts +3 -0
  197. package/lib/util/logger.d.ts.map +1 -0
  198. package/lib/util/logger.js +20 -0
  199. package/lib/util/object-util.d.ts +4 -0
  200. package/lib/util/object-util.d.ts.map +1 -0
  201. package/lib/util/object-util.js +15 -0
  202. package/lib/util/sub-menu.d.ts +8 -0
  203. package/lib/util/sub-menu.d.ts.map +1 -0
  204. package/lib/util/sub-menu.js +85 -0
  205. package/lib/util/update-notifier-util.d.ts +4 -0
  206. package/lib/util/update-notifier-util.d.ts.map +1 -0
  207. package/lib/util/update-notifier-util.js +35 -0
  208. package/package.json +216 -156
  209. package/CHANGELOG.md +0 -91
  210. package/package-lock.json +0 -26727
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.ParseAndRouteArgs = void 0;
8
+ var _mshAppBoot = require("@beecode/msh-app-boot");
9
+ var _cliRouter = require("../../controller/yargs-router/cli-router.js");
10
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
19
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
+ var ParseAndRouteArgs = exports.ParseAndRouteArgs = /*#__PURE__*/function (_LifeCycle) {
26
+ function ParseAndRouteArgs() {
27
+ var _this;
28
+ _classCallCheck(this, ParseAndRouteArgs);
29
+ _this = _callSuper(this, ParseAndRouteArgs, [{
30
+ name: 'ArgsToCommand'
31
+ }]);
32
+ _this._argv = process.argv.slice(2);
33
+ return _this;
34
+ }
35
+ _inherits(ParseAndRouteArgs, _LifeCycle);
36
+ return _createClass(ParseAndRouteArgs, [{
37
+ key: "_createFn",
38
+ value: function () {
39
+ var _createFn2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
40
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
41
+ while (1) switch (_context.prev = _context.next) {
42
+ case 0:
43
+ _context.next = 2;
44
+ return (0, _cliRouter.cliRouterFactory)(process.argv.slice(2)).routeArgv();
45
+ case 2:
46
+ case "end":
47
+ return _context.stop();
48
+ }
49
+ }, _callee);
50
+ }));
51
+ function _createFn() {
52
+ return _createFn2.apply(this, arguments);
53
+ }
54
+ return _createFn;
55
+ }()
56
+ }, {
57
+ key: "_destroyFn",
58
+ value: function () {
59
+ var _destroyFn2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
60
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
61
+ while (1) switch (_context2.prev = _context2.next) {
62
+ case 0:
63
+ case "end":
64
+ return _context2.stop();
65
+ }
66
+ }, _callee2);
67
+ }));
68
+ function _destroyFn() {
69
+ return _destroyFn2.apply(this, arguments);
70
+ }
71
+ return _destroyFn;
72
+ }()
73
+ }]);
74
+ }(_mshAppBoot.LifeCycle);
@@ -0,0 +1,5 @@
1
+ import { AppFlow } from '@beecode/msh-app-boot';
2
+ export declare class TuiApp extends AppFlow {
3
+ constructor();
4
+ }
5
+ //# sourceMappingURL=tui-app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tui-app.d.ts","sourceRoot":"","sources":["../../src/app/tui-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,qBAAa,MAAO,SAAQ,OAAO;;CAKlC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.TuiApp = void 0;
8
+ var _mshAppBoot = require("@beecode/msh-app-boot");
9
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
15
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
16
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
17
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
19
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
+ var TuiApp = exports.TuiApp = /*#__PURE__*/function (_AppFlow) {
22
+ function TuiApp() {
23
+ var _this;
24
+ _classCallCheck(this, TuiApp);
25
+ _this = _callSuper(this, TuiApp);
26
+ throw new Error('Not implemented.');
27
+ return _this;
28
+ }
29
+ _inherits(TuiApp, _AppFlow);
30
+ return _createClass(TuiApp);
31
+ }(_mshAppBoot.AppFlow);
@@ -0,0 +1,6 @@
1
+ import { BaseMenu } from '../../util/base-menu.js';
2
+ export declare class MainMenu extends BaseMenu {
3
+ private __execute;
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=main-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-menu.d.ts","sourceRoot":"","sources":["../../../src/controller/cli-menu/main-menu.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAK9C,qBAAa,QAAS,SAAQ,QAAQ;YAGvB,SAAS;;CAkBvB"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MainMenu = void 0;
8
+ var _baseMenu = require("../../util/base-menu.js");
9
+ var _config = require("../../util/config.js");
10
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
11
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
19
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
26
+ // @ts-expect-error
27
+ var MainMenu = exports.MainMenu = /*#__PURE__*/function (_BaseMenu) {
28
+ function MainMenu() {
29
+ _classCallCheck(this, MainMenu);
30
+ var menuItems = [];
31
+ if ((0, _config.config)().cmd.gitEnabled) {
32
+ menuItems.push({
33
+ name: 'Git',
34
+ value: 'Git'
35
+ });
36
+ }
37
+ // if (config().cmd.cleanEnabled) menuItems.push({ name: 'Clean', value: 'Clean' })
38
+ if ((0, _config.config)().cmd.npmEnabled) {
39
+ menuItems.push({
40
+ name: 'NPM',
41
+ value: 'NPM'
42
+ });
43
+ }
44
+ // if (config().cmd.prEnabled) menuItems.push({ name: 'Pull Request', value: 'PR' })
45
+ return _callSuper(this, MainMenu, ['What do you want to do?', menuItems]);
46
+ }
47
+ _inherits(MainMenu, _BaseMenu);
48
+ return _createClass(MainMenu, [{
49
+ key: "__execute",
50
+ value: // eslint-disable-next-line @typescript-eslint/ban-ts-comment
51
+ // @ts-expect-error
52
+ function () {
53
+ var _execute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(command) {
54
+ var clazz;
55
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
56
+ while (1) switch (_context.prev = _context.next) {
57
+ case 0:
58
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
59
+ clazz = require("src/exec/".concat(command));
60
+ _context.next = 3;
61
+ return new clazz().run();
62
+ case 3:
63
+ case "end":
64
+ return _context.stop();
65
+ }
66
+ }, _callee);
67
+ }));
68
+ function __execute(_x) {
69
+ return _execute.apply(this, arguments);
70
+ }
71
+ return __execute;
72
+ }()
73
+ }]);
74
+ }(_baseMenu.BaseMenu);
@@ -0,0 +1,14 @@
1
+ import { Argv } from 'yargs';
2
+ export declare class CliRouter {
3
+ protected readonly _yargs: Argv;
4
+ constructor(argv: string[]);
5
+ routeArgv(): Promise<void>;
6
+ protected _setupUsage(): void;
7
+ protected _helpVersionAlias(): void;
8
+ protected _demandCommands(): void;
9
+ protected _gitCommands(): void;
10
+ protected _npmCommands(): void;
11
+ protected _initCommands(): void;
12
+ }
13
+ export declare const cliRouterFactory: (argv: string[]) => CliRouter;
14
+ //# sourceMappingURL=cli-router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-router.d.ts","sourceRoot":"","sources":["../../../src/controller/yargs-router/cli-router.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAQnC,qBAAa,SAAS;IACrB,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAA;gBAEnB,IAAI,EAAE,MAAM,EAAE;IAIpB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAahC,SAAS,CAAC,WAAW,IAAI,IAAI;IAI7B,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAInC,SAAS,CAAC,eAAe,IAAI,IAAI;IAIjC,SAAS,CAAC,YAAY,IAAI,IAAI;IAqB9B,SAAS,CAAC,YAAY,IAAI,IAAI;IAsB9B,SAAS,CAAC,aAAa,IAAI,IAAI;CAW/B;AAED,eAAO,MAAM,gBAAgB,sBAAyD,SAAqC,CAAA"}
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.cliRouterFactory = exports.CliRouter = void 0;
7
+ var _yargs = _interopRequireDefault(require("yargs"));
8
+ var _gitRouter = require("../../controller/yargs-router/git-router.js");
9
+ var _npmRouter = require("../../controller/yargs-router/npm-router.js");
10
+ var _initConfig = require("../../model/command/init-config.js");
11
+ var _terminalWrapper = require("../../service/terminal-wrapper.js");
12
+ var _config = require("../../util/config.js");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
+ function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
19
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
20
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
21
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
23
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
25
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26
+ var CliRouter = exports.CliRouter = /*#__PURE__*/function () {
27
+ function CliRouter(argv) {
28
+ _classCallCheck(this, CliRouter);
29
+ this._yargs = (0, _yargs["default"])(argv);
30
+ }
31
+ return _createClass(CliRouter, [{
32
+ key: "routeArgv",
33
+ value: function () {
34
+ var _routeArgv = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
35
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
36
+ while (1) switch (_context.prev = _context.next) {
37
+ case 0:
38
+ this._setupUsage();
39
+ this._helpVersionAlias();
40
+ this._gitCommands();
41
+ this._npmCommands();
42
+ this._initCommands();
43
+ this._demandCommands();
44
+ _context.next = 8;
45
+ return this._yargs.parseAsync();
46
+ case 8:
47
+ case "end":
48
+ return _context.stop();
49
+ }
50
+ }, _callee, this);
51
+ }));
52
+ function routeArgv() {
53
+ return _routeArgv.apply(this, arguments);
54
+ }
55
+ return routeArgv;
56
+ }()
57
+ }, {
58
+ key: "_setupUsage",
59
+ value: function _setupUsage() {
60
+ this._yargs.usage("$0 <cmd> [command options]");
61
+ }
62
+ }, {
63
+ key: "_helpVersionAlias",
64
+ value: function _helpVersionAlias() {
65
+ this._yargs.alias('version', 'v').alias('help', 'h').showHelpOnFail(false, 'Specify --help for available options');
66
+ }
67
+ }, {
68
+ key: "_demandCommands",
69
+ value: function _demandCommands() {
70
+ this._yargs.demandCommand(1, 1, 'You need to select one command before moving on').strict();
71
+ }
72
+ }, {
73
+ key: "_gitCommands",
74
+ value: function _gitCommands() {
75
+ if (!(0, _config.config)().cmd.gitEnabled) {
76
+ return;
77
+ }
78
+ this._yargs.command({
79
+ aliases: ['g'],
80
+ builder: function builder(y) {
81
+ return new _gitRouter.GitRouter().commands(y).demandCommand(1, 1).showHelpOnFail(false, 'Specify --help for available options').version(false);
82
+ },
83
+ command: 'git',
84
+ describe: 'execute git command',
85
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
86
+ handler: function () {
87
+ var _handler = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_argv) {
88
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
89
+ while (1) switch (_context2.prev = _context2.next) {
90
+ case 0:
91
+ case "end":
92
+ return _context2.stop();
93
+ }
94
+ }, _callee2);
95
+ }));
96
+ function handler(_x) {
97
+ return _handler.apply(this, arguments);
98
+ }
99
+ return handler;
100
+ }()
101
+ });
102
+ }
103
+ }, {
104
+ key: "_npmCommands",
105
+ value: function _npmCommands() {
106
+ if (!(0, _config.config)().cmd.npmEnabled) {
107
+ return;
108
+ }
109
+ this._yargs.command({
110
+ aliases: ['n'],
111
+ builder: function builder(y) {
112
+ return new _npmRouter.NpmRouter().commands(y).demandCommand(1, 1).showHelpOnFail(false, 'Specify --help for available options').version(false);
113
+ },
114
+ command: 'npm',
115
+ describe: 'execute npm command',
116
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
+ handler: function () {
118
+ var _handler2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_argv) {
119
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
120
+ while (1) switch (_context3.prev = _context3.next) {
121
+ case 0:
122
+ case "end":
123
+ return _context3.stop();
124
+ }
125
+ }, _callee3);
126
+ }));
127
+ function handler(_x2) {
128
+ return _handler2.apply(this, arguments);
129
+ }
130
+ return handler;
131
+ }()
132
+ });
133
+ }
134
+ }, {
135
+ key: "_initCommands",
136
+ value: function _initCommands() {
137
+ this._yargs.command({
138
+ aliases: ['i'],
139
+ command: 'init',
140
+ describe: 'Create init file',
141
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
142
+ handler: function () {
143
+ var _handler3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_argv) {
144
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
145
+ while (1) switch (_context4.prev = _context4.next) {
146
+ case 0:
147
+ _context4.next = 2;
148
+ return (0, _terminalWrapper.terminalWrapperFactory)({
149
+ command: new _initConfig.InitConfig()
150
+ }).execute();
151
+ case 2:
152
+ case "end":
153
+ return _context4.stop();
154
+ }
155
+ }, _callee4);
156
+ }));
157
+ function handler(_x3) {
158
+ return _handler3.apply(this, arguments);
159
+ }
160
+ return handler;
161
+ }()
162
+ });
163
+ }
164
+ }]);
165
+ }();
166
+ var cliRouterFactory = exports.cliRouterFactory = function cliRouterFactory() {
167
+ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
168
+ params[_key] = arguments[_key];
169
+ }
170
+ return _construct(CliRouter, params);
171
+ };
@@ -0,0 +1,10 @@
1
+ import { Argv } from 'yargs';
2
+ export declare class GitRouter {
3
+ protected _clone(yargs: Argv): void;
4
+ protected _fetch(yargs: Argv): void;
5
+ protected _pull(yargs: Argv): void;
6
+ protected _status(yargs: Argv): void;
7
+ protected _tag(yargs: Argv): void;
8
+ commands(yargs: Argv): Argv;
9
+ }
10
+ //# sourceMappingURL=git-router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-router.d.ts","sourceRoot":"","sources":["../../../src/controller/yargs-router/git-router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAQ5B,qBAAa,SAAS;IACrB,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAanC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAanC,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAalC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAapC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAsBjC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;CAS3B"}