drizzle-kit 0.20.4-bf71f08 → 0.20.4-bfc36f4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. package/bin.cjs +1027 -984
  2. package/package.json +4 -4
  3. package/utils-studio.js +1268 -1267
  4. package/utils-studio.mjs +1317 -1316
  5. package/utils.js +1028 -982
package/utils.js CHANGED
@@ -1075,7 +1075,7 @@ var require_hanji = __commonJS({
1075
1075
  });
1076
1076
 
1077
1077
  // src/cli/views.ts
1078
- var import_hanji, info, schema, isRenamePromptItem, ResolveColumnSelect, ResolveTableSelect, ResolveSchemasSelect, Spinner, IntrospectProgress;
1078
+ var import_hanji, info, error, schema, isRenamePromptItem, ResolveColumnSelect, ResolveTableSelect, ResolveSchemasSelect, Spinner, IntrospectProgress;
1079
1079
  var init_views = __esm({
1080
1080
  "src/cli/views.ts"() {
1081
1081
  init_source();
@@ -1083,6 +1083,9 @@ var init_views = __esm({
1083
1083
  info = (msg, greyMsg = "") => {
1084
1084
  return `${source_default.blue.bold("Info:")} ${msg} ${greyMsg ? source_default.grey(greyMsg) : ""}`.trim();
1085
1085
  };
1086
+ error = (error2, greyMsg = "") => {
1087
+ return `${source_default.red.bold("Err:")} ${error2} ${greyMsg ? source_default.grey(greyMsg) : ""}`.trim();
1088
+ };
1086
1089
  schema = (schema4) => {
1087
1090
  const tables = Object.values(schema4.tables);
1088
1091
  let msg = source_default.bold(`${tables.length} tables
@@ -1322,14 +1325,14 @@ Is ${source_default.bold.blue(
1322
1325
  this.requestLayout();
1323
1326
  }
1324
1327
  render() {
1325
- let info2 = "";
1328
+ let info3 = "";
1326
1329
  const spin = this.spinner.value();
1327
- info2 += this.statusText(spin, this.state.tables);
1328
- info2 += this.statusText(spin, this.state.columns);
1329
- info2 += this.statusText(spin, this.state.enums);
1330
- info2 += this.statusText(spin, this.state.indexes);
1331
- info2 += this.statusText(spin, this.state.fks);
1332
- return info2;
1330
+ info3 += this.statusText(spin, this.state.tables);
1331
+ info3 += this.statusText(spin, this.state.columns);
1332
+ info3 += this.statusText(spin, this.state.enums);
1333
+ info3 += this.statusText(spin, this.state.indexes);
1334
+ info3 += this.statusText(spin, this.state.fks);
1335
+ return info3;
1333
1336
  }
1334
1337
  };
1335
1338
  }
@@ -5804,7 +5807,7 @@ var require_browser = __commonJS({
5804
5807
  exports.load = load;
5805
5808
  exports.useColors = useColors;
5806
5809
  exports.storage = localstorage();
5807
- exports.destroy = (() => {
5810
+ exports.destroy = /* @__PURE__ */ (() => {
5808
5811
  let warned = false;
5809
5812
  return () => {
5810
5813
  if (!warned) {
@@ -6265,9 +6268,9 @@ var require_src2 = __commonJS({
6265
6268
  }
6266
6269
  });
6267
6270
 
6268
- // node_modules/.pnpm/esbuild-register@3.4.2_esbuild@0.18.6/node_modules/esbuild-register/dist/node.js
6271
+ // node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.19.7/node_modules/esbuild-register/dist/node.js
6269
6272
  var require_node2 = __commonJS({
6270
- "node_modules/.pnpm/esbuild-register@3.4.2_esbuild@0.18.6/node_modules/esbuild-register/dist/node.js"(exports) {
6273
+ "node_modules/.pnpm/esbuild-register@3.5.0_esbuild@0.19.7/node_modules/esbuild-register/dist/node.js"(exports) {
6271
6274
  "use strict";
6272
6275
  Object.defineProperty(exports, "__esModule", { value: true });
6273
6276
  function _interopRequireDefault2(obj) {
@@ -8532,13 +8535,13 @@ var require_node2 = __commonJS({
8532
8535
  }
8533
8536
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
8534
8537
  try {
8535
- var info2 = gen[key](arg);
8536
- var value = info2.value;
8538
+ var info3 = gen[key](arg);
8539
+ var value = info3.value;
8537
8540
  } catch (error2) {
8538
8541
  reject(error2);
8539
8542
  return;
8540
8543
  }
8541
- if (info2.done) {
8544
+ if (info3.done) {
8542
8545
  resolve(value);
8543
8546
  } else {
8544
8547
  Promise.resolve(value).then(_next, _throw);
@@ -8873,8 +8876,12 @@ var require_node2 = __commonJS({
8873
8876
  var require_filesystem = __commonJS2((exports2) => {
8874
8877
  "use strict";
8875
8878
  Object.defineProperty(exports2, "__esModule", { value: true });
8879
+ exports2.removeExtension = exports2.fileExistsAsync = exports2.readJsonFromDiskAsync = exports2.readJsonFromDiskSync = exports2.fileExistsSync = void 0;
8876
8880
  var fs32 = require("fs");
8877
8881
  function fileExistsSync(path4) {
8882
+ if (!fs32.existsSync(path4)) {
8883
+ return false;
8884
+ }
8878
8885
  try {
8879
8886
  var stats = fs32.statSync(path4);
8880
8887
  return stats.isFile();
@@ -8917,6 +8924,7 @@ var require_node2 = __commonJS({
8917
8924
  var require_mapping_entry = __commonJS2((exports2) => {
8918
8925
  "use strict";
8919
8926
  Object.defineProperty(exports2, "__esModule", { value: true });
8927
+ exports2.getAbsoluteMappingEntries = void 0;
8920
8928
  var path4 = require("path");
8921
8929
  function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
8922
8930
  var sortedKeys = sortByLongestPrefix(Object.keys(paths));
@@ -8926,14 +8934,14 @@ var require_node2 = __commonJS({
8926
8934
  absolutePaths.push({
8927
8935
  pattern: key,
8928
8936
  paths: paths[key].map(function(pathToResolve) {
8929
- return path4.join(absoluteBaseUrl, pathToResolve);
8937
+ return path4.resolve(absoluteBaseUrl, pathToResolve);
8930
8938
  })
8931
8939
  });
8932
8940
  }
8933
8941
  if (!paths["*"] && addMatchAll) {
8934
8942
  absolutePaths.push({
8935
8943
  pattern: "*",
8936
- paths: [absoluteBaseUrl.replace(/\/$/, "") + "/*"]
8944
+ paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")]
8937
8945
  });
8938
8946
  }
8939
8947
  return absolutePaths;
@@ -8952,11 +8960,12 @@ var require_node2 = __commonJS({
8952
8960
  var require_try_path = __commonJS2((exports2) => {
8953
8961
  "use strict";
8954
8962
  Object.defineProperty(exports2, "__esModule", { value: true });
8963
+ exports2.exhaustiveTypeException = exports2.getStrippedPath = exports2.getPathsToTry = void 0;
8955
8964
  var path4 = require("path");
8956
8965
  var path_1 = require("path");
8957
8966
  var filesystem_1 = require_filesystem();
8958
8967
  function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
8959
- if (!absolutePathMappings || !requestedModule || requestedModule[0] === "." || requestedModule[0] === path4.sep) {
8968
+ if (!absolutePathMappings || !requestedModule || requestedModule[0] === ".") {
8960
8969
  return void 0;
8961
8970
  }
8962
8971
  var pathsToTry = [];
@@ -8989,11 +8998,11 @@ var require_node2 = __commonJS({
8989
8998
  }
8990
8999
  exports2.getPathsToTry = getPathsToTry;
8991
9000
  function getStrippedPath(tryPath) {
8992
- return tryPath.type === "index" ? path_1.dirname(tryPath.path) : tryPath.type === "file" ? tryPath.path : tryPath.type === "extension" ? filesystem_1.removeExtension(tryPath.path) : tryPath.type === "package" ? tryPath.path : exhaustiveTypeException(tryPath.type);
9001
+ return tryPath.type === "index" ? (0, path_1.dirname)(tryPath.path) : tryPath.type === "file" ? tryPath.path : tryPath.type === "extension" ? (0, filesystem_1.removeExtension)(tryPath.path) : tryPath.type === "package" ? tryPath.path : exhaustiveTypeException(tryPath.type);
8993
9002
  }
8994
9003
  exports2.getStrippedPath = getStrippedPath;
8995
9004
  function exhaustiveTypeException(check) {
8996
- throw new Error("Unknown type " + check);
9005
+ throw new Error("Unknown type ".concat(check));
8997
9006
  }
8998
9007
  exports2.exhaustiveTypeException = exhaustiveTypeException;
8999
9008
  function matchStar(pattern, search) {
@@ -9021,6 +9030,7 @@ var require_node2 = __commonJS({
9021
9030
  var require_match_path_sync = __commonJS2((exports2) => {
9022
9031
  "use strict";
9023
9032
  Object.defineProperty(exports2, "__esModule", { value: true });
9033
+ exports2.matchFromAbsolutePaths = exports2.createMatchPath = void 0;
9024
9034
  var path4 = require("path");
9025
9035
  var Filesystem = require_filesystem();
9026
9036
  var MappingEntry = require_mapping_entry();
@@ -9060,8 +9070,10 @@ var require_node2 = __commonJS({
9060
9070
  exports2.matchFromAbsolutePaths = matchFromAbsolutePaths;
9061
9071
  function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) {
9062
9072
  for (var index4 = 0; index4 < mainFields.length; index4++) {
9063
- var mainFieldName = mainFields[index4];
9064
- var candidateMapping = packageJson[mainFieldName];
9073
+ var mainFieldSelector = mainFields[index4];
9074
+ var candidateMapping = typeof mainFieldSelector === "string" ? packageJson[mainFieldSelector] : mainFieldSelector.reduce(function(obj, key) {
9075
+ return obj[key];
9076
+ }, packageJson);
9065
9077
  if (candidateMapping && typeof candidateMapping === "string") {
9066
9078
  var candidateFilePath = path4.join(path4.dirname(packageJsonPath), candidateMapping);
9067
9079
  if (fileExists(candidateFilePath)) {
@@ -9089,7 +9101,7 @@ var require_node2 = __commonJS({
9089
9101
  if (packageJson) {
9090
9102
  var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists);
9091
9103
  if (mainFieldMappedFile) {
9092
- return Filesystem.removeExtension(mainFieldMappedFile);
9104
+ return mainFieldMappedFile;
9093
9105
  }
9094
9106
  }
9095
9107
  } else {
@@ -9102,6 +9114,7 @@ var require_node2 = __commonJS({
9102
9114
  var require_match_path_async = __commonJS2((exports2) => {
9103
9115
  "use strict";
9104
9116
  Object.defineProperty(exports2, "__esModule", { value: true });
9117
+ exports2.matchFromAbsolutePathsAsync = exports2.createMatchPathAsync = void 0;
9105
9118
  var path4 = require("path");
9106
9119
  var TryPath = require_try_path();
9107
9120
  var MappingEntry = require_mapping_entry();
@@ -9149,7 +9162,10 @@ var require_node2 = __commonJS({
9149
9162
  var tryNext = function() {
9150
9163
  return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index4 + 1);
9151
9164
  };
9152
- var mainFieldMapping = packageJson[mainFields[index4]];
9165
+ var mainFieldSelector = mainFields[index4];
9166
+ var mainFieldMapping = typeof mainFieldSelector === "string" ? packageJson[mainFieldSelector] : mainFieldSelector.reduce(function(obj, key) {
9167
+ return obj[key];
9168
+ }, packageJson);
9153
9169
  if (typeof mainFieldMapping !== "string") {
9154
9170
  return tryNext();
9155
9171
  }
@@ -9196,7 +9212,7 @@ var require_node2 = __commonJS({
9196
9212
  return doneCallback(mainFieldErr);
9197
9213
  }
9198
9214
  if (mainFieldMappedFile) {
9199
- return doneCallback(void 0, Filesystem.removeExtension(mainFieldMappedFile));
9215
+ return doneCallback(void 0, mainFieldMappedFile);
9200
9216
  }
9201
9217
  return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index4 + 1, mainFields);
9202
9218
  });
@@ -9208,90 +9224,43 @@ var require_node2 = __commonJS({
9208
9224
  }
9209
9225
  }
9210
9226
  });
9211
- var require_unicode = __commonJS2((exports2) => {
9212
- "use strict";
9213
- Object.defineProperty(exports2, "__esModule", { value: true });
9214
- var Space_Separator = exports2.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
9215
- var ID_Start = exports2.ID_Start = /[\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\u08B6-\u08BD\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\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-\u1884\u1887-\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\u1C80-\u1C88\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\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-\uA7AE\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\uDCB0-\uDCD3\uDCD8-\uDCFB\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[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\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\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\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\uDD00-\uDD43]|\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]/;
9216
- var ID_Continue = exports2.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\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\u08B6-\u08BD\u08D4-\u08E1\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\u0C80-\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\u0D54-\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\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-\u19D9\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\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-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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\uDCB0-\uDCD3\uDCD8-\uDCFB\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\uDE3E\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[\uDC00-\uDC4A\uDC50-\uDC59\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]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\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\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\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]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\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]/;
9227
+ var require_unicode = __commonJS2((exports2, module22) => {
9228
+ module22.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
9229
+ module22.exports.ID_Start = /[\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\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\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\u09FC\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\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-\u1884\u1887-\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\u1C80-\u1C88\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\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\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\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[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDD00-\uDD43]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
9230
+ module22.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\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\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\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\u09FC\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-\u0AFF\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\u0C80-\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\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\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\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-\u19D9\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\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\uDE3E\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[\uDC00-\uDC4A\uDC50-\uDC59\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\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
9217
9231
  });
9218
- var require_util2 = __commonJS2((exports2) => {
9219
- "use strict";
9220
- Object.defineProperty(exports2, "__esModule", { value: true });
9221
- exports2.isSpaceSeparator = isSpaceSeparator;
9222
- exports2.isIdStartChar = isIdStartChar;
9223
- exports2.isIdContinueChar = isIdContinueChar;
9224
- exports2.isDigit = isDigit;
9225
- exports2.isHexDigit = isHexDigit;
9226
- var _unicode = require_unicode();
9227
- var unicode = _interopRequireWildcard(_unicode);
9228
- function _interopRequireWildcard(obj) {
9229
- if (obj && obj.__esModule) {
9230
- return obj;
9231
- } else {
9232
- var newObj = {};
9233
- if (obj != null) {
9234
- for (var key in obj) {
9235
- if (Object.prototype.hasOwnProperty.call(obj, key))
9236
- newObj[key] = obj[key];
9237
- }
9238
- }
9239
- newObj.default = obj;
9240
- return newObj;
9232
+ var require_util2 = __commonJS2((exports2, module22) => {
9233
+ var unicode = require_unicode();
9234
+ module22.exports = {
9235
+ isSpaceSeparator(c) {
9236
+ return typeof c === "string" && unicode.Space_Separator.test(c);
9237
+ },
9238
+ isIdStartChar(c) {
9239
+ return typeof c === "string" && (c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c === "$" || c === "_" || unicode.ID_Start.test(c));
9240
+ },
9241
+ isIdContinueChar(c) {
9242
+ return typeof c === "string" && (c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c >= "0" && c <= "9" || c === "$" || c === "_" || c === "\u200C" || c === "\u200D" || unicode.ID_Continue.test(c));
9243
+ },
9244
+ isDigit(c) {
9245
+ return typeof c === "string" && /[0-9]/.test(c);
9246
+ },
9247
+ isHexDigit(c) {
9248
+ return typeof c === "string" && /[0-9A-Fa-f]/.test(c);
9241
9249
  }
9242
- }
9243
- function isSpaceSeparator(c) {
9244
- return unicode.Space_Separator.test(c);
9245
- }
9246
- function isIdStartChar(c) {
9247
- return c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c === "$" || c === "_" || unicode.ID_Start.test(c);
9248
- }
9249
- function isIdContinueChar(c) {
9250
- return c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c >= "0" && c <= "9" || c === "$" || c === "_" || c === "\u200C" || c === "\u200D" || unicode.ID_Continue.test(c);
9251
- }
9252
- function isDigit(c) {
9253
- return /[0-9]/.test(c);
9254
- }
9255
- function isHexDigit(c) {
9256
- return /[0-9A-Fa-f]/.test(c);
9257
- }
9250
+ };
9258
9251
  });
9259
9252
  var require_parse4 = __commonJS2((exports2, module22) => {
9260
- "use strict";
9261
- Object.defineProperty(exports2, "__esModule", { value: true });
9262
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
9263
- return typeof obj;
9264
- } : function(obj) {
9265
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9266
- };
9267
- exports2.default = parse;
9268
- var _util = require_util2();
9269
- var util2 = _interopRequireWildcard(_util);
9270
- function _interopRequireWildcard(obj) {
9271
- if (obj && obj.__esModule) {
9272
- return obj;
9273
- } else {
9274
- var newObj = {};
9275
- if (obj != null) {
9276
- for (var key2 in obj) {
9277
- if (Object.prototype.hasOwnProperty.call(obj, key2))
9278
- newObj[key2] = obj[key2];
9279
- }
9280
- }
9281
- newObj.default = obj;
9282
- return newObj;
9283
- }
9284
- }
9285
- var source = void 0;
9286
- var parseState = void 0;
9287
- var stack = void 0;
9288
- var pos = void 0;
9289
- var line = void 0;
9290
- var column5 = void 0;
9291
- var token = void 0;
9292
- var key = void 0;
9293
- var root = void 0;
9294
- function parse(text, reviver) {
9253
+ var util2 = require_util2();
9254
+ var source;
9255
+ var parseState;
9256
+ var stack;
9257
+ var pos;
9258
+ var line;
9259
+ var column5;
9260
+ var token;
9261
+ var key;
9262
+ var root;
9263
+ module22.exports = function parse(text, reviver) {
9295
9264
  source = String(text);
9296
9265
  parseState = "start";
9297
9266
  stack = [];
@@ -9309,36 +9278,58 @@ var require_node2 = __commonJS({
9309
9278
  return internalize({ "": root }, "", reviver);
9310
9279
  }
9311
9280
  return root;
9312
- }
9281
+ };
9313
9282
  function internalize(holder, name, reviver) {
9314
- var value = holder[name];
9315
- if (value != null && (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object") {
9316
- for (var _key in value) {
9317
- var replacement = internalize(value, _key, reviver);
9318
- if (replacement === void 0) {
9319
- delete value[_key];
9320
- } else {
9321
- value[_key] = replacement;
9283
+ const value = holder[name];
9284
+ if (value != null && typeof value === "object") {
9285
+ if (Array.isArray(value)) {
9286
+ for (let i = 0; i < value.length; i++) {
9287
+ const key2 = String(i);
9288
+ const replacement = internalize(value, key2, reviver);
9289
+ if (replacement === void 0) {
9290
+ delete value[key2];
9291
+ } else {
9292
+ Object.defineProperty(value, key2, {
9293
+ value: replacement,
9294
+ writable: true,
9295
+ enumerable: true,
9296
+ configurable: true
9297
+ });
9298
+ }
9299
+ }
9300
+ } else {
9301
+ for (const key2 in value) {
9302
+ const replacement = internalize(value, key2, reviver);
9303
+ if (replacement === void 0) {
9304
+ delete value[key2];
9305
+ } else {
9306
+ Object.defineProperty(value, key2, {
9307
+ value: replacement,
9308
+ writable: true,
9309
+ enumerable: true,
9310
+ configurable: true
9311
+ });
9312
+ }
9322
9313
  }
9323
9314
  }
9324
9315
  }
9325
9316
  return reviver.call(holder, name, value);
9326
9317
  }
9327
- var lexState = void 0;
9328
- var buffer = void 0;
9329
- var doubleQuote = void 0;
9330
- var _sign = void 0;
9331
- var c = void 0;
9318
+ var lexState;
9319
+ var buffer;
9320
+ var doubleQuote;
9321
+ var sign;
9322
+ var c;
9332
9323
  function lex() {
9333
9324
  lexState = "default";
9334
9325
  buffer = "";
9335
9326
  doubleQuote = false;
9336
- _sign = 1;
9327
+ sign = 1;
9337
9328
  for (; ; ) {
9338
9329
  c = peek();
9339
- var _token = lexStates[lexState]();
9340
- if (_token) {
9341
- return _token;
9330
+ const token2 = lexStates[lexState]();
9331
+ if (token2) {
9332
+ return token2;
9342
9333
  }
9343
9334
  }
9344
9335
  }
@@ -9348,7 +9339,7 @@ var require_node2 = __commonJS({
9348
9339
  }
9349
9340
  }
9350
9341
  function read() {
9351
- var c2 = peek();
9342
+ const c2 = peek();
9352
9343
  if (c2 === "\n") {
9353
9344
  line++;
9354
9345
  column5 = 0;
@@ -9362,465 +9353,481 @@ var require_node2 = __commonJS({
9362
9353
  }
9363
9354
  return c2;
9364
9355
  }
9365
- var lexStates = { default: function _default() {
9366
- switch (c) {
9367
- case " ":
9368
- case "\v":
9369
- case "\f":
9370
- case " ":
9371
- case "\xA0":
9372
- case "\uFEFF":
9373
- case "\n":
9374
- case "\r":
9375
- case "\u2028":
9376
- case "\u2029":
9377
- read();
9378
- return;
9379
- case "/":
9356
+ var lexStates = {
9357
+ default() {
9358
+ switch (c) {
9359
+ case " ":
9360
+ case "\v":
9361
+ case "\f":
9362
+ case " ":
9363
+ case "\xA0":
9364
+ case "\uFEFF":
9365
+ case "\n":
9366
+ case "\r":
9367
+ case "\u2028":
9368
+ case "\u2029":
9369
+ read();
9370
+ return;
9371
+ case "/":
9372
+ read();
9373
+ lexState = "comment";
9374
+ return;
9375
+ case void 0:
9376
+ read();
9377
+ return newToken("eof");
9378
+ }
9379
+ if (util2.isSpaceSeparator(c)) {
9380
9380
  read();
9381
- lexState = "comment";
9382
9381
  return;
9383
- case void 0:
9384
- read();
9385
- return newToken("eof");
9386
- }
9387
- if (util2.isSpaceSeparator(c)) {
9382
+ }
9383
+ return lexStates[parseState]();
9384
+ },
9385
+ comment() {
9386
+ switch (c) {
9387
+ case "*":
9388
+ read();
9389
+ lexState = "multiLineComment";
9390
+ return;
9391
+ case "/":
9392
+ read();
9393
+ lexState = "singleLineComment";
9394
+ return;
9395
+ }
9396
+ throw invalidChar(read());
9397
+ },
9398
+ multiLineComment() {
9399
+ switch (c) {
9400
+ case "*":
9401
+ read();
9402
+ lexState = "multiLineCommentAsterisk";
9403
+ return;
9404
+ case void 0:
9405
+ throw invalidChar(read());
9406
+ }
9388
9407
  read();
9389
- return;
9390
- }
9391
- return lexStates[parseState]();
9392
- }, comment: function comment() {
9393
- switch (c) {
9394
- case "*":
9395
- read();
9396
- lexState = "multiLineComment";
9397
- return;
9398
- case "/":
9399
- read();
9400
- lexState = "singleLineComment";
9401
- return;
9402
- }
9403
- throw invalidChar(read());
9404
- }, multiLineComment: function multiLineComment() {
9405
- switch (c) {
9406
- case "*":
9407
- read();
9408
- lexState = "multiLineCommentAsterisk";
9409
- return;
9410
- case void 0:
9408
+ },
9409
+ multiLineCommentAsterisk() {
9410
+ switch (c) {
9411
+ case "*":
9412
+ read();
9413
+ return;
9414
+ case "/":
9415
+ read();
9416
+ lexState = "default";
9417
+ return;
9418
+ case void 0:
9419
+ throw invalidChar(read());
9420
+ }
9421
+ read();
9422
+ lexState = "multiLineComment";
9423
+ },
9424
+ singleLineComment() {
9425
+ switch (c) {
9426
+ case "\n":
9427
+ case "\r":
9428
+ case "\u2028":
9429
+ case "\u2029":
9430
+ read();
9431
+ lexState = "default";
9432
+ return;
9433
+ case void 0:
9434
+ read();
9435
+ return newToken("eof");
9436
+ }
9437
+ read();
9438
+ },
9439
+ value() {
9440
+ switch (c) {
9441
+ case "{":
9442
+ case "[":
9443
+ return newToken("punctuator", read());
9444
+ case "n":
9445
+ read();
9446
+ literal("ull");
9447
+ return newToken("null", null);
9448
+ case "t":
9449
+ read();
9450
+ literal("rue");
9451
+ return newToken("boolean", true);
9452
+ case "f":
9453
+ read();
9454
+ literal("alse");
9455
+ return newToken("boolean", false);
9456
+ case "-":
9457
+ case "+":
9458
+ if (read() === "-") {
9459
+ sign = -1;
9460
+ }
9461
+ lexState = "sign";
9462
+ return;
9463
+ case ".":
9464
+ buffer = read();
9465
+ lexState = "decimalPointLeading";
9466
+ return;
9467
+ case "0":
9468
+ buffer = read();
9469
+ lexState = "zero";
9470
+ return;
9471
+ case "1":
9472
+ case "2":
9473
+ case "3":
9474
+ case "4":
9475
+ case "5":
9476
+ case "6":
9477
+ case "7":
9478
+ case "8":
9479
+ case "9":
9480
+ buffer = read();
9481
+ lexState = "decimalInteger";
9482
+ return;
9483
+ case "I":
9484
+ read();
9485
+ literal("nfinity");
9486
+ return newToken("numeric", Infinity);
9487
+ case "N":
9488
+ read();
9489
+ literal("aN");
9490
+ return newToken("numeric", NaN);
9491
+ case '"':
9492
+ case "'":
9493
+ doubleQuote = read() === '"';
9494
+ buffer = "";
9495
+ lexState = "string";
9496
+ return;
9497
+ }
9498
+ throw invalidChar(read());
9499
+ },
9500
+ identifierNameStartEscape() {
9501
+ if (c !== "u") {
9411
9502
  throw invalidChar(read());
9412
- }
9413
- read();
9414
- }, multiLineCommentAsterisk: function multiLineCommentAsterisk() {
9415
- switch (c) {
9416
- case "*":
9417
- read();
9418
- return;
9419
- case "/":
9420
- read();
9421
- lexState = "default";
9503
+ }
9504
+ read();
9505
+ const u = unicodeEscape();
9506
+ switch (u) {
9507
+ case "$":
9508
+ case "_":
9509
+ break;
9510
+ default:
9511
+ if (!util2.isIdStartChar(u)) {
9512
+ throw invalidIdentifier();
9513
+ }
9514
+ break;
9515
+ }
9516
+ buffer += u;
9517
+ lexState = "identifierName";
9518
+ },
9519
+ identifierName() {
9520
+ switch (c) {
9521
+ case "$":
9522
+ case "_":
9523
+ case "\u200C":
9524
+ case "\u200D":
9525
+ buffer += read();
9526
+ return;
9527
+ case "\\":
9528
+ read();
9529
+ lexState = "identifierNameEscape";
9530
+ return;
9531
+ }
9532
+ if (util2.isIdContinueChar(c)) {
9533
+ buffer += read();
9422
9534
  return;
9423
- case void 0:
9535
+ }
9536
+ return newToken("identifier", buffer);
9537
+ },
9538
+ identifierNameEscape() {
9539
+ if (c !== "u") {
9424
9540
  throw invalidChar(read());
9425
- }
9426
- read();
9427
- lexState = "multiLineComment";
9428
- }, singleLineComment: function singleLineComment() {
9429
- switch (c) {
9430
- case "\n":
9431
- case "\r":
9432
- case "\u2028":
9433
- case "\u2029":
9434
- read();
9435
- lexState = "default";
9436
- return;
9437
- case void 0:
9438
- read();
9439
- return newToken("eof");
9440
- }
9441
- read();
9442
- }, value: function value() {
9443
- switch (c) {
9444
- case "{":
9445
- case "[":
9446
- return newToken("punctuator", read());
9447
- case "n":
9448
- read();
9449
- literal("ull");
9450
- return newToken("null", null);
9451
- case "t":
9452
- read();
9453
- literal("rue");
9454
- return newToken("boolean", true);
9455
- case "f":
9456
- read();
9457
- literal("alse");
9458
- return newToken("boolean", false);
9459
- case "-":
9460
- case "+":
9461
- if (read() === "-") {
9462
- _sign = -1;
9463
- }
9464
- lexState = "sign";
9465
- return;
9466
- case ".":
9467
- buffer = read();
9468
- lexState = "decimalPointLeading";
9469
- return;
9470
- case "0":
9471
- buffer = read();
9472
- lexState = "zero";
9473
- return;
9474
- case "1":
9475
- case "2":
9476
- case "3":
9477
- case "4":
9478
- case "5":
9479
- case "6":
9480
- case "7":
9481
- case "8":
9482
- case "9":
9483
- buffer = read();
9484
- lexState = "decimalInteger";
9485
- return;
9486
- case "I":
9487
- read();
9488
- literal("nfinity");
9489
- return newToken("numeric", Infinity);
9490
- case "N":
9491
- read();
9492
- literal("aN");
9493
- return newToken("numeric", NaN);
9494
- case '"':
9495
- case "'":
9496
- doubleQuote = read() === '"';
9497
- buffer = "";
9498
- lexState = "string";
9499
- return;
9500
- }
9501
- throw invalidChar(read());
9502
- }, identifierNameStartEscape: function identifierNameStartEscape() {
9503
- if (c !== "u") {
9541
+ }
9542
+ read();
9543
+ const u = unicodeEscape();
9544
+ switch (u) {
9545
+ case "$":
9546
+ case "_":
9547
+ case "\u200C":
9548
+ case "\u200D":
9549
+ break;
9550
+ default:
9551
+ if (!util2.isIdContinueChar(u)) {
9552
+ throw invalidIdentifier();
9553
+ }
9554
+ break;
9555
+ }
9556
+ buffer += u;
9557
+ lexState = "identifierName";
9558
+ },
9559
+ sign() {
9560
+ switch (c) {
9561
+ case ".":
9562
+ buffer = read();
9563
+ lexState = "decimalPointLeading";
9564
+ return;
9565
+ case "0":
9566
+ buffer = read();
9567
+ lexState = "zero";
9568
+ return;
9569
+ case "1":
9570
+ case "2":
9571
+ case "3":
9572
+ case "4":
9573
+ case "5":
9574
+ case "6":
9575
+ case "7":
9576
+ case "8":
9577
+ case "9":
9578
+ buffer = read();
9579
+ lexState = "decimalInteger";
9580
+ return;
9581
+ case "I":
9582
+ read();
9583
+ literal("nfinity");
9584
+ return newToken("numeric", sign * Infinity);
9585
+ case "N":
9586
+ read();
9587
+ literal("aN");
9588
+ return newToken("numeric", NaN);
9589
+ }
9504
9590
  throw invalidChar(read());
9505
- }
9506
- read();
9507
- var u = unicodeEscape();
9508
- switch (u) {
9509
- case "$":
9510
- case "_":
9511
- break;
9512
- default:
9513
- if (!util2.isIdStartChar(u)) {
9514
- throw invalidIdentifier();
9515
- }
9516
- break;
9517
- }
9518
- buffer += u;
9519
- lexState = "identifierName";
9520
- }, identifierName: function identifierName() {
9521
- switch (c) {
9522
- case "$":
9523
- case "_":
9524
- case "\u200C":
9525
- case "\u200D":
9591
+ },
9592
+ zero() {
9593
+ switch (c) {
9594
+ case ".":
9595
+ buffer += read();
9596
+ lexState = "decimalPoint";
9597
+ return;
9598
+ case "e":
9599
+ case "E":
9600
+ buffer += read();
9601
+ lexState = "decimalExponent";
9602
+ return;
9603
+ case "x":
9604
+ case "X":
9605
+ buffer += read();
9606
+ lexState = "hexadecimal";
9607
+ return;
9608
+ }
9609
+ return newToken("numeric", sign * 0);
9610
+ },
9611
+ decimalInteger() {
9612
+ switch (c) {
9613
+ case ".":
9614
+ buffer += read();
9615
+ lexState = "decimalPoint";
9616
+ return;
9617
+ case "e":
9618
+ case "E":
9619
+ buffer += read();
9620
+ lexState = "decimalExponent";
9621
+ return;
9622
+ }
9623
+ if (util2.isDigit(c)) {
9526
9624
  buffer += read();
9527
9625
  return;
9528
- case "\\":
9529
- read();
9530
- lexState = "identifierNameEscape";
9531
- return;
9532
- }
9533
- if (util2.isIdContinueChar(c)) {
9534
- buffer += read();
9535
- return;
9536
- }
9537
- return newToken("identifier", buffer);
9538
- }, identifierNameEscape: function identifierNameEscape() {
9539
- if (c !== "u") {
9540
- throw invalidChar(read());
9541
- }
9542
- read();
9543
- var u = unicodeEscape();
9544
- switch (u) {
9545
- case "$":
9546
- case "_":
9547
- case "\u200C":
9548
- case "\u200D":
9549
- break;
9550
- default:
9551
- if (!util2.isIdContinueChar(u)) {
9552
- throw invalidIdentifier();
9553
- }
9554
- break;
9555
- }
9556
- buffer += u;
9557
- lexState = "identifierName";
9558
- }, sign: function sign() {
9559
- switch (c) {
9560
- case ".":
9561
- buffer = read();
9562
- lexState = "decimalPointLeading";
9563
- return;
9564
- case "0":
9565
- buffer = read();
9566
- lexState = "zero";
9567
- return;
9568
- case "1":
9569
- case "2":
9570
- case "3":
9571
- case "4":
9572
- case "5":
9573
- case "6":
9574
- case "7":
9575
- case "8":
9576
- case "9":
9577
- buffer = read();
9578
- lexState = "decimalInteger";
9579
- return;
9580
- case "I":
9581
- read();
9582
- literal("nfinity");
9583
- return newToken("numeric", _sign * Infinity);
9584
- case "N":
9585
- read();
9586
- literal("aN");
9587
- return newToken("numeric", NaN);
9588
- }
9589
- throw invalidChar(read());
9590
- }, zero: function zero() {
9591
- switch (c) {
9592
- case ".":
9626
+ }
9627
+ return newToken("numeric", sign * Number(buffer));
9628
+ },
9629
+ decimalPointLeading() {
9630
+ if (util2.isDigit(c)) {
9593
9631
  buffer += read();
9594
- lexState = "decimalPoint";
9632
+ lexState = "decimalFraction";
9595
9633
  return;
9596
- case "e":
9597
- case "E":
9634
+ }
9635
+ throw invalidChar(read());
9636
+ },
9637
+ decimalPoint() {
9638
+ switch (c) {
9639
+ case "e":
9640
+ case "E":
9641
+ buffer += read();
9642
+ lexState = "decimalExponent";
9643
+ return;
9644
+ }
9645
+ if (util2.isDigit(c)) {
9598
9646
  buffer += read();
9599
- lexState = "decimalExponent";
9647
+ lexState = "decimalFraction";
9600
9648
  return;
9601
- case "x":
9602
- case "X":
9649
+ }
9650
+ return newToken("numeric", sign * Number(buffer));
9651
+ },
9652
+ decimalFraction() {
9653
+ switch (c) {
9654
+ case "e":
9655
+ case "E":
9656
+ buffer += read();
9657
+ lexState = "decimalExponent";
9658
+ return;
9659
+ }
9660
+ if (util2.isDigit(c)) {
9603
9661
  buffer += read();
9604
- lexState = "hexadecimal";
9605
9662
  return;
9606
- }
9607
- return newToken("numeric", _sign * 0);
9608
- }, decimalInteger: function decimalInteger() {
9609
- switch (c) {
9610
- case ".":
9663
+ }
9664
+ return newToken("numeric", sign * Number(buffer));
9665
+ },
9666
+ decimalExponent() {
9667
+ switch (c) {
9668
+ case "+":
9669
+ case "-":
9670
+ buffer += read();
9671
+ lexState = "decimalExponentSign";
9672
+ return;
9673
+ }
9674
+ if (util2.isDigit(c)) {
9611
9675
  buffer += read();
9612
- lexState = "decimalPoint";
9676
+ lexState = "decimalExponentInteger";
9613
9677
  return;
9614
- case "e":
9615
- case "E":
9678
+ }
9679
+ throw invalidChar(read());
9680
+ },
9681
+ decimalExponentSign() {
9682
+ if (util2.isDigit(c)) {
9616
9683
  buffer += read();
9617
- lexState = "decimalExponent";
9684
+ lexState = "decimalExponentInteger";
9618
9685
  return;
9619
- }
9620
- if (util2.isDigit(c)) {
9621
- buffer += read();
9622
- return;
9623
- }
9624
- return newToken("numeric", _sign * Number(buffer));
9625
- }, decimalPointLeading: function decimalPointLeading() {
9626
- if (util2.isDigit(c)) {
9627
- buffer += read();
9628
- lexState = "decimalFraction";
9629
- return;
9630
- }
9631
- throw invalidChar(read());
9632
- }, decimalPoint: function decimalPoint() {
9633
- switch (c) {
9634
- case "e":
9635
- case "E":
9686
+ }
9687
+ throw invalidChar(read());
9688
+ },
9689
+ decimalExponentInteger() {
9690
+ if (util2.isDigit(c)) {
9636
9691
  buffer += read();
9637
- lexState = "decimalExponent";
9638
9692
  return;
9639
- }
9640
- if (util2.isDigit(c)) {
9641
- buffer += read();
9642
- lexState = "decimalFraction";
9643
- return;
9644
- }
9645
- return newToken("numeric", _sign * Number(buffer));
9646
- }, decimalFraction: function decimalFraction() {
9647
- switch (c) {
9648
- case "e":
9649
- case "E":
9693
+ }
9694
+ return newToken("numeric", sign * Number(buffer));
9695
+ },
9696
+ hexadecimal() {
9697
+ if (util2.isHexDigit(c)) {
9650
9698
  buffer += read();
9651
- lexState = "decimalExponent";
9699
+ lexState = "hexadecimalInteger";
9652
9700
  return;
9653
- }
9654
- if (util2.isDigit(c)) {
9655
- buffer += read();
9656
- return;
9657
- }
9658
- return newToken("numeric", _sign * Number(buffer));
9659
- }, decimalExponent: function decimalExponent() {
9660
- switch (c) {
9661
- case "+":
9662
- case "-":
9701
+ }
9702
+ throw invalidChar(read());
9703
+ },
9704
+ hexadecimalInteger() {
9705
+ if (util2.isHexDigit(c)) {
9663
9706
  buffer += read();
9664
- lexState = "decimalExponentSign";
9665
9707
  return;
9666
- }
9667
- if (util2.isDigit(c)) {
9668
- buffer += read();
9669
- lexState = "decimalExponentInteger";
9670
- return;
9671
- }
9672
- throw invalidChar(read());
9673
- }, decimalExponentSign: function decimalExponentSign() {
9674
- if (util2.isDigit(c)) {
9675
- buffer += read();
9676
- lexState = "decimalExponentInteger";
9677
- return;
9678
- }
9679
- throw invalidChar(read());
9680
- }, decimalExponentInteger: function decimalExponentInteger() {
9681
- if (util2.isDigit(c)) {
9682
- buffer += read();
9683
- return;
9684
- }
9685
- return newToken("numeric", _sign * Number(buffer));
9686
- }, hexadecimal: function hexadecimal() {
9687
- if (util2.isHexDigit(c)) {
9688
- buffer += read();
9689
- lexState = "hexadecimalInteger";
9690
- return;
9691
- }
9692
- throw invalidChar(read());
9693
- }, hexadecimalInteger: function hexadecimalInteger() {
9694
- if (util2.isHexDigit(c)) {
9695
- buffer += read();
9696
- return;
9697
- }
9698
- return newToken("numeric", _sign * Number(buffer));
9699
- }, string: function string() {
9700
- switch (c) {
9701
- case "\\":
9702
- read();
9703
- buffer += escape2();
9704
- return;
9705
- case '"':
9706
- if (doubleQuote) {
9708
+ }
9709
+ return newToken("numeric", sign * Number(buffer));
9710
+ },
9711
+ string() {
9712
+ switch (c) {
9713
+ case "\\":
9707
9714
  read();
9708
- return newToken("string", buffer);
9709
- }
9710
- buffer += read();
9711
- return;
9712
- case "'":
9713
- if (!doubleQuote) {
9715
+ buffer += escape2();
9716
+ return;
9717
+ case '"':
9718
+ if (doubleQuote) {
9719
+ read();
9720
+ return newToken("string", buffer);
9721
+ }
9722
+ buffer += read();
9723
+ return;
9724
+ case "'":
9725
+ if (!doubleQuote) {
9726
+ read();
9727
+ return newToken("string", buffer);
9728
+ }
9729
+ buffer += read();
9730
+ return;
9731
+ case "\n":
9732
+ case "\r":
9733
+ throw invalidChar(read());
9734
+ case "\u2028":
9735
+ case "\u2029":
9736
+ separatorChar(c);
9737
+ break;
9738
+ case void 0:
9739
+ throw invalidChar(read());
9740
+ }
9741
+ buffer += read();
9742
+ },
9743
+ start() {
9744
+ switch (c) {
9745
+ case "{":
9746
+ case "[":
9747
+ return newToken("punctuator", read());
9748
+ }
9749
+ lexState = "value";
9750
+ },
9751
+ beforePropertyName() {
9752
+ switch (c) {
9753
+ case "$":
9754
+ case "_":
9755
+ buffer = read();
9756
+ lexState = "identifierName";
9757
+ return;
9758
+ case "\\":
9714
9759
  read();
9715
- return newToken("string", buffer);
9716
- }
9760
+ lexState = "identifierNameStartEscape";
9761
+ return;
9762
+ case "}":
9763
+ return newToken("punctuator", read());
9764
+ case '"':
9765
+ case "'":
9766
+ doubleQuote = read() === '"';
9767
+ lexState = "string";
9768
+ return;
9769
+ }
9770
+ if (util2.isIdStartChar(c)) {
9717
9771
  buffer += read();
9718
- return;
9719
- case "\n":
9720
- case "\r":
9721
- throw invalidChar(read());
9722
- case "\u2028":
9723
- case "\u2029":
9724
- separatorChar(c);
9725
- break;
9726
- case void 0:
9727
- throw invalidChar(read());
9728
- }
9729
- buffer += read();
9730
- }, start: function start() {
9731
- switch (c) {
9732
- case "{":
9733
- case "[":
9734
- return newToken("punctuator", read());
9735
- }
9736
- lexState = "value";
9737
- }, beforePropertyName: function beforePropertyName() {
9738
- switch (c) {
9739
- case "$":
9740
- case "_":
9741
- buffer = read();
9742
9772
  lexState = "identifierName";
9743
9773
  return;
9744
- case "\\":
9745
- read();
9746
- lexState = "identifierNameStartEscape";
9747
- return;
9748
- case "}":
9749
- return newToken("punctuator", read());
9750
- case '"':
9751
- case "'":
9752
- doubleQuote = read() === '"';
9753
- lexState = "string";
9754
- return;
9755
- }
9756
- if (util2.isIdStartChar(c)) {
9757
- buffer += read();
9758
- lexState = "identifierName";
9759
- return;
9760
- }
9761
- throw invalidChar(read());
9762
- }, afterPropertyName: function afterPropertyName() {
9763
- if (c === ":") {
9764
- return newToken("punctuator", read());
9765
- }
9766
- throw invalidChar(read());
9767
- }, beforePropertyValue: function beforePropertyValue() {
9768
- lexState = "value";
9769
- }, afterPropertyValue: function afterPropertyValue() {
9770
- switch (c) {
9771
- case ",":
9772
- case "}":
9774
+ }
9775
+ throw invalidChar(read());
9776
+ },
9777
+ afterPropertyName() {
9778
+ if (c === ":") {
9773
9779
  return newToken("punctuator", read());
9774
- }
9775
- throw invalidChar(read());
9776
- }, beforeArrayValue: function beforeArrayValue() {
9777
- if (c === "]") {
9778
- return newToken("punctuator", read());
9779
- }
9780
- lexState = "value";
9781
- }, afterArrayValue: function afterArrayValue() {
9782
- switch (c) {
9783
- case ",":
9784
- case "]":
9780
+ }
9781
+ throw invalidChar(read());
9782
+ },
9783
+ beforePropertyValue() {
9784
+ lexState = "value";
9785
+ },
9786
+ afterPropertyValue() {
9787
+ switch (c) {
9788
+ case ",":
9789
+ case "}":
9790
+ return newToken("punctuator", read());
9791
+ }
9792
+ throw invalidChar(read());
9793
+ },
9794
+ beforeArrayValue() {
9795
+ if (c === "]") {
9785
9796
  return newToken("punctuator", read());
9797
+ }
9798
+ lexState = "value";
9799
+ },
9800
+ afterArrayValue() {
9801
+ switch (c) {
9802
+ case ",":
9803
+ case "]":
9804
+ return newToken("punctuator", read());
9805
+ }
9806
+ throw invalidChar(read());
9807
+ },
9808
+ end() {
9809
+ throw invalidChar(read());
9786
9810
  }
9787
- throw invalidChar(read());
9788
- }, end: function end() {
9789
- throw invalidChar(read());
9790
- } };
9811
+ };
9791
9812
  function newToken(type, value) {
9792
- return { type, value, line, column: column5 };
9813
+ return {
9814
+ type,
9815
+ value,
9816
+ line,
9817
+ column: column5
9818
+ };
9793
9819
  }
9794
9820
  function literal(s) {
9795
- var _iteratorNormalCompletion = true;
9796
- var _didIteratorError = false;
9797
- var _iteratorError = void 0;
9798
- try {
9799
- for (var _iterator = s[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
9800
- var _c = _step.value;
9801
- var p = peek();
9802
- if (p !== _c) {
9803
- throw invalidChar(read());
9804
- }
9805
- read();
9806
- }
9807
- } catch (err2) {
9808
- _didIteratorError = true;
9809
- _iteratorError = err2;
9810
- } finally {
9811
- try {
9812
- if (!_iteratorNormalCompletion && _iterator.return) {
9813
- _iterator.return();
9814
- }
9815
- } finally {
9816
- if (_didIteratorError) {
9817
- throw _iteratorError;
9818
- }
9821
+ for (const c2 of s) {
9822
+ const p = peek();
9823
+ if (p !== c2) {
9824
+ throw invalidChar(read());
9819
9825
  }
9826
+ read();
9820
9827
  }
9821
9828
  }
9822
9829
  function escape2() {
9823
- var c2 = peek();
9830
+ const c2 = peek();
9824
9831
  switch (c2) {
9825
9832
  case "b":
9826
9833
  read();
@@ -9879,8 +9886,8 @@ var require_node2 = __commonJS({
9879
9886
  return read();
9880
9887
  }
9881
9888
  function hexEscape() {
9882
- var buffer2 = "";
9883
- var c2 = peek();
9889
+ let buffer2 = "";
9890
+ let c2 = peek();
9884
9891
  if (!util2.isHexDigit(c2)) {
9885
9892
  throw invalidChar(read());
9886
9893
  }
@@ -9893,80 +9900,89 @@ var require_node2 = __commonJS({
9893
9900
  return String.fromCodePoint(parseInt(buffer2, 16));
9894
9901
  }
9895
9902
  function unicodeEscape() {
9896
- var buffer2 = "";
9897
- var count = 4;
9903
+ let buffer2 = "";
9904
+ let count = 4;
9898
9905
  while (count-- > 0) {
9899
- var _c2 = peek();
9900
- if (!util2.isHexDigit(_c2)) {
9906
+ const c2 = peek();
9907
+ if (!util2.isHexDigit(c2)) {
9901
9908
  throw invalidChar(read());
9902
9909
  }
9903
9910
  buffer2 += read();
9904
9911
  }
9905
9912
  return String.fromCodePoint(parseInt(buffer2, 16));
9906
9913
  }
9907
- var parseStates = { start: function start() {
9908
- if (token.type === "eof") {
9909
- throw invalidEOF();
9910
- }
9911
- push();
9912
- }, beforePropertyName: function beforePropertyName() {
9913
- switch (token.type) {
9914
- case "identifier":
9915
- case "string":
9916
- key = token.value;
9917
- parseState = "afterPropertyName";
9918
- return;
9919
- case "punctuator":
9920
- pop();
9921
- return;
9922
- case "eof":
9914
+ var parseStates = {
9915
+ start() {
9916
+ if (token.type === "eof") {
9923
9917
  throw invalidEOF();
9924
- }
9925
- }, afterPropertyName: function afterPropertyName() {
9926
- if (token.type === "eof") {
9927
- throw invalidEOF();
9928
- }
9929
- parseState = "beforePropertyValue";
9930
- }, beforePropertyValue: function beforePropertyValue() {
9931
- if (token.type === "eof") {
9932
- throw invalidEOF();
9933
- }
9934
- push();
9935
- }, beforeArrayValue: function beforeArrayValue() {
9936
- if (token.type === "eof") {
9937
- throw invalidEOF();
9938
- }
9939
- if (token.type === "punctuator" && token.value === "]") {
9940
- pop();
9941
- return;
9942
- }
9943
- push();
9944
- }, afterPropertyValue: function afterPropertyValue() {
9945
- if (token.type === "eof") {
9946
- throw invalidEOF();
9947
- }
9948
- switch (token.value) {
9949
- case ",":
9950
- parseState = "beforePropertyName";
9951
- return;
9952
- case "}":
9918
+ }
9919
+ push();
9920
+ },
9921
+ beforePropertyName() {
9922
+ switch (token.type) {
9923
+ case "identifier":
9924
+ case "string":
9925
+ key = token.value;
9926
+ parseState = "afterPropertyName";
9927
+ return;
9928
+ case "punctuator":
9929
+ pop();
9930
+ return;
9931
+ case "eof":
9932
+ throw invalidEOF();
9933
+ }
9934
+ },
9935
+ afterPropertyName() {
9936
+ if (token.type === "eof") {
9937
+ throw invalidEOF();
9938
+ }
9939
+ parseState = "beforePropertyValue";
9940
+ },
9941
+ beforePropertyValue() {
9942
+ if (token.type === "eof") {
9943
+ throw invalidEOF();
9944
+ }
9945
+ push();
9946
+ },
9947
+ beforeArrayValue() {
9948
+ if (token.type === "eof") {
9949
+ throw invalidEOF();
9950
+ }
9951
+ if (token.type === "punctuator" && token.value === "]") {
9953
9952
  pop();
9954
- }
9955
- }, afterArrayValue: function afterArrayValue() {
9956
- if (token.type === "eof") {
9957
- throw invalidEOF();
9958
- }
9959
- switch (token.value) {
9960
- case ",":
9961
- parseState = "beforeArrayValue";
9962
9953
  return;
9963
- case "]":
9964
- pop();
9954
+ }
9955
+ push();
9956
+ },
9957
+ afterPropertyValue() {
9958
+ if (token.type === "eof") {
9959
+ throw invalidEOF();
9960
+ }
9961
+ switch (token.value) {
9962
+ case ",":
9963
+ parseState = "beforePropertyName";
9964
+ return;
9965
+ case "}":
9966
+ pop();
9967
+ }
9968
+ },
9969
+ afterArrayValue() {
9970
+ if (token.type === "eof") {
9971
+ throw invalidEOF();
9972
+ }
9973
+ switch (token.value) {
9974
+ case ",":
9975
+ parseState = "beforeArrayValue";
9976
+ return;
9977
+ case "]":
9978
+ pop();
9979
+ }
9980
+ },
9981
+ end() {
9965
9982
  }
9966
- }, end: function end() {
9967
- } };
9983
+ };
9968
9984
  function push() {
9969
- var value = void 0;
9985
+ let value;
9970
9986
  switch (token.type) {
9971
9987
  case "punctuator":
9972
9988
  switch (token.value) {
@@ -9988,14 +10004,19 @@ var require_node2 = __commonJS({
9988
10004
  if (root === void 0) {
9989
10005
  root = value;
9990
10006
  } else {
9991
- var parent = stack[stack.length - 1];
10007
+ const parent = stack[stack.length - 1];
9992
10008
  if (Array.isArray(parent)) {
9993
10009
  parent.push(value);
9994
10010
  } else {
9995
- parent[key] = value;
10011
+ Object.defineProperty(parent, key, {
10012
+ value,
10013
+ writable: true,
10014
+ enumerable: true,
10015
+ configurable: true
10016
+ });
9996
10017
  }
9997
10018
  }
9998
- if (value !== null && (typeof value === "undefined" ? "undefined" : _typeof(value)) === "object") {
10019
+ if (value !== null && typeof value === "object") {
9999
10020
  stack.push(value);
10000
10021
  if (Array.isArray(value)) {
10001
10022
  parseState = "beforeArrayValue";
@@ -10003,7 +10024,7 @@ var require_node2 = __commonJS({
10003
10024
  parseState = "beforePropertyName";
10004
10025
  }
10005
10026
  } else {
10006
- var current = stack[stack.length - 1];
10027
+ const current = stack[stack.length - 1];
10007
10028
  if (current == null) {
10008
10029
  parseState = "end";
10009
10030
  } else if (Array.isArray(current)) {
@@ -10015,7 +10036,7 @@ var require_node2 = __commonJS({
10015
10036
  }
10016
10037
  function pop() {
10017
10038
  stack.pop();
10018
- var current = stack[stack.length - 1];
10039
+ const current = stack[stack.length - 1];
10019
10040
  if (current == null) {
10020
10041
  parseState = "end";
10021
10042
  } else if (Array.isArray(current)) {
@@ -10026,73 +10047,61 @@ var require_node2 = __commonJS({
10026
10047
  }
10027
10048
  function invalidChar(c2) {
10028
10049
  if (c2 === void 0) {
10029
- return syntaxError("JSON5: invalid end of input at " + line + ":" + column5);
10050
+ return syntaxError(`JSON5: invalid end of input at ${line}:${column5}`);
10030
10051
  }
10031
- return syntaxError("JSON5: invalid character '" + formatChar(c2) + "' at " + line + ":" + column5);
10052
+ return syntaxError(`JSON5: invalid character '${formatChar(c2)}' at ${line}:${column5}`);
10032
10053
  }
10033
10054
  function invalidEOF() {
10034
- return syntaxError("JSON5: invalid end of input at " + line + ":" + column5);
10055
+ return syntaxError(`JSON5: invalid end of input at ${line}:${column5}`);
10035
10056
  }
10036
10057
  function invalidIdentifier() {
10037
10058
  column5 -= 5;
10038
- return syntaxError("JSON5: invalid identifier character at " + line + ":" + column5);
10059
+ return syntaxError(`JSON5: invalid identifier character at ${line}:${column5}`);
10039
10060
  }
10040
10061
  function separatorChar(c2) {
10041
- console.warn("JSON5: '" + c2 + "' is not valid ECMAScript; consider escaping");
10062
+ console.warn(`JSON5: '${formatChar(c2)}' in strings is not valid ECMAScript; consider escaping`);
10042
10063
  }
10043
10064
  function formatChar(c2) {
10044
- var replacements = { "'": "\\'", '"': '\\"', "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t", "\v": "\\v", "\0": "\\0", "\u2028": "\\u2028", "\u2029": "\\u2029" };
10065
+ const replacements = {
10066
+ "'": "\\'",
10067
+ '"': '\\"',
10068
+ "\\": "\\\\",
10069
+ "\b": "\\b",
10070
+ "\f": "\\f",
10071
+ "\n": "\\n",
10072
+ "\r": "\\r",
10073
+ " ": "\\t",
10074
+ "\v": "\\v",
10075
+ "\0": "\\0",
10076
+ "\u2028": "\\u2028",
10077
+ "\u2029": "\\u2029"
10078
+ };
10045
10079
  if (replacements[c2]) {
10046
10080
  return replacements[c2];
10047
10081
  }
10048
10082
  if (c2 < " ") {
10049
- var hexString = c2.charCodeAt(0).toString(16);
10083
+ const hexString = c2.charCodeAt(0).toString(16);
10050
10084
  return "\\x" + ("00" + hexString).substring(hexString.length);
10051
10085
  }
10052
10086
  return c2;
10053
10087
  }
10054
10088
  function syntaxError(message) {
10055
- var err2 = new SyntaxError(message);
10089
+ const err2 = new SyntaxError(message);
10056
10090
  err2.lineNumber = line;
10057
10091
  err2.columnNumber = column5;
10058
10092
  return err2;
10059
10093
  }
10060
- module22.exports = exports2["default"];
10061
10094
  });
10062
10095
  var require_stringify3 = __commonJS2((exports2, module22) => {
10063
- "use strict";
10064
- Object.defineProperty(exports2, "__esModule", { value: true });
10065
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
10066
- return typeof obj;
10067
- } : function(obj) {
10068
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10069
- };
10070
- exports2.default = stringify;
10071
- var _util = require_util2();
10072
- var util2 = _interopRequireWildcard(_util);
10073
- function _interopRequireWildcard(obj) {
10074
- if (obj && obj.__esModule) {
10075
- return obj;
10076
- } else {
10077
- var newObj = {};
10078
- if (obj != null) {
10079
- for (var key in obj) {
10080
- if (Object.prototype.hasOwnProperty.call(obj, key))
10081
- newObj[key] = obj[key];
10082
- }
10083
- }
10084
- newObj.default = obj;
10085
- return newObj;
10086
- }
10087
- }
10088
- function stringify(value, replacer, space) {
10089
- var stack = [];
10090
- var indent = "";
10091
- var propertyList = void 0;
10092
- var replacerFunc = void 0;
10093
- var gap = "";
10094
- var quote2 = void 0;
10095
- if (replacer != null && (typeof replacer === "undefined" ? "undefined" : _typeof(replacer)) === "object" && !Array.isArray(replacer)) {
10096
+ var util2 = require_util2();
10097
+ module22.exports = function stringify(value, replacer, space) {
10098
+ const stack = [];
10099
+ let indent = "";
10100
+ let propertyList;
10101
+ let replacerFunc;
10102
+ let gap = "";
10103
+ let quote2;
10104
+ if (replacer != null && typeof replacer === "object" && !Array.isArray(replacer)) {
10096
10105
  space = replacer.space;
10097
10106
  quote2 = replacer.quote;
10098
10107
  replacer = replacer.replacer;
@@ -10101,34 +10110,15 @@ var require_node2 = __commonJS({
10101
10110
  replacerFunc = replacer;
10102
10111
  } else if (Array.isArray(replacer)) {
10103
10112
  propertyList = [];
10104
- var _iteratorNormalCompletion = true;
10105
- var _didIteratorError = false;
10106
- var _iteratorError = void 0;
10107
- try {
10108
- for (var _iterator = replacer[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
10109
- var v = _step.value;
10110
- var item = void 0;
10111
- if (typeof v === "string") {
10112
- item = v;
10113
- } else if (typeof v === "number" || v instanceof String || v instanceof Number) {
10114
- item = String(v);
10115
- }
10116
- if (item !== void 0 && propertyList.indexOf(item) < 0) {
10117
- propertyList.push(item);
10118
- }
10113
+ for (const v of replacer) {
10114
+ let item;
10115
+ if (typeof v === "string") {
10116
+ item = v;
10117
+ } else if (typeof v === "number" || v instanceof String || v instanceof Number) {
10118
+ item = String(v);
10119
10119
  }
10120
- } catch (err2) {
10121
- _didIteratorError = true;
10122
- _iteratorError = err2;
10123
- } finally {
10124
- try {
10125
- if (!_iteratorNormalCompletion && _iterator.return) {
10126
- _iterator.return();
10127
- }
10128
- } finally {
10129
- if (_didIteratorError) {
10130
- throw _iteratorError;
10131
- }
10120
+ if (item !== void 0 && propertyList.indexOf(item) < 0) {
10121
+ propertyList.push(item);
10132
10122
  }
10133
10123
  }
10134
10124
  }
@@ -10147,7 +10137,7 @@ var require_node2 = __commonJS({
10147
10137
  }
10148
10138
  return serializeProperty("", { "": value });
10149
10139
  function serializeProperty(key, holder) {
10150
- var value2 = holder[key];
10140
+ let value2 = holder[key];
10151
10141
  if (value2 != null) {
10152
10142
  if (typeof value2.toJSON5 === "function") {
10153
10143
  value2 = value2.toJSON5(key);
@@ -10179,56 +10169,57 @@ var require_node2 = __commonJS({
10179
10169
  if (typeof value2 === "number") {
10180
10170
  return String(value2);
10181
10171
  }
10182
- if ((typeof value2 === "undefined" ? "undefined" : _typeof(value2)) === "object") {
10172
+ if (typeof value2 === "object") {
10183
10173
  return Array.isArray(value2) ? serializeArray(value2) : serializeObject(value2);
10184
10174
  }
10185
10175
  return void 0;
10186
10176
  }
10187
10177
  function quoteString(value2) {
10188
- var quotes = { "'": 0.1, '"': 0.2 };
10189
- var replacements = { "'": "\\'", '"': '\\"', "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t", "\v": "\\v", "\0": "\\0", "\u2028": "\\u2028", "\u2029": "\\u2029" };
10190
- var product = "";
10191
- var _iteratorNormalCompletion2 = true;
10192
- var _didIteratorError2 = false;
10193
- var _iteratorError2 = void 0;
10194
- try {
10195
- for (var _iterator2 = value2[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
10196
- var c = _step2.value;
10197
- switch (c) {
10198
- case "'":
10199
- case '"':
10200
- quotes[c]++;
10201
- product += c;
10202
- continue;
10203
- }
10204
- if (replacements[c]) {
10205
- product += replacements[c];
10206
- continue;
10207
- }
10208
- if (c < " ") {
10209
- var hexString = c.charCodeAt(0).toString(16);
10210
- product += "\\x" + ("00" + hexString).substring(hexString.length);
10178
+ const quotes = {
10179
+ "'": 0.1,
10180
+ '"': 0.2
10181
+ };
10182
+ const replacements = {
10183
+ "'": "\\'",
10184
+ '"': '\\"',
10185
+ "\\": "\\\\",
10186
+ "\b": "\\b",
10187
+ "\f": "\\f",
10188
+ "\n": "\\n",
10189
+ "\r": "\\r",
10190
+ " ": "\\t",
10191
+ "\v": "\\v",
10192
+ "\0": "\\0",
10193
+ "\u2028": "\\u2028",
10194
+ "\u2029": "\\u2029"
10195
+ };
10196
+ let product = "";
10197
+ for (let i = 0; i < value2.length; i++) {
10198
+ const c = value2[i];
10199
+ switch (c) {
10200
+ case "'":
10201
+ case '"':
10202
+ quotes[c]++;
10203
+ product += c;
10211
10204
  continue;
10212
- }
10213
- product += c;
10205
+ case "\0":
10206
+ if (util2.isDigit(value2[i + 1])) {
10207
+ product += "\\x00";
10208
+ continue;
10209
+ }
10214
10210
  }
10215
- } catch (err2) {
10216
- _didIteratorError2 = true;
10217
- _iteratorError2 = err2;
10218
- } finally {
10219
- try {
10220
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
10221
- _iterator2.return();
10222
- }
10223
- } finally {
10224
- if (_didIteratorError2) {
10225
- throw _iteratorError2;
10226
- }
10211
+ if (replacements[c]) {
10212
+ product += replacements[c];
10213
+ continue;
10227
10214
  }
10215
+ if (c < " ") {
10216
+ let hexString = c.charCodeAt(0).toString(16);
10217
+ product += "\\x" + ("00" + hexString).substring(hexString.length);
10218
+ continue;
10219
+ }
10220
+ product += c;
10228
10221
  }
10229
- var quoteChar = quote2 || Object.keys(quotes).reduce(function(a, b) {
10230
- return quotes[a] < quotes[b] ? a : b;
10231
- });
10222
+ const quoteChar = quote2 || Object.keys(quotes).reduce((a, b) => quotes[a] < quotes[b] ? a : b);
10232
10223
  product = product.replace(new RegExp(quoteChar, "g"), replacements[quoteChar]);
10233
10224
  return quoteChar + product + quoteChar;
10234
10225
  }
@@ -10237,50 +10228,31 @@ var require_node2 = __commonJS({
10237
10228
  throw TypeError("Converting circular structure to JSON5");
10238
10229
  }
10239
10230
  stack.push(value2);
10240
- var stepback = indent;
10231
+ let stepback = indent;
10241
10232
  indent = indent + gap;
10242
- var keys = propertyList || Object.keys(value2);
10243
- var partial = [];
10244
- var _iteratorNormalCompletion3 = true;
10245
- var _didIteratorError3 = false;
10246
- var _iteratorError3 = void 0;
10247
- try {
10248
- for (var _iterator3 = keys[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
10249
- var key = _step3.value;
10250
- var propertyString = serializeProperty(key, value2);
10251
- if (propertyString !== void 0) {
10252
- var member = serializeKey(key) + ":";
10253
- if (gap !== "") {
10254
- member += " ";
10255
- }
10256
- member += propertyString;
10257
- partial.push(member);
10258
- }
10259
- }
10260
- } catch (err2) {
10261
- _didIteratorError3 = true;
10262
- _iteratorError3 = err2;
10263
- } finally {
10264
- try {
10265
- if (!_iteratorNormalCompletion3 && _iterator3.return) {
10266
- _iterator3.return();
10267
- }
10268
- } finally {
10269
- if (_didIteratorError3) {
10270
- throw _iteratorError3;
10233
+ let keys = propertyList || Object.keys(value2);
10234
+ let partial = [];
10235
+ for (const key of keys) {
10236
+ const propertyString = serializeProperty(key, value2);
10237
+ if (propertyString !== void 0) {
10238
+ let member = serializeKey(key) + ":";
10239
+ if (gap !== "") {
10240
+ member += " ";
10271
10241
  }
10242
+ member += propertyString;
10243
+ partial.push(member);
10272
10244
  }
10273
10245
  }
10274
- var final = void 0;
10246
+ let final;
10275
10247
  if (partial.length === 0) {
10276
10248
  final = "{}";
10277
10249
  } else {
10278
- var properties = void 0;
10250
+ let properties;
10279
10251
  if (gap === "") {
10280
10252
  properties = partial.join(",");
10281
10253
  final = "{" + properties + "}";
10282
10254
  } else {
10283
- var separator = ",\n" + indent;
10255
+ let separator = ",\n" + indent;
10284
10256
  properties = partial.join(separator);
10285
10257
  final = "{\n" + indent + properties + ",\n" + stepback + "}";
10286
10258
  }
@@ -10293,11 +10265,11 @@ var require_node2 = __commonJS({
10293
10265
  if (key.length === 0) {
10294
10266
  return quoteString(key, true);
10295
10267
  }
10296
- var firstChar = String.fromCodePoint(key.codePointAt(0));
10268
+ const firstChar = String.fromCodePoint(key.codePointAt(0));
10297
10269
  if (!util2.isIdStartChar(firstChar)) {
10298
10270
  return quoteString(key, true);
10299
10271
  }
10300
- for (var i = firstChar.length; i < key.length; i++) {
10272
+ for (let i = firstChar.length; i < key.length; i++) {
10301
10273
  if (!util2.isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))) {
10302
10274
  return quoteString(key, true);
10303
10275
  }
@@ -10309,45 +10281,40 @@ var require_node2 = __commonJS({
10309
10281
  throw TypeError("Converting circular structure to JSON5");
10310
10282
  }
10311
10283
  stack.push(value2);
10312
- var stepback = indent;
10284
+ let stepback = indent;
10313
10285
  indent = indent + gap;
10314
- var partial = [];
10315
- for (var i = 0; i < value2.length; i++) {
10316
- var propertyString = serializeProperty(String(i), value2);
10286
+ let partial = [];
10287
+ for (let i = 0; i < value2.length; i++) {
10288
+ const propertyString = serializeProperty(String(i), value2);
10317
10289
  partial.push(propertyString !== void 0 ? propertyString : "null");
10318
10290
  }
10319
- var final = void 0;
10291
+ let final;
10320
10292
  if (partial.length === 0) {
10321
10293
  final = "[]";
10322
10294
  } else {
10323
10295
  if (gap === "") {
10324
- var properties = partial.join(",");
10296
+ let properties = partial.join(",");
10325
10297
  final = "[" + properties + "]";
10326
10298
  } else {
10327
- var separator = ",\n" + indent;
10328
- var _properties = partial.join(separator);
10329
- final = "[\n" + indent + _properties + ",\n" + stepback + "]";
10299
+ let separator = ",\n" + indent;
10300
+ let properties = partial.join(separator);
10301
+ final = "[\n" + indent + properties + ",\n" + stepback + "]";
10330
10302
  }
10331
10303
  }
10332
10304
  stack.pop();
10333
10305
  indent = stepback;
10334
10306
  return final;
10335
10307
  }
10336
- }
10337
- module22.exports = exports2["default"];
10308
+ };
10338
10309
  });
10339
10310
  var require_lib32 = __commonJS2((exports2, module22) => {
10340
- "use strict";
10341
- Object.defineProperty(exports2, "__esModule", { value: true });
10342
- var _parse = require_parse4();
10343
- var _parse2 = _interopRequireDefault(_parse);
10344
- var _stringify = require_stringify3();
10345
- var _stringify2 = _interopRequireDefault(_stringify);
10346
- function _interopRequireDefault(obj) {
10347
- return obj && obj.__esModule ? obj : { default: obj };
10348
- }
10349
- exports2.default = { parse: _parse2.default, stringify: _stringify2.default };
10350
- module22.exports = exports2["default"];
10311
+ var parse = require_parse4();
10312
+ var stringify = require_stringify3();
10313
+ var JSON5 = {
10314
+ parse,
10315
+ stringify
10316
+ };
10317
+ module22.exports = JSON5;
10351
10318
  });
10352
10319
  var require_strip_bom = __commonJS2((exports2, module22) => {
10353
10320
  "use strict";
@@ -10363,16 +10330,20 @@ var require_node2 = __commonJS({
10363
10330
  });
10364
10331
  var require_tsconfig_loader = __commonJS2((exports2) => {
10365
10332
  "use strict";
10366
- var __assign = exports2 && exports2.__assign || Object.assign || function(t) {
10367
- for (var s, i = 1, n = arguments.length; i < n; i++) {
10368
- s = arguments[i];
10369
- for (var p in s)
10370
- if (Object.prototype.hasOwnProperty.call(s, p))
10371
- t[p] = s[p];
10372
- }
10373
- return t;
10333
+ var __assign = exports2 && exports2.__assign || function() {
10334
+ __assign = Object.assign || function(t) {
10335
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
10336
+ s = arguments[i];
10337
+ for (var p in s)
10338
+ if (Object.prototype.hasOwnProperty.call(s, p))
10339
+ t[p] = s[p];
10340
+ }
10341
+ return t;
10342
+ };
10343
+ return __assign.apply(this, arguments);
10374
10344
  };
10375
10345
  Object.defineProperty(exports2, "__esModule", { value: true });
10346
+ exports2.loadTsconfig = exports2.walkForTsConfig = exports2.tsConfigLoader = void 0;
10376
10347
  var path4 = require("path");
10377
10348
  var fs32 = require("fs");
10378
10349
  var JSON5 = require_lib32();
@@ -10412,19 +10383,23 @@ var require_node2 = __commonJS({
10412
10383
  var configAbsolutePath = walkForTsConfig(cwd);
10413
10384
  return configAbsolutePath ? path4.resolve(configAbsolutePath) : void 0;
10414
10385
  }
10415
- function walkForTsConfig(directory, existsSync2) {
10416
- if (existsSync2 === void 0) {
10417
- existsSync2 = fs32.existsSync;
10386
+ function walkForTsConfig(directory, readdirSync2) {
10387
+ if (readdirSync2 === void 0) {
10388
+ readdirSync2 = fs32.readdirSync;
10418
10389
  }
10419
- var configPath = path4.join(directory, "./tsconfig.json");
10420
- if (existsSync2(configPath)) {
10421
- return configPath;
10390
+ var files = readdirSync2(directory);
10391
+ var filesToCheck = ["tsconfig.json", "jsconfig.json"];
10392
+ for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
10393
+ var fileToCheck = filesToCheck_1[_i];
10394
+ if (files.indexOf(fileToCheck) !== -1) {
10395
+ return path4.join(directory, fileToCheck);
10396
+ }
10422
10397
  }
10423
- var parentDirectory = path4.join(directory, "../");
10398
+ var parentDirectory = path4.dirname(directory);
10424
10399
  if (directory === parentDirectory) {
10425
10400
  return void 0;
10426
10401
  }
10427
- return walkForTsConfig(parentDirectory, existsSync2);
10402
+ return walkForTsConfig(parentDirectory, readdirSync2);
10428
10403
  }
10429
10404
  exports2.walkForTsConfig = walkForTsConfig;
10430
10405
  function loadTsconfig(configFilePath, existsSync2, readFileSync2) {
@@ -10441,44 +10416,147 @@ var require_node2 = __commonJS({
10441
10416
  }
10442
10417
  var configString = readFileSync2(configFilePath);
10443
10418
  var cleanedJson = StripBom(configString);
10444
- var config = JSON5.parse(cleanedJson);
10419
+ var config;
10420
+ try {
10421
+ config = JSON5.parse(cleanedJson);
10422
+ } catch (e) {
10423
+ throw new Error("".concat(configFilePath, " is malformed ").concat(e.message));
10424
+ }
10445
10425
  var extendedConfig = config.extends;
10446
10426
  if (extendedConfig) {
10447
- if (typeof extendedConfig === "string" && extendedConfig.indexOf(".json") === -1) {
10448
- extendedConfig += ".json";
10449
- }
10450
- var currentDir = path4.dirname(configFilePath);
10451
- var extendedConfigPath = path4.join(currentDir, extendedConfig);
10452
- if (extendedConfig.indexOf("/") !== -1 && extendedConfig.indexOf(".") !== -1 && !existsSync2(extendedConfigPath)) {
10453
- extendedConfigPath = path4.join(currentDir, "node_modules", extendedConfig);
10454
- }
10455
- var base = loadTsconfig(extendedConfigPath, existsSync2, readFileSync2) || {};
10456
- if (base.compilerOptions && base.compilerOptions.baseUrl) {
10457
- var extendsDir = path4.dirname(extendedConfig);
10458
- base.compilerOptions.baseUrl = path4.join(extendsDir, base.compilerOptions.baseUrl);
10427
+ var base = void 0;
10428
+ if (Array.isArray(extendedConfig)) {
10429
+ base = extendedConfig.reduce(function(currBase, extendedConfigElement) {
10430
+ return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync2, readFileSync2));
10431
+ }, {});
10432
+ } else {
10433
+ base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync2, readFileSync2);
10459
10434
  }
10460
- return __assign({}, base, config, { compilerOptions: __assign({}, base.compilerOptions, config.compilerOptions) });
10435
+ return mergeTsconfigs(base, config);
10461
10436
  }
10462
10437
  return config;
10463
10438
  }
10464
10439
  exports2.loadTsconfig = loadTsconfig;
10440
+ function loadTsconfigFromExtends(configFilePath, extendedConfigValue, existsSync2, readFileSync2) {
10441
+ var _a3;
10442
+ if (typeof extendedConfigValue === "string" && extendedConfigValue.indexOf(".json") === -1) {
10443
+ extendedConfigValue += ".json";
10444
+ }
10445
+ var currentDir = path4.dirname(configFilePath);
10446
+ var extendedConfigPath = path4.join(currentDir, extendedConfigValue);
10447
+ if (extendedConfigValue.indexOf("/") !== -1 && extendedConfigValue.indexOf(".") !== -1 && !existsSync2(extendedConfigPath)) {
10448
+ extendedConfigPath = path4.join(currentDir, "node_modules", extendedConfigValue);
10449
+ }
10450
+ var config = loadTsconfig(extendedConfigPath, existsSync2, readFileSync2) || {};
10451
+ if ((_a3 = config.compilerOptions) === null || _a3 === void 0 ? void 0 : _a3.baseUrl) {
10452
+ var extendsDir = path4.dirname(extendedConfigValue);
10453
+ config.compilerOptions.baseUrl = path4.join(extendsDir, config.compilerOptions.baseUrl);
10454
+ }
10455
+ return config;
10456
+ }
10457
+ function mergeTsconfigs(base, config) {
10458
+ base = base || {};
10459
+ config = config || {};
10460
+ return __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) });
10461
+ }
10462
+ });
10463
+ var require_config_loader = __commonJS2((exports2) => {
10464
+ "use strict";
10465
+ Object.defineProperty(exports2, "__esModule", { value: true });
10466
+ exports2.configLoader = exports2.loadConfig = void 0;
10467
+ var TsConfigLoader2 = require_tsconfig_loader();
10468
+ var path4 = require("path");
10469
+ function loadConfig2(cwd) {
10470
+ if (cwd === void 0) {
10471
+ cwd = process.cwd();
10472
+ }
10473
+ return configLoader({ cwd });
10474
+ }
10475
+ exports2.loadConfig = loadConfig2;
10476
+ function configLoader(_a3) {
10477
+ var cwd = _a3.cwd, explicitParams = _a3.explicitParams, _b = _a3.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
10478
+ if (explicitParams) {
10479
+ var absoluteBaseUrl = path4.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path4.join(cwd, explicitParams.baseUrl);
10480
+ return {
10481
+ resultType: "success",
10482
+ configFileAbsolutePath: "",
10483
+ baseUrl: explicitParams.baseUrl,
10484
+ absoluteBaseUrl,
10485
+ paths: explicitParams.paths,
10486
+ mainFields: explicitParams.mainFields,
10487
+ addMatchAll: explicitParams.addMatchAll
10488
+ };
10489
+ }
10490
+ var loadResult = tsConfigLoader({
10491
+ cwd,
10492
+ getEnv: function(key) {
10493
+ return process.env[key];
10494
+ }
10495
+ });
10496
+ if (!loadResult.tsConfigPath) {
10497
+ return {
10498
+ resultType: "failed",
10499
+ message: "Couldn't find tsconfig.json"
10500
+ };
10501
+ }
10502
+ return {
10503
+ resultType: "success",
10504
+ configFileAbsolutePath: loadResult.tsConfigPath,
10505
+ baseUrl: loadResult.baseUrl,
10506
+ absoluteBaseUrl: path4.resolve(path4.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
10507
+ paths: loadResult.paths || {},
10508
+ addMatchAll: loadResult.baseUrl !== void 0
10509
+ };
10510
+ }
10511
+ exports2.configLoader = configLoader;
10465
10512
  });
10466
10513
  var require_minimist2 = __commonJS2((exports2, module22) => {
10514
+ "use strict";
10515
+ function hasKey(obj, keys) {
10516
+ var o = obj;
10517
+ keys.slice(0, -1).forEach(function(key2) {
10518
+ o = o[key2] || {};
10519
+ });
10520
+ var key = keys[keys.length - 1];
10521
+ return key in o;
10522
+ }
10523
+ function isNumber(x) {
10524
+ if (typeof x === "number") {
10525
+ return true;
10526
+ }
10527
+ if (/^0x[0-9a-f]+$/i.test(x)) {
10528
+ return true;
10529
+ }
10530
+ return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
10531
+ }
10532
+ function isConstructorOrProto(obj, key) {
10533
+ return key === "constructor" && typeof obj[key] === "function" || key === "__proto__";
10534
+ }
10467
10535
  module22.exports = function(args, opts) {
10468
- if (!opts)
10536
+ if (!opts) {
10469
10537
  opts = {};
10470
- var flags = { bools: {}, strings: {}, unknownFn: null };
10471
- if (typeof opts["unknown"] === "function") {
10472
- flags.unknownFn = opts["unknown"];
10473
10538
  }
10474
- if (typeof opts["boolean"] === "boolean" && opts["boolean"]) {
10539
+ var flags = {
10540
+ bools: {},
10541
+ strings: {},
10542
+ unknownFn: null
10543
+ };
10544
+ if (typeof opts.unknown === "function") {
10545
+ flags.unknownFn = opts.unknown;
10546
+ }
10547
+ if (typeof opts.boolean === "boolean" && opts.boolean) {
10475
10548
  flags.allBools = true;
10476
10549
  } else {
10477
- [].concat(opts["boolean"]).filter(Boolean).forEach(function(key2) {
10550
+ [].concat(opts.boolean).filter(Boolean).forEach(function(key2) {
10478
10551
  flags.bools[key2] = true;
10479
10552
  });
10480
10553
  }
10481
10554
  var aliases = {};
10555
+ function aliasIsBoolean(key2) {
10556
+ return aliases[key2].some(function(x) {
10557
+ return flags.bools[x];
10558
+ });
10559
+ }
10482
10560
  Object.keys(opts.alias || {}).forEach(function(key2) {
10483
10561
  aliases[key2] = [].concat(opts.alias[key2]);
10484
10562
  aliases[key2].forEach(function(x) {
@@ -10490,89 +10568,96 @@ var require_node2 = __commonJS({
10490
10568
  [].concat(opts.string).filter(Boolean).forEach(function(key2) {
10491
10569
  flags.strings[key2] = true;
10492
10570
  if (aliases[key2]) {
10493
- flags.strings[aliases[key2]] = true;
10571
+ [].concat(aliases[key2]).forEach(function(k) {
10572
+ flags.strings[k] = true;
10573
+ });
10494
10574
  }
10495
10575
  });
10496
- var defaults3 = opts["default"] || {};
10576
+ var defaults3 = opts.default || {};
10497
10577
  var argv2 = { _: [] };
10498
- Object.keys(flags.bools).forEach(function(key2) {
10499
- setArg(key2, defaults3[key2] === void 0 ? false : defaults3[key2]);
10500
- });
10501
- var notFlags = [];
10502
- if (args.indexOf("--") !== -1) {
10503
- notFlags = args.slice(args.indexOf("--") + 1);
10504
- args = args.slice(0, args.indexOf("--"));
10505
- }
10506
10578
  function argDefined(key2, arg2) {
10507
10579
  return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
10508
10580
  }
10509
- function setArg(key2, val, arg2) {
10510
- if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
10511
- if (flags.unknownFn(arg2) === false)
10512
- return;
10513
- }
10514
- var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
10515
- setKey(argv2, key2.split("."), value2);
10516
- (aliases[key2] || []).forEach(function(x) {
10517
- setKey(argv2, x.split("."), value2);
10518
- });
10519
- }
10520
10581
  function setKey(obj, keys, value2) {
10521
10582
  var o = obj;
10522
10583
  for (var i2 = 0; i2 < keys.length - 1; i2++) {
10523
10584
  var key2 = keys[i2];
10524
- if (key2 === "__proto__")
10585
+ if (isConstructorOrProto(o, key2)) {
10525
10586
  return;
10526
- if (o[key2] === void 0)
10587
+ }
10588
+ if (o[key2] === void 0) {
10527
10589
  o[key2] = {};
10528
- if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype)
10590
+ }
10591
+ if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype) {
10529
10592
  o[key2] = {};
10530
- if (o[key2] === Array.prototype)
10593
+ }
10594
+ if (o[key2] === Array.prototype) {
10531
10595
  o[key2] = [];
10596
+ }
10532
10597
  o = o[key2];
10533
10598
  }
10534
- var key2 = keys[keys.length - 1];
10535
- if (key2 === "__proto__")
10599
+ var lastKey = keys[keys.length - 1];
10600
+ if (isConstructorOrProto(o, lastKey)) {
10536
10601
  return;
10537
- if (o === Object.prototype || o === Number.prototype || o === String.prototype)
10602
+ }
10603
+ if (o === Object.prototype || o === Number.prototype || o === String.prototype) {
10538
10604
  o = {};
10539
- if (o === Array.prototype)
10605
+ }
10606
+ if (o === Array.prototype) {
10540
10607
  o = [];
10541
- if (o[key2] === void 0 || flags.bools[key2] || typeof o[key2] === "boolean") {
10542
- o[key2] = value2;
10543
- } else if (Array.isArray(o[key2])) {
10544
- o[key2].push(value2);
10608
+ }
10609
+ if (o[lastKey] === void 0 || flags.bools[lastKey] || typeof o[lastKey] === "boolean") {
10610
+ o[lastKey] = value2;
10611
+ } else if (Array.isArray(o[lastKey])) {
10612
+ o[lastKey].push(value2);
10545
10613
  } else {
10546
- o[key2] = [o[key2], value2];
10614
+ o[lastKey] = [o[lastKey], value2];
10547
10615
  }
10548
10616
  }
10549
- function aliasIsBoolean(key2) {
10550
- return aliases[key2].some(function(x) {
10551
- return flags.bools[x];
10617
+ function setArg(key2, val, arg2) {
10618
+ if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
10619
+ if (flags.unknownFn(arg2) === false) {
10620
+ return;
10621
+ }
10622
+ }
10623
+ var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
10624
+ setKey(argv2, key2.split("."), value2);
10625
+ (aliases[key2] || []).forEach(function(x) {
10626
+ setKey(argv2, x.split("."), value2);
10552
10627
  });
10553
10628
  }
10629
+ Object.keys(flags.bools).forEach(function(key2) {
10630
+ setArg(key2, defaults3[key2] === void 0 ? false : defaults3[key2]);
10631
+ });
10632
+ var notFlags = [];
10633
+ if (args.indexOf("--") !== -1) {
10634
+ notFlags = args.slice(args.indexOf("--") + 1);
10635
+ args = args.slice(0, args.indexOf("--"));
10636
+ }
10554
10637
  for (var i = 0; i < args.length; i++) {
10555
10638
  var arg = args[i];
10639
+ var key;
10640
+ var next;
10556
10641
  if (/^--.+=/.test(arg)) {
10557
10642
  var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
10558
- var key = m[1];
10643
+ key = m[1];
10559
10644
  var value = m[2];
10560
10645
  if (flags.bools[key]) {
10561
10646
  value = value !== "false";
10562
10647
  }
10563
10648
  setArg(key, value, arg);
10564
10649
  } else if (/^--no-.+/.test(arg)) {
10565
- var key = arg.match(/^--no-(.+)/)[1];
10650
+ key = arg.match(/^--no-(.+)/)[1];
10566
10651
  setArg(key, false, arg);
10567
10652
  } else if (/^--.+/.test(arg)) {
10568
- var key = arg.match(/^--(.+)/)[1];
10569
- var next = args[i + 1];
10570
- if (next !== void 0 && !/^-/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
10653
+ key = arg.match(/^--(.+)/)[1];
10654
+ next = args[i + 1];
10655
+ if (next !== void 0 && !/^(-|--)[^-]/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
10571
10656
  setArg(key, next, arg);
10572
- i++;
10657
+ i += 1;
10573
10658
  } else if (/^(true|false)$/.test(next)) {
10574
10659
  setArg(key, next === "true", arg);
10575
- i++;
10660
+ i += 1;
10576
10661
  } else {
10577
10662
  setArg(key, flags.strings[key] ? "" : true, arg);
10578
10663
  }
@@ -10580,13 +10665,13 @@ var require_node2 = __commonJS({
10580
10665
  var letters = arg.slice(1, -1).split("");
10581
10666
  var broken = false;
10582
10667
  for (var j = 0; j < letters.length; j++) {
10583
- var next = arg.slice(j + 2);
10668
+ next = arg.slice(j + 2);
10584
10669
  if (next === "-") {
10585
10670
  setArg(letters[j], next, arg);
10586
10671
  continue;
10587
10672
  }
10588
- if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
10589
- setArg(letters[j], next.split("=")[1], arg);
10673
+ if (/[A-Za-z]/.test(letters[j]) && next[0] === "=") {
10674
+ setArg(letters[j], next.slice(1), arg);
10590
10675
  broken = true;
10591
10676
  break;
10592
10677
  }
@@ -10603,21 +10688,21 @@ var require_node2 = __commonJS({
10603
10688
  setArg(letters[j], flags.strings[letters[j]] ? "" : true, arg);
10604
10689
  }
10605
10690
  }
10606
- var key = arg.slice(-1)[0];
10691
+ key = arg.slice(-1)[0];
10607
10692
  if (!broken && key !== "-") {
10608
10693
  if (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1]) && !flags.bools[key] && (aliases[key] ? !aliasIsBoolean(key) : true)) {
10609
10694
  setArg(key, args[i + 1], arg);
10610
- i++;
10695
+ i += 1;
10611
10696
  } else if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
10612
10697
  setArg(key, args[i + 1] === "true", arg);
10613
- i++;
10698
+ i += 1;
10614
10699
  } else {
10615
10700
  setArg(key, flags.strings[key] ? "" : true, arg);
10616
10701
  }
10617
10702
  }
10618
10703
  } else {
10619
10704
  if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
10620
- argv2._.push(flags.strings["_"] || !isNumber(arg) ? arg : Number(arg));
10705
+ argv2._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg));
10621
10706
  }
10622
10707
  if (opts.stopEarly) {
10623
10708
  argv2._.push.apply(argv2._, args.slice(i + 1));
@@ -10625,120 +10710,41 @@ var require_node2 = __commonJS({
10625
10710
  }
10626
10711
  }
10627
10712
  }
10628
- Object.keys(defaults3).forEach(function(key2) {
10629
- if (!hasKey(argv2, key2.split("."))) {
10630
- setKey(argv2, key2.split("."), defaults3[key2]);
10631
- (aliases[key2] || []).forEach(function(x) {
10632
- setKey(argv2, x.split("."), defaults3[key2]);
10713
+ Object.keys(defaults3).forEach(function(k) {
10714
+ if (!hasKey(argv2, k.split("."))) {
10715
+ setKey(argv2, k.split("."), defaults3[k]);
10716
+ (aliases[k] || []).forEach(function(x) {
10717
+ setKey(argv2, x.split("."), defaults3[k]);
10633
10718
  });
10634
10719
  }
10635
10720
  });
10636
10721
  if (opts["--"]) {
10637
- argv2["--"] = new Array();
10638
- notFlags.forEach(function(key2) {
10639
- argv2["--"].push(key2);
10640
- });
10722
+ argv2["--"] = notFlags.slice();
10641
10723
  } else {
10642
- notFlags.forEach(function(key2) {
10643
- argv2._.push(key2);
10724
+ notFlags.forEach(function(k) {
10725
+ argv2._.push(k);
10644
10726
  });
10645
10727
  }
10646
10728
  return argv2;
10647
10729
  };
10648
- function hasKey(obj, keys) {
10649
- var o = obj;
10650
- keys.slice(0, -1).forEach(function(key2) {
10651
- o = o[key2] || {};
10652
- });
10653
- var key = keys[keys.length - 1];
10654
- return key in o;
10655
- }
10656
- function isNumber(x) {
10657
- if (typeof x === "number")
10658
- return true;
10659
- if (/^0x[0-9a-f]+$/i.test(x))
10660
- return true;
10661
- return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
10662
- }
10663
- });
10664
- var require_options = __commonJS2((exports2) => {
10665
- "use strict";
10666
- Object.defineProperty(exports2, "__esModule", { value: true });
10667
- var minimist2 = require_minimist2();
10668
- var argv2 = minimist2(process.argv.slice(2), {
10669
- string: ["project"],
10670
- alias: {
10671
- project: ["P"]
10672
- }
10673
- });
10674
- var project = argv2 && argv2.project;
10675
- exports2.options = {
10676
- cwd: project || process.cwd()
10677
- };
10678
- });
10679
- var require_config_loader = __commonJS2((exports2) => {
10680
- "use strict";
10681
- Object.defineProperty(exports2, "__esModule", { value: true });
10682
- var TsConfigLoader = require_tsconfig_loader();
10683
- var path4 = require("path");
10684
- var options_1 = require_options();
10685
- function loadConfig2(cwd) {
10686
- if (cwd === void 0) {
10687
- cwd = options_1.options.cwd;
10688
- }
10689
- return configLoader({ cwd });
10690
- }
10691
- exports2.loadConfig = loadConfig2;
10692
- function configLoader(_a3) {
10693
- var cwd = _a3.cwd, explicitParams = _a3.explicitParams, _b = _a3.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader.tsConfigLoader : _b;
10694
- if (explicitParams) {
10695
- var absoluteBaseUrl_1 = path4.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path4.join(cwd, explicitParams.baseUrl);
10696
- return {
10697
- resultType: "success",
10698
- configFileAbsolutePath: "",
10699
- baseUrl: explicitParams.baseUrl,
10700
- absoluteBaseUrl: absoluteBaseUrl_1,
10701
- paths: explicitParams.paths,
10702
- mainFields: explicitParams.mainFields,
10703
- addMatchAll: explicitParams.addMatchAll
10704
- };
10705
- }
10706
- var loadResult = tsConfigLoader({
10707
- cwd,
10708
- getEnv: function(key) {
10709
- return process.env[key];
10710
- }
10711
- });
10712
- if (!loadResult.tsConfigPath) {
10713
- return {
10714
- resultType: "failed",
10715
- message: "Couldn't find tsconfig.json"
10716
- };
10717
- }
10718
- if (!loadResult.baseUrl) {
10719
- return {
10720
- resultType: "failed",
10721
- message: "Missing baseUrl in compilerOptions"
10722
- };
10723
- }
10724
- var tsConfigDir = path4.dirname(loadResult.tsConfigPath);
10725
- var absoluteBaseUrl = path4.join(tsConfigDir, loadResult.baseUrl);
10726
- return {
10727
- resultType: "success",
10728
- configFileAbsolutePath: loadResult.tsConfigPath,
10729
- baseUrl: loadResult.baseUrl,
10730
- absoluteBaseUrl,
10731
- paths: loadResult.paths || {}
10732
- };
10733
- }
10734
- exports2.configLoader = configLoader;
10735
10730
  });
10736
10731
  var require_register = __commonJS2((exports2) => {
10737
10732
  "use strict";
10733
+ var __spreadArray = exports2 && exports2.__spreadArray || function(to, from, pack) {
10734
+ if (pack || arguments.length === 2)
10735
+ for (var i = 0, l = from.length, ar; i < l; i++) {
10736
+ if (ar || !(i in from)) {
10737
+ if (!ar)
10738
+ ar = Array.prototype.slice.call(from, 0, i);
10739
+ ar[i] = from[i];
10740
+ }
10741
+ }
10742
+ return to.concat(ar || Array.prototype.slice.call(from));
10743
+ };
10738
10744
  Object.defineProperty(exports2, "__esModule", { value: true });
10745
+ exports2.register = void 0;
10739
10746
  var match_path_sync_1 = require_match_path_sync();
10740
10747
  var config_loader_1 = require_config_loader();
10741
- var options_1 = require_options();
10742
10748
  var noOp2 = function() {
10743
10749
  return void 0;
10744
10750
  };
@@ -10779,16 +10785,33 @@ var require_node2 = __commonJS({
10779
10785
  }
10780
10786
  return coreModules;
10781
10787
  }
10782
- function register2(explicitParams) {
10783
- var configLoaderResult = config_loader_1.configLoader({
10784
- cwd: options_1.options.cwd,
10788
+ function register2(params) {
10789
+ var cwd;
10790
+ var explicitParams;
10791
+ if (params) {
10792
+ cwd = params.cwd;
10793
+ if (params.baseUrl || params.paths) {
10794
+ explicitParams = params;
10795
+ }
10796
+ } else {
10797
+ var minimist2 = require_minimist2();
10798
+ var argv2 = minimist2(process.argv.slice(2), {
10799
+ string: ["project"],
10800
+ alias: {
10801
+ project: ["P"]
10802
+ }
10803
+ });
10804
+ cwd = argv2.project;
10805
+ }
10806
+ var configLoaderResult = (0, config_loader_1.configLoader)({
10807
+ cwd: cwd !== null && cwd !== void 0 ? cwd : process.cwd(),
10785
10808
  explicitParams
10786
10809
  });
10787
10810
  if (configLoaderResult.resultType === "failed") {
10788
- console.warn(configLoaderResult.message + ". tsconfig-paths will be skipped");
10811
+ console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped"));
10789
10812
  return noOp2;
10790
10813
  }
10791
- var matchPath = match_path_sync_1.createMatchPath(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll);
10814
+ var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll);
10792
10815
  var Module = require("module");
10793
10816
  var originalResolveFilename = Module._resolveFilename;
10794
10817
  var coreModules = getCoreModules(Module.builtinModules);
@@ -10797,7 +10820,7 @@ var require_node2 = __commonJS({
10797
10820
  if (!isCoreModule) {
10798
10821
  var found = matchPath(request);
10799
10822
  if (found) {
10800
- var modifiedArguments = [found].concat([].slice.call(arguments, 1));
10823
+ var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), true);
10801
10824
  return originalResolveFilename.apply(this, modifiedArguments);
10802
10825
  }
10803
10826
  }
@@ -10812,16 +10835,29 @@ var require_node2 = __commonJS({
10812
10835
  var require_lib42 = __commonJS2((exports2) => {
10813
10836
  "use strict";
10814
10837
  Object.defineProperty(exports2, "__esModule", { value: true });
10838
+ exports2.loadConfig = exports2.register = exports2.matchFromAbsolutePathsAsync = exports2.createMatchPathAsync = exports2.matchFromAbsolutePaths = exports2.createMatchPath = void 0;
10815
10839
  var match_path_sync_1 = require_match_path_sync();
10816
- exports2.createMatchPath = match_path_sync_1.createMatchPath;
10817
- exports2.matchFromAbsolutePaths = match_path_sync_1.matchFromAbsolutePaths;
10840
+ Object.defineProperty(exports2, "createMatchPath", { enumerable: true, get: function() {
10841
+ return match_path_sync_1.createMatchPath;
10842
+ } });
10843
+ Object.defineProperty(exports2, "matchFromAbsolutePaths", { enumerable: true, get: function() {
10844
+ return match_path_sync_1.matchFromAbsolutePaths;
10845
+ } });
10818
10846
  var match_path_async_1 = require_match_path_async();
10819
- exports2.createMatchPathAsync = match_path_async_1.createMatchPathAsync;
10820
- exports2.matchFromAbsolutePathsAsync = match_path_async_1.matchFromAbsolutePathsAsync;
10847
+ Object.defineProperty(exports2, "createMatchPathAsync", { enumerable: true, get: function() {
10848
+ return match_path_async_1.createMatchPathAsync;
10849
+ } });
10850
+ Object.defineProperty(exports2, "matchFromAbsolutePathsAsync", { enumerable: true, get: function() {
10851
+ return match_path_async_1.matchFromAbsolutePathsAsync;
10852
+ } });
10821
10853
  var register_1 = require_register();
10822
- exports2.register = register_1.register;
10854
+ Object.defineProperty(exports2, "register", { enumerable: true, get: function() {
10855
+ return register_1.register;
10856
+ } });
10823
10857
  var config_loader_1 = require_config_loader();
10824
- exports2.loadConfig = config_loader_1.loadConfig;
10858
+ Object.defineProperty(exports2, "loadConfig", { enumerable: true, get: function() {
10859
+ return config_loader_1.loadConfig;
10860
+ } });
10825
10861
  });
10826
10862
  var import_source_map_support = __toModule(require_source_map_support());
10827
10863
  var import_pirates = __toModule(require_lib5());
@@ -13025,6 +13061,7 @@ var init_serializer = __esm({
13025
13061
  import_path = __toESM(require("path"));
13026
13062
  glob = __toESM(require("glob"));
13027
13063
  init_source();
13064
+ init_views();
13028
13065
  sqlToStr = (sql2) => {
13029
13066
  return sql2.toQuery({
13030
13067
  escapeName: () => {
@@ -13075,7 +13112,16 @@ ${filenames.join("\n")}
13075
13112
  });
13076
13113
  return result2;
13077
13114
  }, /* @__PURE__ */ new Set());
13078
- return [...result];
13115
+ const res = [...result];
13116
+ const errors = res.filter((it) => {
13117
+ return !(it.endsWith(".ts") || it.endsWith(".js") || it.endsWith(".cjs") || it.endsWith(".mjs") || it.endsWith(".mts") || it.endsWith(".cts"));
13118
+ });
13119
+ if (res.length === 0) {
13120
+ console.log(error(`No schema files found for path [${path4.join(", ")}]`));
13121
+ console.log(error(`If path represents a file - please make sure to use .ts or other extension in the path`));
13122
+ process.exit(1);
13123
+ }
13124
+ return res;
13079
13125
  };
13080
13126
  }
13081
13127
  });
@@ -42870,7 +42916,7 @@ var require_promise = __commonJS({
42870
42916
  for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
42871
42917
  const func = functionsToWrap[i];
42872
42918
  if (typeof core.Connection.prototype[func] === "function" && PromiseConnection.prototype[func] === void 0) {
42873
- PromiseConnection.prototype[func] = function factory(funcName) {
42919
+ PromiseConnection.prototype[func] = /* @__PURE__ */ function factory(funcName) {
42874
42920
  return function() {
42875
42921
  return core.Connection.prototype[funcName].apply(
42876
42922
  this.connection,
@@ -42990,7 +43036,7 @@ var require_promise = __commonJS({
42990
43036
  for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
42991
43037
  const func = functionsToWrap[i];
42992
43038
  if (typeof core.Pool.prototype[func] === "function" && PromisePool.prototype[func] === void 0) {
42993
- PromisePool.prototype[func] = function factory(funcName) {
43039
+ PromisePool.prototype[func] = /* @__PURE__ */ function factory(funcName) {
42994
43040
  return function() {
42995
43041
  return core.Pool.prototype[funcName].apply(this.pool, arguments);
42996
43042
  };
@@ -43077,7 +43123,7 @@ var require_promise = __commonJS({
43077
43123
  for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
43078
43124
  const func = functionsToWrap[i];
43079
43125
  if (typeof core.PoolCluster.prototype[func] === "function" && PromisePoolCluster.prototype[func] === void 0) {
43080
- PromisePoolCluster.prototype[func] = function factory(funcName) {
43126
+ PromisePoolCluster.prototype[func] = /* @__PURE__ */ function factory(funcName) {
43081
43127
  return function() {
43082
43128
  return core.PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);
43083
43129
  };
@@ -49821,7 +49867,7 @@ var require_partial = __commonJS({
49821
49867
  match(filepath) {
49822
49868
  const parts = filepath.split("/");
49823
49869
  const levels = parts.length;
49824
- const patterns = this._storage.filter((info2) => !info2.complete || info2.segments.length > levels);
49870
+ const patterns = this._storage.filter((info3) => !info3.complete || info3.segments.length > levels);
49825
49871
  for (const pattern of patterns) {
49826
49872
  const section = pattern.sections[0];
49827
49873
  if (!pattern.complete && levels > section.length) {