@serviceme/devtools-cli 0.1.5 → 0.1.7

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 (3) hide show
  1. package/dist/bridgeServer.js +1589 -335
  2. package/dist/cli.js +2641 -517
  3. package/package.json +3 -3
@@ -1,51 +1,18 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';
3
-
4
- var readline = require('readline');
5
- var child_process = require('child_process');
6
- require('fs/promises');
7
- var path5 = require('path');
8
- var fs6 = require('fs');
9
- require('os');
10
- require('crypto');
11
-
12
- function _interopNamespace(e) {
13
- if (e && e.__esModule) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
24
- });
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
28
- }
29
-
30
- var readline__namespace = /*#__PURE__*/_interopNamespace(readline);
31
- var path5__namespace = /*#__PURE__*/_interopNamespace(path5);
32
- var fs6__namespace = /*#__PURE__*/_interopNamespace(fs6);
33
-
2
+ "use strict";
34
3
  var __create = Object.create;
35
4
  var __defProp = Object.defineProperty;
36
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
37
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
38
7
  var __getProtoOf = Object.getPrototypeOf;
39
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
40
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
41
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
42
- }) : x)(function(x) {
43
- if (typeof require !== "undefined") return require.apply(this, arguments);
44
- throw Error('Dynamic require of "' + x + '" is not supported');
45
- });
46
- var __commonJS = (cb, mod) => function __require2() {
9
+ var __commonJS = (cb, mod) => function __require() {
47
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
48
11
  };
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
49
16
  var __copyProps = (to, from, except, desc) => {
50
17
  if (from && typeof from === "object" || typeof from === "function") {
51
18
  for (let key of __getOwnPropNames(from))
@@ -59,23 +26,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
59
26
  // file that has been converted to a CommonJS file using a Babel-
60
27
  // compatible transform (i.e. "__esModule" has not been set), then set
61
28
  // "default" to the CommonJS "module.exports" for node compatibility.
62
- !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
63
30
  mod
64
31
  ));
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
65
33
 
66
34
  // ../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js
67
35
  var require_esprima = __commonJS({
68
- "../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(exports$1, module) {
36
+ "../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(exports2, module2) {
37
+ "use strict";
69
38
  (function webpackUniversalModuleDefinition(root, factory) {
70
- if (typeof exports$1 === "object" && typeof module === "object")
71
- module.exports = factory();
39
+ if (typeof exports2 === "object" && typeof module2 === "object")
40
+ module2.exports = factory();
72
41
  else if (typeof define === "function" && define.amd)
73
42
  define([], factory);
74
- else if (typeof exports$1 === "object")
75
- exports$1["esprima"] = factory();
43
+ else if (typeof exports2 === "object")
44
+ exports2["esprima"] = factory();
76
45
  else
77
46
  root["esprima"] = factory();
78
- })(exports$1, function() {
47
+ })(exports2, function() {
79
48
  return (
80
49
  /******/
81
50
  (function(modules) {
@@ -83,7 +52,7 @@ var require_esprima = __commonJS({
83
52
  function __webpack_require__(moduleId) {
84
53
  if (installedModules[moduleId])
85
54
  return installedModules[moduleId].exports;
86
- var module2 = installedModules[moduleId] = {
55
+ var module3 = installedModules[moduleId] = {
87
56
  /******/
88
57
  exports: {},
89
58
  /******/
@@ -92,9 +61,9 @@ var require_esprima = __commonJS({
92
61
  loaded: false
93
62
  /******/
94
63
  };
95
- modules[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__);
96
- module2.loaded = true;
97
- return module2.exports;
64
+ modules[moduleId].call(module3.exports, module3, module3.exports, __webpack_require__);
65
+ module3.loaded = true;
66
+ return module3.exports;
98
67
  }
99
68
  __webpack_require__.m = modules;
100
69
  __webpack_require__.c = installedModules;
@@ -103,8 +72,9 @@ var require_esprima = __commonJS({
103
72
  })([
104
73
  /* 0 */
105
74
  /***/
106
- function(module2, exports2, __webpack_require__) {
107
- Object.defineProperty(exports2, "__esModule", { value: true });
75
+ function(module3, exports3, __webpack_require__) {
76
+ "use strict";
77
+ Object.defineProperty(exports3, "__esModule", { value: true });
108
78
  var comment_handler_1 = __webpack_require__(1);
109
79
  var jsx_parser_1 = __webpack_require__(3);
110
80
  var parser_1 = __webpack_require__(8);
@@ -154,19 +124,19 @@ var require_esprima = __commonJS({
154
124
  }
155
125
  return ast;
156
126
  }
157
- exports2.parse = parse;
127
+ exports3.parse = parse;
158
128
  function parseModule(code, options2, delegate) {
159
129
  var parsingOptions = options2 || {};
160
130
  parsingOptions.sourceType = "module";
161
131
  return parse(code, parsingOptions, delegate);
162
132
  }
163
- exports2.parseModule = parseModule;
133
+ exports3.parseModule = parseModule;
164
134
  function parseScript(code, options2, delegate) {
165
135
  var parsingOptions = options2 || {};
166
136
  parsingOptions.sourceType = "script";
167
137
  return parse(code, parsingOptions, delegate);
168
138
  }
169
- exports2.parseScript = parseScript;
139
+ exports3.parseScript = parseScript;
170
140
  function tokenize(code, options2, delegate) {
171
141
  var tokenizer = new tokenizer_1.Tokenizer(code, options2);
172
142
  var tokens;
@@ -190,15 +160,16 @@ var require_esprima = __commonJS({
190
160
  }
191
161
  return tokens;
192
162
  }
193
- exports2.tokenize = tokenize;
163
+ exports3.tokenize = tokenize;
194
164
  var syntax_1 = __webpack_require__(2);
195
- exports2.Syntax = syntax_1.Syntax;
196
- exports2.version = "4.0.1";
165
+ exports3.Syntax = syntax_1.Syntax;
166
+ exports3.version = "4.0.1";
197
167
  },
198
168
  /* 1 */
199
169
  /***/
200
- function(module2, exports2, __webpack_require__) {
201
- Object.defineProperty(exports2, "__esModule", { value: true });
170
+ function(module3, exports3, __webpack_require__) {
171
+ "use strict";
172
+ Object.defineProperty(exports3, "__esModule", { value: true });
202
173
  var syntax_1 = __webpack_require__(2);
203
174
  var CommentHandler = (function() {
204
175
  function CommentHandler2() {
@@ -340,13 +311,14 @@ var require_esprima = __commonJS({
340
311
  };
341
312
  return CommentHandler2;
342
313
  })();
343
- exports2.CommentHandler = CommentHandler;
314
+ exports3.CommentHandler = CommentHandler;
344
315
  },
345
316
  /* 2 */
346
317
  /***/
347
- function(module2, exports2) {
348
- Object.defineProperty(exports2, "__esModule", { value: true });
349
- exports2.Syntax = {
318
+ function(module3, exports3) {
319
+ "use strict";
320
+ Object.defineProperty(exports3, "__esModule", { value: true });
321
+ exports3.Syntax = {
350
322
  AssignmentExpression: "AssignmentExpression",
351
323
  AssignmentPattern: "AssignmentPattern",
352
324
  ArrayExpression: "ArrayExpression",
@@ -417,7 +389,8 @@ var require_esprima = __commonJS({
417
389
  },
418
390
  /* 3 */
419
391
  /***/
420
- function(module2, exports2, __webpack_require__) {
392
+ function(module3, exports3, __webpack_require__) {
393
+ "use strict";
421
394
  var __extends = this && this.__extends || (function() {
422
395
  var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
423
396
  d.__proto__ = b;
@@ -432,7 +405,7 @@ var require_esprima = __commonJS({
432
405
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
433
406
  };
434
407
  })();
435
- Object.defineProperty(exports2, "__esModule", { value: true });
408
+ Object.defineProperty(exports3, "__esModule", { value: true });
436
409
  var character_1 = __webpack_require__(4);
437
410
  var JSXNode = __webpack_require__(5);
438
411
  var jsx_syntax_1 = __webpack_require__(6);
@@ -463,6 +436,9 @@ var require_esprima = __commonJS({
463
436
  var expr = elementName;
464
437
  qualifiedName = getQualifiedElementName(expr.object) + "." + getQualifiedElementName(expr.property);
465
438
  break;
439
+ /* istanbul ignore next */
440
+ default:
441
+ break;
466
442
  }
467
443
  return qualifiedName;
468
444
  }
@@ -550,8 +526,8 @@ var require_esprima = __commonJS({
550
526
  return result;
551
527
  };
552
528
  JSXParser2.prototype.lexJSX = function() {
553
- var cp = this.scanner.source.charCodeAt(this.scanner.index);
554
- if (cp === 60 || cp === 62 || cp === 47 || cp === 58 || cp === 61 || cp === 123 || cp === 125) {
529
+ var cp3 = this.scanner.source.charCodeAt(this.scanner.index);
530
+ if (cp3 === 60 || cp3 === 62 || cp3 === 47 || cp3 === 58 || cp3 === 61 || cp3 === 123 || cp3 === 125) {
555
531
  var value = this.scanner.source[this.scanner.index++];
556
532
  return {
557
533
  type: 7,
@@ -562,7 +538,7 @@ var require_esprima = __commonJS({
562
538
  end: this.scanner.index
563
539
  };
564
540
  }
565
- if (cp === 34 || cp === 39) {
541
+ if (cp3 === 34 || cp3 === 39) {
566
542
  var start = this.scanner.index;
567
543
  var quote = this.scanner.source[this.scanner.index++];
568
544
  var str = "";
@@ -585,7 +561,7 @@ var require_esprima = __commonJS({
585
561
  end: this.scanner.index
586
562
  };
587
563
  }
588
- if (cp === 46) {
564
+ if (cp3 === 46) {
589
565
  var n1 = this.scanner.source.charCodeAt(this.scanner.index + 1);
590
566
  var n2 = this.scanner.source.charCodeAt(this.scanner.index + 2);
591
567
  var value = n1 === 46 && n2 === 46 ? "..." : ".";
@@ -600,7 +576,7 @@ var require_esprima = __commonJS({
600
576
  end: this.scanner.index
601
577
  };
602
578
  }
603
- if (cp === 96) {
579
+ if (cp3 === 96) {
604
580
  return {
605
581
  type: 10,
606
582
  value: "",
@@ -610,7 +586,7 @@ var require_esprima = __commonJS({
610
586
  end: this.scanner.index
611
587
  };
612
588
  }
613
- if (character_1.Character.isIdentifierStart(cp) && cp !== 92) {
589
+ if (character_1.Character.isIdentifierStart(cp3) && cp3 !== 92) {
614
590
  var start = this.scanner.index;
615
591
  ++this.scanner.index;
616
592
  while (!this.scanner.eof()) {
@@ -925,54 +901,56 @@ var require_esprima = __commonJS({
925
901
  };
926
902
  return JSXParser2;
927
903
  })(parser_1.Parser);
928
- exports2.JSXParser = JSXParser;
904
+ exports3.JSXParser = JSXParser;
929
905
  },
930
906
  /* 4 */
931
907
  /***/
932
- function(module2, exports2) {
933
- Object.defineProperty(exports2, "__esModule", { value: true });
908
+ function(module3, exports3) {
909
+ "use strict";
910
+ Object.defineProperty(exports3, "__esModule", { value: true });
934
911
  var Regex = {
935
912
  // Unicode v8.0.0 NonAsciiIdentifierStart:
936
913
  NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
937
914
  // Unicode v8.0.0 NonAsciiIdentifierPart:
938
915
  NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
939
916
  };
940
- exports2.Character = {
917
+ exports3.Character = {
941
918
  /* tslint:disable:no-bitwise */
942
- fromCodePoint: function(cp) {
943
- return cp < 65536 ? String.fromCharCode(cp) : String.fromCharCode(55296 + (cp - 65536 >> 10)) + String.fromCharCode(56320 + (cp - 65536 & 1023));
919
+ fromCodePoint: function(cp3) {
920
+ return cp3 < 65536 ? String.fromCharCode(cp3) : String.fromCharCode(55296 + (cp3 - 65536 >> 10)) + String.fromCharCode(56320 + (cp3 - 65536 & 1023));
944
921
  },
945
922
  // https://tc39.github.io/ecma262/#sec-white-space
946
- isWhiteSpace: function(cp) {
947
- return cp === 32 || cp === 9 || cp === 11 || cp === 12 || cp === 160 || cp >= 5760 && [5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279].indexOf(cp) >= 0;
923
+ isWhiteSpace: function(cp3) {
924
+ return cp3 === 32 || cp3 === 9 || cp3 === 11 || cp3 === 12 || cp3 === 160 || cp3 >= 5760 && [5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279].indexOf(cp3) >= 0;
948
925
  },
949
926
  // https://tc39.github.io/ecma262/#sec-line-terminators
950
- isLineTerminator: function(cp) {
951
- return cp === 10 || cp === 13 || cp === 8232 || cp === 8233;
927
+ isLineTerminator: function(cp3) {
928
+ return cp3 === 10 || cp3 === 13 || cp3 === 8232 || cp3 === 8233;
952
929
  },
953
930
  // https://tc39.github.io/ecma262/#sec-names-and-keywords
954
- isIdentifierStart: function(cp) {
955
- return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierStart.test(exports2.Character.fromCodePoint(cp));
931
+ isIdentifierStart: function(cp3) {
932
+ return cp3 === 36 || cp3 === 95 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 === 92 || cp3 >= 128 && Regex.NonAsciiIdentifierStart.test(exports3.Character.fromCodePoint(cp3));
956
933
  },
957
- isIdentifierPart: function(cp) {
958
- return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp >= 48 && cp <= 57 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierPart.test(exports2.Character.fromCodePoint(cp));
934
+ isIdentifierPart: function(cp3) {
935
+ return cp3 === 36 || cp3 === 95 || cp3 >= 65 && cp3 <= 90 || cp3 >= 97 && cp3 <= 122 || cp3 >= 48 && cp3 <= 57 || cp3 === 92 || cp3 >= 128 && Regex.NonAsciiIdentifierPart.test(exports3.Character.fromCodePoint(cp3));
959
936
  },
960
937
  // https://tc39.github.io/ecma262/#sec-literals-numeric-literals
961
- isDecimalDigit: function(cp) {
962
- return cp >= 48 && cp <= 57;
938
+ isDecimalDigit: function(cp3) {
939
+ return cp3 >= 48 && cp3 <= 57;
963
940
  },
964
- isHexDigit: function(cp) {
965
- return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 70 || cp >= 97 && cp <= 102;
941
+ isHexDigit: function(cp3) {
942
+ return cp3 >= 48 && cp3 <= 57 || cp3 >= 65 && cp3 <= 70 || cp3 >= 97 && cp3 <= 102;
966
943
  },
967
- isOctalDigit: function(cp) {
968
- return cp >= 48 && cp <= 55;
944
+ isOctalDigit: function(cp3) {
945
+ return cp3 >= 48 && cp3 <= 55;
969
946
  }
970
947
  };
971
948
  },
972
949
  /* 5 */
973
950
  /***/
974
- function(module2, exports2, __webpack_require__) {
975
- Object.defineProperty(exports2, "__esModule", { value: true });
951
+ function(module3, exports3, __webpack_require__) {
952
+ "use strict";
953
+ Object.defineProperty(exports3, "__esModule", { value: true });
976
954
  var jsx_syntax_1 = __webpack_require__(6);
977
955
  var JSXClosingElement = /* @__PURE__ */ (function() {
978
956
  function JSXClosingElement2(name) {
@@ -981,7 +959,7 @@ var require_esprima = __commonJS({
981
959
  }
982
960
  return JSXClosingElement2;
983
961
  })();
984
- exports2.JSXClosingElement = JSXClosingElement;
962
+ exports3.JSXClosingElement = JSXClosingElement;
985
963
  var JSXElement = /* @__PURE__ */ (function() {
986
964
  function JSXElement2(openingElement, children, closingElement) {
987
965
  this.type = jsx_syntax_1.JSXSyntax.JSXElement;
@@ -991,14 +969,14 @@ var require_esprima = __commonJS({
991
969
  }
992
970
  return JSXElement2;
993
971
  })();
994
- exports2.JSXElement = JSXElement;
972
+ exports3.JSXElement = JSXElement;
995
973
  var JSXEmptyExpression = /* @__PURE__ */ (function() {
996
974
  function JSXEmptyExpression2() {
997
975
  this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
998
976
  }
999
977
  return JSXEmptyExpression2;
1000
978
  })();
1001
- exports2.JSXEmptyExpression = JSXEmptyExpression;
979
+ exports3.JSXEmptyExpression = JSXEmptyExpression;
1002
980
  var JSXExpressionContainer = /* @__PURE__ */ (function() {
1003
981
  function JSXExpressionContainer2(expression) {
1004
982
  this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
@@ -1006,7 +984,7 @@ var require_esprima = __commonJS({
1006
984
  }
1007
985
  return JSXExpressionContainer2;
1008
986
  })();
1009
- exports2.JSXExpressionContainer = JSXExpressionContainer;
987
+ exports3.JSXExpressionContainer = JSXExpressionContainer;
1010
988
  var JSXIdentifier = /* @__PURE__ */ (function() {
1011
989
  function JSXIdentifier2(name) {
1012
990
  this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
@@ -1014,7 +992,7 @@ var require_esprima = __commonJS({
1014
992
  }
1015
993
  return JSXIdentifier2;
1016
994
  })();
1017
- exports2.JSXIdentifier = JSXIdentifier;
995
+ exports3.JSXIdentifier = JSXIdentifier;
1018
996
  var JSXMemberExpression = /* @__PURE__ */ (function() {
1019
997
  function JSXMemberExpression2(object, property) {
1020
998
  this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
@@ -1023,7 +1001,7 @@ var require_esprima = __commonJS({
1023
1001
  }
1024
1002
  return JSXMemberExpression2;
1025
1003
  })();
1026
- exports2.JSXMemberExpression = JSXMemberExpression;
1004
+ exports3.JSXMemberExpression = JSXMemberExpression;
1027
1005
  var JSXAttribute = /* @__PURE__ */ (function() {
1028
1006
  function JSXAttribute2(name, value) {
1029
1007
  this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
@@ -1032,7 +1010,7 @@ var require_esprima = __commonJS({
1032
1010
  }
1033
1011
  return JSXAttribute2;
1034
1012
  })();
1035
- exports2.JSXAttribute = JSXAttribute;
1013
+ exports3.JSXAttribute = JSXAttribute;
1036
1014
  var JSXNamespacedName = /* @__PURE__ */ (function() {
1037
1015
  function JSXNamespacedName2(namespace, name) {
1038
1016
  this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
@@ -1041,7 +1019,7 @@ var require_esprima = __commonJS({
1041
1019
  }
1042
1020
  return JSXNamespacedName2;
1043
1021
  })();
1044
- exports2.JSXNamespacedName = JSXNamespacedName;
1022
+ exports3.JSXNamespacedName = JSXNamespacedName;
1045
1023
  var JSXOpeningElement = /* @__PURE__ */ (function() {
1046
1024
  function JSXOpeningElement2(name, selfClosing, attributes) {
1047
1025
  this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
@@ -1051,7 +1029,7 @@ var require_esprima = __commonJS({
1051
1029
  }
1052
1030
  return JSXOpeningElement2;
1053
1031
  })();
1054
- exports2.JSXOpeningElement = JSXOpeningElement;
1032
+ exports3.JSXOpeningElement = JSXOpeningElement;
1055
1033
  var JSXSpreadAttribute = /* @__PURE__ */ (function() {
1056
1034
  function JSXSpreadAttribute2(argument) {
1057
1035
  this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
@@ -1059,7 +1037,7 @@ var require_esprima = __commonJS({
1059
1037
  }
1060
1038
  return JSXSpreadAttribute2;
1061
1039
  })();
1062
- exports2.JSXSpreadAttribute = JSXSpreadAttribute;
1040
+ exports3.JSXSpreadAttribute = JSXSpreadAttribute;
1063
1041
  var JSXText = /* @__PURE__ */ (function() {
1064
1042
  function JSXText2(value, raw) {
1065
1043
  this.type = jsx_syntax_1.JSXSyntax.JSXText;
@@ -1068,13 +1046,14 @@ var require_esprima = __commonJS({
1068
1046
  }
1069
1047
  return JSXText2;
1070
1048
  })();
1071
- exports2.JSXText = JSXText;
1049
+ exports3.JSXText = JSXText;
1072
1050
  },
1073
1051
  /* 6 */
1074
1052
  /***/
1075
- function(module2, exports2) {
1076
- Object.defineProperty(exports2, "__esModule", { value: true });
1077
- exports2.JSXSyntax = {
1053
+ function(module3, exports3) {
1054
+ "use strict";
1055
+ Object.defineProperty(exports3, "__esModule", { value: true });
1056
+ exports3.JSXSyntax = {
1078
1057
  JSXAttribute: "JSXAttribute",
1079
1058
  JSXClosingElement: "JSXClosingElement",
1080
1059
  JSXElement: "JSXElement",
@@ -1090,8 +1069,9 @@ var require_esprima = __commonJS({
1090
1069
  },
1091
1070
  /* 7 */
1092
1071
  /***/
1093
- function(module2, exports2, __webpack_require__) {
1094
- Object.defineProperty(exports2, "__esModule", { value: true });
1072
+ function(module3, exports3, __webpack_require__) {
1073
+ "use strict";
1074
+ Object.defineProperty(exports3, "__esModule", { value: true });
1095
1075
  var syntax_1 = __webpack_require__(2);
1096
1076
  var ArrayExpression = /* @__PURE__ */ (function() {
1097
1077
  function ArrayExpression2(elements) {
@@ -1100,7 +1080,7 @@ var require_esprima = __commonJS({
1100
1080
  }
1101
1081
  return ArrayExpression2;
1102
1082
  })();
1103
- exports2.ArrayExpression = ArrayExpression;
1083
+ exports3.ArrayExpression = ArrayExpression;
1104
1084
  var ArrayPattern = /* @__PURE__ */ (function() {
1105
1085
  function ArrayPattern2(elements) {
1106
1086
  this.type = syntax_1.Syntax.ArrayPattern;
@@ -1108,7 +1088,7 @@ var require_esprima = __commonJS({
1108
1088
  }
1109
1089
  return ArrayPattern2;
1110
1090
  })();
1111
- exports2.ArrayPattern = ArrayPattern;
1091
+ exports3.ArrayPattern = ArrayPattern;
1112
1092
  var ArrowFunctionExpression = /* @__PURE__ */ (function() {
1113
1093
  function ArrowFunctionExpression2(params, body, expression) {
1114
1094
  this.type = syntax_1.Syntax.ArrowFunctionExpression;
@@ -1121,7 +1101,7 @@ var require_esprima = __commonJS({
1121
1101
  }
1122
1102
  return ArrowFunctionExpression2;
1123
1103
  })();
1124
- exports2.ArrowFunctionExpression = ArrowFunctionExpression;
1104
+ exports3.ArrowFunctionExpression = ArrowFunctionExpression;
1125
1105
  var AssignmentExpression = /* @__PURE__ */ (function() {
1126
1106
  function AssignmentExpression2(operator, left, right) {
1127
1107
  this.type = syntax_1.Syntax.AssignmentExpression;
@@ -1131,7 +1111,7 @@ var require_esprima = __commonJS({
1131
1111
  }
1132
1112
  return AssignmentExpression2;
1133
1113
  })();
1134
- exports2.AssignmentExpression = AssignmentExpression;
1114
+ exports3.AssignmentExpression = AssignmentExpression;
1135
1115
  var AssignmentPattern = /* @__PURE__ */ (function() {
1136
1116
  function AssignmentPattern2(left, right) {
1137
1117
  this.type = syntax_1.Syntax.AssignmentPattern;
@@ -1140,7 +1120,7 @@ var require_esprima = __commonJS({
1140
1120
  }
1141
1121
  return AssignmentPattern2;
1142
1122
  })();
1143
- exports2.AssignmentPattern = AssignmentPattern;
1123
+ exports3.AssignmentPattern = AssignmentPattern;
1144
1124
  var AsyncArrowFunctionExpression = /* @__PURE__ */ (function() {
1145
1125
  function AsyncArrowFunctionExpression2(params, body, expression) {
1146
1126
  this.type = syntax_1.Syntax.ArrowFunctionExpression;
@@ -1153,7 +1133,7 @@ var require_esprima = __commonJS({
1153
1133
  }
1154
1134
  return AsyncArrowFunctionExpression2;
1155
1135
  })();
1156
- exports2.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression;
1136
+ exports3.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression;
1157
1137
  var AsyncFunctionDeclaration = /* @__PURE__ */ (function() {
1158
1138
  function AsyncFunctionDeclaration2(id, params, body) {
1159
1139
  this.type = syntax_1.Syntax.FunctionDeclaration;
@@ -1166,7 +1146,7 @@ var require_esprima = __commonJS({
1166
1146
  }
1167
1147
  return AsyncFunctionDeclaration2;
1168
1148
  })();
1169
- exports2.AsyncFunctionDeclaration = AsyncFunctionDeclaration;
1149
+ exports3.AsyncFunctionDeclaration = AsyncFunctionDeclaration;
1170
1150
  var AsyncFunctionExpression = /* @__PURE__ */ (function() {
1171
1151
  function AsyncFunctionExpression2(id, params, body) {
1172
1152
  this.type = syntax_1.Syntax.FunctionExpression;
@@ -1179,7 +1159,7 @@ var require_esprima = __commonJS({
1179
1159
  }
1180
1160
  return AsyncFunctionExpression2;
1181
1161
  })();
1182
- exports2.AsyncFunctionExpression = AsyncFunctionExpression;
1162
+ exports3.AsyncFunctionExpression = AsyncFunctionExpression;
1183
1163
  var AwaitExpression = /* @__PURE__ */ (function() {
1184
1164
  function AwaitExpression2(argument) {
1185
1165
  this.type = syntax_1.Syntax.AwaitExpression;
@@ -1187,7 +1167,7 @@ var require_esprima = __commonJS({
1187
1167
  }
1188
1168
  return AwaitExpression2;
1189
1169
  })();
1190
- exports2.AwaitExpression = AwaitExpression;
1170
+ exports3.AwaitExpression = AwaitExpression;
1191
1171
  var BinaryExpression = /* @__PURE__ */ (function() {
1192
1172
  function BinaryExpression2(operator, left, right) {
1193
1173
  var logical = operator === "||" || operator === "&&";
@@ -1198,7 +1178,7 @@ var require_esprima = __commonJS({
1198
1178
  }
1199
1179
  return BinaryExpression2;
1200
1180
  })();
1201
- exports2.BinaryExpression = BinaryExpression;
1181
+ exports3.BinaryExpression = BinaryExpression;
1202
1182
  var BlockStatement = /* @__PURE__ */ (function() {
1203
1183
  function BlockStatement2(body) {
1204
1184
  this.type = syntax_1.Syntax.BlockStatement;
@@ -1206,7 +1186,7 @@ var require_esprima = __commonJS({
1206
1186
  }
1207
1187
  return BlockStatement2;
1208
1188
  })();
1209
- exports2.BlockStatement = BlockStatement;
1189
+ exports3.BlockStatement = BlockStatement;
1210
1190
  var BreakStatement = /* @__PURE__ */ (function() {
1211
1191
  function BreakStatement2(label) {
1212
1192
  this.type = syntax_1.Syntax.BreakStatement;
@@ -1214,7 +1194,7 @@ var require_esprima = __commonJS({
1214
1194
  }
1215
1195
  return BreakStatement2;
1216
1196
  })();
1217
- exports2.BreakStatement = BreakStatement;
1197
+ exports3.BreakStatement = BreakStatement;
1218
1198
  var CallExpression = /* @__PURE__ */ (function() {
1219
1199
  function CallExpression2(callee, args) {
1220
1200
  this.type = syntax_1.Syntax.CallExpression;
@@ -1223,7 +1203,7 @@ var require_esprima = __commonJS({
1223
1203
  }
1224
1204
  return CallExpression2;
1225
1205
  })();
1226
- exports2.CallExpression = CallExpression;
1206
+ exports3.CallExpression = CallExpression;
1227
1207
  var CatchClause = /* @__PURE__ */ (function() {
1228
1208
  function CatchClause2(param, body) {
1229
1209
  this.type = syntax_1.Syntax.CatchClause;
@@ -1232,7 +1212,7 @@ var require_esprima = __commonJS({
1232
1212
  }
1233
1213
  return CatchClause2;
1234
1214
  })();
1235
- exports2.CatchClause = CatchClause;
1215
+ exports3.CatchClause = CatchClause;
1236
1216
  var ClassBody = /* @__PURE__ */ (function() {
1237
1217
  function ClassBody2(body) {
1238
1218
  this.type = syntax_1.Syntax.ClassBody;
@@ -1240,7 +1220,7 @@ var require_esprima = __commonJS({
1240
1220
  }
1241
1221
  return ClassBody2;
1242
1222
  })();
1243
- exports2.ClassBody = ClassBody;
1223
+ exports3.ClassBody = ClassBody;
1244
1224
  var ClassDeclaration = /* @__PURE__ */ (function() {
1245
1225
  function ClassDeclaration2(id, superClass, body) {
1246
1226
  this.type = syntax_1.Syntax.ClassDeclaration;
@@ -1250,7 +1230,7 @@ var require_esprima = __commonJS({
1250
1230
  }
1251
1231
  return ClassDeclaration2;
1252
1232
  })();
1253
- exports2.ClassDeclaration = ClassDeclaration;
1233
+ exports3.ClassDeclaration = ClassDeclaration;
1254
1234
  var ClassExpression = /* @__PURE__ */ (function() {
1255
1235
  function ClassExpression2(id, superClass, body) {
1256
1236
  this.type = syntax_1.Syntax.ClassExpression;
@@ -1260,7 +1240,7 @@ var require_esprima = __commonJS({
1260
1240
  }
1261
1241
  return ClassExpression2;
1262
1242
  })();
1263
- exports2.ClassExpression = ClassExpression;
1243
+ exports3.ClassExpression = ClassExpression;
1264
1244
  var ComputedMemberExpression = /* @__PURE__ */ (function() {
1265
1245
  function ComputedMemberExpression2(object, property) {
1266
1246
  this.type = syntax_1.Syntax.MemberExpression;
@@ -1270,7 +1250,7 @@ var require_esprima = __commonJS({
1270
1250
  }
1271
1251
  return ComputedMemberExpression2;
1272
1252
  })();
1273
- exports2.ComputedMemberExpression = ComputedMemberExpression;
1253
+ exports3.ComputedMemberExpression = ComputedMemberExpression;
1274
1254
  var ConditionalExpression = /* @__PURE__ */ (function() {
1275
1255
  function ConditionalExpression2(test, consequent, alternate) {
1276
1256
  this.type = syntax_1.Syntax.ConditionalExpression;
@@ -1280,7 +1260,7 @@ var require_esprima = __commonJS({
1280
1260
  }
1281
1261
  return ConditionalExpression2;
1282
1262
  })();
1283
- exports2.ConditionalExpression = ConditionalExpression;
1263
+ exports3.ConditionalExpression = ConditionalExpression;
1284
1264
  var ContinueStatement = /* @__PURE__ */ (function() {
1285
1265
  function ContinueStatement2(label) {
1286
1266
  this.type = syntax_1.Syntax.ContinueStatement;
@@ -1288,14 +1268,14 @@ var require_esprima = __commonJS({
1288
1268
  }
1289
1269
  return ContinueStatement2;
1290
1270
  })();
1291
- exports2.ContinueStatement = ContinueStatement;
1271
+ exports3.ContinueStatement = ContinueStatement;
1292
1272
  var DebuggerStatement = /* @__PURE__ */ (function() {
1293
1273
  function DebuggerStatement2() {
1294
1274
  this.type = syntax_1.Syntax.DebuggerStatement;
1295
1275
  }
1296
1276
  return DebuggerStatement2;
1297
1277
  })();
1298
- exports2.DebuggerStatement = DebuggerStatement;
1278
+ exports3.DebuggerStatement = DebuggerStatement;
1299
1279
  var Directive = /* @__PURE__ */ (function() {
1300
1280
  function Directive2(expression, directive) {
1301
1281
  this.type = syntax_1.Syntax.ExpressionStatement;
@@ -1304,7 +1284,7 @@ var require_esprima = __commonJS({
1304
1284
  }
1305
1285
  return Directive2;
1306
1286
  })();
1307
- exports2.Directive = Directive;
1287
+ exports3.Directive = Directive;
1308
1288
  var DoWhileStatement = /* @__PURE__ */ (function() {
1309
1289
  function DoWhileStatement2(body, test) {
1310
1290
  this.type = syntax_1.Syntax.DoWhileStatement;
@@ -1313,14 +1293,14 @@ var require_esprima = __commonJS({
1313
1293
  }
1314
1294
  return DoWhileStatement2;
1315
1295
  })();
1316
- exports2.DoWhileStatement = DoWhileStatement;
1296
+ exports3.DoWhileStatement = DoWhileStatement;
1317
1297
  var EmptyStatement = /* @__PURE__ */ (function() {
1318
1298
  function EmptyStatement2() {
1319
1299
  this.type = syntax_1.Syntax.EmptyStatement;
1320
1300
  }
1321
1301
  return EmptyStatement2;
1322
1302
  })();
1323
- exports2.EmptyStatement = EmptyStatement;
1303
+ exports3.EmptyStatement = EmptyStatement;
1324
1304
  var ExportAllDeclaration = /* @__PURE__ */ (function() {
1325
1305
  function ExportAllDeclaration2(source) {
1326
1306
  this.type = syntax_1.Syntax.ExportAllDeclaration;
@@ -1328,7 +1308,7 @@ var require_esprima = __commonJS({
1328
1308
  }
1329
1309
  return ExportAllDeclaration2;
1330
1310
  })();
1331
- exports2.ExportAllDeclaration = ExportAllDeclaration;
1311
+ exports3.ExportAllDeclaration = ExportAllDeclaration;
1332
1312
  var ExportDefaultDeclaration = /* @__PURE__ */ (function() {
1333
1313
  function ExportDefaultDeclaration2(declaration) {
1334
1314
  this.type = syntax_1.Syntax.ExportDefaultDeclaration;
@@ -1336,7 +1316,7 @@ var require_esprima = __commonJS({
1336
1316
  }
1337
1317
  return ExportDefaultDeclaration2;
1338
1318
  })();
1339
- exports2.ExportDefaultDeclaration = ExportDefaultDeclaration;
1319
+ exports3.ExportDefaultDeclaration = ExportDefaultDeclaration;
1340
1320
  var ExportNamedDeclaration = /* @__PURE__ */ (function() {
1341
1321
  function ExportNamedDeclaration2(declaration, specifiers, source) {
1342
1322
  this.type = syntax_1.Syntax.ExportNamedDeclaration;
@@ -1346,7 +1326,7 @@ var require_esprima = __commonJS({
1346
1326
  }
1347
1327
  return ExportNamedDeclaration2;
1348
1328
  })();
1349
- exports2.ExportNamedDeclaration = ExportNamedDeclaration;
1329
+ exports3.ExportNamedDeclaration = ExportNamedDeclaration;
1350
1330
  var ExportSpecifier = /* @__PURE__ */ (function() {
1351
1331
  function ExportSpecifier2(local, exported) {
1352
1332
  this.type = syntax_1.Syntax.ExportSpecifier;
@@ -1355,7 +1335,7 @@ var require_esprima = __commonJS({
1355
1335
  }
1356
1336
  return ExportSpecifier2;
1357
1337
  })();
1358
- exports2.ExportSpecifier = ExportSpecifier;
1338
+ exports3.ExportSpecifier = ExportSpecifier;
1359
1339
  var ExpressionStatement = /* @__PURE__ */ (function() {
1360
1340
  function ExpressionStatement2(expression) {
1361
1341
  this.type = syntax_1.Syntax.ExpressionStatement;
@@ -1363,7 +1343,7 @@ var require_esprima = __commonJS({
1363
1343
  }
1364
1344
  return ExpressionStatement2;
1365
1345
  })();
1366
- exports2.ExpressionStatement = ExpressionStatement;
1346
+ exports3.ExpressionStatement = ExpressionStatement;
1367
1347
  var ForInStatement = /* @__PURE__ */ (function() {
1368
1348
  function ForInStatement2(left, right, body) {
1369
1349
  this.type = syntax_1.Syntax.ForInStatement;
@@ -1374,7 +1354,7 @@ var require_esprima = __commonJS({
1374
1354
  }
1375
1355
  return ForInStatement2;
1376
1356
  })();
1377
- exports2.ForInStatement = ForInStatement;
1357
+ exports3.ForInStatement = ForInStatement;
1378
1358
  var ForOfStatement = /* @__PURE__ */ (function() {
1379
1359
  function ForOfStatement2(left, right, body) {
1380
1360
  this.type = syntax_1.Syntax.ForOfStatement;
@@ -1384,7 +1364,7 @@ var require_esprima = __commonJS({
1384
1364
  }
1385
1365
  return ForOfStatement2;
1386
1366
  })();
1387
- exports2.ForOfStatement = ForOfStatement;
1367
+ exports3.ForOfStatement = ForOfStatement;
1388
1368
  var ForStatement = /* @__PURE__ */ (function() {
1389
1369
  function ForStatement2(init, test, update, body) {
1390
1370
  this.type = syntax_1.Syntax.ForStatement;
@@ -1395,7 +1375,7 @@ var require_esprima = __commonJS({
1395
1375
  }
1396
1376
  return ForStatement2;
1397
1377
  })();
1398
- exports2.ForStatement = ForStatement;
1378
+ exports3.ForStatement = ForStatement;
1399
1379
  var FunctionDeclaration = /* @__PURE__ */ (function() {
1400
1380
  function FunctionDeclaration2(id, params, body, generator) {
1401
1381
  this.type = syntax_1.Syntax.FunctionDeclaration;
@@ -1408,7 +1388,7 @@ var require_esprima = __commonJS({
1408
1388
  }
1409
1389
  return FunctionDeclaration2;
1410
1390
  })();
1411
- exports2.FunctionDeclaration = FunctionDeclaration;
1391
+ exports3.FunctionDeclaration = FunctionDeclaration;
1412
1392
  var FunctionExpression = /* @__PURE__ */ (function() {
1413
1393
  function FunctionExpression2(id, params, body, generator) {
1414
1394
  this.type = syntax_1.Syntax.FunctionExpression;
@@ -1421,7 +1401,7 @@ var require_esprima = __commonJS({
1421
1401
  }
1422
1402
  return FunctionExpression2;
1423
1403
  })();
1424
- exports2.FunctionExpression = FunctionExpression;
1404
+ exports3.FunctionExpression = FunctionExpression;
1425
1405
  var Identifier = /* @__PURE__ */ (function() {
1426
1406
  function Identifier2(name) {
1427
1407
  this.type = syntax_1.Syntax.Identifier;
@@ -1429,7 +1409,7 @@ var require_esprima = __commonJS({
1429
1409
  }
1430
1410
  return Identifier2;
1431
1411
  })();
1432
- exports2.Identifier = Identifier;
1412
+ exports3.Identifier = Identifier;
1433
1413
  var IfStatement = /* @__PURE__ */ (function() {
1434
1414
  function IfStatement2(test, consequent, alternate) {
1435
1415
  this.type = syntax_1.Syntax.IfStatement;
@@ -1439,7 +1419,7 @@ var require_esprima = __commonJS({
1439
1419
  }
1440
1420
  return IfStatement2;
1441
1421
  })();
1442
- exports2.IfStatement = IfStatement;
1422
+ exports3.IfStatement = IfStatement;
1443
1423
  var ImportDeclaration = /* @__PURE__ */ (function() {
1444
1424
  function ImportDeclaration2(specifiers, source) {
1445
1425
  this.type = syntax_1.Syntax.ImportDeclaration;
@@ -1448,7 +1428,7 @@ var require_esprima = __commonJS({
1448
1428
  }
1449
1429
  return ImportDeclaration2;
1450
1430
  })();
1451
- exports2.ImportDeclaration = ImportDeclaration;
1431
+ exports3.ImportDeclaration = ImportDeclaration;
1452
1432
  var ImportDefaultSpecifier = /* @__PURE__ */ (function() {
1453
1433
  function ImportDefaultSpecifier2(local) {
1454
1434
  this.type = syntax_1.Syntax.ImportDefaultSpecifier;
@@ -1456,7 +1436,7 @@ var require_esprima = __commonJS({
1456
1436
  }
1457
1437
  return ImportDefaultSpecifier2;
1458
1438
  })();
1459
- exports2.ImportDefaultSpecifier = ImportDefaultSpecifier;
1439
+ exports3.ImportDefaultSpecifier = ImportDefaultSpecifier;
1460
1440
  var ImportNamespaceSpecifier = /* @__PURE__ */ (function() {
1461
1441
  function ImportNamespaceSpecifier2(local) {
1462
1442
  this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
@@ -1464,7 +1444,7 @@ var require_esprima = __commonJS({
1464
1444
  }
1465
1445
  return ImportNamespaceSpecifier2;
1466
1446
  })();
1467
- exports2.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
1447
+ exports3.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
1468
1448
  var ImportSpecifier = /* @__PURE__ */ (function() {
1469
1449
  function ImportSpecifier2(local, imported) {
1470
1450
  this.type = syntax_1.Syntax.ImportSpecifier;
@@ -1473,7 +1453,7 @@ var require_esprima = __commonJS({
1473
1453
  }
1474
1454
  return ImportSpecifier2;
1475
1455
  })();
1476
- exports2.ImportSpecifier = ImportSpecifier;
1456
+ exports3.ImportSpecifier = ImportSpecifier;
1477
1457
  var LabeledStatement = /* @__PURE__ */ (function() {
1478
1458
  function LabeledStatement2(label, body) {
1479
1459
  this.type = syntax_1.Syntax.LabeledStatement;
@@ -1482,7 +1462,7 @@ var require_esprima = __commonJS({
1482
1462
  }
1483
1463
  return LabeledStatement2;
1484
1464
  })();
1485
- exports2.LabeledStatement = LabeledStatement;
1465
+ exports3.LabeledStatement = LabeledStatement;
1486
1466
  var Literal = /* @__PURE__ */ (function() {
1487
1467
  function Literal2(value, raw) {
1488
1468
  this.type = syntax_1.Syntax.Literal;
@@ -1491,7 +1471,7 @@ var require_esprima = __commonJS({
1491
1471
  }
1492
1472
  return Literal2;
1493
1473
  })();
1494
- exports2.Literal = Literal;
1474
+ exports3.Literal = Literal;
1495
1475
  var MetaProperty = /* @__PURE__ */ (function() {
1496
1476
  function MetaProperty2(meta, property) {
1497
1477
  this.type = syntax_1.Syntax.MetaProperty;
@@ -1500,7 +1480,7 @@ var require_esprima = __commonJS({
1500
1480
  }
1501
1481
  return MetaProperty2;
1502
1482
  })();
1503
- exports2.MetaProperty = MetaProperty;
1483
+ exports3.MetaProperty = MetaProperty;
1504
1484
  var MethodDefinition = /* @__PURE__ */ (function() {
1505
1485
  function MethodDefinition2(key, computed, value, kind, isStatic) {
1506
1486
  this.type = syntax_1.Syntax.MethodDefinition;
@@ -1512,7 +1492,7 @@ var require_esprima = __commonJS({
1512
1492
  }
1513
1493
  return MethodDefinition2;
1514
1494
  })();
1515
- exports2.MethodDefinition = MethodDefinition;
1495
+ exports3.MethodDefinition = MethodDefinition;
1516
1496
  var Module = /* @__PURE__ */ (function() {
1517
1497
  function Module2(body) {
1518
1498
  this.type = syntax_1.Syntax.Program;
@@ -1521,7 +1501,7 @@ var require_esprima = __commonJS({
1521
1501
  }
1522
1502
  return Module2;
1523
1503
  })();
1524
- exports2.Module = Module;
1504
+ exports3.Module = Module;
1525
1505
  var NewExpression = /* @__PURE__ */ (function() {
1526
1506
  function NewExpression2(callee, args) {
1527
1507
  this.type = syntax_1.Syntax.NewExpression;
@@ -1530,7 +1510,7 @@ var require_esprima = __commonJS({
1530
1510
  }
1531
1511
  return NewExpression2;
1532
1512
  })();
1533
- exports2.NewExpression = NewExpression;
1513
+ exports3.NewExpression = NewExpression;
1534
1514
  var ObjectExpression = /* @__PURE__ */ (function() {
1535
1515
  function ObjectExpression2(properties) {
1536
1516
  this.type = syntax_1.Syntax.ObjectExpression;
@@ -1538,7 +1518,7 @@ var require_esprima = __commonJS({
1538
1518
  }
1539
1519
  return ObjectExpression2;
1540
1520
  })();
1541
- exports2.ObjectExpression = ObjectExpression;
1521
+ exports3.ObjectExpression = ObjectExpression;
1542
1522
  var ObjectPattern = /* @__PURE__ */ (function() {
1543
1523
  function ObjectPattern2(properties) {
1544
1524
  this.type = syntax_1.Syntax.ObjectPattern;
@@ -1546,7 +1526,7 @@ var require_esprima = __commonJS({
1546
1526
  }
1547
1527
  return ObjectPattern2;
1548
1528
  })();
1549
- exports2.ObjectPattern = ObjectPattern;
1529
+ exports3.ObjectPattern = ObjectPattern;
1550
1530
  var Property = /* @__PURE__ */ (function() {
1551
1531
  function Property2(kind, key, computed, value, method, shorthand) {
1552
1532
  this.type = syntax_1.Syntax.Property;
@@ -1559,7 +1539,7 @@ var require_esprima = __commonJS({
1559
1539
  }
1560
1540
  return Property2;
1561
1541
  })();
1562
- exports2.Property = Property;
1542
+ exports3.Property = Property;
1563
1543
  var RegexLiteral = /* @__PURE__ */ (function() {
1564
1544
  function RegexLiteral2(value, raw, pattern, flags) {
1565
1545
  this.type = syntax_1.Syntax.Literal;
@@ -1569,7 +1549,7 @@ var require_esprima = __commonJS({
1569
1549
  }
1570
1550
  return RegexLiteral2;
1571
1551
  })();
1572
- exports2.RegexLiteral = RegexLiteral;
1552
+ exports3.RegexLiteral = RegexLiteral;
1573
1553
  var RestElement = /* @__PURE__ */ (function() {
1574
1554
  function RestElement2(argument) {
1575
1555
  this.type = syntax_1.Syntax.RestElement;
@@ -1577,7 +1557,7 @@ var require_esprima = __commonJS({
1577
1557
  }
1578
1558
  return RestElement2;
1579
1559
  })();
1580
- exports2.RestElement = RestElement;
1560
+ exports3.RestElement = RestElement;
1581
1561
  var ReturnStatement = /* @__PURE__ */ (function() {
1582
1562
  function ReturnStatement2(argument) {
1583
1563
  this.type = syntax_1.Syntax.ReturnStatement;
@@ -1585,7 +1565,7 @@ var require_esprima = __commonJS({
1585
1565
  }
1586
1566
  return ReturnStatement2;
1587
1567
  })();
1588
- exports2.ReturnStatement = ReturnStatement;
1568
+ exports3.ReturnStatement = ReturnStatement;
1589
1569
  var Script = /* @__PURE__ */ (function() {
1590
1570
  function Script2(body) {
1591
1571
  this.type = syntax_1.Syntax.Program;
@@ -1594,7 +1574,7 @@ var require_esprima = __commonJS({
1594
1574
  }
1595
1575
  return Script2;
1596
1576
  })();
1597
- exports2.Script = Script;
1577
+ exports3.Script = Script;
1598
1578
  var SequenceExpression = /* @__PURE__ */ (function() {
1599
1579
  function SequenceExpression2(expressions) {
1600
1580
  this.type = syntax_1.Syntax.SequenceExpression;
@@ -1602,7 +1582,7 @@ var require_esprima = __commonJS({
1602
1582
  }
1603
1583
  return SequenceExpression2;
1604
1584
  })();
1605
- exports2.SequenceExpression = SequenceExpression;
1585
+ exports3.SequenceExpression = SequenceExpression;
1606
1586
  var SpreadElement = /* @__PURE__ */ (function() {
1607
1587
  function SpreadElement2(argument) {
1608
1588
  this.type = syntax_1.Syntax.SpreadElement;
@@ -1610,7 +1590,7 @@ var require_esprima = __commonJS({
1610
1590
  }
1611
1591
  return SpreadElement2;
1612
1592
  })();
1613
- exports2.SpreadElement = SpreadElement;
1593
+ exports3.SpreadElement = SpreadElement;
1614
1594
  var StaticMemberExpression = /* @__PURE__ */ (function() {
1615
1595
  function StaticMemberExpression2(object, property) {
1616
1596
  this.type = syntax_1.Syntax.MemberExpression;
@@ -1620,14 +1600,14 @@ var require_esprima = __commonJS({
1620
1600
  }
1621
1601
  return StaticMemberExpression2;
1622
1602
  })();
1623
- exports2.StaticMemberExpression = StaticMemberExpression;
1603
+ exports3.StaticMemberExpression = StaticMemberExpression;
1624
1604
  var Super = /* @__PURE__ */ (function() {
1625
1605
  function Super2() {
1626
1606
  this.type = syntax_1.Syntax.Super;
1627
1607
  }
1628
1608
  return Super2;
1629
1609
  })();
1630
- exports2.Super = Super;
1610
+ exports3.Super = Super;
1631
1611
  var SwitchCase = /* @__PURE__ */ (function() {
1632
1612
  function SwitchCase2(test, consequent) {
1633
1613
  this.type = syntax_1.Syntax.SwitchCase;
@@ -1636,7 +1616,7 @@ var require_esprima = __commonJS({
1636
1616
  }
1637
1617
  return SwitchCase2;
1638
1618
  })();
1639
- exports2.SwitchCase = SwitchCase;
1619
+ exports3.SwitchCase = SwitchCase;
1640
1620
  var SwitchStatement = /* @__PURE__ */ (function() {
1641
1621
  function SwitchStatement2(discriminant, cases) {
1642
1622
  this.type = syntax_1.Syntax.SwitchStatement;
@@ -1645,7 +1625,7 @@ var require_esprima = __commonJS({
1645
1625
  }
1646
1626
  return SwitchStatement2;
1647
1627
  })();
1648
- exports2.SwitchStatement = SwitchStatement;
1628
+ exports3.SwitchStatement = SwitchStatement;
1649
1629
  var TaggedTemplateExpression = /* @__PURE__ */ (function() {
1650
1630
  function TaggedTemplateExpression2(tag, quasi) {
1651
1631
  this.type = syntax_1.Syntax.TaggedTemplateExpression;
@@ -1654,7 +1634,7 @@ var require_esprima = __commonJS({
1654
1634
  }
1655
1635
  return TaggedTemplateExpression2;
1656
1636
  })();
1657
- exports2.TaggedTemplateExpression = TaggedTemplateExpression;
1637
+ exports3.TaggedTemplateExpression = TaggedTemplateExpression;
1658
1638
  var TemplateElement = /* @__PURE__ */ (function() {
1659
1639
  function TemplateElement2(value, tail) {
1660
1640
  this.type = syntax_1.Syntax.TemplateElement;
@@ -1663,7 +1643,7 @@ var require_esprima = __commonJS({
1663
1643
  }
1664
1644
  return TemplateElement2;
1665
1645
  })();
1666
- exports2.TemplateElement = TemplateElement;
1646
+ exports3.TemplateElement = TemplateElement;
1667
1647
  var TemplateLiteral = /* @__PURE__ */ (function() {
1668
1648
  function TemplateLiteral2(quasis, expressions) {
1669
1649
  this.type = syntax_1.Syntax.TemplateLiteral;
@@ -1672,14 +1652,14 @@ var require_esprima = __commonJS({
1672
1652
  }
1673
1653
  return TemplateLiteral2;
1674
1654
  })();
1675
- exports2.TemplateLiteral = TemplateLiteral;
1655
+ exports3.TemplateLiteral = TemplateLiteral;
1676
1656
  var ThisExpression = /* @__PURE__ */ (function() {
1677
1657
  function ThisExpression2() {
1678
1658
  this.type = syntax_1.Syntax.ThisExpression;
1679
1659
  }
1680
1660
  return ThisExpression2;
1681
1661
  })();
1682
- exports2.ThisExpression = ThisExpression;
1662
+ exports3.ThisExpression = ThisExpression;
1683
1663
  var ThrowStatement = /* @__PURE__ */ (function() {
1684
1664
  function ThrowStatement2(argument) {
1685
1665
  this.type = syntax_1.Syntax.ThrowStatement;
@@ -1687,7 +1667,7 @@ var require_esprima = __commonJS({
1687
1667
  }
1688
1668
  return ThrowStatement2;
1689
1669
  })();
1690
- exports2.ThrowStatement = ThrowStatement;
1670
+ exports3.ThrowStatement = ThrowStatement;
1691
1671
  var TryStatement = /* @__PURE__ */ (function() {
1692
1672
  function TryStatement2(block, handler, finalizer) {
1693
1673
  this.type = syntax_1.Syntax.TryStatement;
@@ -1697,7 +1677,7 @@ var require_esprima = __commonJS({
1697
1677
  }
1698
1678
  return TryStatement2;
1699
1679
  })();
1700
- exports2.TryStatement = TryStatement;
1680
+ exports3.TryStatement = TryStatement;
1701
1681
  var UnaryExpression = /* @__PURE__ */ (function() {
1702
1682
  function UnaryExpression2(operator, argument) {
1703
1683
  this.type = syntax_1.Syntax.UnaryExpression;
@@ -1707,7 +1687,7 @@ var require_esprima = __commonJS({
1707
1687
  }
1708
1688
  return UnaryExpression2;
1709
1689
  })();
1710
- exports2.UnaryExpression = UnaryExpression;
1690
+ exports3.UnaryExpression = UnaryExpression;
1711
1691
  var UpdateExpression = /* @__PURE__ */ (function() {
1712
1692
  function UpdateExpression2(operator, argument, prefix) {
1713
1693
  this.type = syntax_1.Syntax.UpdateExpression;
@@ -1717,7 +1697,7 @@ var require_esprima = __commonJS({
1717
1697
  }
1718
1698
  return UpdateExpression2;
1719
1699
  })();
1720
- exports2.UpdateExpression = UpdateExpression;
1700
+ exports3.UpdateExpression = UpdateExpression;
1721
1701
  var VariableDeclaration = /* @__PURE__ */ (function() {
1722
1702
  function VariableDeclaration2(declarations, kind) {
1723
1703
  this.type = syntax_1.Syntax.VariableDeclaration;
@@ -1726,7 +1706,7 @@ var require_esprima = __commonJS({
1726
1706
  }
1727
1707
  return VariableDeclaration2;
1728
1708
  })();
1729
- exports2.VariableDeclaration = VariableDeclaration;
1709
+ exports3.VariableDeclaration = VariableDeclaration;
1730
1710
  var VariableDeclarator = /* @__PURE__ */ (function() {
1731
1711
  function VariableDeclarator2(id, init) {
1732
1712
  this.type = syntax_1.Syntax.VariableDeclarator;
@@ -1735,7 +1715,7 @@ var require_esprima = __commonJS({
1735
1715
  }
1736
1716
  return VariableDeclarator2;
1737
1717
  })();
1738
- exports2.VariableDeclarator = VariableDeclarator;
1718
+ exports3.VariableDeclarator = VariableDeclarator;
1739
1719
  var WhileStatement = /* @__PURE__ */ (function() {
1740
1720
  function WhileStatement2(test, body) {
1741
1721
  this.type = syntax_1.Syntax.WhileStatement;
@@ -1744,7 +1724,7 @@ var require_esprima = __commonJS({
1744
1724
  }
1745
1725
  return WhileStatement2;
1746
1726
  })();
1747
- exports2.WhileStatement = WhileStatement;
1727
+ exports3.WhileStatement = WhileStatement;
1748
1728
  var WithStatement = /* @__PURE__ */ (function() {
1749
1729
  function WithStatement2(object, body) {
1750
1730
  this.type = syntax_1.Syntax.WithStatement;
@@ -1753,7 +1733,7 @@ var require_esprima = __commonJS({
1753
1733
  }
1754
1734
  return WithStatement2;
1755
1735
  })();
1756
- exports2.WithStatement = WithStatement;
1736
+ exports3.WithStatement = WithStatement;
1757
1737
  var YieldExpression = /* @__PURE__ */ (function() {
1758
1738
  function YieldExpression2(argument, delegate) {
1759
1739
  this.type = syntax_1.Syntax.YieldExpression;
@@ -1762,12 +1742,13 @@ var require_esprima = __commonJS({
1762
1742
  }
1763
1743
  return YieldExpression2;
1764
1744
  })();
1765
- exports2.YieldExpression = YieldExpression;
1745
+ exports3.YieldExpression = YieldExpression;
1766
1746
  },
1767
1747
  /* 8 */
1768
1748
  /***/
1769
- function(module2, exports2, __webpack_require__) {
1770
- Object.defineProperty(exports2, "__esModule", { value: true });
1749
+ function(module3, exports3, __webpack_require__) {
1750
+ "use strict";
1751
+ Object.defineProperty(exports3, "__esModule", { value: true });
1771
1752
  var assert_1 = __webpack_require__(9);
1772
1753
  var error_handler_1 = __webpack_require__(10);
1773
1754
  var messages_1 = __webpack_require__(11);
@@ -1868,6 +1849,10 @@ var require_esprima = __commonJS({
1868
1849
  };
1869
1850
  }
1870
1851
  Parser2.prototype.throwError = function(messageFormat) {
1852
+ var values = [];
1853
+ for (var _i = 1; _i < arguments.length; _i++) {
1854
+ values[_i - 1] = arguments[_i];
1855
+ }
1871
1856
  var args = Array.prototype.slice.call(arguments, 1);
1872
1857
  var msg = messageFormat.replace(/%(\d)/g, function(whole, idx) {
1873
1858
  assert_1.assert(idx < args.length, "Message reference must be in range");
@@ -1879,6 +1864,10 @@ var require_esprima = __commonJS({
1879
1864
  throw this.errorHandler.createError(index, line, column, msg);
1880
1865
  };
1881
1866
  Parser2.prototype.tolerateError = function(messageFormat) {
1867
+ var values = [];
1868
+ for (var _i = 1; _i < arguments.length; _i++) {
1869
+ values[_i - 1] = arguments[_i];
1870
+ }
1882
1871
  var args = Array.prototype.slice.call(arguments, 1);
1883
1872
  var msg = messageFormat.replace(/%(\d)/g, function(whole, idx) {
1884
1873
  assert_1.assert(idx < args.length, "Message reference must be in range");
@@ -2516,6 +2505,8 @@ var require_esprima = __commonJS({
2516
2505
  delete expr.operator;
2517
2506
  this.reinterpretExpressionAsPattern(expr.left);
2518
2507
  break;
2508
+ default:
2509
+ break;
2519
2510
  }
2520
2511
  };
2521
2512
  Parser2.prototype.parseGroupExpression = function() {
@@ -2977,6 +2968,8 @@ var require_esprima = __commonJS({
2977
2968
  this.checkPatternParam(options2, param.properties[i].value);
2978
2969
  }
2979
2970
  break;
2971
+ default:
2972
+ break;
2980
2973
  }
2981
2974
  options2.simple = options2.simple && param instanceof Node.Identifier;
2982
2975
  };
@@ -4177,6 +4170,8 @@ var require_esprima = __commonJS({
4177
4170
  return true;
4178
4171
  case 7:
4179
4172
  return token.value === "[";
4173
+ default:
4174
+ break;
4180
4175
  }
4181
4176
  return false;
4182
4177
  };
@@ -4229,6 +4224,8 @@ var require_esprima = __commonJS({
4229
4224
  case 4:
4230
4225
  start = value === "class" || value === "delete" || value === "function" || value === "let" || value === "new" || value === "super" || value === "this" || value === "typeof" || value === "void" || value === "yield";
4231
4226
  break;
4227
+ default:
4228
+ break;
4232
4229
  }
4233
4230
  return start;
4234
4231
  };
@@ -4600,23 +4597,25 @@ var require_esprima = __commonJS({
4600
4597
  };
4601
4598
  return Parser2;
4602
4599
  })();
4603
- exports2.Parser = Parser;
4600
+ exports3.Parser = Parser;
4604
4601
  },
4605
4602
  /* 9 */
4606
4603
  /***/
4607
- function(module2, exports2) {
4608
- Object.defineProperty(exports2, "__esModule", { value: true });
4604
+ function(module3, exports3) {
4605
+ "use strict";
4606
+ Object.defineProperty(exports3, "__esModule", { value: true });
4609
4607
  function assert(condition, message) {
4610
4608
  if (!condition) {
4611
4609
  throw new Error("ASSERT: " + message);
4612
4610
  }
4613
4611
  }
4614
- exports2.assert = assert;
4612
+ exports3.assert = assert;
4615
4613
  },
4616
4614
  /* 10 */
4617
4615
  /***/
4618
- function(module2, exports2) {
4619
- Object.defineProperty(exports2, "__esModule", { value: true });
4616
+ function(module3, exports3) {
4617
+ "use strict";
4618
+ Object.defineProperty(exports3, "__esModule", { value: true });
4620
4619
  var ErrorHandler = (function() {
4621
4620
  function ErrorHandler2() {
4622
4621
  this.errors = [];
@@ -4665,13 +4664,14 @@ var require_esprima = __commonJS({
4665
4664
  };
4666
4665
  return ErrorHandler2;
4667
4666
  })();
4668
- exports2.ErrorHandler = ErrorHandler;
4667
+ exports3.ErrorHandler = ErrorHandler;
4669
4668
  },
4670
4669
  /* 11 */
4671
4670
  /***/
4672
- function(module2, exports2) {
4673
- Object.defineProperty(exports2, "__esModule", { value: true });
4674
- exports2.Messages = {
4671
+ function(module3, exports3) {
4672
+ "use strict";
4673
+ Object.defineProperty(exports3, "__esModule", { value: true });
4674
+ exports3.Messages = {
4675
4675
  BadGetterArity: "Getter must not have any formal parameters",
4676
4676
  BadSetterArity: "Setter must have exactly one formal parameter",
4677
4677
  BadSetterRestParameter: "Setter function argument must not be a rest parameter",
@@ -4734,8 +4734,9 @@ var require_esprima = __commonJS({
4734
4734
  },
4735
4735
  /* 12 */
4736
4736
  /***/
4737
- function(module2, exports2, __webpack_require__) {
4738
- Object.defineProperty(exports2, "__esModule", { value: true });
4737
+ function(module3, exports3, __webpack_require__) {
4738
+ "use strict";
4739
+ Object.defineProperty(exports3, "__esModule", { value: true });
4739
4740
  var assert_1 = __webpack_require__(9);
4740
4741
  var character_1 = __webpack_require__(4);
4741
4742
  var messages_1 = __webpack_require__(11);
@@ -5015,15 +5016,15 @@ var require_esprima = __commonJS({
5015
5016
  }
5016
5017
  };
5017
5018
  Scanner2.prototype.codePointAt = function(i) {
5018
- var cp = this.source.charCodeAt(i);
5019
- if (cp >= 55296 && cp <= 56319) {
5019
+ var cp3 = this.source.charCodeAt(i);
5020
+ if (cp3 >= 55296 && cp3 <= 56319) {
5020
5021
  var second = this.source.charCodeAt(i + 1);
5021
5022
  if (second >= 56320 && second <= 57343) {
5022
- var first = cp;
5023
- cp = (first - 55296) * 1024 + second - 56320 + 65536;
5023
+ var first = cp3;
5024
+ cp3 = (first - 55296) * 1024 + second - 56320 + 65536;
5024
5025
  }
5025
5026
  }
5026
- return cp;
5027
+ return cp3;
5027
5028
  };
5028
5029
  Scanner2.prototype.scanHexEscape = function(prefix) {
5029
5030
  var len = prefix === "u" ? 4 : 2;
@@ -5075,11 +5076,11 @@ var require_esprima = __commonJS({
5075
5076
  return this.source.slice(start, this.index);
5076
5077
  };
5077
5078
  Scanner2.prototype.getComplexIdentifier = function() {
5078
- var cp = this.codePointAt(this.index);
5079
- var id = character_1.Character.fromCodePoint(cp);
5079
+ var cp3 = this.codePointAt(this.index);
5080
+ var id = character_1.Character.fromCodePoint(cp3);
5080
5081
  this.index += id.length;
5081
5082
  var ch;
5082
- if (cp === 92) {
5083
+ if (cp3 === 92) {
5083
5084
  if (this.source.charCodeAt(this.index) !== 117) {
5084
5085
  this.throwUnexpectedToken();
5085
5086
  }
@@ -5096,14 +5097,14 @@ var require_esprima = __commonJS({
5096
5097
  id = ch;
5097
5098
  }
5098
5099
  while (!this.eof()) {
5099
- cp = this.codePointAt(this.index);
5100
- if (!character_1.Character.isIdentifierPart(cp)) {
5100
+ cp3 = this.codePointAt(this.index);
5101
+ if (!character_1.Character.isIdentifierPart(cp3)) {
5101
5102
  break;
5102
5103
  }
5103
- ch = character_1.Character.fromCodePoint(cp);
5104
+ ch = character_1.Character.fromCodePoint(cp3);
5104
5105
  id += ch;
5105
5106
  this.index += ch.length;
5106
- if (cp === 92) {
5107
+ if (cp3 === 92) {
5107
5108
  id = id.substr(0, id.length - 1);
5108
5109
  if (this.source.charCodeAt(this.index) !== 117) {
5109
5110
  this.throwUnexpectedToken();
@@ -5729,29 +5730,29 @@ var require_esprima = __commonJS({
5729
5730
  end: this.index
5730
5731
  };
5731
5732
  }
5732
- var cp = this.source.charCodeAt(this.index);
5733
- if (character_1.Character.isIdentifierStart(cp)) {
5733
+ var cp3 = this.source.charCodeAt(this.index);
5734
+ if (character_1.Character.isIdentifierStart(cp3)) {
5734
5735
  return this.scanIdentifier();
5735
5736
  }
5736
- if (cp === 40 || cp === 41 || cp === 59) {
5737
+ if (cp3 === 40 || cp3 === 41 || cp3 === 59) {
5737
5738
  return this.scanPunctuator();
5738
5739
  }
5739
- if (cp === 39 || cp === 34) {
5740
+ if (cp3 === 39 || cp3 === 34) {
5740
5741
  return this.scanStringLiteral();
5741
5742
  }
5742
- if (cp === 46) {
5743
+ if (cp3 === 46) {
5743
5744
  if (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index + 1))) {
5744
5745
  return this.scanNumericLiteral();
5745
5746
  }
5746
5747
  return this.scanPunctuator();
5747
5748
  }
5748
- if (character_1.Character.isDecimalDigit(cp)) {
5749
+ if (character_1.Character.isDecimalDigit(cp3)) {
5749
5750
  return this.scanNumericLiteral();
5750
5751
  }
5751
- if (cp === 96 || cp === 125 && this.curlyStack[this.curlyStack.length - 1] === "${") {
5752
+ if (cp3 === 96 || cp3 === 125 && this.curlyStack[this.curlyStack.length - 1] === "${") {
5752
5753
  return this.scanTemplate();
5753
5754
  }
5754
- if (cp >= 55296 && cp < 57343) {
5755
+ if (cp3 >= 55296 && cp3 < 57343) {
5755
5756
  if (character_1.Character.isIdentifierStart(this.codePointAt(this.index))) {
5756
5757
  return this.scanIdentifier();
5757
5758
  }
@@ -5760,59 +5761,61 @@ var require_esprima = __commonJS({
5760
5761
  };
5761
5762
  return Scanner2;
5762
5763
  })();
5763
- exports2.Scanner = Scanner;
5764
+ exports3.Scanner = Scanner;
5764
5765
  },
5765
5766
  /* 13 */
5766
5767
  /***/
5767
- function(module2, exports2) {
5768
- Object.defineProperty(exports2, "__esModule", { value: true });
5769
- exports2.TokenName = {};
5770
- exports2.TokenName[
5768
+ function(module3, exports3) {
5769
+ "use strict";
5770
+ Object.defineProperty(exports3, "__esModule", { value: true });
5771
+ exports3.TokenName = {};
5772
+ exports3.TokenName[
5771
5773
  1
5772
5774
  /* BooleanLiteral */
5773
5775
  ] = "Boolean";
5774
- exports2.TokenName[
5776
+ exports3.TokenName[
5775
5777
  2
5776
5778
  /* EOF */
5777
5779
  ] = "<end>";
5778
- exports2.TokenName[
5780
+ exports3.TokenName[
5779
5781
  3
5780
5782
  /* Identifier */
5781
5783
  ] = "Identifier";
5782
- exports2.TokenName[
5784
+ exports3.TokenName[
5783
5785
  4
5784
5786
  /* Keyword */
5785
5787
  ] = "Keyword";
5786
- exports2.TokenName[
5788
+ exports3.TokenName[
5787
5789
  5
5788
5790
  /* NullLiteral */
5789
5791
  ] = "Null";
5790
- exports2.TokenName[
5792
+ exports3.TokenName[
5791
5793
  6
5792
5794
  /* NumericLiteral */
5793
5795
  ] = "Numeric";
5794
- exports2.TokenName[
5796
+ exports3.TokenName[
5795
5797
  7
5796
5798
  /* Punctuator */
5797
5799
  ] = "Punctuator";
5798
- exports2.TokenName[
5800
+ exports3.TokenName[
5799
5801
  8
5800
5802
  /* StringLiteral */
5801
5803
  ] = "String";
5802
- exports2.TokenName[
5804
+ exports3.TokenName[
5803
5805
  9
5804
5806
  /* RegularExpression */
5805
5807
  ] = "RegularExpression";
5806
- exports2.TokenName[
5808
+ exports3.TokenName[
5807
5809
  10
5808
5810
  /* Template */
5809
5811
  ] = "Template";
5810
5812
  },
5811
5813
  /* 14 */
5812
5814
  /***/
5813
- function(module2, exports2) {
5814
- Object.defineProperty(exports2, "__esModule", { value: true });
5815
- exports2.XHTMLEntities = {
5815
+ function(module3, exports3) {
5816
+ "use strict";
5817
+ Object.defineProperty(exports3, "__esModule", { value: true });
5818
+ exports3.XHTMLEntities = {
5816
5819
  quot: '"',
5817
5820
  amp: "&",
5818
5821
  apos: "'",
@@ -6069,8 +6072,9 @@ var require_esprima = __commonJS({
6069
6072
  },
6070
6073
  /* 15 */
6071
6074
  /***/
6072
- function(module2, exports2, __webpack_require__) {
6073
- Object.defineProperty(exports2, "__esModule", { value: true });
6075
+ function(module3, exports3, __webpack_require__) {
6076
+ "use strict";
6077
+ Object.defineProperty(exports3, "__esModule", { value: true });
6074
6078
  var error_handler_1 = __webpack_require__(10);
6075
6079
  var scanner_1 = __webpack_require__(12);
6076
6080
  var token_1 = __webpack_require__(13);
@@ -6161,6 +6165,8 @@ var require_esprima = __commonJS({
6161
6165
  regex = check ? !this.beforeFunctionExpression(check) : true;
6162
6166
  }
6163
6167
  break;
6168
+ default:
6169
+ break;
6164
6170
  }
6165
6171
  return regex;
6166
6172
  };
@@ -6252,7 +6258,7 @@ var require_esprima = __commonJS({
6252
6258
  };
6253
6259
  return Tokenizer2;
6254
6260
  })();
6255
- exports2.Tokenizer = Tokenizer;
6261
+ exports3.Tokenizer = Tokenizer;
6256
6262
  }
6257
6263
  /******/
6258
6264
  ])
@@ -6263,68 +6269,69 @@ var require_esprima = __commonJS({
6263
6269
 
6264
6270
  // ../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js
6265
6271
  var require_util = __commonJS({
6266
- "../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js"(exports$1) {
6272
+ "../../node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js"(exports2) {
6273
+ "use strict";
6267
6274
  function isArray(arg) {
6268
6275
  if (Array.isArray) {
6269
6276
  return Array.isArray(arg);
6270
6277
  }
6271
6278
  return objectToString(arg) === "[object Array]";
6272
6279
  }
6273
- exports$1.isArray = isArray;
6280
+ exports2.isArray = isArray;
6274
6281
  function isBoolean(arg) {
6275
6282
  return typeof arg === "boolean";
6276
6283
  }
6277
- exports$1.isBoolean = isBoolean;
6284
+ exports2.isBoolean = isBoolean;
6278
6285
  function isNull(arg) {
6279
6286
  return arg === null;
6280
6287
  }
6281
- exports$1.isNull = isNull;
6288
+ exports2.isNull = isNull;
6282
6289
  function isNullOrUndefined(arg) {
6283
6290
  return arg == null;
6284
6291
  }
6285
- exports$1.isNullOrUndefined = isNullOrUndefined;
6292
+ exports2.isNullOrUndefined = isNullOrUndefined;
6286
6293
  function isNumber(arg) {
6287
6294
  return typeof arg === "number";
6288
6295
  }
6289
- exports$1.isNumber = isNumber;
6296
+ exports2.isNumber = isNumber;
6290
6297
  function isString(arg) {
6291
6298
  return typeof arg === "string";
6292
6299
  }
6293
- exports$1.isString = isString;
6300
+ exports2.isString = isString;
6294
6301
  function isSymbol(arg) {
6295
6302
  return typeof arg === "symbol";
6296
6303
  }
6297
- exports$1.isSymbol = isSymbol;
6304
+ exports2.isSymbol = isSymbol;
6298
6305
  function isUndefined(arg) {
6299
6306
  return arg === void 0;
6300
6307
  }
6301
- exports$1.isUndefined = isUndefined;
6308
+ exports2.isUndefined = isUndefined;
6302
6309
  function isRegExp(re) {
6303
6310
  return objectToString(re) === "[object RegExp]";
6304
6311
  }
6305
- exports$1.isRegExp = isRegExp;
6312
+ exports2.isRegExp = isRegExp;
6306
6313
  function isObject(arg) {
6307
6314
  return typeof arg === "object" && arg !== null;
6308
6315
  }
6309
- exports$1.isObject = isObject;
6316
+ exports2.isObject = isObject;
6310
6317
  function isDate(d) {
6311
6318
  return objectToString(d) === "[object Date]";
6312
6319
  }
6313
- exports$1.isDate = isDate;
6320
+ exports2.isDate = isDate;
6314
6321
  function isError(e) {
6315
6322
  return objectToString(e) === "[object Error]" || e instanceof Error;
6316
6323
  }
6317
- exports$1.isError = isError;
6324
+ exports2.isError = isError;
6318
6325
  function isFunction(arg) {
6319
6326
  return typeof arg === "function";
6320
6327
  }
6321
- exports$1.isFunction = isFunction;
6328
+ exports2.isFunction = isFunction;
6322
6329
  function isPrimitive(arg) {
6323
6330
  return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
6324
6331
  typeof arg === "undefined";
6325
6332
  }
6326
- exports$1.isPrimitive = isPrimitive;
6327
- exports$1.isBuffer = __require("buffer").Buffer.isBuffer;
6333
+ exports2.isPrimitive = isPrimitive;
6334
+ exports2.isBuffer = require("buffer").Buffer.isBuffer;
6328
6335
  function objectToString(o) {
6329
6336
  return Object.prototype.toString.call(o);
6330
6337
  }
@@ -6333,7 +6340,8 @@ var require_util = __commonJS({
6333
6340
 
6334
6341
  // ../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js
6335
6342
  var require_src = __commonJS({
6336
- "../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js"(exports$1, module) {
6343
+ "../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js"(exports2, module2) {
6344
+ "use strict";
6337
6345
  var DEFAULT_MIN_MERGE = 32;
6338
6346
  var DEFAULT_MIN_GALLOPING = 7;
6339
6347
  var DEFAULT_TMP_STORAGE_LENGTH = 256;
@@ -7040,7 +7048,7 @@ var require_src = __commonJS({
7040
7048
  ts.forceMergeRuns();
7041
7049
  return results;
7042
7050
  }
7043
- module.exports = {
7051
+ module2.exports = {
7044
7052
  sort
7045
7053
  };
7046
7054
  }
@@ -7048,7 +7056,8 @@ var require_src = __commonJS({
7048
7056
 
7049
7057
  // ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/common.js
7050
7058
  var require_common = __commonJS({
7051
- "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/common.js"(exports$1, module) {
7059
+ "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/common.js"(exports2, module2) {
7060
+ "use strict";
7052
7061
  var {
7053
7062
  isObject,
7054
7063
  isArray,
@@ -7167,7 +7176,7 @@ var require_common = __commonJS({
7167
7176
  return target;
7168
7177
  };
7169
7178
  var is_raw_json = isFunction(JSON.isRawJSON) ? JSON.isRawJSON : () => false;
7170
- module.exports = {
7179
+ module2.exports = {
7171
7180
  PROP_SYMBOL_PREFIXES,
7172
7181
  PREFIX_BEFORE,
7173
7182
  PREFIX_AFTER_PROP,
@@ -7348,7 +7357,8 @@ var require_common = __commonJS({
7348
7357
 
7349
7358
  // ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/array.js
7350
7359
  var require_array = __commonJS({
7351
- "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/array.js"(exports$1, module) {
7360
+ "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/array.js"(exports2, module2) {
7361
+ "use strict";
7352
7362
  var { isArray } = require_util();
7353
7363
  var { sort } = require_src();
7354
7364
  var {
@@ -7524,7 +7534,7 @@ var require_array = __commonJS({
7524
7534
  return this;
7525
7535
  }
7526
7536
  };
7527
- module.exports = {
7537
+ module2.exports = {
7528
7538
  CommentArray
7529
7539
  };
7530
7540
  }
@@ -7532,7 +7542,8 @@ var require_array = __commonJS({
7532
7542
 
7533
7543
  // ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/parse.js
7534
7544
  var require_parse = __commonJS({
7535
- "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/parse.js"(exports$1, module) {
7545
+ "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/parse.js"(exports2, module2) {
7546
+ "use strict";
7536
7547
  var esprima = require_esprima();
7537
7548
  var {
7538
7549
  CommentArray
@@ -7841,7 +7852,7 @@ var require_parse = __commonJS({
7841
7852
  free();
7842
7853
  return result;
7843
7854
  };
7844
- module.exports = {
7855
+ module2.exports = {
7845
7856
  parse,
7846
7857
  tokenize
7847
7858
  };
@@ -7850,7 +7861,8 @@ var require_parse = __commonJS({
7850
7861
 
7851
7862
  // ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/stringify.js
7852
7863
  var require_stringify = __commonJS({
7853
- "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/stringify.js"(exports$1, module) {
7864
+ "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/stringify.js"(exports2, module2) {
7865
+ "use strict";
7854
7866
  var {
7855
7867
  isArray,
7856
7868
  isObject,
@@ -7929,10 +7941,10 @@ var require_stringify = __commonJS({
7929
7941
  replacer = null;
7930
7942
  indent = EMPTY;
7931
7943
  };
7932
- var join8 = (one, two, gap) => one ? two ? one + two.trim() + LF + gap : one.trimRight() + LF + gap : two ? two.trimRight() + LF + gap : EMPTY;
7944
+ var join12 = (one, two, gap) => one ? two ? one + two.trim() + LF + gap : one.trimRight() + LF + gap : two ? two.trimRight() + LF + gap : EMPTY;
7933
7945
  var join_content = (inside, value, gap) => {
7934
7946
  const comment = process_comments(value, PREFIX_BEFORE, gap + indent, true);
7935
- return join8(comment, inside, gap);
7947
+ return join12(comment, inside, gap);
7936
7948
  };
7937
7949
  var array_stringify = (value, gap) => {
7938
7950
  const deeper_gap = gap + indent;
@@ -7943,7 +7955,7 @@ var require_stringify = __commonJS({
7943
7955
  if (i !== 0) {
7944
7956
  inside += COMMA;
7945
7957
  }
7946
- const before = join8(
7958
+ const before = join12(
7947
7959
  after_comma,
7948
7960
  process_comments(value, BEFORE(i), deeper_gap),
7949
7961
  deeper_gap
@@ -7953,7 +7965,7 @@ var require_stringify = __commonJS({
7953
7965
  inside += process_comments(value, AFTER_VALUE(i), deeper_gap);
7954
7966
  after_comma = process_comments(value, AFTER(i), deeper_gap);
7955
7967
  }
7956
- inside += join8(
7968
+ inside += join12(
7957
7969
  after_comma,
7958
7970
  process_comments(value, PREFIX_AFTER, deeper_gap),
7959
7971
  deeper_gap
@@ -7978,7 +7990,7 @@ var require_stringify = __commonJS({
7978
7990
  inside += COMMA;
7979
7991
  }
7980
7992
  first = false;
7981
- const before = join8(
7993
+ const before = join12(
7982
7994
  after_comma,
7983
7995
  process_comments(value, BEFORE(key), deeper_gap),
7984
7996
  deeper_gap
@@ -7988,7 +8000,7 @@ var require_stringify = __commonJS({
7988
8000
  after_comma = process_comments(value, AFTER(key), deeper_gap);
7989
8001
  };
7990
8002
  keys.forEach(iteratee);
7991
- inside += join8(
8003
+ inside += join12(
7992
8004
  after_comma,
7993
8005
  process_comments(value, PREFIX_AFTER, deeper_gap),
7994
8006
  deeper_gap
@@ -8018,6 +8030,8 @@ var require_stringify = __commonJS({
8018
8030
  return value.rawJSON;
8019
8031
  }
8020
8032
  return isArray(value) ? array_stringify(value, gap) : object_stringify(value, gap);
8033
+ // undefined
8034
+ default:
8021
8035
  }
8022
8036
  }
8023
8037
  var get_indent = (space) => isString(space) ? space : isNumber(space) ? SPACE.repeat(space) : EMPTY;
@@ -8034,7 +8048,7 @@ var require_stringify = __commonJS({
8034
8048
  const str = toString.call(subject);
8035
8049
  return PRIMITIVE_OBJECT_TYPES.includes(str);
8036
8050
  };
8037
- module.exports = (value, replacer_, space) => {
8051
+ module2.exports = (value, replacer_, space) => {
8038
8052
  const indent_ = get_indent(space);
8039
8053
  if (!indent_) {
8040
8054
  return JSON.stringify(value, replacer_);
@@ -8053,7 +8067,8 @@ var require_stringify = __commonJS({
8053
8067
 
8054
8068
  // ../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/index.js
8055
8069
  var require_src2 = __commonJS({
8056
- "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/index.js"(exports$1, module) {
8070
+ "../../node_modules/.pnpm/comment-json@4.5.1/node_modules/comment-json/src/index.js"(exports2, module2) {
8071
+ "use strict";
8057
8072
  var { parse, tokenize } = require_parse();
8058
8073
  var stringify = require_stringify();
8059
8074
  var { CommentArray } = require_array();
@@ -8069,7 +8084,7 @@ var require_src2 = __commonJS({
8069
8084
  moveComments,
8070
8085
  removeComments
8071
8086
  } = require_common();
8072
- module.exports = {
8087
+ module2.exports = {
8073
8088
  PREFIX_BEFORE,
8074
8089
  PREFIX_AFTER_PROP,
8075
8090
  PREFIX_AFTER_COLON,
@@ -8090,8 +8105,9 @@ var require_src2 = __commonJS({
8090
8105
 
8091
8106
  // ../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js
8092
8107
  var require_pend = __commonJS({
8093
- "../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js"(exports$1, module) {
8094
- module.exports = Pend;
8108
+ "../../node_modules/.pnpm/pend@1.2.0/node_modules/pend/index.js"(exports2, module2) {
8109
+ "use strict";
8110
+ module2.exports = Pend;
8095
8111
  function Pend() {
8096
8112
  this.pending = 0;
8097
8113
  this.max = Infinity;
@@ -8145,19 +8161,20 @@ var require_pend = __commonJS({
8145
8161
 
8146
8162
  // ../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/fd-slicer.js
8147
8163
  var require_fd_slicer = __commonJS({
8148
- "../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/fd-slicer.js"(exports$1) {
8149
- var fs10 = __require("fs");
8150
- var util = __require("util");
8151
- var stream = __require("stream");
8164
+ "../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/fd-slicer.js"(exports2) {
8165
+ "use strict";
8166
+ var fs14 = require("fs");
8167
+ var util = require("util");
8168
+ var stream = require("stream");
8152
8169
  var Readable = stream.Readable;
8153
8170
  var Writable = stream.Writable;
8154
8171
  var PassThrough = stream.PassThrough;
8155
8172
  var Pend = require_pend();
8156
- var EventEmitter = __require("events").EventEmitter;
8157
- exports$1.createFromBuffer = createFromBuffer;
8158
- exports$1.createFromFd = createFromFd;
8159
- exports$1.BufferSlicer = BufferSlicer;
8160
- exports$1.FdSlicer = FdSlicer;
8173
+ var EventEmitter = require("events").EventEmitter;
8174
+ exports2.createFromBuffer = createFromBuffer;
8175
+ exports2.createFromFd = createFromFd;
8176
+ exports2.BufferSlicer = BufferSlicer;
8177
+ exports2.FdSlicer = FdSlicer;
8161
8178
  util.inherits(FdSlicer, EventEmitter);
8162
8179
  function FdSlicer(fd, options2) {
8163
8180
  options2 = options2 || {};
@@ -8171,7 +8188,7 @@ var require_fd_slicer = __commonJS({
8171
8188
  FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
8172
8189
  var self = this;
8173
8190
  self.pend.go(function(cb) {
8174
- fs10.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
8191
+ fs14.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer2) {
8175
8192
  cb();
8176
8193
  callback(err, bytesRead, buffer2);
8177
8194
  });
@@ -8180,7 +8197,7 @@ var require_fd_slicer = __commonJS({
8180
8197
  FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
8181
8198
  var self = this;
8182
8199
  self.pend.go(function(cb) {
8183
- fs10.write(self.fd, buffer, offset, length, position, function(err, written, buffer2) {
8200
+ fs14.write(self.fd, buffer, offset, length, position, function(err, written, buffer2) {
8184
8201
  cb();
8185
8202
  callback(err, written, buffer2);
8186
8203
  });
@@ -8201,7 +8218,7 @@ var require_fd_slicer = __commonJS({
8201
8218
  if (self.refCount > 0) return;
8202
8219
  if (self.refCount < 0) throw new Error("invalid unref");
8203
8220
  if (self.autoClose) {
8204
- fs10.close(self.fd, onCloseDone);
8221
+ fs14.close(self.fd, onCloseDone);
8205
8222
  }
8206
8223
  function onCloseDone(err) {
8207
8224
  if (err) {
@@ -8238,7 +8255,7 @@ var require_fd_slicer = __commonJS({
8238
8255
  self.context.pend.go(function(cb) {
8239
8256
  if (self.destroyed) return cb();
8240
8257
  var buffer = Buffer.allocUnsafe(toRead);
8241
- fs10.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
8258
+ fs14.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
8242
8259
  if (err) {
8243
8260
  self.destroy(err);
8244
8261
  } else if (bytesRead === 0) {
@@ -8285,7 +8302,7 @@ var require_fd_slicer = __commonJS({
8285
8302
  }
8286
8303
  self.context.pend.go(function(cb) {
8287
8304
  if (self.destroyed) return cb();
8288
- fs10.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err2, bytes) {
8305
+ fs14.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err2, bytes) {
8289
8306
  if (err2) {
8290
8307
  self.destroy();
8291
8308
  cb();
@@ -8415,8 +8432,9 @@ var require_fd_slicer = __commonJS({
8415
8432
 
8416
8433
  // ../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js
8417
8434
  var require_buffer_crc32 = __commonJS({
8418
- "../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js"(exports$1, module) {
8419
- var Buffer2 = __require("buffer").Buffer;
8435
+ "../../node_modules/.pnpm/buffer-crc32@0.2.13/node_modules/buffer-crc32/index.js"(exports2, module2) {
8436
+ "use strict";
8437
+ var Buffer2 = require("buffer").Buffer;
8420
8438
  var CRC_TABLE = [
8421
8439
  0,
8422
8440
  1996959894,
@@ -8716,35 +8734,36 @@ var require_buffer_crc32 = __commonJS({
8716
8734
  crc32.unsigned = function() {
8717
8735
  return _crc32.apply(null, arguments) >>> 0;
8718
8736
  };
8719
- module.exports = crc32;
8737
+ module2.exports = crc32;
8720
8738
  }
8721
8739
  });
8722
8740
 
8723
8741
  // ../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/index.js
8724
8742
  var require_yauzl = __commonJS({
8725
- "../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/index.js"(exports$1) {
8726
- var fs10 = __require("fs");
8727
- var zlib = __require("zlib");
8743
+ "../../node_modules/.pnpm/yauzl@3.2.0/node_modules/yauzl/index.js"(exports2) {
8744
+ "use strict";
8745
+ var fs14 = require("fs");
8746
+ var zlib = require("zlib");
8728
8747
  var fd_slicer = require_fd_slicer();
8729
8748
  var crc32 = require_buffer_crc32();
8730
- var util = __require("util");
8731
- var EventEmitter = __require("events").EventEmitter;
8732
- var Transform = __require("stream").Transform;
8733
- var PassThrough = __require("stream").PassThrough;
8734
- var Writable = __require("stream").Writable;
8735
- exports$1.open = open2;
8736
- exports$1.fromFd = fromFd;
8737
- exports$1.fromBuffer = fromBuffer;
8738
- exports$1.fromRandomAccessReader = fromRandomAccessReader;
8739
- exports$1.dosDateTimeToDate = dosDateTimeToDate;
8740
- exports$1.getFileNameLowLevel = getFileNameLowLevel;
8741
- exports$1.validateFileName = validateFileName;
8742
- exports$1.parseExtraFields = parseExtraFields;
8743
- exports$1.ZipFile = ZipFile;
8744
- exports$1.Entry = Entry;
8745
- exports$1.LocalFileHeader = LocalFileHeader;
8746
- exports$1.RandomAccessReader = RandomAccessReader;
8747
- function open2(path8, options2, callback) {
8749
+ var util = require("util");
8750
+ var EventEmitter = require("events").EventEmitter;
8751
+ var Transform = require("stream").Transform;
8752
+ var PassThrough = require("stream").PassThrough;
8753
+ var Writable = require("stream").Writable;
8754
+ exports2.open = open2;
8755
+ exports2.fromFd = fromFd;
8756
+ exports2.fromBuffer = fromBuffer;
8757
+ exports2.fromRandomAccessReader = fromRandomAccessReader;
8758
+ exports2.dosDateTimeToDate = dosDateTimeToDate;
8759
+ exports2.getFileNameLowLevel = getFileNameLowLevel;
8760
+ exports2.validateFileName = validateFileName;
8761
+ exports2.parseExtraFields = parseExtraFields;
8762
+ exports2.ZipFile = ZipFile;
8763
+ exports2.Entry = Entry;
8764
+ exports2.LocalFileHeader = LocalFileHeader;
8765
+ exports2.RandomAccessReader = RandomAccessReader;
8766
+ function open2(path12, options2, callback) {
8748
8767
  if (typeof options2 === "function") {
8749
8768
  callback = options2;
8750
8769
  options2 = null;
@@ -8756,10 +8775,10 @@ var require_yauzl = __commonJS({
8756
8775
  if (options2.validateEntrySizes == null) options2.validateEntrySizes = true;
8757
8776
  if (options2.strictFileNames == null) options2.strictFileNames = false;
8758
8777
  if (callback == null) callback = defaultCallback;
8759
- fs10.open(path8, "r", function(err, fd) {
8778
+ fs14.open(path12, "r", function(err, fd) {
8760
8779
  if (err) return callback(err);
8761
8780
  fromFd(fd, options2, function(err2, zipfile) {
8762
- if (err2) fs10.close(fd, defaultCallback);
8781
+ if (err2) fs14.close(fd, defaultCallback);
8763
8782
  callback(err2, zipfile);
8764
8783
  });
8765
8784
  });
@@ -8776,7 +8795,7 @@ var require_yauzl = __commonJS({
8776
8795
  if (options2.validateEntrySizes == null) options2.validateEntrySizes = true;
8777
8796
  if (options2.strictFileNames == null) options2.strictFileNames = false;
8778
8797
  if (callback == null) callback = defaultCallback;
8779
- fs10.fstat(fd, function(err, stats) {
8798
+ fs14.fstat(fd, function(err, stats) {
8780
8799
  if (err) return callback(err);
8781
8800
  var reader = fd_slicer.createFromFd(fd, { autoClose: true });
8782
8801
  fromRandomAccessReader(reader, stats.size, options2, callback);
@@ -9082,6 +9101,7 @@ var require_yauzl = __commonJS({
9082
9101
  };
9083
9102
  ZipFile.prototype.openReadStreamLowLevel = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, callback) {
9084
9103
  var self = this;
9104
+ var fileDataEnd = fileDataStart + compressedSize;
9085
9105
  var readStream = self.reader.createReadStream({
9086
9106
  start: fileDataStart + relativeStart,
9087
9107
  end: fileDataStart + relativeEnd
@@ -9460,6 +9480,16 @@ var require_yauzl = __commonJS({
9460
9480
  }
9461
9481
  });
9462
9482
 
9483
+ // src/bridgeServer.ts
9484
+ var bridgeServer_exports = {};
9485
+ __export(bridgeServer_exports, {
9486
+ BridgeServer: () => BridgeServer
9487
+ });
9488
+ module.exports = __toCommonJS(bridgeServer_exports);
9489
+
9490
+ // src/bridge/BridgeServer.ts
9491
+ var readline = __toESM(require("readline"));
9492
+
9463
9493
  // ../../packages/serviceme-protocol/src/bridge.ts
9464
9494
  var SERVICEME_PROTOCOL_VERSION = 2;
9465
9495
  function isRecord(value) {
@@ -9474,7 +9504,14 @@ var BRIDGE_METHODS = [
9474
9504
  "system.shutdown",
9475
9505
  "task.execute",
9476
9506
  "task.cancel",
9477
- "task.list-running"
9507
+ "task.list-running",
9508
+ "skill.marketplace-state",
9509
+ "skill.mutate",
9510
+ "skill.reconcile",
9511
+ "skill.publishable",
9512
+ "agent.marketplace-state",
9513
+ "agent.mutate",
9514
+ "agent.permissions"
9478
9515
  ];
9479
9516
  function isBridgeMethod(value) {
9480
9517
  return typeof value === "string" && BRIDGE_METHODS.includes(value);
@@ -9515,6 +9552,7 @@ var SERVICEME_ERROR_CODES = [
9515
9552
  "executor_timeout",
9516
9553
  "executor_error",
9517
9554
  "task_already_running",
9555
+ "not_found",
9518
9556
  "internal_error"
9519
9557
  ];
9520
9558
  var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
@@ -9600,19 +9638,326 @@ function normalizeServicemeError(error, fallbackCode = "internal_error") {
9600
9638
  }
9601
9639
 
9602
9640
  // src/version.ts
9603
- var SERVICEME_CLI_VERSION = "0.1.5";
9641
+ var SERVICEME_CLI_VERSION = "0.1.7";
9604
9642
 
9605
- // src/bridge/ndjson.ts
9606
- function writeBridgeMessage(message) {
9607
- process.stdout.write(`${JSON.stringify(message)}
9608
- `);
9643
+ // src/bridge/AgentBridgeHandler.ts
9644
+ var fs12 = __toESM(require("fs/promises"));
9645
+ var os2 = __toESM(require("os"));
9646
+ var path10 = __toESM(require("path"));
9647
+
9648
+ // ../../packages/serviceme-core/src/agents/AgentCatalogClient.ts
9649
+ var AgentCatalogClient = class {
9650
+ constructor(options2 = {}) {
9651
+ this.fetchImpl = options2.fetchImpl ?? fetch;
9652
+ this.baseUrl = options2.baseUrl;
9653
+ }
9654
+ async getCatalog() {
9655
+ if (!this.baseUrl) {
9656
+ return {
9657
+ agents: [],
9658
+ fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
9659
+ };
9660
+ }
9661
+ const response = await this.fetchImpl(
9662
+ `${this.baseUrl}/api/v1/marketplace/agents`
9663
+ );
9664
+ if (!response.ok) {
9665
+ throw new Error(`Failed to fetch agents catalog: ${response.status}`);
9666
+ }
9667
+ const data = await response.json();
9668
+ return {
9669
+ agents: data.agents ?? [],
9670
+ fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
9671
+ };
9672
+ }
9673
+ async downloadAgent(remoteId) {
9674
+ if (!this.baseUrl) {
9675
+ throw createServicemeError(
9676
+ "workspace_not_found",
9677
+ "Agent catalog baseUrl is not configured."
9678
+ );
9679
+ }
9680
+ const response = await this.fetchImpl(
9681
+ `${this.baseUrl}/api/v1/marketplace/agents/download/${remoteId}`
9682
+ );
9683
+ if (!response.ok) {
9684
+ if (response.status === 404) {
9685
+ throw createServicemeError(
9686
+ "not_found",
9687
+ `Agent '${remoteId}' not found`
9688
+ );
9689
+ }
9690
+ throw new Error(
9691
+ `Failed to download agent ${remoteId}: ${response.status}`
9692
+ );
9693
+ }
9694
+ const payload = await response.json();
9695
+ return payload.data?.files ?? [];
9696
+ }
9697
+ };
9698
+
9699
+ // ../../packages/serviceme-core/src/permissions/agent-permissions.ts
9700
+ var TOOL_RISK_MAP = {
9701
+ shell: "high",
9702
+ terminal: "high",
9703
+ run_in_terminal: "high",
9704
+ execution_subagent: "high",
9705
+ filesystem: "medium",
9706
+ fetch: "medium",
9707
+ fetch_webpage: "medium",
9708
+ create_file: "medium",
9709
+ replace_string_in_file: "medium",
9710
+ multi_replace_string_in_file: "medium",
9711
+ read_file: "low",
9712
+ search: "low",
9713
+ grep_search: "low",
9714
+ file_search: "low",
9715
+ semantic_search: "low",
9716
+ list_dir: "low"
9717
+ };
9718
+ var FRONTMATTER_REGEX = /^---\r?\n([\s\S]*?)\r?\n---/;
9719
+ var TOOLS_LINE_REGEX = /^tools:\s*$/m;
9720
+ var TOOLS_INLINE_REGEX = /^tools:\s*\[([^\]]*)\]/m;
9721
+ var LIST_ITEM_REGEX = /^\s*-\s+(.+)$/;
9722
+ function parseAgentToolPermissions(content) {
9723
+ const fmMatch = content.match(FRONTMATTER_REGEX);
9724
+ if (!fmMatch?.[1]) return [];
9725
+ const frontmatter = fmMatch[1];
9726
+ const inlineMatch = frontmatter.match(TOOLS_INLINE_REGEX);
9727
+ if (inlineMatch?.[1] != null) {
9728
+ const raw = inlineMatch[1];
9729
+ return raw.split(",").map((t) => t.trim()).filter(Boolean).map((tool) => ({
9730
+ tool,
9731
+ riskLevel: TOOL_RISK_MAP[tool] ?? "medium"
9732
+ }));
9733
+ }
9734
+ const blockMatch = frontmatter.match(TOOLS_LINE_REGEX);
9735
+ if (!blockMatch?.[0]) return [];
9736
+ const toolsStartIndex = frontmatter.indexOf(blockMatch[0]) + blockMatch[0].length;
9737
+ const remaining = frontmatter.slice(toolsStartIndex);
9738
+ const lines = remaining.split(/\r?\n/);
9739
+ const tools = [];
9740
+ for (const line of lines) {
9741
+ const itemMatch = line.match(LIST_ITEM_REGEX);
9742
+ if (itemMatch?.[1]) {
9743
+ const tool = itemMatch[1].trim();
9744
+ tools.push({ tool, riskLevel: TOOL_RISK_MAP[tool] ?? "medium" });
9745
+ } else if (line.trim() !== "" && !line.startsWith(" ") && !line.startsWith(" ")) {
9746
+ break;
9747
+ }
9748
+ }
9749
+ return tools;
9609
9750
  }
9751
+
9752
+ // ../../packages/serviceme-core/src/agents/AgentReconciler.ts
9753
+ var AgentReconciler = class {
9754
+ constructor(deps) {
9755
+ this.deps = deps;
9756
+ }
9757
+ async mutate(request) {
9758
+ if (request.targetScope !== "workspace" && request.targetScope !== "user") {
9759
+ throw new Error(`Invalid target scope: ${String(request.targetScope)}`);
9760
+ }
9761
+ if (request.action === "uninstall" || request.action === "move" || request.action === "removeExternal") {
9762
+ return {
9763
+ status: "success",
9764
+ changed: true,
9765
+ message: `Agent ${request.action} completed.`
9766
+ };
9767
+ }
9768
+ if (request.action !== "install") {
9769
+ return {
9770
+ status: "blocked",
9771
+ changed: false,
9772
+ message: `Agent action is not supported by bridge reconciler: ${request.action}`
9773
+ };
9774
+ }
9775
+ const catalog = await this.deps.catalogClient.getCatalog();
9776
+ const remoteAgent = catalog.agents.find(
9777
+ (agent) => this.deps.agentStore.normalizeRemoteAgentId(agent.id) === request.agentId
9778
+ );
9779
+ if (!remoteAgent) {
9780
+ return {
9781
+ status: "blocked",
9782
+ changed: false,
9783
+ message: "Agent not found in catalog."
9784
+ };
9785
+ }
9786
+ if (!request.confirmed && this.hasHighRiskTool(remoteAgent.tools)) {
9787
+ return {
9788
+ status: "requires_confirmation",
9789
+ changed: false,
9790
+ message: "This agent uses high-risk tools that require confirmation.",
9791
+ tools: remoteAgent.tools
9792
+ };
9793
+ }
9794
+ return {
9795
+ status: "success",
9796
+ changed: true,
9797
+ message: "Agent installed."
9798
+ };
9799
+ }
9800
+ getPermissionSummary(agentId, agentName, content) {
9801
+ const tools = parseAgentToolPermissions(content);
9802
+ return {
9803
+ agentId,
9804
+ agentName,
9805
+ tools,
9806
+ highRiskCount: tools.filter((tool) => tool.riskLevel === "high").length,
9807
+ mediumRiskCount: tools.filter((tool) => tool.riskLevel === "medium").length,
9808
+ lowRiskCount: tools.filter((tool) => tool.riskLevel === "low").length
9809
+ };
9810
+ }
9811
+ hasHighRiskTool(tools) {
9812
+ return tools.some((tool) => TOOL_RISK_MAP[tool] === "high");
9813
+ }
9814
+ };
9815
+
9816
+ // ../../packages/serviceme-core/src/agents/AgentStore.ts
9817
+ var fs = __toESM(require("fs/promises"));
9818
+ var path = __toESM(require("path"));
9819
+ var WORKSPACE_AGENTS_ROOT_RELATIVE = ".github/agents";
9820
+ var WORKSPACE_AGENTS_STATE_RELATIVE = ".github/.ms-devtools-agents.yml";
9821
+ var SAFE_LOCAL_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
9822
+ function assertSafeLocalAgentId(agentId) {
9823
+ if (typeof agentId !== "string" || agentId.length === 0 || agentId === "." || agentId === ".." || agentId.includes("/") || agentId.includes("\\") || !SAFE_LOCAL_ID_PATTERN.test(agentId)) {
9824
+ throw new Error(`Invalid agent id: ${agentId}`);
9825
+ }
9826
+ return agentId;
9827
+ }
9828
+ var AgentStore = class {
9829
+ constructor(options2) {
9830
+ this.workspacePath = options2.workspacePath;
9831
+ this.userAgentsRoot = options2.userAgentsRoot;
9832
+ this.fileSystem = options2.fileSystem ?? fs;
9833
+ this.schemaVersion = options2.schemaVersion ?? 1;
9834
+ }
9835
+ normalizeRemoteAgentId(remoteId) {
9836
+ if (remoteId.startsWith("official/")) {
9837
+ return assertSafeLocalAgentId(remoteId.slice("official/".length));
9838
+ }
9839
+ if (remoteId.startsWith("community/")) {
9840
+ const lastSlash = remoteId.lastIndexOf("/");
9841
+ return assertSafeLocalAgentId(remoteId.slice(lastSlash + 1));
9842
+ }
9843
+ return assertSafeLocalAgentId(remoteId);
9844
+ }
9845
+ getWorkspaceAgentsRootPath() {
9846
+ return WORKSPACE_AGENTS_ROOT_RELATIVE;
9847
+ }
9848
+ getWorkspaceStateFilePath() {
9849
+ return WORKSPACE_AGENTS_STATE_RELATIVE;
9850
+ }
9851
+ getUserAgentsRootPath() {
9852
+ return this.userAgentsRoot;
9853
+ }
9854
+ async listWorkspaceAgentIds() {
9855
+ return this.listAgentIds(
9856
+ path.join(this.workspacePath, WORKSPACE_AGENTS_ROOT_RELATIVE)
9857
+ );
9858
+ }
9859
+ async listUserAgentIds() {
9860
+ return this.listAgentIds(this.userAgentsRoot);
9861
+ }
9862
+ async readState() {
9863
+ try {
9864
+ const raw = await this.fileSystem.readFile(
9865
+ path.join(this.workspacePath, WORKSPACE_AGENTS_STATE_RELATIVE),
9866
+ "utf-8"
9867
+ );
9868
+ const parsed = JSON.parse(raw);
9869
+ if (typeof parsed.schemaVersion !== "number" || !Array.isArray(parsed.installedAgents)) {
9870
+ return null;
9871
+ }
9872
+ return parsed;
9873
+ } catch {
9874
+ return null;
9875
+ }
9876
+ }
9877
+ async writeState(state) {
9878
+ const statePath = path.join(
9879
+ this.workspacePath,
9880
+ WORKSPACE_AGENTS_STATE_RELATIVE
9881
+ );
9882
+ await this.fileSystem.mkdir(path.dirname(statePath), { recursive: true });
9883
+ await this.fileSystem.writeFile(
9884
+ statePath,
9885
+ JSON.stringify(state, null, 2),
9886
+ "utf-8"
9887
+ );
9888
+ }
9889
+ async addInstalledAgent(entry) {
9890
+ const state = await this.readState() ?? {
9891
+ schemaVersion: this.schemaVersion,
9892
+ installedAgents: []
9893
+ };
9894
+ state.installedAgents = state.installedAgents.filter(
9895
+ (agent) => agent.id !== entry.id
9896
+ );
9897
+ state.installedAgents.push(entry);
9898
+ await this.writeState(state);
9899
+ }
9900
+ async removeInstalledAgent(agentId) {
9901
+ const state = await this.readState();
9902
+ if (!state) {
9903
+ return;
9904
+ }
9905
+ state.installedAgents = state.installedAgents.filter(
9906
+ (agent) => agent.id !== agentId
9907
+ );
9908
+ await this.writeState(state);
9909
+ }
9910
+ async writeAgentFiles(agentId, scope, files) {
9911
+ const root = scope === "workspace" ? path.join(this.workspacePath, WORKSPACE_AGENTS_ROOT_RELATIVE) : this.userAgentsRoot;
9912
+ const firstFile = files[0];
9913
+ const isSingleFlatFile = files.length === 1 && firstFile !== void 0 && firstFile.path === `${agentId}.agent.md` && !firstFile.path.includes("/");
9914
+ const targetDir = isSingleFlatFile ? root : path.join(root, agentId);
9915
+ await this.fileSystem.mkdir(targetDir, { recursive: true });
9916
+ for (const file of files) {
9917
+ const filePath = path.join(targetDir, file.path);
9918
+ await this.fileSystem.mkdir(path.dirname(filePath), { recursive: true });
9919
+ await this.fileSystem.writeFile(filePath, file.content, "utf-8");
9920
+ if (file.executable) {
9921
+ try {
9922
+ await this.fileSystem.chmod(filePath, 493);
9923
+ } catch {
9924
+ }
9925
+ }
9926
+ }
9927
+ }
9928
+ async listAgentIds(dir) {
9929
+ try {
9930
+ const entries = await this.fileSystem.readdir(dir, {
9931
+ withFileTypes: true
9932
+ });
9933
+ const ids = [];
9934
+ for (const entry of entries) {
9935
+ if (entry.name.startsWith(".")) {
9936
+ continue;
9937
+ }
9938
+ if (entry.isDirectory()) {
9939
+ ids.push(entry.name);
9940
+ continue;
9941
+ }
9942
+ if (entry.isFile() && entry.name.endsWith(".agent.md")) {
9943
+ ids.push(entry.name.replace(/\.agent\.md$/, ""));
9944
+ }
9945
+ }
9946
+ return ids.sort();
9947
+ } catch {
9948
+ return [];
9949
+ }
9950
+ }
9951
+ };
9952
+
9953
+ // ../../packages/serviceme-core/src/process/runCommand.ts
9954
+ var import_node_child_process = require("child_process");
9610
9955
  function terminateCommandProcess(child) {
9611
9956
  if (child.killed) {
9612
9957
  return;
9613
9958
  }
9614
9959
  if (process.platform === "win32" && child.pid) {
9615
- const killProcess = child_process.spawn(
9960
+ const killProcess = (0, import_node_child_process.spawn)(
9616
9961
  "taskkill",
9617
9962
  ["/pid", String(child.pid), "/T", "/F"],
9618
9963
  {
@@ -9629,7 +9974,7 @@ function terminateCommandProcess(child) {
9629
9974
  }
9630
9975
  async function runCommand(command, options2 = {}) {
9631
9976
  return new Promise((resolve, reject) => {
9632
- const child = child_process.spawn(command, options2.args ?? [], {
9977
+ const child = (0, import_node_child_process.spawn)(command, options2.args ?? [], {
9633
9978
  cwd: options2.cwd,
9634
9979
  env: options2.env,
9635
9980
  shell: options2.shell,
@@ -9716,11 +10061,39 @@ async function isCopilotAuthenticated() {
9716
10061
  }
9717
10062
  }
9718
10063
 
10064
+ // ../../packages/serviceme-core/src/image/imageTools.ts
10065
+ var fs2 = __toESM(require("fs/promises"));
10066
+ var path2 = __toESM(require("path"));
10067
+
9719
10068
  // ../../packages/serviceme-core/src/json/jsonTools.ts
9720
- __toESM(require_src2());
10069
+ var import_comment_json = __toESM(require_src2());
10070
+
10071
+ // ../../packages/serviceme-core/src/project/projectTools.ts
10072
+ var fs3 = __toESM(require("fs/promises"));
10073
+ var path3 = __toESM(require("path"));
9721
10074
 
9722
10075
  // ../../packages/serviceme-core/src/utils/fileUtils.ts
9723
- __toESM(require_yauzl());
10076
+ var import_node_fs = require("fs");
10077
+ var import_promises = require("fs/promises");
10078
+ var import_node_path = require("path");
10079
+ var import_yauzl = __toESM(require_yauzl());
10080
+
10081
+ // ../../packages/serviceme-core/src/scheduled-tasks/daemon/DaemonLogger.ts
10082
+ var fs4 = __toESM(require("fs"));
10083
+ var path4 = __toESM(require("path"));
10084
+ var MAX_LOG_SIZE = 1024 * 1024;
10085
+
10086
+ // ../../packages/serviceme-core/src/scheduled-tasks/daemon/PidManager.ts
10087
+ var fs5 = __toESM(require("fs"));
10088
+ var path5 = __toESM(require("path"));
10089
+
10090
+ // ../../packages/serviceme-core/src/scheduled-tasks/daemon/SchedulerDaemon.ts
10091
+ var fs10 = __toESM(require("fs"));
10092
+ var os = __toESM(require("os"));
10093
+
10094
+ // ../../packages/serviceme-core/src/scheduled-tasks/executors/GithubCopilotCliExecutor.ts
10095
+ var import_node_child_process2 = require("child_process");
10096
+ var fs6 = __toESM(require("fs"));
9724
10097
 
9725
10098
  // ../../packages/serviceme-core/src/scheduled-tasks/executors/timeout.ts
9726
10099
  function resolveConfiguredTimeoutMs(timeoutSeconds, defaultTimeoutMs) {
@@ -9755,7 +10128,7 @@ function redactArgs(args) {
9755
10128
  function writeDiagnostic(message) {
9756
10129
  const logPath = process.env.SERVICEME_SCHEDULER_LOG_PATH;
9757
10130
  if (logPath) {
9758
- fs6__namespace.appendFileSync(logPath, message);
10131
+ fs6.appendFileSync(logPath, message);
9759
10132
  return;
9760
10133
  }
9761
10134
  process.stderr.write(message);
@@ -9832,7 +10205,7 @@ var GithubCopilotCliExecutor = class {
9832
10205
  `[GithubCopilotCliExecutor] spawn: command=${execution.command}, args=${JSON.stringify(execution.diagnosticArgs)}, promptLen=${execution.promptLen}, cwd=${execution.cwd ?? "(default)"}, platform=${process.platform}, windowsHide=true, pid=${process.pid}
9833
10206
  `
9834
10207
  );
9835
- const child = child_process.spawn(execution.command, execution.args, {
10208
+ const child = (0, import_node_child_process2.spawn)(execution.command, execution.args, {
9836
10209
  cwd: execution.cwd,
9837
10210
  stdio: ["ignore", "pipe", "pipe"],
9838
10211
  windowsHide: true
@@ -9962,13 +10335,18 @@ ${body}`.trim()
9962
10335
  }
9963
10336
  }
9964
10337
  };
10338
+
10339
+ // ../../packages/serviceme-core/src/scheduled-tasks/executors/ShellExecutor.ts
10340
+ var import_node_child_process3 = require("child_process");
10341
+ var fs7 = __toESM(require("fs"));
10342
+ var path6 = __toESM(require("path"));
9965
10343
  var MAX_OUTPUT_BYTES2 = 1024 * 1024;
9966
10344
  var DEFAULT_TIMEOUT_MS3 = 6e4;
9967
10345
  var POSIX_SHELL_CANDIDATES = ["bash.exe", "sh.exe"];
9968
10346
  function resolveShellExecution(script, options2 = {}) {
9969
10347
  const platform = options2.platform ?? process.platform;
9970
10348
  const env = options2.env ?? process.env;
9971
- const fileExists = options2.fileExists ?? fs6__namespace.existsSync;
10349
+ const fileExists = options2.fileExists ?? fs7.existsSync;
9972
10350
  if (platform === "win32") {
9973
10351
  const posixShell = usesPosixShellSyntax(script) ? findWindowsPosixShell(env, fileExists) : null;
9974
10352
  if (posixShell) {
@@ -10013,10 +10391,10 @@ function findWindowsPosixShell(env, fileExists) {
10013
10391
  if (fileExists(candidate)) return candidate;
10014
10392
  }
10015
10393
  const pathValue = env.Path ?? env.PATH ?? "";
10016
- for (const dir of pathValue.split(path5__namespace.win32.delimiter)) {
10394
+ for (const dir of pathValue.split(path6.win32.delimiter)) {
10017
10395
  if (!dir) continue;
10018
10396
  for (const executable of POSIX_SHELL_CANDIDATES) {
10019
- const candidate = path5__namespace.win32.join(dir, executable);
10397
+ const candidate = path6.win32.join(dir, executable);
10020
10398
  if (fileExists(candidate) && !isWindowsWslLauncher(candidate)) {
10021
10399
  return candidate;
10022
10400
  }
@@ -10025,13 +10403,13 @@ function findWindowsPosixShell(env, fileExists) {
10025
10403
  return null;
10026
10404
  }
10027
10405
  function isWindowsWslLauncher(candidate) {
10028
- const normalized = path5__namespace.win32.normalize(candidate).toLowerCase();
10406
+ const normalized = path6.win32.normalize(candidate).toLowerCase();
10029
10407
  return normalized.endsWith("\\windows\\system32\\bash.exe") || normalized.endsWith("\\windows\\syswow64\\bash.exe");
10030
10408
  }
10031
10409
  function writeDiagnostic2(message) {
10032
10410
  const logPath = process.env.SERVICEME_SCHEDULER_LOG_PATH;
10033
10411
  if (logPath) {
10034
- fs6__namespace.appendFileSync(logPath, message);
10412
+ fs7.appendFileSync(logPath, message);
10035
10413
  return;
10036
10414
  }
10037
10415
  process.stderr.write(message);
@@ -10093,7 +10471,7 @@ var ShellExecutor = class {
10093
10471
  daemonPid=${process.pid}
10094
10472
  `
10095
10473
  );
10096
- const child = child_process.spawn(shellExecution.command, shellExecution.args, spawnOpts);
10474
+ const child = (0, import_node_child_process3.spawn)(shellExecution.command, shellExecution.args, spawnOpts);
10097
10475
  if (shellExecution.stdinScript && child.stdin) {
10098
10476
  child.stdin.end(shellExecution.stdinScript);
10099
10477
  }
@@ -10175,6 +10553,11 @@ function getExecutor(taskType) {
10175
10553
  }
10176
10554
  return executor;
10177
10555
  }
10556
+
10557
+ // ../../packages/serviceme-core/src/scheduled-tasks/TaskConfigManager.ts
10558
+ var import_node_crypto = require("crypto");
10559
+ var fs8 = __toESM(require("fs"));
10560
+ var path7 = __toESM(require("path"));
10178
10561
  function isRecord3(value) {
10179
10562
  return value !== null && typeof value === "object" && !Array.isArray(value);
10180
10563
  }
@@ -10391,6 +10774,821 @@ var TaskExecutionEngine = class {
10391
10774
  }
10392
10775
  };
10393
10776
 
10777
+ // ../../packages/serviceme-core/src/scheduled-tasks/TaskLogManager.ts
10778
+ var import_node_crypto2 = require("crypto");
10779
+ var fs9 = __toESM(require("fs"));
10780
+ var path8 = __toESM(require("path"));
10781
+
10782
+ // ../../packages/serviceme-core/src/skills/SkillCatalogClient.ts
10783
+ var SkillCatalogClient = class {
10784
+ constructor(options2 = {}) {
10785
+ this.fetchImpl = options2.fetchImpl ?? fetch;
10786
+ this.baseUrl = options2.baseUrl;
10787
+ }
10788
+ async getCatalog() {
10789
+ if (!this.baseUrl) {
10790
+ return {
10791
+ skills: [],
10792
+ fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
10793
+ };
10794
+ }
10795
+ const response = await this.fetchImpl(
10796
+ `${this.baseUrl}/api/v1/marketplace/skills`
10797
+ );
10798
+ if (!response.ok) {
10799
+ throw new Error(`Failed to fetch skills catalog: ${response.status}`);
10800
+ }
10801
+ const data = await response.json();
10802
+ return {
10803
+ skills: data.skills ?? [],
10804
+ fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
10805
+ };
10806
+ }
10807
+ async downloadSkill(remoteId) {
10808
+ if (!this.baseUrl) {
10809
+ throw createServicemeError(
10810
+ "workspace_not_found",
10811
+ "Skill catalog baseUrl is not configured."
10812
+ );
10813
+ }
10814
+ const response = await this.fetchImpl(
10815
+ `${this.baseUrl}/api/v1/marketplace/skills/download/${remoteId}`
10816
+ );
10817
+ if (!response.ok) {
10818
+ if (response.status === 404) {
10819
+ throw createServicemeError(
10820
+ "not_found",
10821
+ `Skill '${remoteId}' not found`
10822
+ );
10823
+ }
10824
+ throw new Error(
10825
+ `Failed to download skill ${remoteId}: ${response.status}`
10826
+ );
10827
+ }
10828
+ const payload = await response.json();
10829
+ return payload.data?.files ?? [];
10830
+ }
10831
+ };
10832
+
10833
+ // ../../packages/serviceme-core/src/skills/SkillReconciler.ts
10834
+ var SkillReconciler = class {
10835
+ constructor(deps) {
10836
+ this.deps = deps;
10837
+ }
10838
+ async mutate(request) {
10839
+ if (request.targetScope !== "workspace" && request.targetScope !== "user") {
10840
+ throw new Error(`Invalid target scope: ${String(request.targetScope)}`);
10841
+ }
10842
+ if (request.action === "uninstall" || request.action === "move" || request.action === "removeExternal") {
10843
+ return {
10844
+ status: "success",
10845
+ changed: true,
10846
+ message: `Skill ${request.action} completed.`
10847
+ };
10848
+ }
10849
+ if (request.action !== "install") {
10850
+ return {
10851
+ status: "blocked",
10852
+ changed: false,
10853
+ message: `Skill action is not supported by bridge reconciler: ${request.action}`
10854
+ };
10855
+ }
10856
+ const catalog = await this.deps.catalogClient.getCatalog();
10857
+ const remoteSkill = catalog.skills.find(
10858
+ (skill) => this.deps.skillStore.normalizeRemoteSkillId(skill.id) === request.skillId
10859
+ );
10860
+ if (!remoteSkill) {
10861
+ return {
10862
+ status: "blocked",
10863
+ changed: false,
10864
+ message: "Skill not found in catalog."
10865
+ };
10866
+ }
10867
+ if (!request.confirmed && (remoteSkill.hasScripts || remoteSkill.hasHooks)) {
10868
+ return {
10869
+ status: "requires_confirmation",
10870
+ changed: false,
10871
+ hasScripts: Boolean(remoteSkill.hasScripts),
10872
+ hasHooks: Boolean(remoteSkill.hasHooks),
10873
+ message: "This skill contains executable scripts that require confirmation."
10874
+ };
10875
+ }
10876
+ return {
10877
+ status: "success",
10878
+ changed: true,
10879
+ message: "Skill installed."
10880
+ };
10881
+ }
10882
+ };
10883
+
10884
+ // ../../packages/serviceme-core/src/skills/SkillStore.ts
10885
+ var fs11 = __toESM(require("fs/promises"));
10886
+ var path9 = __toESM(require("path"));
10887
+ var USER_SKILL_MARKER_FILE = ".ms-devtools-skill.json";
10888
+ var WORKSPACE_SKILLS_ROOT_RELATIVE = ".github/skills";
10889
+ var WORKSPACE_SKILLS_MARKER_RELATIVE = ".github/.ms-devtools-skills.yml";
10890
+ var SAFE_LOCAL_ID_PATTERN2 = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
10891
+ function assertSafeLocalSkillId(skillId) {
10892
+ if (typeof skillId !== "string" || skillId.length === 0 || skillId === "." || skillId === ".." || skillId.includes("/") || skillId.includes("\\") || !SAFE_LOCAL_ID_PATTERN2.test(skillId)) {
10893
+ throw new Error(`Invalid skill id: ${skillId}`);
10894
+ }
10895
+ return skillId;
10896
+ }
10897
+ var SkillStore = class {
10898
+ constructor(options2) {
10899
+ this.workspacePath = options2.workspacePath;
10900
+ this.userSkillsRoot = options2.userSkillsRoot;
10901
+ this.fileSystem = options2.fileSystem ?? fs11;
10902
+ }
10903
+ normalizeRemoteSkillId(remoteId) {
10904
+ if (remoteId.startsWith("official/")) {
10905
+ return assertSafeLocalSkillId(remoteId.slice("official/".length));
10906
+ }
10907
+ if (remoteId.startsWith("community/")) {
10908
+ const lastSlash = remoteId.lastIndexOf("/");
10909
+ return assertSafeLocalSkillId(remoteId.slice(lastSlash + 1));
10910
+ }
10911
+ return assertSafeLocalSkillId(remoteId);
10912
+ }
10913
+ getWorkspaceSkillPath(skillId) {
10914
+ return `${WORKSPACE_SKILLS_ROOT_RELATIVE}/${skillId}`;
10915
+ }
10916
+ getWorkspaceMarkerPath() {
10917
+ return WORKSPACE_SKILLS_MARKER_RELATIVE;
10918
+ }
10919
+ getUserSkillPath(skillId) {
10920
+ return path9.join(this.userSkillsRoot, skillId);
10921
+ }
10922
+ async listWorkspaceSkillIds() {
10923
+ const skillsRootPath = path9.join(
10924
+ this.workspacePath,
10925
+ WORKSPACE_SKILLS_ROOT_RELATIVE
10926
+ );
10927
+ try {
10928
+ const entries = await this.fileSystem.readdir(skillsRootPath, {
10929
+ withFileTypes: true
10930
+ });
10931
+ return entries.filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).map((entry) => entry.name).sort();
10932
+ } catch {
10933
+ return [];
10934
+ }
10935
+ }
10936
+ async listUserSkillIds() {
10937
+ try {
10938
+ const entries = await this.fileSystem.readdir(this.userSkillsRoot, {
10939
+ withFileTypes: true
10940
+ });
10941
+ return entries.filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).map((entry) => entry.name).sort();
10942
+ } catch {
10943
+ return [];
10944
+ }
10945
+ }
10946
+ async writeManagedUserSkillMarker(skillId) {
10947
+ const targetDir = this.getUserSkillPath(skillId);
10948
+ await this.fileSystem.mkdir(targetDir, { recursive: true });
10949
+ await this.fileSystem.writeFile(
10950
+ path9.join(targetDir, USER_SKILL_MARKER_FILE),
10951
+ JSON.stringify({ skillId, installedBy: "ms-devtools" }, null, 2),
10952
+ "utf-8"
10953
+ );
10954
+ }
10955
+ async isManagedUserSkill(skillId) {
10956
+ try {
10957
+ const marker = await this.fileSystem.readFile(
10958
+ path9.join(this.getUserSkillPath(skillId), USER_SKILL_MARKER_FILE),
10959
+ "utf-8"
10960
+ );
10961
+ const parsed = JSON.parse(marker);
10962
+ return parsed.skillId === skillId;
10963
+ } catch {
10964
+ return false;
10965
+ }
10966
+ }
10967
+ async writeSkillFiles(skillId, scope, files) {
10968
+ const root = scope === "workspace" ? path9.join(this.workspacePath, WORKSPACE_SKILLS_ROOT_RELATIVE) : this.userSkillsRoot;
10969
+ const targetDir = path9.join(root, skillId);
10970
+ await this.fileSystem.mkdir(targetDir, { recursive: true });
10971
+ for (const file of files) {
10972
+ const filePath = path9.join(targetDir, file.path);
10973
+ await this.fileSystem.mkdir(path9.dirname(filePath), { recursive: true });
10974
+ await this.fileSystem.writeFile(filePath, file.content, "utf-8");
10975
+ if (file.executable) {
10976
+ try {
10977
+ await this.fileSystem.chmod(filePath, 493);
10978
+ } catch {
10979
+ }
10980
+ }
10981
+ }
10982
+ }
10983
+ };
10984
+
10985
+ // src/bridge/AgentBridgeHandler.ts
10986
+ function normalizeAgentIdOrThrow(store, remoteId) {
10987
+ try {
10988
+ return store.normalizeRemoteAgentId(remoteId);
10989
+ } catch {
10990
+ throw createServicemeError("invalid_params", `Invalid agent id: ${remoteId}`);
10991
+ }
10992
+ }
10993
+ var AgentBridgeHandler = class {
10994
+ async getMarketplaceState(params) {
10995
+ const context = this.createContext(params.workspacePath);
10996
+ const [catalog, workspaceAgentIds, userAgentIds] = await Promise.all([
10997
+ context.catalogClient.getCatalog(),
10998
+ context.store.listWorkspaceAgentIds(),
10999
+ context.store.listUserAgentIds()
11000
+ ]);
11001
+ const workspaceSet = new Set(workspaceAgentIds);
11002
+ const userSet = new Set(userAgentIds);
11003
+ const now = (/* @__PURE__ */ new Date()).toISOString();
11004
+ const byId = /* @__PURE__ */ new Map();
11005
+ for (const agent of catalog.agents) {
11006
+ const agentId = normalizeAgentIdOrThrow(context.store, agent.id);
11007
+ const workspaceInstalled = workspaceSet.has(agentId);
11008
+ const userInstalled = userSet.has(agentId);
11009
+ byId.set(agentId, {
11010
+ id: agentId,
11011
+ displayName: agent.displayName,
11012
+ description: agent.description,
11013
+ version: agent.version,
11014
+ updatedAt: agent.updatedAt,
11015
+ categoryId: agent.categoryId,
11016
+ isCatalogAgent: true,
11017
+ recommended: agent.recommended,
11018
+ installCount: agent.installCount,
11019
+ ownerScope: agent.ownerScope,
11020
+ ownerKind: agent.ownerKind,
11021
+ hasConflict: agent.hasConflict,
11022
+ tools: agent.tools,
11023
+ source: agent.source,
11024
+ localAgentPath: workspaceInstalled || userInstalled ? workspaceInstalled ? path10.join(
11025
+ context.workspacePath,
11026
+ context.store.getWorkspaceAgentsRootPath(),
11027
+ `${agentId}.agent.md`
11028
+ ) : path10.join(
11029
+ context.store.getUserAgentsRootPath(),
11030
+ `${agentId}.agent.md`
11031
+ ) : void 0,
11032
+ canPublish: agent.canPublish,
11033
+ workspaceState: this.makeScopeState(
11034
+ "workspace",
11035
+ workspaceInstalled,
11036
+ path10.join(
11037
+ context.workspacePath,
11038
+ context.store.getWorkspaceAgentsRootPath(),
11039
+ `${agentId}.agent.md`
11040
+ )
11041
+ ),
11042
+ userState: this.makeScopeState(
11043
+ "user",
11044
+ userInstalled,
11045
+ path10.join(
11046
+ context.store.getUserAgentsRootPath(),
11047
+ `${agentId}.agent.md`
11048
+ )
11049
+ )
11050
+ });
11051
+ }
11052
+ for (const agentId of workspaceAgentIds) {
11053
+ if (byId.has(agentId)) {
11054
+ continue;
11055
+ }
11056
+ byId.set(agentId, {
11057
+ id: agentId,
11058
+ displayName: agentId,
11059
+ description: "Local installed agent",
11060
+ version: "0.0.0",
11061
+ updatedAt: now,
11062
+ isCatalogAgent: false,
11063
+ recommended: false,
11064
+ installCount: 0,
11065
+ hasConflict: false,
11066
+ tools: [],
11067
+ source: "local",
11068
+ localAgentPath: path10.join(
11069
+ context.workspacePath,
11070
+ context.store.getWorkspaceAgentsRootPath(),
11071
+ `${agentId}.agent.md`
11072
+ ),
11073
+ workspaceState: this.makeScopeState(
11074
+ "workspace",
11075
+ true,
11076
+ path10.join(
11077
+ context.workspacePath,
11078
+ context.store.getWorkspaceAgentsRootPath(),
11079
+ `${agentId}.agent.md`
11080
+ )
11081
+ ),
11082
+ userState: this.makeScopeState(
11083
+ "user",
11084
+ userSet.has(agentId),
11085
+ path10.join(
11086
+ context.store.getUserAgentsRootPath(),
11087
+ `${agentId}.agent.md`
11088
+ )
11089
+ )
11090
+ });
11091
+ }
11092
+ for (const agentId of userAgentIds) {
11093
+ if (byId.has(agentId)) {
11094
+ continue;
11095
+ }
11096
+ byId.set(agentId, {
11097
+ id: agentId,
11098
+ displayName: agentId,
11099
+ description: "Local installed agent",
11100
+ version: "0.0.0",
11101
+ updatedAt: now,
11102
+ isCatalogAgent: false,
11103
+ recommended: false,
11104
+ installCount: 0,
11105
+ hasConflict: false,
11106
+ tools: [],
11107
+ source: "local",
11108
+ localAgentPath: path10.join(
11109
+ context.store.getUserAgentsRootPath(),
11110
+ `${agentId}.agent.md`
11111
+ ),
11112
+ workspaceState: this.makeScopeState(
11113
+ "workspace",
11114
+ workspaceSet.has(agentId),
11115
+ path10.join(
11116
+ context.workspacePath,
11117
+ context.store.getWorkspaceAgentsRootPath(),
11118
+ `${agentId}.agent.md`
11119
+ )
11120
+ ),
11121
+ userState: this.makeScopeState(
11122
+ "user",
11123
+ true,
11124
+ path10.join(
11125
+ context.store.getUserAgentsRootPath(),
11126
+ `${agentId}.agent.md`
11127
+ )
11128
+ )
11129
+ });
11130
+ }
11131
+ return {
11132
+ configPath: path10.join(
11133
+ context.workspacePath,
11134
+ context.store.getWorkspaceStateFilePath()
11135
+ ),
11136
+ userAgentsPath: context.userAgentsRoot,
11137
+ agents: [...byId.values()].sort((a, b) => a.id.localeCompare(b.id)),
11138
+ installedAgentIds: [.../* @__PURE__ */ new Set([...workspaceAgentIds, ...userAgentIds])],
11139
+ workspaceOpen: true
11140
+ };
11141
+ }
11142
+ async mutate(request) {
11143
+ const context = this.createContext();
11144
+ const agentId = normalizeAgentIdOrThrow(context.store, request.agentId);
11145
+ const mutateResult = await context.reconciler.mutate({
11146
+ ...request,
11147
+ agentId
11148
+ });
11149
+ if (mutateResult.status === "success") {
11150
+ await this.applyMutationSideEffect(context, {
11151
+ ...request,
11152
+ agentId
11153
+ });
11154
+ }
11155
+ return {
11156
+ state: await this.getMarketplaceState({
11157
+ workspacePath: context.workspacePath
11158
+ }),
11159
+ agentId,
11160
+ targetScope: request.targetScope,
11161
+ action: request.action,
11162
+ changed: mutateResult.changed,
11163
+ status: mutateResult.status,
11164
+ message: mutateResult.message,
11165
+ tools: mutateResult.tools
11166
+ };
11167
+ }
11168
+ async permissions(params) {
11169
+ const context = this.createContext();
11170
+ const agentId = normalizeAgentIdOrThrow(context.store, params.agentId);
11171
+ const scope = params.scope ?? "workspace";
11172
+ const content = await this.readAgentContent(context, agentId, scope);
11173
+ return context.reconciler.getPermissionSummary(agentId, agentId, content);
11174
+ }
11175
+ createContext(workspacePath) {
11176
+ const resolvedWorkspacePath = workspacePath ?? process.cwd();
11177
+ const userAgentsRoot = path10.join(os2.homedir(), ".copilot", "agents");
11178
+ const store = new AgentStore({
11179
+ workspacePath: resolvedWorkspacePath,
11180
+ userAgentsRoot
11181
+ });
11182
+ const catalogClient = new AgentCatalogClient();
11183
+ const reconciler = new AgentReconciler({
11184
+ agentStore: store,
11185
+ catalogClient
11186
+ });
11187
+ return {
11188
+ workspacePath: resolvedWorkspacePath,
11189
+ userAgentsRoot,
11190
+ store,
11191
+ catalogClient,
11192
+ reconciler
11193
+ };
11194
+ }
11195
+ makeScopeState(scope, installed, agentPath) {
11196
+ if (installed) {
11197
+ return {
11198
+ scope,
11199
+ status: "installed",
11200
+ path: agentPath,
11201
+ isInstalled: true,
11202
+ canInstall: false,
11203
+ canUninstall: true,
11204
+ canRemove: false,
11205
+ canMoveHere: false
11206
+ };
11207
+ }
11208
+ return {
11209
+ scope,
11210
+ status: "absent",
11211
+ isInstalled: false,
11212
+ canInstall: true,
11213
+ canUninstall: false,
11214
+ canRemove: false,
11215
+ canMoveHere: true
11216
+ };
11217
+ }
11218
+ async applyMutationSideEffect(context, request) {
11219
+ const workspaceFlatPath = path10.join(
11220
+ context.workspacePath,
11221
+ context.store.getWorkspaceAgentsRootPath(),
11222
+ `${request.agentId}.agent.md`
11223
+ );
11224
+ const userFlatPath = path10.join(
11225
+ context.store.getUserAgentsRootPath(),
11226
+ `${request.agentId}.agent.md`
11227
+ );
11228
+ switch (request.action) {
11229
+ case "install":
11230
+ if (request.targetScope === "workspace") {
11231
+ await this.writeDefaultAgentFile(workspaceFlatPath, request.agentId);
11232
+ } else {
11233
+ await this.writeDefaultAgentFile(userFlatPath, request.agentId);
11234
+ }
11235
+ return;
11236
+ case "uninstall":
11237
+ if (request.targetScope === "workspace") {
11238
+ await fs12.rm(workspaceFlatPath, { recursive: true, force: true });
11239
+ } else {
11240
+ await fs12.rm(userFlatPath, { recursive: true, force: true });
11241
+ }
11242
+ return;
11243
+ case "move":
11244
+ if (request.targetScope === "workspace") {
11245
+ await this.moveEntry(userFlatPath, workspaceFlatPath);
11246
+ } else {
11247
+ await this.moveEntry(workspaceFlatPath, userFlatPath);
11248
+ }
11249
+ return;
11250
+ default:
11251
+ return;
11252
+ }
11253
+ }
11254
+ async moveEntry(fromPath, toPath) {
11255
+ await fs12.mkdir(path10.dirname(toPath), { recursive: true });
11256
+ try {
11257
+ await fs12.rename(fromPath, toPath);
11258
+ } catch {
11259
+ await fs12.cp(fromPath, toPath, { recursive: true });
11260
+ await fs12.rm(fromPath, { recursive: true, force: true });
11261
+ }
11262
+ }
11263
+ async writeDefaultAgentFile(targetPath, agentId) {
11264
+ await fs12.mkdir(path10.dirname(targetPath), { recursive: true });
11265
+ await fs12.writeFile(
11266
+ targetPath,
11267
+ `---
11268
+ name: ${agentId}
11269
+ tools:
11270
+ - run_in_terminal
11271
+ - read_file
11272
+ ---
11273
+
11274
+ # ${agentId}
11275
+ `,
11276
+ "utf8"
11277
+ );
11278
+ }
11279
+ async readAgentContent(context, agentId, scope) {
11280
+ const root = scope === "workspace" ? path10.join(
11281
+ context.workspacePath,
11282
+ context.store.getWorkspaceAgentsRootPath()
11283
+ ) : context.store.getUserAgentsRootPath();
11284
+ const candidates = [
11285
+ path10.join(root, `${agentId}.agent.md`),
11286
+ path10.join(root, agentId, `${agentId}.agent.md`)
11287
+ ];
11288
+ for (const candidate of candidates) {
11289
+ try {
11290
+ return await fs12.readFile(candidate, "utf8");
11291
+ } catch {
11292
+ }
11293
+ }
11294
+ throw createServicemeError(
11295
+ "not_found",
11296
+ `Agent file not found for ${agentId} in ${scope} scope.`
11297
+ );
11298
+ }
11299
+ };
11300
+
11301
+ // src/bridge/ndjson.ts
11302
+ function writeBridgeMessage(message) {
11303
+ process.stdout.write(`${JSON.stringify(message)}
11304
+ `);
11305
+ }
11306
+
11307
+ // src/bridge/SkillBridgeHandler.ts
11308
+ var fs13 = __toESM(require("fs/promises"));
11309
+ var os3 = __toESM(require("os"));
11310
+ var path11 = __toESM(require("path"));
11311
+ function normalizeSkillIdOrThrow(store, remoteId) {
11312
+ try {
11313
+ return store.normalizeRemoteSkillId(remoteId);
11314
+ } catch {
11315
+ throw createServicemeError("invalid_params", `Invalid skill id: ${remoteId}`);
11316
+ }
11317
+ }
11318
+ var SkillBridgeHandler = class {
11319
+ async getMarketplaceState(params) {
11320
+ const context = this.createContext(params.workspacePath);
11321
+ const [catalog, workspaceSkillIds, userSkillIds] = await Promise.all([
11322
+ context.catalogClient.getCatalog(),
11323
+ context.store.listWorkspaceSkillIds(),
11324
+ context.store.listUserSkillIds()
11325
+ ]);
11326
+ const workspaceSet = new Set(workspaceSkillIds);
11327
+ const userSet = new Set(userSkillIds);
11328
+ const now = (/* @__PURE__ */ new Date()).toISOString();
11329
+ const byId = /* @__PURE__ */ new Map();
11330
+ for (const skill of catalog.skills) {
11331
+ const skillId = normalizeSkillIdOrThrow(context.store, skill.id);
11332
+ const workspaceInstalled = workspaceSet.has(skillId);
11333
+ const userInstalled = userSet.has(skillId);
11334
+ byId.set(skillId, {
11335
+ id: skillId,
11336
+ displayName: skill.displayName,
11337
+ description: skill.description,
11338
+ version: skill.version,
11339
+ updatedAt: skill.updatedAt,
11340
+ categoryId: skill.categoryId,
11341
+ enabled: skill.enabled,
11342
+ isCatalogSkill: true,
11343
+ recommended: skill.recommended,
11344
+ installCount: skill.installCount,
11345
+ requiresSetup: skill.requiresSetup,
11346
+ setupHint: skill.setupHint,
11347
+ homepage: skill.homepage,
11348
+ ownerScope: skill.ownerScope,
11349
+ ownerKind: skill.ownerKind,
11350
+ hasConflict: skill.hasConflict,
11351
+ hasScripts: skill.hasScripts,
11352
+ hasHooks: skill.hasHooks,
11353
+ source: skill.source,
11354
+ localSkillPath: workspaceInstalled || userInstalled ? workspaceInstalled ? path11.join(
11355
+ context.workspacePath,
11356
+ context.store.getWorkspaceSkillPath(skillId)
11357
+ ) : context.store.getUserSkillPath(skillId) : void 0,
11358
+ canPublish: skill.canPublish,
11359
+ workspaceState: this.makeScopeState(
11360
+ "workspace",
11361
+ workspaceInstalled,
11362
+ path11.join(
11363
+ context.workspacePath,
11364
+ context.store.getWorkspaceSkillPath(skillId)
11365
+ )
11366
+ ),
11367
+ userState: this.makeScopeState(
11368
+ "user",
11369
+ userInstalled,
11370
+ context.store.getUserSkillPath(skillId)
11371
+ )
11372
+ });
11373
+ }
11374
+ for (const skillId of workspaceSkillIds) {
11375
+ if (byId.has(skillId)) {
11376
+ continue;
11377
+ }
11378
+ byId.set(skillId, {
11379
+ id: skillId,
11380
+ displayName: skillId,
11381
+ description: "Local installed skill",
11382
+ version: "0.0.0",
11383
+ updatedAt: now,
11384
+ isCatalogSkill: false,
11385
+ recommended: false,
11386
+ installCount: 0,
11387
+ hasConflict: false,
11388
+ source: "local",
11389
+ localSkillPath: path11.join(
11390
+ context.workspacePath,
11391
+ context.store.getWorkspaceSkillPath(skillId)
11392
+ ),
11393
+ workspaceState: this.makeScopeState(
11394
+ "workspace",
11395
+ true,
11396
+ path11.join(
11397
+ context.workspacePath,
11398
+ context.store.getWorkspaceSkillPath(skillId)
11399
+ )
11400
+ ),
11401
+ userState: this.makeScopeState(
11402
+ "user",
11403
+ userSet.has(skillId),
11404
+ context.store.getUserSkillPath(skillId)
11405
+ )
11406
+ });
11407
+ }
11408
+ for (const skillId of userSkillIds) {
11409
+ if (byId.has(skillId)) {
11410
+ continue;
11411
+ }
11412
+ byId.set(skillId, {
11413
+ id: skillId,
11414
+ displayName: skillId,
11415
+ description: "Local installed skill",
11416
+ version: "0.0.0",
11417
+ updatedAt: now,
11418
+ isCatalogSkill: false,
11419
+ recommended: false,
11420
+ installCount: 0,
11421
+ hasConflict: false,
11422
+ source: "local",
11423
+ localSkillPath: context.store.getUserSkillPath(skillId),
11424
+ workspaceState: this.makeScopeState(
11425
+ "workspace",
11426
+ workspaceSet.has(skillId),
11427
+ path11.join(
11428
+ context.workspacePath,
11429
+ context.store.getWorkspaceSkillPath(skillId)
11430
+ )
11431
+ ),
11432
+ userState: this.makeScopeState(
11433
+ "user",
11434
+ true,
11435
+ context.store.getUserSkillPath(skillId)
11436
+ )
11437
+ });
11438
+ }
11439
+ return {
11440
+ configPath: path11.join(
11441
+ context.workspacePath,
11442
+ context.store.getWorkspaceMarkerPath()
11443
+ ),
11444
+ userSkillsPath: context.userSkillsRoot,
11445
+ skills: [...byId.values()].sort((a, b) => a.id.localeCompare(b.id)),
11446
+ enabledSkillIds: [],
11447
+ recommendedSkillIds: catalog.skills.filter((skill) => skill.recommended).map((skill) => context.store.normalizeRemoteSkillId(skill.id)),
11448
+ onboardingRequired: false,
11449
+ hasPersistedSelection: false,
11450
+ workspaceOpen: true
11451
+ };
11452
+ }
11453
+ async mutate(request) {
11454
+ const context = this.createContext();
11455
+ const skillId = normalizeSkillIdOrThrow(context.store, request.skillId);
11456
+ const mutateResult = await context.reconciler.mutate({
11457
+ ...request,
11458
+ skillId
11459
+ });
11460
+ if (mutateResult.status === "success") {
11461
+ await this.applyMutationSideEffect(context, {
11462
+ ...request,
11463
+ skillId
11464
+ });
11465
+ }
11466
+ return {
11467
+ state: await this.getMarketplaceState({
11468
+ workspacePath: context.workspacePath
11469
+ }),
11470
+ skillId,
11471
+ targetScope: request.targetScope,
11472
+ action: request.action,
11473
+ changed: mutateResult.changed,
11474
+ status: mutateResult.status,
11475
+ message: mutateResult.message,
11476
+ hasScripts: mutateResult.hasScripts,
11477
+ hasHooks: mutateResult.hasHooks
11478
+ };
11479
+ }
11480
+ async reconcile(params) {
11481
+ const state = await this.getMarketplaceState({
11482
+ workspacePath: params.workspacePath,
11483
+ forceRefresh: params.force
11484
+ });
11485
+ return {
11486
+ state,
11487
+ changed: false
11488
+ };
11489
+ }
11490
+ async publishable(params) {
11491
+ const context = this.createContext(params.workspacePath);
11492
+ const workspaceSkillIds = await context.store.listWorkspaceSkillIds();
11493
+ return {
11494
+ skills: workspaceSkillIds.map((skillId) => ({
11495
+ id: skillId,
11496
+ displayName: skillId,
11497
+ path: path11.join(
11498
+ context.workspacePath,
11499
+ context.store.getWorkspaceSkillPath(skillId)
11500
+ )
11501
+ }))
11502
+ };
11503
+ }
11504
+ createContext(workspacePath) {
11505
+ const resolvedWorkspacePath = workspacePath ?? process.cwd();
11506
+ const userSkillsRoot = path11.join(os3.homedir(), ".agents", "skills");
11507
+ const store = new SkillStore({
11508
+ workspacePath: resolvedWorkspacePath,
11509
+ userSkillsRoot
11510
+ });
11511
+ const catalogClient = new SkillCatalogClient();
11512
+ const reconciler = new SkillReconciler({
11513
+ skillStore: store,
11514
+ catalogClient
11515
+ });
11516
+ return {
11517
+ workspacePath: resolvedWorkspacePath,
11518
+ userSkillsRoot,
11519
+ store,
11520
+ catalogClient,
11521
+ reconciler
11522
+ };
11523
+ }
11524
+ makeScopeState(scope, installed, skillPath) {
11525
+ if (installed) {
11526
+ return {
11527
+ scope,
11528
+ status: "installed",
11529
+ path: skillPath,
11530
+ isInstalled: true,
11531
+ canInstall: false,
11532
+ canUninstall: true,
11533
+ canRemove: false,
11534
+ canMoveHere: false
11535
+ };
11536
+ }
11537
+ return {
11538
+ scope,
11539
+ status: "absent",
11540
+ isInstalled: false,
11541
+ canInstall: true,
11542
+ canUninstall: false,
11543
+ canRemove: false,
11544
+ canMoveHere: true
11545
+ };
11546
+ }
11547
+ async applyMutationSideEffect(context, request) {
11548
+ const workspaceSkillPath = path11.join(
11549
+ context.workspacePath,
11550
+ context.store.getWorkspaceSkillPath(request.skillId)
11551
+ );
11552
+ const userSkillPath = context.store.getUserSkillPath(request.skillId);
11553
+ switch (request.action) {
11554
+ case "install":
11555
+ if (request.targetScope === "workspace") {
11556
+ await fs13.mkdir(workspaceSkillPath, { recursive: true });
11557
+ } else {
11558
+ await fs13.mkdir(userSkillPath, { recursive: true });
11559
+ await context.store.writeManagedUserSkillMarker(request.skillId);
11560
+ }
11561
+ return;
11562
+ case "uninstall":
11563
+ if (request.targetScope === "workspace") {
11564
+ await fs13.rm(workspaceSkillPath, { recursive: true, force: true });
11565
+ } else {
11566
+ await fs13.rm(userSkillPath, { recursive: true, force: true });
11567
+ }
11568
+ return;
11569
+ case "move":
11570
+ if (request.targetScope === "workspace") {
11571
+ await this.moveDirectory(userSkillPath, workspaceSkillPath);
11572
+ } else {
11573
+ await this.moveDirectory(workspaceSkillPath, userSkillPath);
11574
+ await context.store.writeManagedUserSkillMarker(request.skillId);
11575
+ }
11576
+ return;
11577
+ default:
11578
+ return;
11579
+ }
11580
+ }
11581
+ async moveDirectory(fromPath, toPath) {
11582
+ await fs13.mkdir(path11.dirname(toPath), { recursive: true });
11583
+ try {
11584
+ await fs13.rename(fromPath, toPath);
11585
+ } catch {
11586
+ await fs13.cp(fromPath, toPath, { recursive: true });
11587
+ await fs13.rm(fromPath, { recursive: true, force: true });
11588
+ }
11589
+ }
11590
+ };
11591
+
10394
11592
  // src/bridge/TaskBridgeHandler.ts
10395
11593
  var TaskBridgeHandler = class {
10396
11594
  constructor(logger, emitEvent) {
@@ -10438,7 +11636,9 @@ var CAPABILITIES = {
10438
11636
  bridge: true,
10439
11637
  json: 1,
10440
11638
  env: 1,
10441
- tasks: 1
11639
+ tasks: 1,
11640
+ skills: 1,
11641
+ agents: 1
10442
11642
  };
10443
11643
  var BridgeServer = class {
10444
11644
  constructor(logger) {
@@ -10447,9 +11647,11 @@ var BridgeServer = class {
10447
11647
  this.taskHandler = new TaskBridgeHandler(logger, (event, params) => {
10448
11648
  this.writeEvent(event, params);
10449
11649
  });
11650
+ this.skillHandler = new SkillBridgeHandler();
11651
+ this.agentHandler = new AgentBridgeHandler();
10450
11652
  }
10451
11653
  async run() {
10452
- const reader = readline__namespace.createInterface({
11654
+ const reader = readline.createInterface({
10453
11655
  input: process.stdin,
10454
11656
  crlfDelay: Number.POSITIVE_INFINITY
10455
11657
  });
@@ -10552,6 +11754,56 @@ var BridgeServer = class {
10552
11754
  this.writeSuccess(request.id, result);
10553
11755
  return;
10554
11756
  }
11757
+ case "skill.marketplace-state": {
11758
+ const skillRequest = request;
11759
+ const result = await this.skillHandler.getMarketplaceState(
11760
+ skillRequest.params
11761
+ );
11762
+ this.writeSuccess(request.id, result);
11763
+ return;
11764
+ }
11765
+ case "skill.mutate": {
11766
+ const skillRequest = request;
11767
+ const result = await this.skillHandler.mutate(skillRequest.params);
11768
+ this.writeSuccess(request.id, result);
11769
+ return;
11770
+ }
11771
+ case "skill.reconcile": {
11772
+ const skillRequest = request;
11773
+ const result = await this.skillHandler.reconcile(skillRequest.params);
11774
+ this.writeSuccess(request.id, result);
11775
+ return;
11776
+ }
11777
+ case "skill.publishable": {
11778
+ const skillRequest = request;
11779
+ const result = await this.skillHandler.publishable(
11780
+ skillRequest.params
11781
+ );
11782
+ this.writeSuccess(request.id, result);
11783
+ return;
11784
+ }
11785
+ case "agent.marketplace-state": {
11786
+ const agentRequest = request;
11787
+ const result = await this.agentHandler.getMarketplaceState(
11788
+ agentRequest.params
11789
+ );
11790
+ this.writeSuccess(request.id, result);
11791
+ return;
11792
+ }
11793
+ case "agent.mutate": {
11794
+ const agentRequest = request;
11795
+ const result = await this.agentHandler.mutate(agentRequest.params);
11796
+ this.writeSuccess(request.id, result);
11797
+ return;
11798
+ }
11799
+ case "agent.permissions": {
11800
+ const agentRequest = request;
11801
+ const result = await this.agentHandler.permissions(
11802
+ agentRequest.params
11803
+ );
11804
+ this.writeSuccess(request.id, result);
11805
+ return;
11806
+ }
10555
11807
  default:
10556
11808
  this.writeError(
10557
11809
  request.id,
@@ -10592,5 +11844,7 @@ var BridgeServer = class {
10592
11844
  });
10593
11845
  }
10594
11846
  };
10595
-
10596
- exports.BridgeServer = BridgeServer;
11847
+ // Annotate the CommonJS export names for ESM import in node:
11848
+ 0 && (module.exports = {
11849
+ BridgeServer
11850
+ });