@vention/vention-cli 0.32.9 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.esm.js CHANGED
@@ -171,7 +171,7 @@ var isObject$m = function (it) {
171
171
  return typeof it == 'object' ? it !== null : isCallable$s(it);
172
172
  };
173
173
 
174
- var globalThis$Q = globalThis_1;
174
+ var globalThis$R = globalThis_1;
175
175
  var isCallable$r = isCallable$t;
176
176
 
177
177
  var aFunction = function (argument) {
@@ -179,54 +179,54 @@ var aFunction = function (argument) {
179
179
  };
180
180
 
181
181
  var getBuiltIn$c = function (namespace, method) {
182
- return arguments.length < 2 ? aFunction(globalThis$Q[namespace]) : globalThis$Q[namespace] && globalThis$Q[namespace][method];
182
+ return arguments.length < 2 ? aFunction(globalThis$R[namespace]) : globalThis$R[namespace] && globalThis$R[namespace][method];
183
183
  };
184
184
 
185
185
  var uncurryThis$G = functionUncurryThis;
186
186
 
187
187
  var objectIsPrototypeOf = uncurryThis$G({}.isPrototypeOf);
188
188
 
189
- var globalThis$P = globalThis_1;
189
+ var globalThis$Q = globalThis_1;
190
190
 
191
- var navigator = globalThis$P.navigator;
192
- var userAgent$7 = navigator && navigator.userAgent;
191
+ var navigator = globalThis$Q.navigator;
192
+ var userAgent$8 = navigator && navigator.userAgent;
193
193
 
194
- var environmentUserAgent = userAgent$7 ? String(userAgent$7) : '';
194
+ var environmentUserAgent = userAgent$8 ? String(userAgent$8) : '';
195
195
 
196
- var globalThis$O = globalThis_1;
197
- var userAgent$6 = environmentUserAgent;
196
+ var globalThis$P = globalThis_1;
197
+ var userAgent$7 = environmentUserAgent;
198
198
 
199
- var process$4 = globalThis$O.process;
200
- var Deno$1 = globalThis$O.Deno;
199
+ var process$4 = globalThis$P.process;
200
+ var Deno$1 = globalThis$P.Deno;
201
201
  var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
202
202
  var v8 = versions && versions.v8;
203
- var match, version;
203
+ var match, version$1;
204
204
 
205
205
  if (v8) {
206
206
  match = v8.split('.');
207
207
  // in old Chrome, versions of V8 isn't V8 = Chrome / 10
208
208
  // but their correct versions are not interesting for us
209
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
209
+ version$1 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
210
210
  }
211
211
 
212
212
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
213
213
  // so check `userAgent` even if `.v8` exists, but 0
214
- if (!version && userAgent$6) {
215
- match = userAgent$6.match(/Edge\/(\d+)/);
214
+ if (!version$1 && userAgent$7) {
215
+ match = userAgent$7.match(/Edge\/(\d+)/);
216
216
  if (!match || match[1] >= 74) {
217
- match = userAgent$6.match(/Chrome\/(\d+)/);
218
- if (match) version = +match[1];
217
+ match = userAgent$7.match(/Chrome\/(\d+)/);
218
+ if (match) version$1 = +match[1];
219
219
  }
220
220
  }
221
221
 
222
- var environmentV8Version = version;
222
+ var environmentV8Version = version$1;
223
223
 
224
224
  /* eslint-disable es/no-symbol -- required for testing */
225
225
  var V8_VERSION$1 = environmentV8Version;
226
226
  var fails$y = fails$C;
227
- var globalThis$N = globalThis_1;
227
+ var globalThis$O = globalThis_1;
228
228
 
229
- var $String$7 = globalThis$N.String;
229
+ var $String$7 = globalThis$O.String;
230
230
 
231
231
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
232
232
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$y(function () {
@@ -312,24 +312,24 @@ var sharedStore = {exports: {}};
312
312
 
313
313
  var isPure = false;
314
314
 
315
- var globalThis$M = globalThis_1;
315
+ var globalThis$N = globalThis_1;
316
316
 
317
317
  // eslint-disable-next-line es/no-object-defineproperty -- safe
318
318
  var defineProperty$7 = Object.defineProperty;
319
319
 
320
320
  var defineGlobalProperty$3 = function (key, value) {
321
321
  try {
322
- defineProperty$7(globalThis$M, key, { value: value, configurable: true, writable: true });
322
+ defineProperty$7(globalThis$N, key, { value: value, configurable: true, writable: true });
323
323
  } catch (error) {
324
- globalThis$M[key] = value;
324
+ globalThis$N[key] = value;
325
325
  } return value;
326
326
  };
327
327
 
328
- var globalThis$L = globalThis_1;
328
+ var globalThis$M = globalThis_1;
329
329
  var defineGlobalProperty$2 = defineGlobalProperty$3;
330
330
 
331
331
  var SHARED = '__core-js_shared__';
332
- var store$3 = sharedStore.exports = globalThis$L[SHARED] || defineGlobalProperty$2(SHARED, {});
332
+ var store$3 = sharedStore.exports = globalThis$M[SHARED] || defineGlobalProperty$2(SHARED, {});
333
333
 
334
334
  (store$3.versions || (store$3.versions = [])).push({
335
335
  version: '3.49.0',
@@ -379,14 +379,14 @@ var uid$4 = function (key) {
379
379
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$e(++id + postfix, 36);
380
380
  };
381
381
 
382
- var globalThis$K = globalThis_1;
382
+ var globalThis$L = globalThis_1;
383
383
  var shared$3 = shared$4;
384
384
  var hasOwn$l = hasOwnProperty_1;
385
385
  var uid$3 = uid$4;
386
386
  var NATIVE_SYMBOL$3 = symbolConstructorDetection;
387
387
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
388
388
 
389
- var Symbol$1 = globalThis$K.Symbol;
389
+ var Symbol$1 = globalThis$L.Symbol;
390
390
  var WellKnownSymbolsStore = shared$3('wks');
391
391
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$3;
392
392
 
@@ -434,10 +434,10 @@ var toPropertyKey$3 = function (argument) {
434
434
  return isSymbol$2(key) ? key : key + '';
435
435
  };
436
436
 
437
- var globalThis$J = globalThis_1;
437
+ var globalThis$K = globalThis_1;
438
438
  var isObject$j = isObject$m;
439
439
 
440
- var document$3 = globalThis$J.document;
440
+ var document$3 = globalThis$K.document;
441
441
  // typeof document.createElement is 'object' in old IE
442
442
  var EXISTS$1 = isObject$j(document$3) && isObject$j(document$3.createElement);
443
443
 
@@ -595,10 +595,10 @@ if (!isCallable$n(store$1.inspectSource)) {
595
595
 
596
596
  var inspectSource$3 = store$1.inspectSource;
597
597
 
598
- var globalThis$I = globalThis_1;
598
+ var globalThis$J = globalThis_1;
599
599
  var isCallable$m = isCallable$t;
600
600
 
601
- var WeakMap$1 = globalThis$I.WeakMap;
601
+ var WeakMap$1 = globalThis$J.WeakMap;
602
602
 
603
603
  var weakMapBasicDetection = isCallable$m(WeakMap$1) && /native code/.test(String(WeakMap$1));
604
604
 
@@ -614,7 +614,7 @@ var sharedKey$3 = function (key) {
614
614
  var hiddenKeys$4 = {};
615
615
 
616
616
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
617
- var globalThis$H = globalThis_1;
617
+ var globalThis$I = globalThis_1;
618
618
  var isObject$h = isObject$m;
619
619
  var createNonEnumerableProperty$c = createNonEnumerableProperty$d;
620
620
  var hasOwn$i = hasOwnProperty_1;
@@ -623,8 +623,8 @@ var sharedKey$2 = sharedKey$3;
623
623
  var hiddenKeys$3 = hiddenKeys$4;
624
624
 
625
625
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
626
- var TypeError$7 = globalThis$H.TypeError;
627
- var WeakMap = globalThis$H.WeakMap;
626
+ var TypeError$7 = globalThis$I.TypeError;
627
+ var WeakMap = globalThis$I.WeakMap;
628
628
  var set$2, get$1, has$6;
629
629
 
630
630
  var enforce = function (it) {
@@ -962,7 +962,7 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
962
962
 
963
963
  var isForced_1 = isForced$3;
964
964
 
965
- var globalThis$G = globalThis_1;
965
+ var globalThis$H = globalThis_1;
966
966
  var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
967
967
  var createNonEnumerableProperty$b = createNonEnumerableProperty$d;
968
968
  var defineBuiltIn$d = defineBuiltIn$e;
@@ -991,11 +991,11 @@ var _export = function (options, source) {
991
991
  var STATIC = options.stat;
992
992
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
993
993
  if (GLOBAL) {
994
- target = globalThis$G;
994
+ target = globalThis$H;
995
995
  } else if (STATIC) {
996
- target = globalThis$G[TARGET] || defineGlobalProperty(TARGET, {});
996
+ target = globalThis$H[TARGET] || defineGlobalProperty(TARGET, {});
997
997
  } else {
998
- target = globalThis$G[TARGET] && globalThis$G[TARGET].prototype;
998
+ target = globalThis$H[TARGET] && globalThis$H[TARGET].prototype;
999
999
  }
1000
1000
  if (target) for (key in source) {
1001
1001
  sourceProperty = source[key];
@@ -1074,9 +1074,9 @@ var defineBuiltInAccessor$b = function (target, name, descriptor) {
1074
1074
  return defineProperty$5.f(target, name, descriptor);
1075
1075
  };
1076
1076
 
1077
- var $$E = _export;
1077
+ var $$F = _export;
1078
1078
  var DESCRIPTORS$k = descriptors;
1079
- var globalThis$F = globalThis_1;
1079
+ var globalThis$G = globalThis_1;
1080
1080
  var call$v = functionCall;
1081
1081
  var uncurryThis$z = functionUncurryThis;
1082
1082
  var hasOwn$e = hasOwnProperty_1;
@@ -1086,7 +1086,7 @@ var toString$c = toString$d;
1086
1086
  var defineBuiltInAccessor$a = defineBuiltInAccessor$b;
1087
1087
  var copyConstructorProperties$2 = copyConstructorProperties$4;
1088
1088
 
1089
- var NativeSymbol = globalThis$F.Symbol;
1089
+ var NativeSymbol = globalThis$G.Symbol;
1090
1090
  var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
1091
1091
 
1092
1092
  if (DESCRIPTORS$k && isCallable$h(NativeSymbol) && (!('description' in SymbolPrototype) ||
@@ -1136,7 +1136,7 @@ if (DESCRIPTORS$k && isCallable$h(NativeSymbol) && (!('description' in SymbolPro
1136
1136
  }
1137
1137
  });
1138
1138
 
1139
- $$E({ global: true, constructor: true, forced: true }, {
1139
+ $$F({ global: true, constructor: true, forced: true }, {
1140
1140
  Symbol: SymbolWrapper
1141
1141
  });
1142
1142
  }
@@ -1284,7 +1284,7 @@ var addToUnscopables$2 = function (key) {
1284
1284
  ArrayPrototype$1[UNSCOPABLES][key] = true;
1285
1285
  };
1286
1286
 
1287
- var $$D = _export;
1287
+ var $$E = _export;
1288
1288
  var $includes = arrayIncludes.includes;
1289
1289
  var fails$t = fails$C;
1290
1290
  var addToUnscopables$1 = addToUnscopables$2;
@@ -1303,7 +1303,7 @@ var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails$t(function () {
1303
1303
 
1304
1304
  // `Array.prototype.includes` method
1305
1305
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1306
- $$D({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
1306
+ $$E({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
1307
1307
  includes: function includes(el /* , fromIndex = 0 */) {
1308
1308
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1309
1309
  }
@@ -1351,7 +1351,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1351
1351
  } return false;
1352
1352
  };
1353
1353
 
1354
- var $$C = _export;
1354
+ var $$D = _export;
1355
1355
  var uncurryThis$y = functionUncurryThis;
1356
1356
  var notARegExp = notARegexp;
1357
1357
  var requireObjectCoercible$3 = requireObjectCoercible$6;
@@ -1362,7 +1362,7 @@ var stringIndexOf$2 = uncurryThis$y(''.indexOf);
1362
1362
 
1363
1363
  // `String.prototype.includes` method
1364
1364
  // https://tc39.es/ecma262/#sec-string.prototype.includes
1365
- $$C({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1365
+ $$D({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1366
1366
  includes: function includes(searchString /* , position = 0 */) {
1367
1367
  return !!~stringIndexOf$2(
1368
1368
  toString$b(requireObjectCoercible$3(this)),
@@ -1384,12 +1384,12 @@ const verboseLog = message => {
1384
1384
  };
1385
1385
 
1386
1386
  /* global Bun, Deno -- detection */
1387
- var globalThis$E = globalThis_1;
1388
- var userAgent$5 = environmentUserAgent;
1387
+ var globalThis$F = globalThis_1;
1388
+ var userAgent$6 = environmentUserAgent;
1389
1389
  var classof$d = classofRaw$2;
1390
1390
 
1391
1391
  var userAgentStartsWith = function (string) {
1392
- return userAgent$5.slice(0, string.length) === string;
1392
+ return userAgent$6.slice(0, string.length) === string;
1393
1393
  };
1394
1394
 
1395
1395
  var environment = (function () {
@@ -1397,10 +1397,10 @@ var environment = (function () {
1397
1397
  if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1398
1398
  if (userAgentStartsWith('Deno/')) return 'DENO';
1399
1399
  if (userAgentStartsWith('Node.js/')) return 'NODE';
1400
- if (globalThis$E.Bun && typeof Bun.version == 'string') return 'BUN';
1401
- if (globalThis$E.Deno && typeof Deno.version == 'object') return 'DENO';
1402
- if (classof$d(globalThis$E.process) === 'process') return 'NODE';
1403
- if (globalThis$E.window && globalThis$E.document) return 'BROWSER';
1400
+ if (globalThis$F.Bun && typeof Bun.version == 'string') return 'BUN';
1401
+ if (globalThis$F.Deno && typeof Deno.version == 'object') return 'DENO';
1402
+ if (classof$d(globalThis$F.process) === 'process') return 'NODE';
1403
+ if (globalThis$F.window && globalThis$F.document) return 'BROWSER';
1404
1404
  return 'REST';
1405
1405
  })();
1406
1406
 
@@ -1408,9 +1408,9 @@ var ENVIRONMENT$2 = environment;
1408
1408
 
1409
1409
  var environmentIsNode = ENVIRONMENT$2 === 'NODE';
1410
1410
 
1411
- var globalThis$D = globalThis_1;
1411
+ var globalThis$E = globalThis_1;
1412
1412
 
1413
- var path$1 = globalThis$D;
1413
+ var path$1 = globalThis$E;
1414
1414
 
1415
1415
  var uncurryThis$x = functionUncurryThis;
1416
1416
  var aCallable$e = aCallable$g;
@@ -1631,11 +1631,11 @@ var validateArgumentsLength$5 = function (passed, required) {
1631
1631
  return passed;
1632
1632
  };
1633
1633
 
1634
- var userAgent$4 = environmentUserAgent;
1634
+ var userAgent$5 = environmentUserAgent;
1635
1635
 
1636
- var environmentIsIos = /ipad|iphone|ipod/i.test(userAgent$4) && /applewebkit/i.test(userAgent$4);
1636
+ var environmentIsIos = /ipad|iphone|ipod/i.test(userAgent$5) && /applewebkit/i.test(userAgent$5);
1637
1637
 
1638
- var globalThis$C = globalThis_1;
1638
+ var globalThis$D = globalThis_1;
1639
1639
  var apply$4 = functionApply;
1640
1640
  var bind$9 = functionBindContext;
1641
1641
  var isCallable$f = isCallable$t;
@@ -1648,13 +1648,13 @@ var validateArgumentsLength$4 = validateArgumentsLength$5;
1648
1648
  var IS_IOS$1 = environmentIsIos;
1649
1649
  var IS_NODE$3 = environmentIsNode;
1650
1650
 
1651
- var set$1 = globalThis$C.setImmediate;
1652
- var clear = globalThis$C.clearImmediate;
1653
- var process$3 = globalThis$C.process;
1654
- var Dispatch = globalThis$C.Dispatch;
1655
- var Function$1 = globalThis$C.Function;
1656
- var MessageChannel = globalThis$C.MessageChannel;
1657
- var String$1 = globalThis$C.String;
1651
+ var set$1 = globalThis$D.setImmediate;
1652
+ var clear = globalThis$D.clearImmediate;
1653
+ var process$3 = globalThis$D.process;
1654
+ var Dispatch = globalThis$D.Dispatch;
1655
+ var Function$1 = globalThis$D.Function;
1656
+ var MessageChannel = globalThis$D.MessageChannel;
1657
+ var String$1 = globalThis$D.String;
1658
1658
  var counter = 0;
1659
1659
  var queue$2 = {};
1660
1660
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -1662,7 +1662,7 @@ var $location, defer, channel$1, port;
1662
1662
 
1663
1663
  fails$r(function () {
1664
1664
  // Deno throws a ReferenceError on `location` access without `--location` flag
1665
- $location = globalThis$C.location;
1665
+ $location = globalThis$D.location;
1666
1666
  });
1667
1667
 
1668
1668
  var run = function (id) {
@@ -1685,7 +1685,7 @@ var eventListener = function (event) {
1685
1685
 
1686
1686
  var globalPostMessageDefer = function (id) {
1687
1687
  // old engines have not location.origin
1688
- globalThis$C.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1688
+ globalThis$D.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1689
1689
  };
1690
1690
 
1691
1691
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
@@ -1723,14 +1723,14 @@ if (!set$1 || !clear) {
1723
1723
  // Browsers with postMessage, skip WebWorkers
1724
1724
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1725
1725
  } else if (
1726
- globalThis$C.addEventListener &&
1727
- isCallable$f(globalThis$C.postMessage) &&
1728
- !globalThis$C.importScripts &&
1726
+ globalThis$D.addEventListener &&
1727
+ isCallable$f(globalThis$D.postMessage) &&
1728
+ !globalThis$D.importScripts &&
1729
1729
  $location && $location.protocol !== 'file:' &&
1730
1730
  !fails$r(globalPostMessageDefer)
1731
1731
  ) {
1732
1732
  defer = globalPostMessageDefer;
1733
- globalThis$C.addEventListener('message', eventListener, false);
1733
+ globalThis$D.addEventListener('message', eventListener, false);
1734
1734
  // IE8-
1735
1735
  } else if (ONREADYSTATECHANGE in createElement('script')) {
1736
1736
  defer = function (id) {
@@ -1750,7 +1750,7 @@ if (!set$1 || !clear) {
1750
1750
  var task$1 = {
1751
1751
  set: set$1};
1752
1752
 
1753
- var globalThis$B = globalThis_1;
1753
+ var globalThis$C = globalThis_1;
1754
1754
  var DESCRIPTORS$h = descriptors;
1755
1755
 
1756
1756
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1758,8 +1758,8 @@ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
1758
1758
 
1759
1759
  // Avoid NodeJS experimental warning
1760
1760
  var safeGetBuiltIn$2 = function (name) {
1761
- if (!DESCRIPTORS$h) return globalThis$B[name];
1762
- var descriptor = getOwnPropertyDescriptor$2(globalThis$B, name);
1761
+ if (!DESCRIPTORS$h) return globalThis$C[name];
1762
+ var descriptor = getOwnPropertyDescriptor$2(globalThis$C, name);
1763
1763
  return descriptor && descriptor.value;
1764
1764
  };
1765
1765
 
@@ -1788,15 +1788,15 @@ Queue$2.prototype = {
1788
1788
 
1789
1789
  var queue$1 = Queue$2;
1790
1790
 
1791
- var userAgent$3 = environmentUserAgent;
1791
+ var userAgent$4 = environmentUserAgent;
1792
1792
 
1793
- var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
1793
+ var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$4) && typeof Pebble != 'undefined';
1794
1794
 
1795
- var userAgent$2 = environmentUserAgent;
1795
+ var userAgent$3 = environmentUserAgent;
1796
1796
 
1797
- var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
1797
+ var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$3);
1798
1798
 
1799
- var globalThis$A = globalThis_1;
1799
+ var globalThis$B = globalThis_1;
1800
1800
  var safeGetBuiltIn$1 = safeGetBuiltIn$2;
1801
1801
  var bind$8 = functionBindContext;
1802
1802
  var macrotask = task$1.set;
@@ -1806,10 +1806,10 @@ var IS_IOS_PEBBLE = environmentIsIosPebble;
1806
1806
  var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
1807
1807
  var IS_NODE$2 = environmentIsNode;
1808
1808
 
1809
- var MutationObserver = globalThis$A.MutationObserver || globalThis$A.WebKitMutationObserver;
1810
- var document$2 = globalThis$A.document;
1811
- var process$2 = globalThis$A.process;
1812
- var Promise$1 = globalThis$A.Promise;
1809
+ var MutationObserver = globalThis$B.MutationObserver || globalThis$B.WebKitMutationObserver;
1810
+ var document$2 = globalThis$B.document;
1811
+ var process$2 = globalThis$B.process;
1812
+ var Promise$1 = globalThis$B.Promise;
1813
1813
  var microtask$1 = safeGetBuiltIn$1('queueMicrotask');
1814
1814
  var notify$1, toggle, node, promise, then;
1815
1815
 
@@ -1861,7 +1861,7 @@ if (!microtask$1) {
1861
1861
  // - setTimeout
1862
1862
  } else {
1863
1863
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
1864
- macrotask = bind$8(macrotask, globalThis$A);
1864
+ macrotask = bind$8(macrotask, globalThis$B);
1865
1865
  notify$1 = function () {
1866
1866
  macrotask(flush);
1867
1867
  };
@@ -1890,11 +1890,11 @@ var perform$3 = function (exec) {
1890
1890
  }
1891
1891
  };
1892
1892
 
1893
- var globalThis$z = globalThis_1;
1893
+ var globalThis$A = globalThis_1;
1894
1894
 
1895
- var promiseNativeConstructor = globalThis$z.Promise;
1895
+ var promiseNativeConstructor = globalThis$A.Promise;
1896
1896
 
1897
- var globalThis$y = globalThis_1;
1897
+ var globalThis$z = globalThis_1;
1898
1898
  var NativePromiseConstructor$3 = promiseNativeConstructor;
1899
1899
  var isCallable$e = isCallable$t;
1900
1900
  var isForced$1 = isForced_1;
@@ -1906,7 +1906,7 @@ var V8_VERSION = environmentV8Version;
1906
1906
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1907
1907
  var SPECIES$2 = wellKnownSymbol$f('species');
1908
1908
  var SUBCLASSING = false;
1909
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$e(globalThis$y.PromiseRejectionEvent);
1909
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$e(globalThis$z.PromiseRejectionEvent);
1910
1910
 
1911
1911
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced$1('Promise', function () {
1912
1912
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -1961,9 +1961,9 @@ newPromiseCapability$2.f = function (C) {
1961
1961
  return new PromiseCapability(C);
1962
1962
  };
1963
1963
 
1964
- var $$B = _export;
1964
+ var $$C = _export;
1965
1965
  var IS_NODE$1 = environmentIsNode;
1966
- var globalThis$x = globalThis_1;
1966
+ var globalThis$y = globalThis_1;
1967
1967
  var path = path$1;
1968
1968
  var call$t = functionCall;
1969
1969
  var defineBuiltIn$c = defineBuiltIn$e;
@@ -1994,13 +1994,13 @@ var setInternalState$7 = InternalStateModule$8.set;
1994
1994
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1995
1995
  var PromiseConstructor = NativePromiseConstructor$2;
1996
1996
  var PromisePrototype = NativePromisePrototype$1;
1997
- var TypeError$6 = globalThis$x.TypeError;
1998
- var document$1 = globalThis$x.document;
1999
- var process$1 = globalThis$x.process;
1997
+ var TypeError$6 = globalThis$y.TypeError;
1998
+ var document$1 = globalThis$y.document;
1999
+ var process$1 = globalThis$y.process;
2000
2000
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2001
2001
  var newGenericPromiseCapability = newPromiseCapability$1;
2002
2002
 
2003
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$x.dispatchEvent);
2003
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$y.dispatchEvent);
2004
2004
  var UNHANDLED_REJECTION = 'unhandledrejection';
2005
2005
  var REJECTION_HANDLED = 'rejectionhandled';
2006
2006
  var PENDING = 0;
@@ -2073,14 +2073,14 @@ var dispatchEvent = function (name, promise, reason) {
2073
2073
  event.promise = promise;
2074
2074
  event.reason = reason;
2075
2075
  event.initEvent(name, false, true);
2076
- globalThis$x.dispatchEvent(event);
2076
+ globalThis$y.dispatchEvent(event);
2077
2077
  } else event = { promise: promise, reason: reason };
2078
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$x['on' + name])) handler(event);
2078
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$y['on' + name])) handler(event);
2079
2079
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2080
2080
  };
2081
2081
 
2082
2082
  var onUnhandled = function (state) {
2083
- call$t(task, globalThis$x, function () {
2083
+ call$t(task, globalThis$y, function () {
2084
2084
  var promise = state.facade;
2085
2085
  var value = state.value;
2086
2086
  var IS_UNHANDLED = isUnhandled(state);
@@ -2103,7 +2103,7 @@ var isUnhandled = function (state) {
2103
2103
  };
2104
2104
 
2105
2105
  var onHandleUnhandled = function (state) {
2106
- call$t(task, globalThis$x, function () {
2106
+ call$t(task, globalThis$y, function () {
2107
2107
  var promise = state.facade;
2108
2108
  if (IS_NODE$1) {
2109
2109
  process$1.emit('rejectionHandled', promise);
@@ -2244,7 +2244,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2244
2244
 
2245
2245
  // `Promise` constructor
2246
2246
  // https://tc39.es/ecma262/#sec-promise-executor
2247
- $$B({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2247
+ $$C({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2248
2248
  Promise: PromiseConstructor
2249
2249
  });
2250
2250
 
@@ -2443,7 +2443,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2443
2443
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2444
2444
  });
2445
2445
 
2446
- var $$A = _export;
2446
+ var $$B = _export;
2447
2447
  var call$p = functionCall;
2448
2448
  var aCallable$9 = aCallable$g;
2449
2449
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -2453,7 +2453,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2453
2453
 
2454
2454
  // `Promise.all` method
2455
2455
  // https://tc39.es/ecma262/#sec-promise.all
2456
- $$A({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2456
+ $$B({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2457
2457
  all: function all(iterable) {
2458
2458
  var C = this;
2459
2459
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -2482,7 +2482,7 @@ $$A({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2482
2482
  }
2483
2483
  });
2484
2484
 
2485
- var $$z = _export;
2485
+ var $$A = _export;
2486
2486
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2487
2487
  var NativePromiseConstructor = promiseNativeConstructor;
2488
2488
  var getBuiltIn$6 = getBuiltIn$c;
@@ -2493,7 +2493,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
2493
2493
 
2494
2494
  // `Promise.prototype.catch` method
2495
2495
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2496
- $$z({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2496
+ $$A({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2497
2497
  'catch': function (onRejected) {
2498
2498
  return this.then(undefined, onRejected);
2499
2499
  }
@@ -2507,7 +2507,7 @@ if (isCallable$c(NativePromiseConstructor)) {
2507
2507
  }
2508
2508
  }
2509
2509
 
2510
- var $$y = _export;
2510
+ var $$z = _export;
2511
2511
  var call$o = functionCall;
2512
2512
  var aCallable$8 = aCallable$g;
2513
2513
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -2517,7 +2517,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2517
2517
 
2518
2518
  // `Promise.race` method
2519
2519
  // https://tc39.es/ecma262/#sec-promise.race
2520
- $$y({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2520
+ $$z({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2521
2521
  race: function race(iterable) {
2522
2522
  var C = this;
2523
2523
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -2533,13 +2533,13 @@ $$y({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2533
2533
  }
2534
2534
  });
2535
2535
 
2536
- var $$x = _export;
2536
+ var $$y = _export;
2537
2537
  var newPromiseCapabilityModule = newPromiseCapability$2;
2538
2538
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2539
2539
 
2540
2540
  // `Promise.reject` method
2541
2541
  // https://tc39.es/ecma262/#sec-promise.reject
2542
- $$x({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2542
+ $$y({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2543
2543
  reject: function reject(r) {
2544
2544
  var capability = newPromiseCapabilityModule.f(this);
2545
2545
  var capabilityReject = capability.reject;
@@ -2561,7 +2561,7 @@ var promiseResolve$1 = function (C, x) {
2561
2561
  return promiseCapability.promise;
2562
2562
  };
2563
2563
 
2564
- var $$w = _export;
2564
+ var $$x = _export;
2565
2565
  var getBuiltIn$5 = getBuiltIn$c;
2566
2566
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2567
2567
  var promiseResolve = promiseResolve$1;
@@ -2570,7 +2570,7 @@ getBuiltIn$5('Promise');
2570
2570
 
2571
2571
  // `Promise.resolve` method
2572
2572
  // https://tc39.es/ecma262/#sec-promise.resolve
2573
- $$w({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2573
+ $$x({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2574
2574
  resolve: function resolve(x) {
2575
2575
  return promiseResolve(this, x);
2576
2576
  }
@@ -2650,9 +2650,9 @@ var parseJsonString = function (source, i) {
2650
2650
  return { value: value, end: i };
2651
2651
  };
2652
2652
 
2653
- var $$v = _export;
2653
+ var $$w = _export;
2654
2654
  var DESCRIPTORS$f = descriptors;
2655
- var globalThis$w = globalThis_1;
2655
+ var globalThis$x = globalThis_1;
2656
2656
  var getBuiltIn$4 = getBuiltIn$c;
2657
2657
  var uncurryThis$r = functionUncurryThis;
2658
2658
  var call$n = functionCall;
@@ -2667,9 +2667,9 @@ var fails$q = fails$C;
2667
2667
  var parseJSONString$1 = parseJsonString;
2668
2668
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
2669
2669
 
2670
- var JSON$1 = globalThis$w.JSON;
2671
- var Number$1 = globalThis$w.Number;
2672
- var SyntaxError$4 = globalThis$w.SyntaxError;
2670
+ var JSON$1 = globalThis$x.JSON;
2671
+ var Number$1 = globalThis$x.Number;
2672
+ var SyntaxError$4 = globalThis$x.SyntaxError;
2673
2673
  var nativeParse = JSON$1 && JSON$1.parse;
2674
2674
  var enumerableOwnProperties = getBuiltIn$4('Object', 'keys');
2675
2675
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -2907,7 +2907,7 @@ var PROPER_BASE_PARSE = NATIVE_SYMBOL$1 && !fails$q(function () {
2907
2907
  // `JSON.parse` method
2908
2908
  // https://tc39.es/ecma262/#sec-json.parse
2909
2909
  // https://github.com/tc39/proposal-json-parse-with-source
2910
- $$v({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
2910
+ $$w({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
2911
2911
  parse: function parse(text, reviver) {
2912
2912
  return PROPER_BASE_PARSE && !isCallable$b(reviver) ? nativeParse(text) : $parse(text, reviver);
2913
2913
  }
@@ -2933,7 +2933,7 @@ var nativeRawJson = !fails$p(function () {
2933
2933
  return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
2934
2934
  });
2935
2935
 
2936
- var $$u = _export;
2936
+ var $$v = _export;
2937
2937
  var getBuiltIn$3 = getBuiltIn$c;
2938
2938
  var apply$3 = functionApply;
2939
2939
  var call$m = functionCall;
@@ -3032,7 +3032,7 @@ var getReplacerFunction = function (replacer) {
3032
3032
  // `JSON.stringify` method
3033
3033
  // https://tc39.es/ecma262/#sec-json.stringify
3034
3034
  // https://github.com/tc39/proposal-json-parse-with-source
3035
- if ($stringify) $$u({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
3035
+ if ($stringify) $$v({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
3036
3036
  stringify: function stringify(text, replacer, space) {
3037
3037
  var replacerFunction = getReplacerFunction(replacer);
3038
3038
  var rawStrings = [];
@@ -3246,13 +3246,13 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
3246
3246
  };
3247
3247
 
3248
3248
  /* eslint-disable no-unused-vars -- required for functions `.length` */
3249
- var $$t = _export;
3250
- var globalThis$v = globalThis_1;
3249
+ var $$u = _export;
3250
+ var globalThis$w = globalThis_1;
3251
3251
  var apply$2 = functionApply;
3252
3252
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
3253
3253
 
3254
3254
  var WEB_ASSEMBLY = 'WebAssembly';
3255
- var WebAssembly = globalThis$v[WEB_ASSEMBLY];
3255
+ var WebAssembly = globalThis$w[WEB_ASSEMBLY];
3256
3256
 
3257
3257
  // eslint-disable-next-line es/no-error-cause -- feature detection
3258
3258
  var FORCED$7 = new Error('e', { cause: 7 }).cause !== 7;
@@ -3261,7 +3261,7 @@ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3261
3261
  var O = {};
3262
3262
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
3263
3263
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$7);
3264
- $$t({ global: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
3264
+ $$u({ global: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
3265
3265
  };
3266
3266
 
3267
3267
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
@@ -3269,7 +3269,7 @@ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3269
3269
  var O = {};
3270
3270
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
3271
3271
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$7);
3272
- $$t({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
3272
+ $$u({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$7 }, O);
3273
3273
  }
3274
3274
  };
3275
3275
 
@@ -3398,7 +3398,7 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
3398
3398
  return IteratorConstructor;
3399
3399
  };
3400
3400
 
3401
- var $$s = _export;
3401
+ var $$t = _export;
3402
3402
  var call$l = functionCall;
3403
3403
  var FunctionName$1 = functionName;
3404
3404
  var isCallable$6 = isCallable$t;
@@ -3486,7 +3486,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
3486
3486
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
3487
3487
  defineBuiltIn$9(IterablePrototype, KEY, methods[KEY]);
3488
3488
  }
3489
- } else $$s({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3489
+ } else $$t({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3490
3490
  }
3491
3491
 
3492
3492
  // define iterator
@@ -3565,11 +3565,11 @@ if (DESCRIPTORS$d && values.name !== 'values') try {
3565
3565
  defineProperty$1(values, 'name', { value: 'values' });
3566
3566
  } catch (error) { /* empty */ }
3567
3567
 
3568
- var globalThis$u = globalThis_1;
3568
+ var globalThis$v = globalThis_1;
3569
3569
  var fails$k = fails$C;
3570
3570
 
3571
3571
  // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
3572
- var RegExp$1 = globalThis$u.RegExp;
3572
+ var RegExp$1 = globalThis$v.RegExp;
3573
3573
 
3574
3574
  var FLAGS_GETTER_IS_CORRECT = !fails$k(function () {
3575
3575
  var INDICES_SUPPORT = true;
@@ -3716,7 +3716,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
3716
3716
 
3717
3717
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3718
3718
 
3719
- var globalThis$t = globalThis_1;
3719
+ var globalThis$u = globalThis_1;
3720
3720
  var DOMIterables = domIterables;
3721
3721
  var DOMTokenListPrototype = domTokenListPrototype;
3722
3722
  var ArrayIteratorMethods = es_array_iterator;
@@ -3748,7 +3748,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3748
3748
  };
3749
3749
 
3750
3750
  for (var COLLECTION_NAME in DOMIterables) {
3751
- handlePrototype(globalThis$t[COLLECTION_NAME] && globalThis$t[COLLECTION_NAME].prototype, COLLECTION_NAME);
3751
+ handlePrototype(globalThis$u[COLLECTION_NAME] && globalThis$u[COLLECTION_NAME].prototype, COLLECTION_NAME);
3752
3752
  }
3753
3753
 
3754
3754
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -4193,7 +4193,7 @@ var stringPunycodeToAscii = function (input) {
4193
4193
  return join$4(encoded, '.');
4194
4194
  };
4195
4195
 
4196
- var $$r = _export;
4196
+ var $$s = _export;
4197
4197
  var uncurryThis$l = functionUncurryThis;
4198
4198
  var toAbsoluteIndex$2 = toAbsoluteIndex$4;
4199
4199
 
@@ -4208,7 +4208,7 @@ var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
4208
4208
 
4209
4209
  // `String.fromCodePoint` method
4210
4210
  // https://tc39.es/ecma262/#sec-string.fromcodepoint
4211
- $$r({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
4211
+ $$s({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
4212
4212
  // eslint-disable-next-line no-unused-vars -- required for `.length`
4213
4213
  fromCodePoint: function fromCodePoint(x) {
4214
4214
  var elements = [];
@@ -4277,8 +4277,8 @@ var arraySort$1 = sort$1;
4277
4277
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
4278
4278
 
4279
4279
 
4280
- var $$q = _export;
4281
- var globalThis$s = globalThis_1;
4280
+ var $$r = _export;
4281
+ var globalThis$t = globalThis_1;
4282
4282
  var safeGetBuiltIn = safeGetBuiltIn$2;
4283
4283
  var getBuiltIn$1 = getBuiltIn$c;
4284
4284
  var call$h = functionCall;
@@ -4320,8 +4320,8 @@ var NativeRequest = safeGetBuiltIn('Request');
4320
4320
  var Headers = safeGetBuiltIn('Headers');
4321
4321
  var RequestPrototype = NativeRequest && NativeRequest.prototype;
4322
4322
  var HeadersPrototype = Headers && Headers.prototype;
4323
- var TypeError$5 = globalThis$s.TypeError;
4324
- var encodeURIComponent$1 = globalThis$s.encodeURIComponent;
4323
+ var TypeError$5 = globalThis$t.TypeError;
4324
+ var encodeURIComponent$1 = globalThis$t.encodeURIComponent;
4325
4325
  var fromCharCode = String.fromCharCode;
4326
4326
  var fromCodePoint = getBuiltIn$1('String', 'fromCodePoint');
4327
4327
  var $parseInt = parseInt;
@@ -4746,7 +4746,7 @@ if (DESCRIPTORS$9) defineBuiltInAccessor$8(URLSearchParamsPrototype$3, 'size', {
4746
4746
 
4747
4747
  setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
4748
4748
 
4749
- $$q({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
4749
+ $$r({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
4750
4750
  URLSearchParams: URLSearchParamsConstructor
4751
4751
  });
4752
4752
 
@@ -4773,7 +4773,7 @@ if (!USE_NATIVE_URL$1 && isCallable$5(Headers)) {
4773
4773
  };
4774
4774
 
4775
4775
  if (isCallable$5(nativeFetch)) {
4776
- $$q({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
4776
+ $$r({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
4777
4777
  fetch: function fetch(input /* , init */) {
4778
4778
  return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
4779
4779
  }
@@ -4789,7 +4789,7 @@ if (!USE_NATIVE_URL$1 && isCallable$5(Headers)) {
4789
4789
  RequestPrototype.constructor = RequestConstructor;
4790
4790
  RequestConstructor.prototype = RequestPrototype;
4791
4791
 
4792
- $$q({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
4792
+ $$r({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
4793
4793
  Request: RequestConstructor
4794
4794
  });
4795
4795
  }
@@ -4802,10 +4802,10 @@ var web_urlSearchParams_constructor = {
4802
4802
 
4803
4803
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
4804
4804
 
4805
- var $$p = _export;
4805
+ var $$q = _export;
4806
4806
  var DESCRIPTORS$8 = descriptors;
4807
4807
  var USE_NATIVE_URL = urlConstructorDetection;
4808
- var globalThis$r = globalThis_1;
4808
+ var globalThis$s = globalThis_1;
4809
4809
  var bind$3 = functionBindContext;
4810
4810
  var uncurryThis$j = functionUncurryThis;
4811
4811
  var defineBuiltIn$5 = defineBuiltIn$e;
@@ -4828,10 +4828,10 @@ var getInternalURLState = InternalStateModule$4.getterFor('URL');
4828
4828
  var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
4829
4829
  var getInternalSearchParamsState = URLSearchParamsModule.getState;
4830
4830
 
4831
- var NativeURL = globalThis$r.URL;
4832
- var TypeError$4 = globalThis$r.TypeError;
4833
- var encodeURIComponent = globalThis$r.encodeURIComponent;
4834
- var parseInt$1 = globalThis$r.parseInt;
4831
+ var NativeURL = globalThis$s.URL;
4832
+ var TypeError$4 = globalThis$s.TypeError;
4833
+ var encodeURIComponent = globalThis$s.encodeURIComponent;
4834
+ var parseInt$1 = globalThis$s.parseInt;
4835
4835
  var floor$4 = Math.floor;
4836
4836
  var pow$1 = Math.pow;
4837
4837
  var charAt$5 = uncurryThis$j(''.charAt);
@@ -5876,16 +5876,16 @@ if (NativeURL) {
5876
5876
 
5877
5877
  setToStringTag$1(URLConstructor, 'URL');
5878
5878
 
5879
- $$p({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$8 }, {
5879
+ $$q({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$8 }, {
5880
5880
  URL: URLConstructor
5881
5881
  });
5882
5882
 
5883
- var $$o = _export;
5883
+ var $$p = _export;
5884
5884
  var call$g = functionCall;
5885
5885
 
5886
5886
  // `URL.prototype.toJSON` method
5887
5887
  // https://url.spec.whatwg.org/#dom-url-tojson
5888
- $$o({ target: 'URL', proto: true, enumerable: true }, {
5888
+ $$p({ target: 'URL', proto: true, enumerable: true }, {
5889
5889
  toJSON: function toJSON() {
5890
5890
  return call$g(URL.prototype.toString, this);
5891
5891
  }
@@ -6001,190 +6001,18 @@ const CONNECTED_APP_SSO_CONFIG = {
6001
6001
  }
6002
6002
  };
6003
6003
 
6004
- const TokenResponseSchema = z.object({
6005
- access_token: z.string(),
6006
- refresh_token: z.string().optional(),
6007
- expires_in: z.coerce.number().optional()
6004
+ var $$o = _export;
6005
+ var globalThis$r = globalThis_1;
6006
+
6007
+ // `globalThis` object
6008
+ // https://tc39.es/ecma262/#sec-globalthis
6009
+ $$o({ global: true, forced: globalThis$r.globalThis !== globalThis$r }, {
6010
+ globalThis: globalThis$r
6008
6011
  });
6009
- const openBrowser = url => {
6010
- const platform = process.platform;
6011
- const command = platform === "darwin" ? `open "${url}"` : platform === "win32" ? `start "${url}"` : `xdg-open "${url}"`;
6012
- exec$9(command, error => {
6013
- if (error) {
6014
- console.log("Please open this URL in your browser:", url);
6015
- }
6016
- });
6017
- };
6018
- const generateRandomBase64Url = numBytes => crypto.randomBytes(numBytes).toString("base64url");
6019
- const generatePkce = () => {
6020
- const verifier = generateRandomBase64Url(32);
6021
- const challenge = Buffer.from(crypto.createHash("sha256").update(verifier).digest()).toString("base64url");
6022
- return {
6023
- verifier,
6024
- challenge
6025
- };
6026
- };
6027
- const startCallbackServer = async expectedState => {
6028
- const server = http.createServer();
6029
- const waitForCode = (async () => {
6030
- try {
6031
- while (true) {
6032
- const [req, res] = await once(server, "request");
6033
- const url = new URL(req.url || "/", `http://127.0.0.1`);
6034
- if (url.pathname !== "/callback") {
6035
- res.writeHead(404);
6036
- res.end("Not found");
6037
- continue;
6038
- }
6039
- const code = url.searchParams.get("code");
6040
- const state = url.searchParams.get("state");
6041
- const error = url.searchParams.get("error");
6042
- const done = (status, title, message) => {
6043
- res.writeHead(status, {
6044
- "Content-Type": "text/html"
6045
- });
6046
- res.end(`<!doctype html><html><body style="font-family: system-ui; display:flex; align-items:center; justify-content:center; height:100vh; margin:0"><div style="text-align:center"><h2>${title}</h2><p>${message}</p><p style="color:#666">You can close this window.</p></div></body></html>`);
6047
- };
6048
- if (error) {
6049
- done(200, "Authentication Failed", error);
6050
- server.close();
6051
- throw new Error(error);
6052
- }
6053
- if (!code) {
6054
- done(200, "Authentication Failed", "No authorization code received");
6055
- server.close();
6056
- throw new Error("No authorization code received");
6057
- }
6058
- if (state !== expectedState) {
6059
- done(200, "Authentication Failed", "State mismatch - possible security issue");
6060
- server.close();
6061
- throw new Error("State mismatch");
6062
- }
6063
- done(200, "Authentication Successful!", "You can now return to the CLI.");
6064
- server.close();
6065
- return code;
6066
- }
6067
- } catch (err) {
6068
- server.close();
6069
- if (err instanceof Error) throw err;
6070
- throw new Error(typeof err === "string" ? err : "Unknown error");
6071
- }
6072
- })();
6073
- const port = await new Promise((resolve, reject) => {
6074
- server.once("error", reject);
6075
- server.listen(0, "127.0.0.1", () => {
6076
- const address = server.address();
6077
- if (!address || typeof address === "string") {
6078
- reject(new Error("Failed to bind callback server"));
6079
- return;
6080
- }
6081
- resolve(address.port);
6082
- });
6083
- });
6084
- return {
6085
- port,
6086
- waitForCode
6087
- };
6088
- };
6089
- const getSsoConfig = environment => {
6090
- if (environment === "local") throw new Error("SSO is not supported for local environment. Use cookie-based login.");
6091
- const ssoConfig = CONNECTED_APP_SSO_CONFIG[environment];
6092
- if (!(ssoConfig === null || ssoConfig === void 0 ? void 0 : ssoConfig.clientId)) throw new Error("Missing CONNECTED_APP clientId for selected environment in sso-constants.ts");
6093
- if (!ssoConfig.tokenUrl) throw new Error("Missing tokenUrl for selected environment in sso-constants.ts");
6094
- return {
6095
- clientId: ssoConfig.clientId,
6096
- authorizeUrl: ssoConfig.authorizeUrl,
6097
- tokenUrl: ssoConfig.tokenUrl,
6098
- revokeUrl: ssoConfig.revokeUrl
6099
- };
6100
- };
6101
- const exchangeAuthorizationCodeForTokens = async (config, code, codeVerifier, redirectUri) => {
6102
- const body = new URLSearchParams$2({
6103
- grant_type: "authorization_code",
6104
- code,
6105
- client_id: config.clientId,
6106
- redirect_uri: redirectUri,
6107
- code_verifier: codeVerifier
6108
- });
6109
- const res = await fetch(config.tokenUrl, {
6110
- method: "POST",
6111
- headers: {
6112
- "Content-Type": "application/x-www-form-urlencoded"
6113
- },
6114
- body
6115
- });
6116
- if (!res.ok) {
6117
- throw new Error(`Token exchange failed: ${res.status} ${res.statusText}`);
6118
- }
6119
- const json = await res.json();
6120
- const parsed = TokenResponseSchema.parse(json);
6121
- return {
6122
- accessToken: parsed.access_token,
6123
- refreshToken: parsed.refresh_token,
6124
- expiresInSeconds: parsed.expires_in
6125
- };
6126
- };
6127
- const refreshAccessToken = async (config, refreshToken) => {
6128
- var _a;
6129
- const body = new URLSearchParams$2({
6130
- grant_type: "refresh_token",
6131
- refresh_token: refreshToken,
6132
- client_id: config.clientId
6133
- });
6134
- const res = await fetch(config.tokenUrl, {
6135
- method: "POST",
6136
- headers: {
6137
- "Content-Type": "application/x-www-form-urlencoded"
6138
- },
6139
- body
6140
- });
6141
- if (!res.ok) {
6142
- throw new Error(`Token refresh failed: ${res.status} ${res.statusText}`);
6143
- }
6144
- const json = await res.json();
6145
- const parsed = TokenResponseSchema.parse(json);
6146
- return {
6147
- accessToken: parsed.access_token,
6148
- refreshToken: (_a = parsed.refresh_token) !== null && _a !== void 0 ? _a : refreshToken,
6149
- expiresInSeconds: parsed.expires_in
6150
- };
6151
- };
6152
- const loginWithSso = async environment => {
6153
- const {
6154
- clientId,
6155
- authorizeUrl,
6156
- tokenUrl
6157
- } = getSsoConfig(environment);
6158
- const {
6159
- verifier,
6160
- challenge
6161
- } = generatePkce();
6162
- const state = generateRandomBase64Url(16);
6163
- const {
6164
- port,
6165
- waitForCode
6166
- } = await startCallbackServer(state);
6167
- const redirectUri = `http://127.0.0.1:${port}/callback`;
6168
- const auth = new URL(authorizeUrl);
6169
- auth.searchParams.set("client_id", clientId);
6170
- auth.searchParams.set("redirect_uri", redirectUri);
6171
- auth.searchParams.set("response_type", "code");
6172
- auth.searchParams.set("code_challenge", challenge);
6173
- auth.searchParams.set("code_challenge_method", "S256");
6174
- auth.searchParams.set("scope", "openid email profile offline_access");
6175
- auth.searchParams.set("state", state);
6176
- console.log("📱 Opening browser for authentication...");
6177
- console.log(` If browser doesn't open, visit: ${auth.toString()}`);
6178
- openBrowser(auth.toString());
6179
- console.log(`🌐 Waiting for authentication callback on port ${port}...`);
6180
- const code = await waitForCode;
6181
- const tokens = await exchangeAuthorizationCodeForTokens({
6182
- clientId,
6183
- tokenUrl
6184
- }, code, verifier, redirectUri);
6185
- return tokens;
6186
- };
6187
- const getSsoEnvironmentConfig = getSsoConfig;
6012
+
6013
+ var version = "0.33.0";
6014
+ var packageJson$1 = {
6015
+ version: version};
6188
6016
 
6189
6017
  var $$n = _export;
6190
6018
  var globalThis$q = globalThis_1;
@@ -6401,6 +6229,213 @@ const handleCommandError = (error, context) => {
6401
6229
  process.exit(1);
6402
6230
  };
6403
6231
 
6232
+ const userAgent$2 = `vention-cli/${packageJson$1.version} node/${process.versions.node} (${process.platform})`;
6233
+ const fetchWithUserAgent = (input, init) => {
6234
+ const request = new Request(input, init);
6235
+ request.headers.set("User-Agent", userAgent$2);
6236
+ return globalThis.fetch(request);
6237
+ };
6238
+ const fetchJson = async (url, options = {}) => {
6239
+ const {
6240
+ method = "GET",
6241
+ headers = {},
6242
+ body
6243
+ } = options;
6244
+ verboseLog(`${method} ${url}`);
6245
+ const res = await fetchWithUserAgent(url, {
6246
+ method,
6247
+ headers,
6248
+ body: body !== undefined ? JSON.stringify(body) : undefined
6249
+ });
6250
+ await assertApiResponseOk(res, url);
6251
+ return await res.json();
6252
+ };
6253
+
6254
+ const TokenResponseSchema = z.object({
6255
+ access_token: z.string(),
6256
+ refresh_token: z.string().optional(),
6257
+ expires_in: z.coerce.number().optional()
6258
+ });
6259
+ const openBrowser = url => {
6260
+ const platform = process.platform;
6261
+ const command = platform === "darwin" ? `open "${url}"` : platform === "win32" ? `start "${url}"` : `xdg-open "${url}"`;
6262
+ exec$9(command, error => {
6263
+ if (error) {
6264
+ console.log("Please open this URL in your browser:", url);
6265
+ }
6266
+ });
6267
+ };
6268
+ const generateRandomBase64Url = numBytes => crypto.randomBytes(numBytes).toString("base64url");
6269
+ const generatePkce = () => {
6270
+ const verifier = generateRandomBase64Url(32);
6271
+ const challenge = Buffer.from(crypto.createHash("sha256").update(verifier).digest()).toString("base64url");
6272
+ return {
6273
+ verifier,
6274
+ challenge
6275
+ };
6276
+ };
6277
+ const startCallbackServer = async expectedState => {
6278
+ const server = http.createServer();
6279
+ const waitForCode = (async () => {
6280
+ try {
6281
+ while (true) {
6282
+ const [req, res] = await once(server, "request");
6283
+ const url = new URL(req.url || "/", `http://127.0.0.1`);
6284
+ if (url.pathname !== "/callback") {
6285
+ res.writeHead(404);
6286
+ res.end("Not found");
6287
+ continue;
6288
+ }
6289
+ const code = url.searchParams.get("code");
6290
+ const state = url.searchParams.get("state");
6291
+ const error = url.searchParams.get("error");
6292
+ const done = (status, title, message) => {
6293
+ res.writeHead(status, {
6294
+ "Content-Type": "text/html"
6295
+ });
6296
+ res.end(`<!doctype html><html><body style="font-family: system-ui; display:flex; align-items:center; justify-content:center; height:100vh; margin:0"><div style="text-align:center"><h2>${title}</h2><p>${message}</p><p style="color:#666">You can close this window.</p></div></body></html>`);
6297
+ };
6298
+ if (error) {
6299
+ done(200, "Authentication Failed", error);
6300
+ server.close();
6301
+ throw new Error(error);
6302
+ }
6303
+ if (!code) {
6304
+ done(200, "Authentication Failed", "No authorization code received");
6305
+ server.close();
6306
+ throw new Error("No authorization code received");
6307
+ }
6308
+ if (state !== expectedState) {
6309
+ done(200, "Authentication Failed", "State mismatch - possible security issue");
6310
+ server.close();
6311
+ throw new Error("State mismatch");
6312
+ }
6313
+ done(200, "Authentication Successful!", "You can now return to the CLI.");
6314
+ server.close();
6315
+ return code;
6316
+ }
6317
+ } catch (err) {
6318
+ server.close();
6319
+ if (err instanceof Error) throw err;
6320
+ throw new Error(typeof err === "string" ? err : "Unknown error");
6321
+ }
6322
+ })();
6323
+ const port = await new Promise((resolve, reject) => {
6324
+ server.once("error", reject);
6325
+ server.listen(0, "127.0.0.1", () => {
6326
+ const address = server.address();
6327
+ if (!address || typeof address === "string") {
6328
+ reject(new Error("Failed to bind callback server"));
6329
+ return;
6330
+ }
6331
+ resolve(address.port);
6332
+ });
6333
+ });
6334
+ return {
6335
+ port,
6336
+ waitForCode
6337
+ };
6338
+ };
6339
+ const getSsoConfig = environment => {
6340
+ if (environment === "local") throw new Error("SSO is not supported for local environment. Use cookie-based login.");
6341
+ const ssoConfig = CONNECTED_APP_SSO_CONFIG[environment];
6342
+ if (!(ssoConfig === null || ssoConfig === void 0 ? void 0 : ssoConfig.clientId)) throw new Error("Missing CONNECTED_APP clientId for selected environment in sso-constants.ts");
6343
+ if (!ssoConfig.tokenUrl) throw new Error("Missing tokenUrl for selected environment in sso-constants.ts");
6344
+ return {
6345
+ clientId: ssoConfig.clientId,
6346
+ authorizeUrl: ssoConfig.authorizeUrl,
6347
+ tokenUrl: ssoConfig.tokenUrl,
6348
+ revokeUrl: ssoConfig.revokeUrl
6349
+ };
6350
+ };
6351
+ const exchangeAuthorizationCodeForTokens = async (config, code, codeVerifier, redirectUri) => {
6352
+ const body = new URLSearchParams$2({
6353
+ grant_type: "authorization_code",
6354
+ code,
6355
+ client_id: config.clientId,
6356
+ redirect_uri: redirectUri,
6357
+ code_verifier: codeVerifier
6358
+ });
6359
+ const res = await fetchWithUserAgent(config.tokenUrl, {
6360
+ method: "POST",
6361
+ headers: {
6362
+ "Content-Type": "application/x-www-form-urlencoded"
6363
+ },
6364
+ body
6365
+ });
6366
+ if (!res.ok) {
6367
+ throw new Error(`Token exchange failed: ${res.status} ${res.statusText}`);
6368
+ }
6369
+ const json = await res.json();
6370
+ const parsed = TokenResponseSchema.parse(json);
6371
+ return {
6372
+ accessToken: parsed.access_token,
6373
+ refreshToken: parsed.refresh_token,
6374
+ expiresInSeconds: parsed.expires_in
6375
+ };
6376
+ };
6377
+ const refreshAccessToken = async (config, refreshToken) => {
6378
+ var _a;
6379
+ const body = new URLSearchParams$2({
6380
+ grant_type: "refresh_token",
6381
+ refresh_token: refreshToken,
6382
+ client_id: config.clientId
6383
+ });
6384
+ const res = await fetchWithUserAgent(config.tokenUrl, {
6385
+ method: "POST",
6386
+ headers: {
6387
+ "Content-Type": "application/x-www-form-urlencoded"
6388
+ },
6389
+ body
6390
+ });
6391
+ if (!res.ok) {
6392
+ throw new Error(`Token refresh failed: ${res.status} ${res.statusText}`);
6393
+ }
6394
+ const json = await res.json();
6395
+ const parsed = TokenResponseSchema.parse(json);
6396
+ return {
6397
+ accessToken: parsed.access_token,
6398
+ refreshToken: (_a = parsed.refresh_token) !== null && _a !== void 0 ? _a : refreshToken,
6399
+ expiresInSeconds: parsed.expires_in
6400
+ };
6401
+ };
6402
+ const loginWithSso = async environment => {
6403
+ const {
6404
+ clientId,
6405
+ authorizeUrl,
6406
+ tokenUrl
6407
+ } = getSsoConfig(environment);
6408
+ const {
6409
+ verifier,
6410
+ challenge
6411
+ } = generatePkce();
6412
+ const state = generateRandomBase64Url(16);
6413
+ const {
6414
+ port,
6415
+ waitForCode
6416
+ } = await startCallbackServer(state);
6417
+ const redirectUri = `http://127.0.0.1:${port}/callback`;
6418
+ const auth = new URL(authorizeUrl);
6419
+ auth.searchParams.set("client_id", clientId);
6420
+ auth.searchParams.set("redirect_uri", redirectUri);
6421
+ auth.searchParams.set("response_type", "code");
6422
+ auth.searchParams.set("code_challenge", challenge);
6423
+ auth.searchParams.set("code_challenge_method", "S256");
6424
+ auth.searchParams.set("scope", "openid email profile offline_access");
6425
+ auth.searchParams.set("state", state);
6426
+ console.log("📱 Opening browser for authentication...");
6427
+ console.log(` If browser doesn't open, visit: ${auth.toString()}`);
6428
+ openBrowser(auth.toString());
6429
+ console.log(`🌐 Waiting for authentication callback on port ${port}...`);
6430
+ const code = await waitForCode;
6431
+ const tokens = await exchangeAuthorizationCodeForTokens({
6432
+ clientId,
6433
+ tokenUrl
6434
+ }, code, verifier, redirectUri);
6435
+ return tokens;
6436
+ };
6437
+ const getSsoEnvironmentConfig = getSsoConfig;
6438
+
6404
6439
  function createLoginCommand() {
6405
6440
  return new Command().command("login").description("Login to Vention").addOption(new Option("--internal").hideHelp()).action(async (_opts, cmd) => {
6406
6441
  try {
@@ -6704,22 +6739,6 @@ $$i({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
6704
6739
  assign: assign
6705
6740
  });
6706
6741
 
6707
- const fetchJson = async (url, options = {}) => {
6708
- const {
6709
- method = "GET",
6710
- headers = {},
6711
- body
6712
- } = options;
6713
- verboseLog(`${method} ${url}`);
6714
- const res = await fetch(url, {
6715
- method,
6716
- headers,
6717
- body: body !== undefined ? JSON.stringify(body) : undefined
6718
- });
6719
- await assertApiResponseOk(res, url);
6720
- return await res.json();
6721
- };
6722
-
6723
6742
  const getDigitalTwinUrl = (environment, sessionId) => {
6724
6743
  switch (environment) {
6725
6744
  case "local":
@@ -6803,7 +6822,7 @@ const getApplicationLogs = async (environment, designId, sessionId, applicationI
6803
6822
  }
6804
6823
  const digitalTwinUrl = getDigitalTwinUrl(environment, sessionId);
6805
6824
  const url = `${digitalTwinUrl}/v1/application/${applicationId}/logs`;
6806
- const response = await fetch(url, {
6825
+ const response = await fetchWithUserAgent(url, {
6807
6826
  method: "GET",
6808
6827
  headers: {
6809
6828
  Cookie: `digital-twin-session-${designId}=s%3A${sessionId}.s`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/vention-cli",
3
- "version": "0.32.9",
3
+ "version": "0.33.0",
4
4
  "description": "CLI tool for Vention applications",
5
5
  "type": "module",
6
6
  "engines": {
@@ -56,8 +56,8 @@ export type GetApplicationLogs = {
56
56
  };
57
57
  export declare const GetApplicationLogs: {
58
58
  readonly Handler: ({ resolver, remoteHost }: HandlerParams<GetApplicationLogs["Resolver"]>, mswOptions?: RequestHandlerOptions) => HttpHandler;
59
- readonly SuccessResolver: ({ logs }: {
59
+ readonly SuccessResolver: ({ logs, requestSpy }: {
60
60
  logs: string;
61
- }) => GetApplicationLogs["Resolver"];
61
+ } & RawRequestSpyOptions) => GetApplicationLogs["Resolver"];
62
62
  readonly NotFoundResolver: () => GetApplicationLogs["Resolver"];
63
63
  };
@@ -4,5 +4,7 @@ interface FetchOptions {
4
4
  headers?: Record<string, string>;
5
5
  body?: unknown;
6
6
  }
7
+ export declare const userAgent: string;
8
+ export declare const fetchWithUserAgent: typeof globalThis.fetch;
7
9
  export declare const fetchJson: <T>(url: string, options?: FetchOptions) => Promise<T>;
8
10
  export {};