@devkong/cli 0.0.67-alpha.29 → 0.0.67-alpha.30

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/index.js CHANGED
@@ -1107,7 +1107,7 @@ var require_main = __commonJS({
1107
1107
  var fs7 = require("fs");
1108
1108
  var path10 = require("path");
1109
1109
  var os4 = require("os");
1110
- var crypto3 = require("crypto");
1110
+ var crypto2 = require("crypto");
1111
1111
  var TIPS = [
1112
1112
  "\u25C8 encrypted .env [www.dotenvx.com]",
1113
1113
  "\u25C8 secrets for agents [www.dotenvx.com]",
@@ -1351,7 +1351,7 @@ var require_main = __commonJS({
1351
1351
  const authTag = ciphertext.subarray(-16);
1352
1352
  ciphertext = ciphertext.subarray(12, -16);
1353
1353
  try {
1354
- const aesgcm = crypto3.createDecipheriv("aes-256-gcm", key, nonce);
1354
+ const aesgcm = crypto2.createDecipheriv("aes-256-gcm", key, nonce);
1355
1355
  aesgcm.setAuthTag(authTag);
1356
1356
  return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
1357
1357
  } catch (error) {
@@ -11439,7 +11439,7 @@ var require_run_async = __commonJS({
11439
11439
  var require_delayed_stream = __commonJS({
11440
11440
  "node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
11441
11441
  var Stream = require("stream").Stream;
11442
- var util4 = require("util");
11442
+ var util3 = require("util");
11443
11443
  module2.exports = DelayedStream;
11444
11444
  function DelayedStream() {
11445
11445
  this.source = null;
@@ -11450,7 +11450,7 @@ var require_delayed_stream = __commonJS({
11450
11450
  this._released = false;
11451
11451
  this._bufferedEvents = [];
11452
11452
  }
11453
- util4.inherits(DelayedStream, Stream);
11453
+ util3.inherits(DelayedStream, Stream);
11454
11454
  DelayedStream.create = function(source, options) {
11455
11455
  var delayedStream = new this();
11456
11456
  options = options || {};
@@ -11529,7 +11529,7 @@ var require_delayed_stream = __commonJS({
11529
11529
  // node_modules/combined-stream/lib/combined_stream.js
11530
11530
  var require_combined_stream = __commonJS({
11531
11531
  "node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
11532
- var util4 = require("util");
11532
+ var util3 = require("util");
11533
11533
  var Stream = require("stream").Stream;
11534
11534
  var DelayedStream = require_delayed_stream();
11535
11535
  module2.exports = CombinedStream;
@@ -11545,7 +11545,7 @@ var require_combined_stream = __commonJS({
11545
11545
  this._insideLoop = false;
11546
11546
  this._pendingNext = false;
11547
11547
  }
11548
- util4.inherits(CombinedStream, Stream);
11548
+ util3.inherits(CombinedStream, Stream);
11549
11549
  CombinedStream.create = function(options) {
11550
11550
  var combinedStream = new this();
11551
11551
  options = options || {};
@@ -21390,14 +21390,14 @@ var require_form_data = __commonJS({
21390
21390
  "node_modules/form-data/lib/form_data.js"(exports2, module2) {
21391
21391
  "use strict";
21392
21392
  var CombinedStream = require_combined_stream();
21393
- var util4 = require("util");
21393
+ var util3 = require("util");
21394
21394
  var path10 = require("path");
21395
21395
  var http4 = require("http");
21396
21396
  var https2 = require("https");
21397
21397
  var parseUrl2 = require("url").parse;
21398
21398
  var fs7 = require("fs");
21399
21399
  var Stream = require("stream").Stream;
21400
- var crypto3 = require("crypto");
21400
+ var crypto2 = require("crypto");
21401
21401
  var mime = require_mime_types();
21402
21402
  var asynckit = require_asynckit();
21403
21403
  var setToStringTag = require_es_set_tostringtag();
@@ -21419,7 +21419,7 @@ var require_form_data = __commonJS({
21419
21419
  this[option] = options[option];
21420
21420
  }
21421
21421
  }
21422
- util4.inherits(FormData3, CombinedStream);
21422
+ util3.inherits(FormData3, CombinedStream);
21423
21423
  FormData3.LINE_BREAK = "\r\n";
21424
21424
  FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
21425
21425
  FormData3.prototype.append = function(field, value, options) {
@@ -21606,7 +21606,7 @@ var require_form_data = __commonJS({
21606
21606
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
21607
21607
  };
21608
21608
  FormData3.prototype._generateBoundary = function() {
21609
- this._boundary = "--------------------------" + crypto3.randomBytes(12).toString("hex");
21609
+ this._boundary = "--------------------------" + crypto2.randomBytes(12).toString("hex");
21610
21610
  };
21611
21611
  FormData3.prototype.getLengthSync = function() {
21612
21612
  var knownLength = this._overheadLength + this._valueLength;
@@ -22289,14 +22289,14 @@ var require_supports_color = __commonJS({
22289
22289
  var require_node2 = __commonJS({
22290
22290
  "node_modules/debug/src/node.js"(exports2, module2) {
22291
22291
  var tty = require("tty");
22292
- var util4 = require("util");
22292
+ var util3 = require("util");
22293
22293
  exports2.init = init;
22294
22294
  exports2.log = log;
22295
22295
  exports2.formatArgs = formatArgs;
22296
22296
  exports2.save = save;
22297
22297
  exports2.load = load3;
22298
22298
  exports2.useColors = useColors;
22299
- exports2.destroy = util4.deprecate(
22299
+ exports2.destroy = util3.deprecate(
22300
22300
  () => {
22301
22301
  },
22302
22302
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -22427,7 +22427,7 @@ var require_node2 = __commonJS({
22427
22427
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
22428
22428
  }
22429
22429
  function log(...args) {
22430
- return process.stderr.write(util4.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
22430
+ return process.stderr.write(util3.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
22431
22431
  }
22432
22432
  function save(namespaces) {
22433
22433
  if (namespaces) {
@@ -22450,11 +22450,11 @@ var require_node2 = __commonJS({
22450
22450
  var { formatters: formatters3 } = module2.exports;
22451
22451
  formatters3.o = function(v) {
22452
22452
  this.inspectOpts.colors = this.useColors;
22453
- return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
22453
+ return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
22454
22454
  };
22455
22455
  formatters3.O = function(v) {
22456
22456
  this.inspectOpts.colors = this.useColors;
22457
- return util4.inspect(v, this.inspectOpts);
22457
+ return util3.inspect(v, this.inspectOpts);
22458
22458
  };
22459
22459
  }
22460
22460
  });
@@ -22470,456 +22470,6 @@ var require_src = __commonJS({
22470
22470
  }
22471
22471
  });
22472
22472
 
22473
- // node_modules/agent-base/dist/src/promisify.js
22474
- var require_promisify = __commonJS({
22475
- "node_modules/agent-base/dist/src/promisify.js"(exports2) {
22476
- "use strict";
22477
- Object.defineProperty(exports2, "__esModule", { value: true });
22478
- function promisify(fn) {
22479
- return function(req, opts) {
22480
- return new Promise((resolve2, reject) => {
22481
- fn.call(this, req, opts, (err, rtn) => {
22482
- if (err) {
22483
- reject(err);
22484
- } else {
22485
- resolve2(rtn);
22486
- }
22487
- });
22488
- });
22489
- };
22490
- }
22491
- exports2.default = promisify;
22492
- }
22493
- });
22494
-
22495
- // node_modules/agent-base/dist/src/index.js
22496
- var require_src2 = __commonJS({
22497
- "node_modules/agent-base/dist/src/index.js"(exports2, module2) {
22498
- "use strict";
22499
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
22500
- return mod && mod.__esModule ? mod : { "default": mod };
22501
- };
22502
- var events_1 = require("events");
22503
- var debug_1 = __importDefault(require_src());
22504
- var promisify_1 = __importDefault(require_promisify());
22505
- var debug = debug_1.default("agent-base");
22506
- function isAgent(v) {
22507
- return Boolean(v) && typeof v.addRequest === "function";
22508
- }
22509
- function isSecureEndpoint() {
22510
- const { stack } = new Error();
22511
- if (typeof stack !== "string")
22512
- return false;
22513
- return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
22514
- }
22515
- function createAgent(callback, opts) {
22516
- return new createAgent.Agent(callback, opts);
22517
- }
22518
- (function(createAgent2) {
22519
- class Agent extends events_1.EventEmitter {
22520
- constructor(callback, _opts) {
22521
- super();
22522
- let opts = _opts;
22523
- if (typeof callback === "function") {
22524
- this.callback = callback;
22525
- } else if (callback) {
22526
- opts = callback;
22527
- }
22528
- this.timeout = null;
22529
- if (opts && typeof opts.timeout === "number") {
22530
- this.timeout = opts.timeout;
22531
- }
22532
- this.maxFreeSockets = 1;
22533
- this.maxSockets = 1;
22534
- this.maxTotalSockets = Infinity;
22535
- this.sockets = {};
22536
- this.freeSockets = {};
22537
- this.requests = {};
22538
- this.options = {};
22539
- }
22540
- get defaultPort() {
22541
- if (typeof this.explicitDefaultPort === "number") {
22542
- return this.explicitDefaultPort;
22543
- }
22544
- return isSecureEndpoint() ? 443 : 80;
22545
- }
22546
- set defaultPort(v) {
22547
- this.explicitDefaultPort = v;
22548
- }
22549
- get protocol() {
22550
- if (typeof this.explicitProtocol === "string") {
22551
- return this.explicitProtocol;
22552
- }
22553
- return isSecureEndpoint() ? "https:" : "http:";
22554
- }
22555
- set protocol(v) {
22556
- this.explicitProtocol = v;
22557
- }
22558
- callback(req, opts, fn) {
22559
- throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
22560
- }
22561
- /**
22562
- * Called by node-core's "_http_client.js" module when creating
22563
- * a new HTTP request with this Agent instance.
22564
- *
22565
- * @api public
22566
- */
22567
- addRequest(req, _opts) {
22568
- const opts = Object.assign({}, _opts);
22569
- if (typeof opts.secureEndpoint !== "boolean") {
22570
- opts.secureEndpoint = isSecureEndpoint();
22571
- }
22572
- if (opts.host == null) {
22573
- opts.host = "localhost";
22574
- }
22575
- if (opts.port == null) {
22576
- opts.port = opts.secureEndpoint ? 443 : 80;
22577
- }
22578
- if (opts.protocol == null) {
22579
- opts.protocol = opts.secureEndpoint ? "https:" : "http:";
22580
- }
22581
- if (opts.host && opts.path) {
22582
- delete opts.path;
22583
- }
22584
- delete opts.agent;
22585
- delete opts.hostname;
22586
- delete opts._defaultAgent;
22587
- delete opts.defaultPort;
22588
- delete opts.createConnection;
22589
- req._last = true;
22590
- req.shouldKeepAlive = false;
22591
- let timedOut = false;
22592
- let timeoutId = null;
22593
- const timeoutMs = opts.timeout || this.timeout;
22594
- const onerror = (err) => {
22595
- if (req._hadError)
22596
- return;
22597
- req.emit("error", err);
22598
- req._hadError = true;
22599
- };
22600
- const ontimeout = () => {
22601
- timeoutId = null;
22602
- timedOut = true;
22603
- const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
22604
- err.code = "ETIMEOUT";
22605
- onerror(err);
22606
- };
22607
- const callbackError = (err) => {
22608
- if (timedOut)
22609
- return;
22610
- if (timeoutId !== null) {
22611
- clearTimeout(timeoutId);
22612
- timeoutId = null;
22613
- }
22614
- onerror(err);
22615
- };
22616
- const onsocket = (socket) => {
22617
- if (timedOut)
22618
- return;
22619
- if (timeoutId != null) {
22620
- clearTimeout(timeoutId);
22621
- timeoutId = null;
22622
- }
22623
- if (isAgent(socket)) {
22624
- debug("Callback returned another Agent instance %o", socket.constructor.name);
22625
- socket.addRequest(req, opts);
22626
- return;
22627
- }
22628
- if (socket) {
22629
- socket.once("free", () => {
22630
- this.freeSocket(socket, opts);
22631
- });
22632
- req.onSocket(socket);
22633
- return;
22634
- }
22635
- const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
22636
- onerror(err);
22637
- };
22638
- if (typeof this.callback !== "function") {
22639
- onerror(new Error("`callback` is not defined"));
22640
- return;
22641
- }
22642
- if (!this.promisifiedCallback) {
22643
- if (this.callback.length >= 3) {
22644
- debug("Converting legacy callback function to promise");
22645
- this.promisifiedCallback = promisify_1.default(this.callback);
22646
- } else {
22647
- this.promisifiedCallback = this.callback;
22648
- }
22649
- }
22650
- if (typeof timeoutMs === "number" && timeoutMs > 0) {
22651
- timeoutId = setTimeout(ontimeout, timeoutMs);
22652
- }
22653
- if ("port" in opts && typeof opts.port !== "number") {
22654
- opts.port = Number(opts.port);
22655
- }
22656
- try {
22657
- debug("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
22658
- Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
22659
- } catch (err) {
22660
- Promise.reject(err).catch(callbackError);
22661
- }
22662
- }
22663
- freeSocket(socket, opts) {
22664
- debug("Freeing socket %o %o", socket.constructor.name, opts);
22665
- socket.destroy();
22666
- }
22667
- destroy() {
22668
- debug("Destroying agent %o", this.constructor.name);
22669
- }
22670
- }
22671
- createAgent2.Agent = Agent;
22672
- createAgent2.prototype = createAgent2.Agent.prototype;
22673
- })(createAgent || (createAgent = {}));
22674
- module2.exports = createAgent;
22675
- }
22676
- });
22677
-
22678
- // node_modules/https-proxy-agent/dist/parse-proxy-response.js
22679
- var require_parse_proxy_response = __commonJS({
22680
- "node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports2) {
22681
- "use strict";
22682
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
22683
- return mod && mod.__esModule ? mod : { "default": mod };
22684
- };
22685
- Object.defineProperty(exports2, "__esModule", { value: true });
22686
- var debug_1 = __importDefault(require_src());
22687
- var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
22688
- function parseProxyResponse(socket) {
22689
- return new Promise((resolve2, reject) => {
22690
- let buffersLength = 0;
22691
- const buffers = [];
22692
- function read() {
22693
- const b = socket.read();
22694
- if (b)
22695
- ondata(b);
22696
- else
22697
- socket.once("readable", read);
22698
- }
22699
- function cleanup() {
22700
- socket.removeListener("end", onend);
22701
- socket.removeListener("error", onerror);
22702
- socket.removeListener("close", onclose);
22703
- socket.removeListener("readable", read);
22704
- }
22705
- function onclose(err) {
22706
- debug("onclose had error %o", err);
22707
- }
22708
- function onend() {
22709
- debug("onend");
22710
- }
22711
- function onerror(err) {
22712
- cleanup();
22713
- debug("onerror %o", err);
22714
- reject(err);
22715
- }
22716
- function ondata(b) {
22717
- buffers.push(b);
22718
- buffersLength += b.length;
22719
- const buffered = Buffer.concat(buffers, buffersLength);
22720
- const endOfHeaders = buffered.indexOf("\r\n\r\n");
22721
- if (endOfHeaders === -1) {
22722
- debug("have not received end of HTTP headers yet...");
22723
- read();
22724
- return;
22725
- }
22726
- const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
22727
- const statusCode = +firstLine.split(" ")[1];
22728
- debug("got proxy server response: %o", firstLine);
22729
- resolve2({
22730
- statusCode,
22731
- buffered
22732
- });
22733
- }
22734
- socket.on("error", onerror);
22735
- socket.on("close", onclose);
22736
- socket.on("end", onend);
22737
- read();
22738
- });
22739
- }
22740
- exports2.default = parseProxyResponse;
22741
- }
22742
- });
22743
-
22744
- // node_modules/https-proxy-agent/dist/agent.js
22745
- var require_agent = __commonJS({
22746
- "node_modules/https-proxy-agent/dist/agent.js"(exports2) {
22747
- "use strict";
22748
- var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
22749
- function adopt(value) {
22750
- return value instanceof P ? value : new P(function(resolve2) {
22751
- resolve2(value);
22752
- });
22753
- }
22754
- return new (P || (P = Promise))(function(resolve2, reject) {
22755
- function fulfilled(value) {
22756
- try {
22757
- step(generator.next(value));
22758
- } catch (e) {
22759
- reject(e);
22760
- }
22761
- }
22762
- function rejected(value) {
22763
- try {
22764
- step(generator["throw"](value));
22765
- } catch (e) {
22766
- reject(e);
22767
- }
22768
- }
22769
- function step(result) {
22770
- result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
22771
- }
22772
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22773
- });
22774
- };
22775
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
22776
- return mod && mod.__esModule ? mod : { "default": mod };
22777
- };
22778
- Object.defineProperty(exports2, "__esModule", { value: true });
22779
- var net_1 = __importDefault(require("net"));
22780
- var tls_1 = __importDefault(require("tls"));
22781
- var url_1 = __importDefault(require("url"));
22782
- var assert_1 = __importDefault(require("assert"));
22783
- var debug_1 = __importDefault(require_src());
22784
- var agent_base_1 = require_src2();
22785
- var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
22786
- var debug = debug_1.default("https-proxy-agent:agent");
22787
- var HttpsProxyAgent2 = class extends agent_base_1.Agent {
22788
- constructor(_opts) {
22789
- let opts;
22790
- if (typeof _opts === "string") {
22791
- opts = url_1.default.parse(_opts);
22792
- } else {
22793
- opts = _opts;
22794
- }
22795
- if (!opts) {
22796
- throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
22797
- }
22798
- debug("creating new HttpsProxyAgent instance: %o", opts);
22799
- super(opts);
22800
- const proxy2 = Object.assign({}, opts);
22801
- this.secureProxy = opts.secureProxy || isHTTPS(proxy2.protocol);
22802
- proxy2.host = proxy2.hostname || proxy2.host;
22803
- if (typeof proxy2.port === "string") {
22804
- proxy2.port = parseInt(proxy2.port, 10);
22805
- }
22806
- if (!proxy2.port && proxy2.host) {
22807
- proxy2.port = this.secureProxy ? 443 : 80;
22808
- }
22809
- if (this.secureProxy && !("ALPNProtocols" in proxy2)) {
22810
- proxy2.ALPNProtocols = ["http 1.1"];
22811
- }
22812
- if (proxy2.host && proxy2.path) {
22813
- delete proxy2.path;
22814
- delete proxy2.pathname;
22815
- }
22816
- this.proxy = proxy2;
22817
- }
22818
- /**
22819
- * Called when the node-core HTTP client library is creating a
22820
- * new HTTP request.
22821
- *
22822
- * @api protected
22823
- */
22824
- callback(req, opts) {
22825
- return __awaiter(this, void 0, void 0, function* () {
22826
- const { proxy: proxy2, secureProxy } = this;
22827
- let socket;
22828
- if (secureProxy) {
22829
- debug("Creating `tls.Socket`: %o", proxy2);
22830
- socket = tls_1.default.connect(proxy2);
22831
- } else {
22832
- debug("Creating `net.Socket`: %o", proxy2);
22833
- socket = net_1.default.connect(proxy2);
22834
- }
22835
- const headers = Object.assign({}, proxy2.headers);
22836
- const hostname = `${opts.host}:${opts.port}`;
22837
- let payload = `CONNECT ${hostname} HTTP/1.1\r
22838
- `;
22839
- if (proxy2.auth) {
22840
- headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy2.auth).toString("base64")}`;
22841
- }
22842
- let { host, port, secureEndpoint } = opts;
22843
- if (!isDefaultPort(port, secureEndpoint)) {
22844
- host += `:${port}`;
22845
- }
22846
- headers.Host = host;
22847
- headers.Connection = "close";
22848
- for (const name of Object.keys(headers)) {
22849
- payload += `${name}: ${headers[name]}\r
22850
- `;
22851
- }
22852
- const proxyResponsePromise = parse_proxy_response_1.default(socket);
22853
- socket.write(`${payload}\r
22854
- `);
22855
- const { statusCode, buffered } = yield proxyResponsePromise;
22856
- if (statusCode === 200) {
22857
- req.once("socket", resume);
22858
- if (opts.secureEndpoint) {
22859
- debug("Upgrading socket connection to TLS");
22860
- const servername = opts.servername || opts.host;
22861
- return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
22862
- socket,
22863
- servername
22864
- }));
22865
- }
22866
- return socket;
22867
- }
22868
- socket.destroy();
22869
- const fakeSocket = new net_1.default.Socket({ writable: false });
22870
- fakeSocket.readable = true;
22871
- req.once("socket", (s) => {
22872
- debug("replaying proxy buffer for failed request");
22873
- assert_1.default(s.listenerCount("data") > 0);
22874
- s.push(buffered);
22875
- s.push(null);
22876
- });
22877
- return fakeSocket;
22878
- });
22879
- }
22880
- };
22881
- exports2.default = HttpsProxyAgent2;
22882
- function resume(socket) {
22883
- socket.resume();
22884
- }
22885
- function isDefaultPort(port, secure) {
22886
- return Boolean(!secure && port === 80 || secure && port === 443);
22887
- }
22888
- function isHTTPS(protocol) {
22889
- return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
22890
- }
22891
- function omit(obj, ...keys) {
22892
- const ret = {};
22893
- let key;
22894
- for (key in obj) {
22895
- if (!keys.includes(key)) {
22896
- ret[key] = obj[key];
22897
- }
22898
- }
22899
- return ret;
22900
- }
22901
- }
22902
- });
22903
-
22904
- // node_modules/https-proxy-agent/dist/index.js
22905
- var require_dist = __commonJS({
22906
- "node_modules/https-proxy-agent/dist/index.js"(exports2, module2) {
22907
- "use strict";
22908
- var __importDefault = exports2 && exports2.__importDefault || function(mod) {
22909
- return mod && mod.__esModule ? mod : { "default": mod };
22910
- };
22911
- var agent_1 = __importDefault(require_agent());
22912
- function createHttpsProxyAgent(opts) {
22913
- return new agent_1.default(opts);
22914
- }
22915
- (function(createHttpsProxyAgent2) {
22916
- createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
22917
- createHttpsProxyAgent2.prototype = agent_1.default.prototype;
22918
- })(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
22919
- module2.exports = createHttpsProxyAgent;
22920
- }
22921
- });
22922
-
22923
22473
  // node_modules/follow-redirects/debug.js
22924
22474
  var require_debug = __commonJS({
22925
22475
  "node_modules/follow-redirects/debug.js"(exports2, module2) {
@@ -23676,13 +23226,13 @@ var require_inherits_browser = __commonJS({
23676
23226
  var require_inherits = __commonJS({
23677
23227
  "node_modules/inherits/inherits.js"(exports2, module2) {
23678
23228
  try {
23679
- util4 = require("util");
23680
- if (typeof util4.inherits !== "function") throw "";
23681
- module2.exports = util4.inherits;
23229
+ util3 = require("util");
23230
+ if (typeof util3.inherits !== "function") throw "";
23231
+ module2.exports = util3.inherits;
23682
23232
  } catch (e) {
23683
23233
  module2.exports = require_inherits_browser();
23684
23234
  }
23685
- var util4;
23235
+ var util3;
23686
23236
  }
23687
23237
  });
23688
23238
 
@@ -23696,7 +23246,7 @@ var require_BufferList = __commonJS({
23696
23246
  }
23697
23247
  }
23698
23248
  var Buffer2 = require_safe_buffer().Buffer;
23699
- var util4 = require("util");
23249
+ var util3 = require("util");
23700
23250
  function copyBuffer(src, target, offset) {
23701
23251
  src.copy(target, offset);
23702
23252
  }
@@ -23755,9 +23305,9 @@ var require_BufferList = __commonJS({
23755
23305
  };
23756
23306
  return BufferList;
23757
23307
  })();
23758
- if (util4 && util4.inspect && util4.inspect.custom) {
23759
- module2.exports.prototype[util4.inspect.custom] = function() {
23760
- var obj = util4.inspect({ length: this.length });
23308
+ if (util3 && util3.inspect && util3.inspect.custom) {
23309
+ module2.exports.prototype[util3.inspect.custom] = function() {
23310
+ var obj = util3.inspect({ length: this.length });
23761
23311
  return this.constructor.name + " " + obj;
23762
23312
  };
23763
23313
  }
@@ -23857,8 +23407,8 @@ var require_stream_writable = __commonJS({
23857
23407
  var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
23858
23408
  var Duplex;
23859
23409
  Writable2.WritableState = WritableState;
23860
- var util4 = Object.create(require_util2());
23861
- util4.inherits = require_inherits();
23410
+ var util3 = Object.create(require_util2());
23411
+ util3.inherits = require_inherits();
23862
23412
  var internalUtil = {
23863
23413
  deprecate: require_node3()
23864
23414
  };
@@ -23873,7 +23423,7 @@ var require_stream_writable = __commonJS({
23873
23423
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
23874
23424
  }
23875
23425
  var destroyImpl = require_destroy();
23876
- util4.inherits(Writable2, Stream);
23426
+ util3.inherits(Writable2, Stream);
23877
23427
  function nop() {
23878
23428
  }
23879
23429
  function WritableState(options, stream4) {
@@ -24293,11 +23843,11 @@ var require_stream_duplex = __commonJS({
24293
23843
  return keys2;
24294
23844
  };
24295
23845
  module2.exports = Duplex;
24296
- var util4 = Object.create(require_util2());
24297
- util4.inherits = require_inherits();
23846
+ var util3 = Object.create(require_util2());
23847
+ util3.inherits = require_inherits();
24298
23848
  var Readable2 = require_stream_readable();
24299
23849
  var Writable2 = require_stream_writable();
24300
- util4.inherits(Duplex, Readable2);
23850
+ util3.inherits(Duplex, Readable2);
24301
23851
  {
24302
23852
  keys = objectKeys(Writable2.prototype);
24303
23853
  for (v = 0; v < keys.length; v++) {
@@ -24618,8 +24168,8 @@ var require_stream_readable = __commonJS({
24618
24168
  function _isUint8Array(obj) {
24619
24169
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
24620
24170
  }
24621
- var util4 = Object.create(require_util2());
24622
- util4.inherits = require_inherits();
24171
+ var util3 = Object.create(require_util2());
24172
+ util3.inherits = require_inherits();
24623
24173
  var debugUtil = require("util");
24624
24174
  var debug = void 0;
24625
24175
  if (debugUtil && debugUtil.debuglog) {
@@ -24631,7 +24181,7 @@ var require_stream_readable = __commonJS({
24631
24181
  var BufferList = require_BufferList();
24632
24182
  var destroyImpl = require_destroy();
24633
24183
  var StringDecoder2;
24634
- util4.inherits(Readable2, Stream);
24184
+ util3.inherits(Readable2, Stream);
24635
24185
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
24636
24186
  function prependListener(emitter, event, fn) {
24637
24187
  if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
@@ -25287,9 +24837,9 @@ var require_stream_transform = __commonJS({
25287
24837
  "use strict";
25288
24838
  module2.exports = Transform;
25289
24839
  var Duplex = require_stream_duplex();
25290
- var util4 = Object.create(require_util2());
25291
- util4.inherits = require_inherits();
25292
- util4.inherits(Transform, Duplex);
24840
+ var util3 = Object.create(require_util2());
24841
+ util3.inherits = require_inherits();
24842
+ util3.inherits(Transform, Duplex);
25293
24843
  function afterTransform(er, data) {
25294
24844
  var ts = this._transformState;
25295
24845
  ts.transforming = false;
@@ -25387,9 +24937,9 @@ var require_stream_passthrough = __commonJS({
25387
24937
  "use strict";
25388
24938
  module2.exports = PassThrough;
25389
24939
  var Transform = require_stream_transform();
25390
- var util4 = Object.create(require_util2());
25391
- util4.inherits = require_inherits();
25392
- util4.inherits(PassThrough, Transform);
24940
+ var util3 = Object.create(require_util2());
24941
+ util3.inherits = require_inherits();
24942
+ util3.inherits(PassThrough, Transform);
25393
24943
  function PassThrough(options) {
25394
24944
  if (!(this instanceof PassThrough)) return new PassThrough(options);
25395
24945
  Transform.call(this, options);
@@ -47297,10 +46847,10 @@ function isEmpty(value) {
47297
46847
  return t;
47298
46848
  };
47299
46849
  module3.exports = Duplex;
47300
- var util4 = require2("core-util-is");
47301
- util4.inherits = require2("inherits");
46850
+ var util3 = require2("core-util-is");
46851
+ util3.inherits = require2("inherits");
47302
46852
  var Readable2 = require2("./_stream_readable"), Writable2 = require2("./_stream_writable");
47303
- util4.inherits(Duplex, Readable2);
46853
+ util3.inherits(Duplex, Readable2);
47304
46854
  for (var keys = objectKeys(Writable2.prototype), v = 0; v < keys.length; v++) {
47305
46855
  var method = keys[v];
47306
46856
  Duplex.prototype[method] || (Duplex.prototype[method] = Writable2.prototype[method]);
@@ -47327,12 +46877,12 @@ function isEmpty(value) {
47327
46877
  }, { "./_stream_readable": 72, "./_stream_writable": 74, "core-util-is": 26, inherits: 31, "process-nextick-args": 65 }], 71: [function(require2, module3, exports3) {
47328
46878
  "use strict";
47329
46879
  module3.exports = PassThrough;
47330
- var Transform = require2("./_stream_transform"), util4 = require2("core-util-is");
46880
+ var Transform = require2("./_stream_transform"), util3 = require2("core-util-is");
47331
46881
  function PassThrough(r) {
47332
46882
  if (!(this instanceof PassThrough)) return new PassThrough(r);
47333
46883
  Transform.call(this, r);
47334
46884
  }
47335
- util4.inherits = require2("inherits"), util4.inherits(PassThrough, Transform), PassThrough.prototype._transform = function(r, s, i) {
46885
+ util3.inherits = require2("inherits"), util3.inherits(PassThrough, Transform), PassThrough.prototype._transform = function(r, s, i) {
47336
46886
  i(null, r);
47337
46887
  };
47338
46888
  }, { "./_stream_transform": 73, "core-util-is": 26, inherits: 31 }], 72: [function(require2, module3, exports3) {
@@ -47352,13 +46902,13 @@ function isEmpty(value) {
47352
46902
  function _isUint8Array(e) {
47353
46903
  return Buffer2.isBuffer(e) || e instanceof OurUint8Array;
47354
46904
  }
47355
- var util4 = require2("core-util-is");
47356
- util4.inherits = require2("inherits");
46905
+ var util3 = require2("core-util-is");
46906
+ util3.inherits = require2("inherits");
47357
46907
  var debugUtil = require2("util"), debug = void 0;
47358
46908
  debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog("stream") : function() {
47359
46909
  };
47360
46910
  var StringDecoder2, BufferList = require2("./internal/streams/BufferList"), destroyImpl = require2("./internal/streams/destroy");
47361
- util4.inherits(Readable2, Stream);
46911
+ util3.inherits(Readable2, Stream);
47362
46912
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
47363
46913
  function prependListener(e, t, r) {
47364
46914
  if ("function" == typeof e.prependListener) return e.prependListener(t, r);
@@ -47600,7 +47150,7 @@ function isEmpty(value) {
47600
47150
  }, { "./_stream_duplex": 70, "./internal/streams/BufferList": 75, "./internal/streams/destroy": 76, "./internal/streams/stream": 77, _process: 66, "core-util-is": 26, events: 27, inherits: 31, isarray: 33, "process-nextick-args": 65, "safe-buffer": 79, "string_decoder/": 84, util: 21 }], 73: [function(require2, module3, exports3) {
47601
47151
  "use strict";
47602
47152
  module3.exports = Transform;
47603
- var Duplex = require2("./_stream_duplex"), util4 = require2("core-util-is");
47153
+ var Duplex = require2("./_stream_duplex"), util3 = require2("core-util-is");
47604
47154
  function afterTransform(r, t) {
47605
47155
  var n = this._transformState;
47606
47156
  n.transforming = false;
@@ -47626,7 +47176,7 @@ function isEmpty(value) {
47626
47176
  if (r._transformState.transforming) throw new Error("Calling transform done when still transforming");
47627
47177
  return r.push(null);
47628
47178
  }
47629
- util4.inherits = require2("inherits"), util4.inherits(Transform, Duplex), Transform.prototype.push = function(r, t) {
47179
+ util3.inherits = require2("inherits"), util3.inherits(Transform, Duplex), Transform.prototype.push = function(r, t) {
47630
47180
  return this._transformState.needTransform = false, Duplex.prototype.push.call(this, r, t);
47631
47181
  }, Transform.prototype._transform = function(r, t, n) {
47632
47182
  throw new Error("_transform() is not implemented");
@@ -47661,8 +47211,8 @@ function isEmpty(value) {
47661
47211
  module3.exports = Writable2;
47662
47212
  var Duplex, asyncWrite = !process10.browser && ["v0.10", "v0.9."].indexOf(process10.version.slice(0, 5)) > -1 ? setImmediate2 : pna.nextTick;
47663
47213
  Writable2.WritableState = WritableState;
47664
- var util4 = require2("core-util-is");
47665
- util4.inherits = require2("inherits");
47214
+ var util3 = require2("core-util-is");
47215
+ util3.inherits = require2("inherits");
47666
47216
  var internalUtil = { deprecate: require2("util-deprecate") }, Stream = require2("./internal/streams/stream"), Buffer2 = require2("safe-buffer").Buffer, OurUint8Array = global4.Uint8Array || function() {
47667
47217
  };
47668
47218
  function _uint8ArrayToBuffer(e) {
@@ -47780,7 +47330,7 @@ function isEmpty(value) {
47780
47330
  }
47781
47331
  t.corkedRequestsFree ? t.corkedRequestsFree.next = e : t.corkedRequestsFree = e;
47782
47332
  }
47783
- util4.inherits(Writable2, Stream), WritableState.prototype.getBuffer = function() {
47333
+ util3.inherits(Writable2, Stream), WritableState.prototype.getBuffer = function() {
47784
47334
  for (var e = this.bufferedRequest, t = []; e; ) t.push(e), e = e.next;
47785
47335
  return t;
47786
47336
  }, (function() {
@@ -47827,7 +47377,7 @@ function isEmpty(value) {
47827
47377
  function _classCallCheck(t, e) {
47828
47378
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
47829
47379
  }
47830
- var Buffer2 = require2("safe-buffer").Buffer, util4 = require2("util");
47380
+ var Buffer2 = require2("safe-buffer").Buffer, util3 = require2("util");
47831
47381
  function copyBuffer(t, e, i) {
47832
47382
  t.copy(e, i);
47833
47383
  }
@@ -47858,8 +47408,8 @@ function isEmpty(value) {
47858
47408
  for (var e = Buffer2.allocUnsafe(t2 >>> 0), i = this.head, n = 0; i; ) copyBuffer(i.data, e, n), n += i.data.length, i = i.next;
47859
47409
  return e;
47860
47410
  }, t;
47861
- })(), util4 && util4.inspect && util4.inspect.custom && (module3.exports.prototype[util4.inspect.custom] = function() {
47862
- var t = util4.inspect({ length: this.length });
47411
+ })(), util3 && util3.inspect && util3.inspect.custom && (module3.exports.prototype[util3.inspect.custom] = function() {
47412
+ var t = util3.inspect({ length: this.length });
47863
47413
  return this.constructor.name + " " + t;
47864
47414
  });
47865
47415
  }, { "safe-buffer": 79, util: 21 }], 76: [function(require2, module3, exports3) {
@@ -48370,19 +47920,19 @@ function isEmpty(value) {
48370
47920
  };
48371
47921
  }, { buffer: 23 }], 87: [function(require2, module3, exports3) {
48372
47922
  "use strict";
48373
- var punycode = require2("punycode"), util4 = require2("./util");
47923
+ var punycode = require2("punycode"), util3 = require2("./util");
48374
47924
  function Url() {
48375
47925
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
48376
47926
  }
48377
47927
  exports3.parse = urlParse, exports3.resolve = urlResolve, exports3.resolveObject = urlResolveObject, exports3.format = urlFormat, exports3.Url = Url;
48378
47928
  var protocolPattern = /^([a-z0-9.+-]+:)/i, portPattern = /:[0-9]*$/, simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, delims = ["<", ">", '"', "`", " ", "\r", "\n", " "], unwise = ["{", "}", "|", "\\", "^", "`"].concat(delims), autoEscape = ["'"].concat(unwise), nonHostChars = ["%", "/", "?", ";", "#"].concat(autoEscape), hostEndingChars = ["/", "?", "#"], hostnameMaxLen = 255, hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, unsafeProtocol = { javascript: true, "javascript:": true }, hostlessProtocol = { javascript: true, "javascript:": true }, slashedProtocol = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true }, querystring = require2("querystring");
48379
47929
  function urlParse(t, s, e) {
48380
- if (t && util4.isObject(t) && t instanceof Url) return t;
47930
+ if (t && util3.isObject(t) && t instanceof Url) return t;
48381
47931
  var h = new Url();
48382
47932
  return h.parse(t, s, e), h;
48383
47933
  }
48384
47934
  function urlFormat(t) {
48385
- return util4.isString(t) && (t = urlParse(t)), t instanceof Url ? t.format() : Url.prototype.format.call(t);
47935
+ return util3.isString(t) && (t = urlParse(t)), t instanceof Url ? t.format() : Url.prototype.format.call(t);
48386
47936
  }
48387
47937
  function urlResolve(t, s) {
48388
47938
  return urlParse(t, false, true).resolve(s);
@@ -48391,7 +47941,7 @@ function isEmpty(value) {
48391
47941
  return t ? urlParse(t, false, true).resolveObject(s) : s;
48392
47942
  }
48393
47943
  Url.prototype.parse = function(t, s, e) {
48394
- if (!util4.isString(t)) throw new TypeError("Parameter 'url' must be a string, not " + typeof t);
47944
+ if (!util3.isString(t)) throw new TypeError("Parameter 'url' must be a string, not " + typeof t);
48395
47945
  var h = t.indexOf("?"), r = -1 !== h && h < t.indexOf("#") ? "?" : "#", a = t.split(r);
48396
47946
  a[0] = a[0].replace(/\\/g, "/");
48397
47947
  var o = t = a.join(r);
@@ -48454,7 +48004,7 @@ function isEmpty(value) {
48454
48004
  var t = this.auth || "";
48455
48005
  t && (t = (t = encodeURIComponent(t)).replace(/%3A/i, ":"), t += "@");
48456
48006
  var s = this.protocol || "", e = this.pathname || "", h = this.hash || "", r = false, a = "";
48457
- this.host ? r = t + this.host : this.hostname && (r = t + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]"), this.port && (r += ":" + this.port)), this.query && util4.isObject(this.query) && Object.keys(this.query).length && (a = querystring.stringify(this.query));
48007
+ this.host ? r = t + this.host : this.hostname && (r = t + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]"), this.port && (r += ":" + this.port)), this.query && util3.isObject(this.query) && Object.keys(this.query).length && (a = querystring.stringify(this.query));
48458
48008
  var o = this.search || a && "?" + a || "";
48459
48009
  return s && ":" !== s.substr(-1) && (s += ":"), this.slashes || (!s || slashedProtocol[s]) && false !== r ? (r = "//" + (r || ""), e && "/" !== e.charAt(0) && (e = "/" + e)) : r || (r = ""), h && "#" !== h.charAt(0) && (h = "#" + h), o && "?" !== o.charAt(0) && (o = "?" + o), s + r + (e = e.replace(/[?#]/g, function(t2) {
48460
48010
  return encodeURIComponent(t2);
@@ -48462,7 +48012,7 @@ function isEmpty(value) {
48462
48012
  }, Url.prototype.resolve = function(t) {
48463
48013
  return this.resolveObject(urlParse(t, false, true)).format();
48464
48014
  }, Url.prototype.resolveObject = function(t) {
48465
- if (util4.isString(t)) {
48015
+ if (util3.isString(t)) {
48466
48016
  var s = new Url();
48467
48017
  s.parse(t, false, true), t = s;
48468
48018
  }
@@ -48500,9 +48050,9 @@ function isEmpty(value) {
48500
48050
  var v = e.pathname && "/" === e.pathname.charAt(0), g = t.host || t.pathname && "/" === t.pathname.charAt(0), y = g || v || e.host && t.pathname, P = y, d = e.pathname && e.pathname.split("/") || [], b = (c = t.pathname && t.pathname.split("/") || [], e.protocol && !slashedProtocol[e.protocol]);
48501
48051
  if (b && (e.hostname = "", e.port = null, e.host && ("" === d[0] ? d[0] = e.host : d.unshift(e.host)), e.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && ("" === c[0] ? c[0] = t.host : c.unshift(t.host)), t.host = null), y = y && ("" === c[0] || "" === d[0])), g) e.host = t.host || "" === t.host ? t.host : e.host, e.hostname = t.hostname || "" === t.hostname ? t.hostname : e.hostname, e.search = t.search, e.query = t.query, d = c;
48502
48052
  else if (c.length) d || (d = []), d.pop(), d = d.concat(c), e.search = t.search, e.query = t.query;
48503
- else if (!util4.isNullOrUndefined(t.search)) {
48053
+ else if (!util3.isNullOrUndefined(t.search)) {
48504
48054
  if (b) e.hostname = e.host = d.shift(), (U = !!(e.host && e.host.indexOf("@") > 0) && e.host.split("@")) && (e.auth = U.shift(), e.host = e.hostname = U.shift());
48505
- return e.search = t.search, e.query = t.query, util4.isNull(e.pathname) && util4.isNull(e.search) || (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.href = e.format(), e;
48055
+ return e.search = t.search, e.query = t.query, util3.isNull(e.pathname) && util3.isNull(e.search) || (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.href = e.format(), e;
48506
48056
  }
48507
48057
  if (!d.length) return e.pathname = null, e.search ? e.path = "/" + e.search : e.path = null, e.href = e.format(), e;
48508
48058
  for (var q = d.slice(-1)[0], O = (e.host || t.host || d.length > 1) && ("." === q || ".." === q) || "" === q, j = 0, x = d.length; x >= 0; x--) "." === (q = d[x]) ? d.splice(x, 1) : ".." === q ? (d.splice(x, 1), j++) : j && (d.splice(x, 1), j--);
@@ -48510,7 +48060,7 @@ function isEmpty(value) {
48510
48060
  !y || "" === d[0] || d[0] && "/" === d[0].charAt(0) || d.unshift(""), O && "/" !== d.join("/").substr(-1) && d.push("");
48511
48061
  var U, C = "" === d[0] || d[0] && "/" === d[0].charAt(0);
48512
48062
  b && (e.hostname = e.host = C ? "" : d.length ? d.shift() : "", (U = !!(e.host && e.host.indexOf("@") > 0) && e.host.split("@")) && (e.auth = U.shift(), e.host = e.hostname = U.shift()));
48513
- return (y = y || e.host && d.length) && !C && d.unshift(""), d.length ? e.pathname = d.join("/") : (e.pathname = null, e.path = null), util4.isNull(e.pathname) && util4.isNull(e.search) || (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.auth = t.auth || e.auth, e.slashes = e.slashes || t.slashes, e.href = e.format(), e;
48063
+ return (y = y || e.host && d.length) && !C && d.unshift(""), d.length ? e.pathname = d.join("/") : (e.pathname = null, e.path = null), util3.isNull(e.pathname) && util3.isNull(e.search) || (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.auth = t.auth || e.auth, e.slashes = e.slashes || t.slashes, e.href = e.format(), e;
48514
48064
  }, Url.prototype.parseHost = function() {
48515
48065
  var t = this.host, s = portPattern.exec(t);
48516
48066
  s && (":" !== (s = s[0]) && (this.port = s.substr(1)), t = t.substr(0, t.length - s.length)), t && (this.hostname = t);
@@ -49381,16 +48931,16 @@ var require_positions = __commonJS2({
49381
48931
  });
49382
48932
  var require_lib = __commonJS2({
49383
48933
  "node_modules/ret/lib/index.js"(exports2, module2) {
49384
- var util4 = require_util();
48934
+ var util3 = require_util();
49385
48935
  var types2 = require_types();
49386
48936
  var sets = require_sets();
49387
48937
  var positions = require_positions();
49388
48938
  module2.exports = (regexpStr) => {
49389
48939
  var i = 0, l, c, start = { type: types2.ROOT, stack: [] }, lastGroup = start, last = start.stack, groupStack = [];
49390
48940
  var repeatErr = (i2) => {
49391
- util4.error(regexpStr, `Nothing to repeat at column ${i2 - 1}`);
48941
+ util3.error(regexpStr, `Nothing to repeat at column ${i2 - 1}`);
49392
48942
  };
49393
- var str = util4.strToChars(regexpStr);
48943
+ var str = util3.strToChars(regexpStr);
49394
48944
  l = str.length;
49395
48945
  while (i < l) {
49396
48946
  c = str[i++];
@@ -49444,7 +48994,7 @@ var require_lib = __commonJS2({
49444
48994
  } else {
49445
48995
  not = false;
49446
48996
  }
49447
- var classTokens = util4.tokenizeClass(str.slice(i), regexpStr);
48997
+ var classTokens = util3.tokenizeClass(str.slice(i), regexpStr);
49448
48998
  i += classTokens[1];
49449
48999
  last.push({
49450
49000
  type: types2.SET,
@@ -49470,7 +49020,7 @@ var require_lib = __commonJS2({
49470
49020
  } else if (c === "!") {
49471
49021
  group.notFollowedBy = true;
49472
49022
  } else if (c !== ":") {
49473
- util4.error(
49023
+ util3.error(
49474
49024
  regexpStr,
49475
49025
  `Invalid group, character '${c}' after '?' at column ${i - 1}`
49476
49026
  );
@@ -49484,7 +49034,7 @@ var require_lib = __commonJS2({
49484
49034
  break;
49485
49035
  case ")":
49486
49036
  if (groupStack.length === 0) {
49487
- util4.error(regexpStr, `Unmatched ) at column ${i - 1}`);
49037
+ util3.error(regexpStr, `Unmatched ) at column ${i - 1}`);
49488
49038
  }
49489
49039
  lastGroup = groupStack.pop();
49490
49040
  last = lastGroup.options ? lastGroup.options[lastGroup.options.length - 1] : lastGroup.stack;
@@ -49561,7 +49111,7 @@ var require_lib = __commonJS2({
49561
49111
  }
49562
49112
  }
49563
49113
  if (groupStack.length !== 0) {
49564
- util4.error(regexpStr, "Unterminated group");
49114
+ util3.error(regexpStr, "Unterminated group");
49565
49115
  }
49566
49116
  return start;
49567
49117
  };
@@ -55366,53 +54916,15 @@ function prettyJsonObject(value) {
55366
54916
  var AppError = class extends Error {
55367
54917
  };
55368
54918
 
55369
- // node_modules/uuid/dist-node/stringify.js
55370
- var byteToHex = [];
55371
- for (let i = 0; i < 256; ++i) {
55372
- byteToHex.push((i + 256).toString(16).slice(1));
55373
- }
55374
- function unsafeStringify(arr, offset = 0) {
55375
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
55376
- }
55377
-
55378
- // node_modules/uuid/dist-node/rng.js
55379
- var rnds8 = new Uint8Array(16);
55380
- function rng() {
55381
- return crypto.getRandomValues(rnds8);
55382
- }
55383
-
55384
- // node_modules/uuid/dist-node/v4.js
55385
- function v4(options, buf, offset) {
55386
- if (!buf && !options && crypto.randomUUID) {
55387
- return crypto.randomUUID();
55388
- }
55389
- return _v4(options, buf, offset);
55390
- }
55391
- function _v4(options, buf, offset) {
55392
- options = options || {};
55393
- const rnds = options.random ?? options.rng?.() ?? rng();
55394
- if (rnds.length < 16) {
55395
- throw new Error("Random bytes length must be >= 16");
55396
- }
55397
- rnds[6] = rnds[6] & 15 | 64;
55398
- rnds[8] = rnds[8] & 63 | 128;
55399
- if (buf) {
55400
- offset = offset || 0;
55401
- if (offset < 0 || offset + 16 > buf.length) {
55402
- throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
55403
- }
55404
- for (let i = 0; i < 16; ++i) {
55405
- buf[offset + i] = rnds[i];
55406
- }
55407
- return buf;
55408
- }
55409
- return unsafeStringify(rnds);
55410
- }
55411
- var v4_default = v4;
55412
-
55413
54919
  // packages/kong-ts/src/lib/id.ts
55414
- function guid() {
55415
- return v4_default();
54920
+ var SHORT_ID_ALPHABET = "abcdefghijklmnopqrstuvwxyz0123456789";
54921
+ var SHORT_ID_FIRST_CHAR = "abcdefghijklmnopqrstuvwxyz";
54922
+ function generateShortId() {
54923
+ const chars = [SHORT_ID_FIRST_CHAR[Math.floor(Math.random() * SHORT_ID_FIRST_CHAR.length)]];
54924
+ for (let i = 1; i < 12; i++) {
54925
+ chars.push(SHORT_ID_ALPHABET[Math.floor(Math.random() * SHORT_ID_ALPHABET.length)]);
54926
+ }
54927
+ return chars.join("");
55416
54928
  }
55417
54929
 
55418
54930
  // node_modules/date-fns/locale/en-US/_lib/formatDistance.js
@@ -56024,8 +55536,8 @@ function getDayOfYear(date2, options) {
56024
55536
 
56025
55537
  // node_modules/date-fns/startOfWeek.js
56026
55538
  function startOfWeek(date2, options) {
56027
- const defaultOptions3 = getDefaultOptions();
56028
- const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions3.weekStartsOn ?? defaultOptions3.locale?.options?.weekStartsOn ?? 0;
55539
+ const defaultOptions2 = getDefaultOptions();
55540
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
56029
55541
  const _date = toDate(date2, options?.in);
56030
55542
  const day = _date.getDay();
56031
55543
  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -56080,8 +55592,8 @@ function getISOWeek(date2, options) {
56080
55592
  function getWeekYear(date2, options) {
56081
55593
  const _date = toDate(date2, options?.in);
56082
55594
  const year = _date.getFullYear();
56083
- const defaultOptions3 = getDefaultOptions();
56084
- const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions3.firstWeekContainsDate ?? defaultOptions3.locale?.options?.firstWeekContainsDate ?? 1;
55595
+ const defaultOptions2 = getDefaultOptions();
55596
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
56085
55597
  const firstWeekOfNextYear = constructFrom(options?.in || date2, 0);
56086
55598
  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
56087
55599
  firstWeekOfNextYear.setHours(0, 0, 0, 0);
@@ -56101,8 +55613,8 @@ function getWeekYear(date2, options) {
56101
55613
 
56102
55614
  // node_modules/date-fns/startOfWeekYear.js
56103
55615
  function startOfWeekYear(date2, options) {
56104
- const defaultOptions3 = getDefaultOptions();
56105
- const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions3.firstWeekContainsDate ?? defaultOptions3.locale?.options?.firstWeekContainsDate ?? 1;
55616
+ const defaultOptions2 = getDefaultOptions();
55617
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
56106
55618
  const year = getWeekYear(date2, options);
56107
55619
  const firstWeek = constructFrom(options?.in || date2, 0);
56108
55620
  firstWeek.setFullYear(year, 0, firstWeekContainsDate);
@@ -56925,10 +56437,10 @@ var escapedStringRegExp = /^'([^]*?)'?$/;
56925
56437
  var doubleQuoteRegExp = /''/g;
56926
56438
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
56927
56439
  function format(date2, formatStr, options) {
56928
- const defaultOptions3 = getDefaultOptions();
56929
- const locale = options?.locale ?? defaultOptions3.locale ?? enUS;
56930
- const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions3.firstWeekContainsDate ?? defaultOptions3.locale?.options?.firstWeekContainsDate ?? 1;
56931
- const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions3.weekStartsOn ?? defaultOptions3.locale?.options?.weekStartsOn ?? 0;
56440
+ const defaultOptions2 = getDefaultOptions();
56441
+ const locale = options?.locale ?? defaultOptions2.locale ?? enUS;
56442
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
56443
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
56932
56444
  const originalDate = toDate(date2, options?.in);
56933
56445
  if (!isValid(originalDate)) {
56934
56446
  throw new RangeError("Invalid time value");
@@ -56991,8 +56503,8 @@ function getDefaultOptions2() {
56991
56503
 
56992
56504
  // node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js
56993
56505
  function tzIntlTimeZoneName(length, date2, options) {
56994
- const defaultOptions3 = getDefaultOptions2();
56995
- const dtf = getDTF(length, options.timeZone, options.locale ?? defaultOptions3.locale);
56506
+ const defaultOptions2 = getDefaultOptions2();
56507
+ const dtf = getDTF(length, options.timeZone, options.locale ?? defaultOptions2.locale);
56996
56508
  return "formatToParts" in dtf ? partsTimeZone(dtf, date2) : hackyTimeZone(dtf, date2);
56997
56509
  }
56998
56510
  function partsTimeZone(dtf, date2) {
@@ -64754,34 +64266,17 @@ var import_fs2 = __toESM(require("fs"));
64754
64266
  var import_os = require("os");
64755
64267
  var import_path3 = __toESM(require("path"));
64756
64268
 
64757
- // node_modules/axios/lib/helpers/bind.js
64269
+ // packages/kong-cli/node_modules/axios/lib/helpers/bind.js
64758
64270
  function bind(fn, thisArg) {
64759
64271
  return function wrap() {
64760
64272
  return fn.apply(thisArg, arguments);
64761
64273
  };
64762
64274
  }
64763
64275
 
64764
- // node_modules/axios/lib/utils.js
64276
+ // packages/kong-cli/node_modules/axios/lib/utils.js
64765
64277
  var { toString } = Object.prototype;
64766
64278
  var { getPrototypeOf } = Object;
64767
64279
  var { iterator, toStringTag } = Symbol;
64768
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
64769
- var hasOwnInPrototypeChain = (thing, prop) => {
64770
- let obj = thing;
64771
- const seen = [];
64772
- while (obj != null && obj !== Object.prototype) {
64773
- if (seen.indexOf(obj) !== -1) {
64774
- return false;
64775
- }
64776
- seen.push(obj);
64777
- if (hasOwnProperty(obj, prop)) {
64778
- return true;
64779
- }
64780
- obj = getPrototypeOf(obj);
64781
- }
64782
- return false;
64783
- };
64784
- var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
64785
64280
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
64786
64281
  const str = toString.call(thing);
64787
64282
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -64812,14 +64307,11 @@ var isNumber2 = typeOfTest("number");
64812
64307
  var isObject = (thing) => thing !== null && typeof thing === "object";
64813
64308
  var isBoolean = (thing) => thing === true || thing === false;
64814
64309
  var isPlainObject2 = (val) => {
64815
- if (!isObject(val)) {
64310
+ if (kindOf(val) !== "object") {
64816
64311
  return false;
64817
64312
  }
64818
64313
  const prototype2 = getPrototypeOf(val);
64819
- return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
64820
- // Symbol.iterator as evidence the value is a tagged/iterable type rather
64821
- // than a plain object, while ignoring keys injected onto Object.prototype.
64822
- !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
64314
+ return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
64823
64315
  };
64824
64316
  var isEmptyObject = (val) => {
64825
64317
  if (!isObject(val) || isBuffer(val)) {
@@ -64923,7 +64415,7 @@ function merge2(...objs) {
64923
64415
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
64924
64416
  return;
64925
64417
  }
64926
- const targetKey = caseless && typeof key === "string" && findKey2(result, key) || key;
64418
+ const targetKey = caseless && findKey2(result, key) || key;
64927
64419
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
64928
64420
  if (isPlainObject2(existing) && isPlainObject2(val)) {
64929
64421
  result[targetKey] = merge2(existing, val);
@@ -64936,21 +64428,7 @@ function merge2(...objs) {
64936
64428
  }
64937
64429
  };
64938
64430
  for (let i = 0, l = objs.length; i < l; i++) {
64939
- const source = objs[i];
64940
- if (!source || isBuffer(source)) {
64941
- continue;
64942
- }
64943
- forEach(source, assignValue);
64944
- if (typeof source !== "object" || isArray(source)) {
64945
- continue;
64946
- }
64947
- const symbols = Object.getOwnPropertySymbols(source);
64948
- for (let j = 0; j < symbols.length; j++) {
64949
- const symbol = symbols[j];
64950
- if (propertyIsEnumerable.call(source, symbol)) {
64951
- assignValue(source[symbol], symbol);
64952
- }
64953
- }
64431
+ objs[i] && forEach(objs[i], assignValue);
64954
64432
  }
64955
64433
  return result;
64956
64434
  }
@@ -65072,7 +64550,7 @@ var toCamelCase = (str) => {
65072
64550
  return p1.toUpperCase() + p2;
65073
64551
  });
65074
64552
  };
65075
- var { propertyIsEnumerable } = Object.prototype;
64553
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
65076
64554
  var isRegExp = kindOfTest("RegExp");
65077
64555
  var reduceDescriptors = (obj, reducer) => {
65078
64556
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -65123,29 +64601,29 @@ function isSpecCompliantForm(thing) {
65123
64601
  return !!(thing && isFunction2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
65124
64602
  }
65125
64603
  var toJSONObject = (obj) => {
65126
- const visited = /* @__PURE__ */ new WeakSet();
65127
- const visit = (source) => {
64604
+ const stack = new Array(10);
64605
+ const visit = (source, i) => {
65128
64606
  if (isObject(source)) {
65129
- if (visited.has(source)) {
64607
+ if (stack.indexOf(source) >= 0) {
65130
64608
  return;
65131
64609
  }
65132
64610
  if (isBuffer(source)) {
65133
64611
  return source;
65134
64612
  }
65135
64613
  if (!("toJSON" in source)) {
65136
- visited.add(source);
64614
+ stack[i] = source;
65137
64615
  const target = isArray(source) ? [] : {};
65138
64616
  forEach(source, (value, key) => {
65139
- const reducedValue = visit(value);
64617
+ const reducedValue = visit(value, i + 1);
65140
64618
  !isUndefined(reducedValue) && (target[key] = reducedValue);
65141
64619
  });
65142
- visited.delete(source);
64620
+ stack[i] = void 0;
65143
64621
  return target;
65144
64622
  }
65145
64623
  }
65146
64624
  return source;
65147
64625
  };
65148
- return visit(obj);
64626
+ return visit(obj, 0);
65149
64627
  };
65150
64628
  var isAsyncFn = kindOfTest("AsyncFunction");
65151
64629
  var isThenable = (thing) => thing && (isObject(thing) || isFunction2(thing)) && isFunction2(thing.then) && isFunction2(thing.catch);
@@ -65171,7 +64649,6 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
65171
64649
  })(typeof setImmediate === "function", isFunction2(_global.postMessage));
65172
64650
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
65173
64651
  var isIterable = (thing) => thing != null && isFunction2(thing[iterator]);
65174
- var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
65175
64652
  var utils_default2 = {
65176
64653
  isArray,
65177
64654
  isArrayBuffer,
@@ -65217,8 +64694,6 @@ var utils_default2 = {
65217
64694
  hasOwnProperty,
65218
64695
  hasOwnProp: hasOwnProperty,
65219
64696
  // an alias to avoid ESLint no-prototype-builtins detection
65220
- hasOwnInPrototypeChain,
65221
- getSafeProp,
65222
64697
  reduceDescriptors,
65223
64698
  freezeMethods,
65224
64699
  toObjectSet,
@@ -65234,11 +64709,10 @@ var utils_default2 = {
65234
64709
  isThenable,
65235
64710
  setImmediate: _setImmediate,
65236
64711
  asap,
65237
- isIterable,
65238
- isSafeIterable
64712
+ isIterable
65239
64713
  };
65240
64714
 
65241
- // node_modules/axios/lib/helpers/parseHeaders.js
64715
+ // packages/kong-cli/node_modules/axios/lib/helpers/parseHeaders.js
65242
64716
  var ignoreDuplicateOf = utils_default2.toObjectSet([
65243
64717
  "age",
65244
64718
  "authorization",
@@ -65283,7 +64757,9 @@ var parseHeaders_default = (rawHeaders) => {
65283
64757
  return parsed;
65284
64758
  };
65285
64759
 
65286
- // node_modules/axios/lib/helpers/sanitizeHeaderValue.js
64760
+ // packages/kong-cli/node_modules/axios/lib/core/AxiosHeaders.js
64761
+ var $internals = Symbol("internals");
64762
+ var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
65287
64763
  function trimSPorHTAB(str) {
65288
64764
  let start = 0;
65289
64765
  let end = str.length;
@@ -65303,29 +64779,12 @@ function trimSPorHTAB(str) {
65303
64779
  }
65304
64780
  return start === 0 && end === str.length ? str : str.slice(start, end);
65305
64781
  }
65306
- var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
65307
- var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
65308
- function sanitizeValue(value, invalidChars) {
65309
- if (utils_default2.isArray(value)) {
65310
- return value.map((item) => sanitizeValue(item, invalidChars));
65311
- }
65312
- return trimSPorHTAB(String(value).replace(invalidChars, ""));
65313
- }
65314
- var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
65315
- var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
65316
- function toByteStringHeaderObject(headers) {
65317
- const byteStringHeaders = /* @__PURE__ */ Object.create(null);
65318
- utils_default2.forEach(headers.toJSON(), (value, header) => {
65319
- byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
65320
- });
65321
- return byteStringHeaders;
65322
- }
65323
-
65324
- // node_modules/axios/lib/core/AxiosHeaders.js
65325
- var $internals = Symbol("internals");
65326
64782
  function normalizeHeader(header) {
65327
64783
  return header && String(header).trim().toLowerCase();
65328
64784
  }
64785
+ function sanitizeHeaderValue(str) {
64786
+ return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
64787
+ }
65329
64788
  function normalizeValue(value) {
65330
64789
  if (value === false || value == null) {
65331
64790
  return value;
@@ -65385,7 +64844,7 @@ var AxiosHeaders = class {
65385
64844
  function setHeader(_value, _header, _rewrite) {
65386
64845
  const lHeader = normalizeHeader(_header);
65387
64846
  if (!lHeader) {
65388
- return;
64847
+ throw new Error("header name must be a non-empty string");
65389
64848
  }
65390
64849
  const key = utils_default2.findKey(self2, lHeader);
65391
64850
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -65397,19 +64856,13 @@ var AxiosHeaders = class {
65397
64856
  setHeaders(header, valueOrRewrite);
65398
64857
  } else if (utils_default2.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
65399
64858
  setHeaders(parseHeaders_default(header), valueOrRewrite);
65400
- } else if (utils_default2.isObject(header) && utils_default2.isSafeIterable(header)) {
65401
- let obj = /* @__PURE__ */ Object.create(null), dest, key;
64859
+ } else if (utils_default2.isObject(header) && utils_default2.isIterable(header)) {
64860
+ let obj = {}, dest, key;
65402
64861
  for (const entry of header) {
65403
64862
  if (!utils_default2.isArray(entry)) {
65404
- throw new TypeError("Object iterator must return a key-value pair");
65405
- }
65406
- key = entry[0];
65407
- if (utils_default2.hasOwnProp(obj, key)) {
65408
- dest = obj[key];
65409
- obj[key] = utils_default2.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
65410
- } else {
65411
- obj[key] = entry[1];
64863
+ throw TypeError("Object iterator must return a key-value pair");
65412
64864
  }
64865
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default2.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
65413
64866
  }
65414
64867
  setHeaders(obj, valueOrRewrite);
65415
64868
  } else {
@@ -65566,7 +65019,7 @@ utils_default2.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
65566
65019
  utils_default2.freezeMethods(AxiosHeaders);
65567
65020
  var AxiosHeaders_default = AxiosHeaders;
65568
65021
 
65569
- // node_modules/axios/lib/core/AxiosError.js
65022
+ // packages/kong-cli/node_modules/axios/lib/core/AxiosError.js
65570
65023
  var REDACTED = "[REDACTED ****]";
65571
65024
  function hasOwnOrPrototypeToJSON(source) {
65572
65025
  if (utils_default2.hasOwnProp(source, "toJSON")) {
@@ -65622,13 +65075,7 @@ function redactConfig(config, redactKeys) {
65622
65075
  var AxiosError = class _AxiosError extends Error {
65623
65076
  static from(error, code, config, request, response, customProps) {
65624
65077
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
65625
- Object.defineProperty(axiosError, "cause", {
65626
- __proto__: null,
65627
- value: error,
65628
- writable: true,
65629
- enumerable: false,
65630
- configurable: true
65631
- });
65078
+ axiosError.cause = error;
65632
65079
  axiosError.name = error.name;
65633
65080
  if (error.status != null && axiosError.status == null) {
65634
65081
  axiosError.status = error.status;
@@ -65707,12 +65154,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
65707
65154
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
65708
65155
  var AxiosError_default = AxiosError;
65709
65156
 
65710
- // node_modules/axios/lib/platform/node/classes/FormData.js
65157
+ // packages/kong-cli/node_modules/axios/lib/platform/node/classes/FormData.js
65711
65158
  var import_form_data = __toESM(require_form_data(), 1);
65712
65159
  var FormData_default = import_form_data.default;
65713
65160
 
65714
- // node_modules/axios/lib/helpers/toFormData.js
65715
- var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
65161
+ // packages/kong-cli/node_modules/axios/lib/helpers/toFormData.js
65716
65162
  function isVisitable(thing) {
65717
65163
  return utils_default2.isPlainObject(thing) || utils_default2.isArray(thing);
65718
65164
  }
@@ -65754,9 +65200,8 @@ function toFormData(obj, formData, options) {
65754
65200
  const dots = options.dots;
65755
65201
  const indexes = options.indexes;
65756
65202
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
65757
- const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
65203
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
65758
65204
  const useBlob = _Blob && utils_default2.isSpecCompliantForm(formData);
65759
- const stack = [];
65760
65205
  if (!utils_default2.isFunction(visitor)) {
65761
65206
  throw new TypeError("visitor must be a function");
65762
65207
  }
@@ -65772,41 +65217,10 @@ function toFormData(obj, formData, options) {
65772
65217
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
65773
65218
  }
65774
65219
  if (utils_default2.isArrayBuffer(value) || utils_default2.isTypedArray(value)) {
65775
- if (useBlob && typeof _Blob === "function") {
65776
- return new _Blob([value]);
65777
- }
65778
- if (typeof Buffer !== "undefined") {
65779
- return Buffer.from(value);
65780
- }
65781
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
65220
+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
65782
65221
  }
65783
65222
  return value;
65784
65223
  }
65785
- function throwIfMaxDepthExceeded(depth) {
65786
- if (depth > maxDepth) {
65787
- throw new AxiosError_default(
65788
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
65789
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
65790
- );
65791
- }
65792
- }
65793
- function stringifyWithDepthLimit(value, depth) {
65794
- if (maxDepth === Infinity) {
65795
- return JSON.stringify(value);
65796
- }
65797
- const ancestors = [];
65798
- return JSON.stringify(value, function limitDepth(_key, currentValue) {
65799
- if (!utils_default2.isObject(currentValue)) {
65800
- return currentValue;
65801
- }
65802
- while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
65803
- ancestors.pop();
65804
- }
65805
- ancestors.push(currentValue);
65806
- throwIfMaxDepthExceeded(depth + ancestors.length - 1);
65807
- return currentValue;
65808
- });
65809
- }
65810
65224
  function defaultVisitor(value, key, path10) {
65811
65225
  let arr = value;
65812
65226
  if (utils_default2.isReactNative(formData) && utils_default2.isReactNativeBlob(value)) {
@@ -65816,7 +65230,7 @@ function toFormData(obj, formData, options) {
65816
65230
  if (value && !path10 && typeof value === "object") {
65817
65231
  if (utils_default2.endsWith(key, "{}")) {
65818
65232
  key = metaTokens ? key : key.slice(0, -2);
65819
- value = stringifyWithDepthLimit(value, 1);
65233
+ value = JSON.stringify(value);
65820
65234
  } else if (utils_default2.isArray(value) && isFlatArray(value) || (utils_default2.isFileList(value) || utils_default2.endsWith(key, "[]")) && (arr = utils_default2.toArray(value))) {
65821
65235
  key = removeBrackets(key);
65822
65236
  arr.forEach(function each(el, index) {
@@ -65835,6 +65249,7 @@ function toFormData(obj, formData, options) {
65835
65249
  formData.append(renderKey(path10, key, dots), convertValue(value));
65836
65250
  return false;
65837
65251
  }
65252
+ const stack = [];
65838
65253
  const exposedHelpers = Object.assign(predicates, {
65839
65254
  defaultVisitor,
65840
65255
  convertValue,
@@ -65842,9 +65257,14 @@ function toFormData(obj, formData, options) {
65842
65257
  });
65843
65258
  function build(value, path10, depth = 0) {
65844
65259
  if (utils_default2.isUndefined(value)) return;
65845
- throwIfMaxDepthExceeded(depth);
65260
+ if (depth > maxDepth) {
65261
+ throw new AxiosError_default(
65262
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
65263
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
65264
+ );
65265
+ }
65846
65266
  if (stack.indexOf(value) !== -1) {
65847
- throw new Error("Circular reference detected in " + path10.join("."));
65267
+ throw Error("Circular reference detected in " + path10.join("."));
65848
65268
  }
65849
65269
  stack.push(value);
65850
65270
  utils_default2.forEach(value, function each(el, key) {
@@ -65863,7 +65283,7 @@ function toFormData(obj, formData, options) {
65863
65283
  }
65864
65284
  var toFormData_default = toFormData;
65865
65285
 
65866
- // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
65286
+ // packages/kong-cli/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
65867
65287
  function encode(str) {
65868
65288
  const charMap = {
65869
65289
  "!": "%21",
@@ -65886,14 +65306,16 @@ prototype.append = function append(name, value) {
65886
65306
  this._pairs.push([name, value]);
65887
65307
  };
65888
65308
  prototype.toString = function toString2(encoder) {
65889
- const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
65309
+ const _encode = encoder ? function(value) {
65310
+ return encoder.call(this, value, encode);
65311
+ } : encode;
65890
65312
  return this._pairs.map(function each(pair) {
65891
65313
  return _encode(pair[0]) + "=" + _encode(pair[1]);
65892
65314
  }, "").join("&");
65893
65315
  };
65894
65316
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
65895
65317
 
65896
- // node_modules/axios/lib/helpers/buildURL.js
65318
+ // packages/kong-cli/node_modules/axios/lib/helpers/buildURL.js
65897
65319
  function encode2(val) {
65898
65320
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
65899
65321
  }
@@ -65901,12 +65323,11 @@ function buildURL(url2, params, options) {
65901
65323
  if (!params) {
65902
65324
  return url2;
65903
65325
  }
65904
- url2 = url2 || "";
65326
+ const _encode = options && options.encode || encode2;
65905
65327
  const _options = utils_default2.isFunction(options) ? {
65906
65328
  serialize: options
65907
65329
  } : options;
65908
- const _encode = utils_default2.getSafeProp(_options, "encode") || encode2;
65909
- const serializeFn = utils_default2.getSafeProp(_options, "serialize");
65330
+ const serializeFn = _options && _options.serialize;
65910
65331
  let serializedParams;
65911
65332
  if (serializeFn) {
65912
65333
  serializedParams = serializeFn(params, _options);
@@ -65923,7 +65344,7 @@ function buildURL(url2, params, options) {
65923
65344
  return url2;
65924
65345
  }
65925
65346
 
65926
- // node_modules/axios/lib/core/InterceptorManager.js
65347
+ // packages/kong-cli/node_modules/axios/lib/core/InterceptorManager.js
65927
65348
  var InterceptorManager = class {
65928
65349
  constructor() {
65929
65350
  this.handlers = [];
@@ -65988,24 +65409,22 @@ var InterceptorManager = class {
65988
65409
  };
65989
65410
  var InterceptorManager_default = InterceptorManager;
65990
65411
 
65991
- // node_modules/axios/lib/defaults/transitional.js
65412
+ // packages/kong-cli/node_modules/axios/lib/defaults/transitional.js
65992
65413
  var transitional_default = {
65993
65414
  silentJSONParsing: true,
65994
65415
  forcedJSONParsing: true,
65995
65416
  clarifyTimeoutError: false,
65996
- legacyInterceptorReqResOrdering: true,
65997
- advertiseZstdAcceptEncoding: false,
65998
- validateStatusUndefinedResolves: true
65417
+ legacyInterceptorReqResOrdering: true
65999
65418
  };
66000
65419
 
66001
- // node_modules/axios/lib/platform/node/index.js
65420
+ // packages/kong-cli/node_modules/axios/lib/platform/node/index.js
66002
65421
  var import_crypto = __toESM(require("crypto"), 1);
66003
65422
 
66004
- // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
65423
+ // packages/kong-cli/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
66005
65424
  var import_url2 = __toESM(require("url"), 1);
66006
65425
  var URLSearchParams_default = import_url2.default.URLSearchParams;
66007
65426
 
66008
- // node_modules/axios/lib/platform/node/index.js
65427
+ // packages/kong-cli/node_modules/axios/lib/platform/node/index.js
66009
65428
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
66010
65429
  var DIGIT = "0123456789";
66011
65430
  var ALPHABET = {
@@ -66035,7 +65454,7 @@ var node_default = {
66035
65454
  protocols: ["http", "https", "file", "data"]
66036
65455
  };
66037
65456
 
66038
- // node_modules/axios/lib/platform/common/utils.js
65457
+ // packages/kong-cli/node_modules/axios/lib/platform/common/utils.js
66039
65458
  var utils_exports = {};
66040
65459
  __export(utils_exports, {
66041
65460
  hasBrowserEnv: () => hasBrowserEnv,
@@ -66053,13 +65472,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
66053
65472
  })();
66054
65473
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
66055
65474
 
66056
- // node_modules/axios/lib/platform/index.js
65475
+ // packages/kong-cli/node_modules/axios/lib/platform/index.js
66057
65476
  var platform_default = {
66058
65477
  ...utils_exports,
66059
65478
  ...node_default
66060
65479
  };
66061
65480
 
66062
- // node_modules/axios/lib/helpers/toURLEncodedForm.js
65481
+ // packages/kong-cli/node_modules/axios/lib/helpers/toURLEncodedForm.js
66063
65482
  function toURLEncodedForm(data, options) {
66064
65483
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
66065
65484
  visitor: function(value, key, path10, helpers) {
@@ -66073,25 +65492,11 @@ function toURLEncodedForm(data, options) {
66073
65492
  });
66074
65493
  }
66075
65494
 
66076
- // node_modules/axios/lib/helpers/formDataToJSON.js
66077
- var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
66078
- function throwIfDepthExceeded(index) {
66079
- if (index > MAX_DEPTH) {
66080
- throw new AxiosError_default(
66081
- "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
66082
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
66083
- );
66084
- }
66085
- }
65495
+ // packages/kong-cli/node_modules/axios/lib/helpers/formDataToJSON.js
66086
65496
  function parsePropPath(name) {
66087
- const path10 = [];
66088
- const pattern = /\w+|\[(\w*)]/g;
66089
- let match2;
66090
- while ((match2 = pattern.exec(name)) !== null) {
66091
- throwIfDepthExceeded(path10.length);
66092
- path10.push(match2[0] === "[]" ? "" : match2[1] || match2[0]);
66093
- }
66094
- return path10;
65497
+ return utils_default2.matchAll(/\w+|\[(\w*)]/g, name).map((match2) => {
65498
+ return match2[0] === "[]" ? "" : match2[1] || match2[0];
65499
+ });
66095
65500
  }
66096
65501
  function arrayToObject(arr) {
66097
65502
  const obj = {};
@@ -66107,7 +65512,6 @@ function arrayToObject(arr) {
66107
65512
  }
66108
65513
  function formDataToJSON(formData) {
66109
65514
  function buildPath(path10, value, target, index) {
66110
- throwIfDepthExceeded(index);
66111
65515
  let name = path10[index++];
66112
65516
  if (name === "__proto__") return true;
66113
65517
  const isNumericKey = Number.isFinite(+name);
@@ -66121,7 +65525,7 @@ function formDataToJSON(formData) {
66121
65525
  }
66122
65526
  return !isNumericKey;
66123
65527
  }
66124
- if (!utils_default2.hasOwnProp(target, name) || !utils_default2.isObject(target[name])) {
65528
+ if (!target[name] || !utils_default2.isObject(target[name])) {
66125
65529
  target[name] = [];
66126
65530
  }
66127
65531
  const result = buildPath(path10, value, target[name], index);
@@ -66141,7 +65545,7 @@ function formDataToJSON(formData) {
66141
65545
  }
66142
65546
  var formDataToJSON_default = formDataToJSON;
66143
65547
 
66144
- // node_modules/axios/lib/defaults/index.js
65548
+ // packages/kong-cli/node_modules/axios/lib/defaults/index.js
66145
65549
  var own = (obj, key) => obj != null && utils_default2.hasOwnProp(obj, key) ? obj[key] : void 0;
66146
65550
  function stringifySafely(rawValue, parser, encoder) {
66147
65551
  if (utils_default2.isString(rawValue)) {
@@ -66258,7 +65662,7 @@ utils_default2.forEach(["delete", "get", "head", "post", "put", "patch", "query"
66258
65662
  });
66259
65663
  var defaults_default2 = defaults2;
66260
65664
 
66261
- // node_modules/axios/lib/core/transformData.js
65665
+ // packages/kong-cli/node_modules/axios/lib/core/transformData.js
66262
65666
  function transformData(fns, response) {
66263
65667
  const config = this || defaults_default2;
66264
65668
  const context = response || config;
@@ -66271,12 +65675,12 @@ function transformData(fns, response) {
66271
65675
  return data;
66272
65676
  }
66273
65677
 
66274
- // node_modules/axios/lib/cancel/isCancel.js
65678
+ // packages/kong-cli/node_modules/axios/lib/cancel/isCancel.js
66275
65679
  function isCancel(value) {
66276
65680
  return !!(value && value.__CANCEL__);
66277
65681
  }
66278
65682
 
66279
- // node_modules/axios/lib/cancel/CanceledError.js
65683
+ // packages/kong-cli/node_modules/axios/lib/cancel/CanceledError.js
66280
65684
  var CanceledError = class extends AxiosError_default {
66281
65685
  /**
66282
65686
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -66295,7 +65699,7 @@ var CanceledError = class extends AxiosError_default {
66295
65699
  };
66296
65700
  var CanceledError_default = CanceledError;
66297
65701
 
66298
- // node_modules/axios/lib/core/settle.js
65702
+ // packages/kong-cli/node_modules/axios/lib/core/settle.js
66299
65703
  function settle(resolve2, reject, response) {
66300
65704
  const validateStatus2 = response.config.validateStatus;
66301
65705
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -66311,7 +65715,7 @@ function settle(resolve2, reject, response) {
66311
65715
  }
66312
65716
  }
66313
65717
 
66314
- // node_modules/axios/lib/helpers/isAbsoluteURL.js
65718
+ // packages/kong-cli/node_modules/axios/lib/helpers/isAbsoluteURL.js
66315
65719
  function isAbsoluteURL(url2) {
66316
65720
  if (typeof url2 !== "string") {
66317
65721
  return false;
@@ -66319,38 +65723,15 @@ function isAbsoluteURL(url2) {
66319
65723
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
66320
65724
  }
66321
65725
 
66322
- // node_modules/axios/lib/helpers/combineURLs.js
65726
+ // packages/kong-cli/node_modules/axios/lib/helpers/combineURLs.js
66323
65727
  function combineURLs(baseURL, relativeURL) {
66324
65728
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
66325
65729
  }
66326
65730
 
66327
- // node_modules/axios/lib/core/buildFullPath.js
66328
- var malformedHttpProtocol = /^https?:(?!\/\/)/i;
66329
- var httpProtocolControlCharacters = /[\t\n\r]/g;
66330
- function stripLeadingC0ControlOrSpace(url2) {
66331
- let i = 0;
66332
- while (i < url2.length && url2.charCodeAt(i) <= 32) {
66333
- i++;
66334
- }
66335
- return url2.slice(i);
66336
- }
66337
- function normalizeURLForProtocolCheck(url2) {
66338
- return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
66339
- }
66340
- function assertValidHttpProtocolURL(url2, config) {
66341
- if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
66342
- throw new AxiosError_default(
66343
- 'Invalid URL: missing "//" after protocol',
66344
- AxiosError_default.ERR_INVALID_URL,
66345
- config
66346
- );
66347
- }
66348
- }
66349
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
66350
- assertValidHttpProtocolURL(requestedURL, config);
65731
+ // packages/kong-cli/node_modules/axios/lib/core/buildFullPath.js
65732
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
66351
65733
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
66352
65734
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
66353
- assertValidHttpProtocolURL(baseURL, config);
66354
65735
  return combineURLs(baseURL, requestedURL);
66355
65736
  }
66356
65737
  return requestedURL;
@@ -66423,27 +65804,26 @@ function getEnv(key) {
66423
65804
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
66424
65805
  }
66425
65806
 
66426
- // node_modules/axios/lib/adapters/http.js
66427
- var import_https_proxy_agent = __toESM(require_dist(), 1);
65807
+ // packages/kong-cli/node_modules/axios/lib/adapters/http.js
66428
65808
  var import_http = __toESM(require("http"), 1);
66429
65809
  var import_https = __toESM(require("https"), 1);
66430
- var import_http22 = __toESM(require("http2"), 1);
66431
- var import_util3 = __toESM(require("util"), 1);
65810
+ var import_http2 = __toESM(require("http2"), 1);
65811
+ var import_util2 = __toESM(require("util"), 1);
66432
65812
  var import_path = require("path");
66433
65813
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
66434
65814
  var import_zlib = __toESM(require("zlib"), 1);
66435
65815
 
66436
- // node_modules/axios/lib/env/data.js
66437
- var VERSION = "1.18.1";
65816
+ // packages/kong-cli/node_modules/axios/lib/env/data.js
65817
+ var VERSION = "1.16.0";
66438
65818
 
66439
- // node_modules/axios/lib/helpers/parseProtocol.js
65819
+ // packages/kong-cli/node_modules/axios/lib/helpers/parseProtocol.js
66440
65820
  function parseProtocol(url2) {
66441
65821
  const match2 = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
66442
65822
  return match2 && match2[1] || "";
66443
65823
  }
66444
65824
 
66445
- // node_modules/axios/lib/helpers/fromDataURI.js
66446
- var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
65825
+ // packages/kong-cli/node_modules/axios/lib/helpers/fromDataURI.js
65826
+ var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
66447
65827
  function fromDataURI(uri, asBlob, options) {
66448
65828
  const _Blob = options && options.Blob || platform_default.classes.Blob;
66449
65829
  const protocol = parseProtocol(uri);
@@ -66456,17 +65836,10 @@ function fromDataURI(uri, asBlob, options) {
66456
65836
  if (!match2) {
66457
65837
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
66458
65838
  }
66459
- const type = match2[1];
66460
- const params = match2[2];
66461
- const encoding = match2[3] ? "base64" : "utf8";
66462
- const body = match2[4];
66463
- let mime = "";
66464
- if (type) {
66465
- mime = params ? type + params : type;
66466
- } else if (params) {
66467
- mime = "text/plain" + params;
66468
- }
66469
- const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
65839
+ const mime = match2[1];
65840
+ const isBase64 = match2[2];
65841
+ const body = match2[3];
65842
+ const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
66470
65843
  if (asBlob) {
66471
65844
  if (!_Blob) {
66472
65845
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -66478,10 +65851,10 @@ function fromDataURI(uri, asBlob, options) {
66478
65851
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
66479
65852
  }
66480
65853
 
66481
- // node_modules/axios/lib/adapters/http.js
65854
+ // packages/kong-cli/node_modules/axios/lib/adapters/http.js
66482
65855
  var import_stream4 = __toESM(require("stream"), 1);
66483
65856
 
66484
- // node_modules/axios/lib/helpers/AxiosTransformStream.js
65857
+ // packages/kong-cli/node_modules/axios/lib/helpers/AxiosTransformStream.js
66485
65858
  var import_stream = __toESM(require("stream"), 1);
66486
65859
  var kInternals = Symbol("internals");
66487
65860
  var AxiosTransformStream = class extends import_stream.default.Transform {
@@ -66604,14 +65977,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
66604
65977
  };
66605
65978
  var AxiosTransformStream_default = AxiosTransformStream;
66606
65979
 
66607
- // node_modules/axios/lib/adapters/http.js
65980
+ // packages/kong-cli/node_modules/axios/lib/adapters/http.js
66608
65981
  var import_events = require("events");
66609
65982
 
66610
- // node_modules/axios/lib/helpers/formDataToStream.js
65983
+ // packages/kong-cli/node_modules/axios/lib/helpers/formDataToStream.js
66611
65984
  var import_util = __toESM(require("util"), 1);
66612
65985
  var import_stream2 = require("stream");
66613
65986
 
66614
- // node_modules/axios/lib/helpers/readBlob.js
65987
+ // packages/kong-cli/node_modules/axios/lib/helpers/readBlob.js
66615
65988
  var { asyncIterator } = Symbol;
66616
65989
  var readBlob = async function* (blob) {
66617
65990
  if (blob.stream) {
@@ -66626,7 +65999,7 @@ var readBlob = async function* (blob) {
66626
65999
  };
66627
66000
  var readBlob_default = readBlob;
66628
66001
 
66629
- // node_modules/axios/lib/helpers/formDataToStream.js
66002
+ // packages/kong-cli/node_modules/axios/lib/helpers/formDataToStream.js
66630
66003
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
66631
66004
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
66632
66005
  var CRLF = "\r\n";
@@ -66677,10 +66050,10 @@ var formDataToStream = (form, headersHandler, options) => {
66677
66050
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
66678
66051
  } = options || {};
66679
66052
  if (!utils_default2.isFormData(form)) {
66680
- throw new TypeError("FormData instance required");
66053
+ throw TypeError("FormData instance required");
66681
66054
  }
66682
66055
  if (boundary.length < 1 || boundary.length > 70) {
66683
- throw new Error("boundary must be 1-70 characters long");
66056
+ throw Error("boundary must be 1-70 characters long");
66684
66057
  }
66685
66058
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
66686
66059
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -66711,7 +66084,7 @@ var formDataToStream = (form, headersHandler, options) => {
66711
66084
  };
66712
66085
  var formDataToStream_default = formDataToStream;
66713
66086
 
66714
- // node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
66087
+ // packages/kong-cli/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
66715
66088
  var import_stream3 = __toESM(require("stream"), 1);
66716
66089
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
66717
66090
  __transform(chunk, encoding, callback) {
@@ -66733,88 +66106,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
66733
66106
  };
66734
66107
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
66735
66108
 
66736
- // node_modules/axios/lib/helpers/Http2Sessions.js
66737
- var import_http2 = __toESM(require("http2"), 1);
66738
- var import_util2 = __toESM(require("util"), 1);
66739
- var Http2Sessions = class {
66740
- constructor() {
66741
- this.sessions = /* @__PURE__ */ Object.create(null);
66742
- }
66743
- getSession(authority, options) {
66744
- options = Object.assign(
66745
- {
66746
- sessionTimeout: 1e3
66747
- },
66748
- options
66749
- );
66750
- let authoritySessions = this.sessions[authority];
66751
- if (authoritySessions) {
66752
- let len = authoritySessions.length;
66753
- for (let i = 0; i < len; i++) {
66754
- const [sessionHandle, sessionOptions] = authoritySessions[i];
66755
- if (!sessionHandle.destroyed && !sessionHandle.closed && import_util2.default.isDeepStrictEqual(sessionOptions, options)) {
66756
- return sessionHandle;
66757
- }
66758
- }
66759
- }
66760
- const session = import_http2.default.connect(authority, options);
66761
- let removed;
66762
- let timer;
66763
- const removeSession = () => {
66764
- if (removed) {
66765
- return;
66766
- }
66767
- removed = true;
66768
- if (timer) {
66769
- clearTimeout(timer);
66770
- timer = null;
66771
- }
66772
- let entries = authoritySessions, len = entries.length, i = len;
66773
- while (i--) {
66774
- if (entries[i][0] === session) {
66775
- if (len === 1) {
66776
- delete this.sessions[authority];
66777
- } else {
66778
- entries.splice(i, 1);
66779
- }
66780
- if (!session.closed) {
66781
- session.close();
66782
- }
66783
- return;
66784
- }
66785
- }
66786
- };
66787
- const originalRequestFn = session.request;
66788
- const { sessionTimeout } = options;
66789
- if (sessionTimeout != null) {
66790
- let streamsCount = 0;
66791
- session.request = function() {
66792
- const stream4 = originalRequestFn.apply(this, arguments);
66793
- streamsCount++;
66794
- if (timer) {
66795
- clearTimeout(timer);
66796
- timer = null;
66797
- }
66798
- stream4.once("close", () => {
66799
- if (!--streamsCount) {
66800
- timer = setTimeout(() => {
66801
- timer = null;
66802
- removeSession();
66803
- }, sessionTimeout);
66804
- }
66805
- });
66806
- return stream4;
66807
- };
66808
- }
66809
- session.once("close", removeSession);
66810
- let entry = [session, options];
66811
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
66812
- return session;
66813
- }
66814
- };
66815
- var Http2Sessions_default = Http2Sessions;
66816
-
66817
- // node_modules/axios/lib/helpers/callbackify.js
66109
+ // packages/kong-cli/node_modules/axios/lib/helpers/callbackify.js
66818
66110
  var callbackify = (fn, reducer) => {
66819
66111
  return utils_default2.isAsyncFn(fn) ? function(...args) {
66820
66112
  const cb = args.pop();
@@ -66829,30 +66121,14 @@ var callbackify = (fn, reducer) => {
66829
66121
  };
66830
66122
  var callbackify_default = callbackify;
66831
66123
 
66832
- // node_modules/axios/lib/helpers/shouldBypassProxy.js
66833
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
66124
+ // packages/kong-cli/node_modules/axios/lib/helpers/shouldBypassProxy.js
66125
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
66834
66126
  var isIPv4Loopback = (host) => {
66835
66127
  const parts = host.split(".");
66836
66128
  if (parts.length !== 4) return false;
66837
66129
  if (parts[0] !== "127") return false;
66838
66130
  return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
66839
66131
  };
66840
- var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
66841
- var isIPv6Unspecified = (host) => {
66842
- if (host === "::") return true;
66843
- const compressionIndex = host.indexOf("::");
66844
- if (compressionIndex !== -1) {
66845
- if (compressionIndex !== host.lastIndexOf("::")) return false;
66846
- const left = host.slice(0, compressionIndex);
66847
- const right = host.slice(compressionIndex + 2);
66848
- const leftGroups = left ? left.split(":") : [];
66849
- const rightGroups = right ? right.split(":") : [];
66850
- const explicitGroups = leftGroups.length + rightGroups.length;
66851
- return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
66852
- }
66853
- const groups = host.split(":");
66854
- return groups.length === 8 && groups.every(isIPv6ZeroGroup);
66855
- };
66856
66132
  var isIPv6Loopback = (host) => {
66857
66133
  if (host === "::1") return true;
66858
66134
  const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
@@ -66875,7 +66151,6 @@ var isLoopback = (host) => {
66875
66151
  if (!host) return false;
66876
66152
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
66877
66153
  if (isIPv4Loopback(host)) return true;
66878
- if (isIPv6Unspecified(host)) return true;
66879
66154
  return isIPv6Loopback(host);
66880
66155
  };
66881
66156
  var DEFAULT_PORTS2 = {
@@ -66968,7 +66243,7 @@ function shouldBypassProxy(location2) {
66968
66243
  });
66969
66244
  }
66970
66245
 
66971
- // node_modules/axios/lib/helpers/speedometer.js
66246
+ // packages/kong-cli/node_modules/axios/lib/helpers/speedometer.js
66972
66247
  function speedometer(samplesCount, min) {
66973
66248
  samplesCount = samplesCount || 10;
66974
66249
  const bytes = new Array(samplesCount);
@@ -67004,7 +66279,7 @@ function speedometer(samplesCount, min) {
67004
66279
  }
67005
66280
  var speedometer_default = speedometer;
67006
66281
 
67007
- // node_modules/axios/lib/helpers/throttle.js
66282
+ // packages/kong-cli/node_modules/axios/lib/helpers/throttle.js
67008
66283
  function throttle(fn, freq) {
67009
66284
  let timestamp = 0;
67010
66285
  let threshold = 1e3 / freq;
@@ -67039,14 +66314,11 @@ function throttle(fn, freq) {
67039
66314
  }
67040
66315
  var throttle_default = throttle;
67041
66316
 
67042
- // node_modules/axios/lib/helpers/progressEventReducer.js
66317
+ // packages/kong-cli/node_modules/axios/lib/helpers/progressEventReducer.js
67043
66318
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
67044
66319
  let bytesNotified = 0;
67045
66320
  const _speedometer = speedometer_default(50, 250);
67046
66321
  return throttle_default((e) => {
67047
- if (!e || typeof e.loaded !== "number") {
67048
- return;
67049
- }
67050
66322
  const rawLoaded = e.loaded;
67051
66323
  const total = e.lengthComputable ? e.total : void 0;
67052
66324
  const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
@@ -67080,9 +66352,7 @@ var progressEventDecorator = (total, throttled) => {
67080
66352
  };
67081
66353
  var asyncDecorator = (fn) => (...args) => utils_default2.asap(() => fn(...args));
67082
66354
 
67083
- // node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
67084
- var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
67085
- var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
66355
+ // packages/kong-cli/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
67086
66356
  function estimateDataURLDecodedBytes(url2) {
67087
66357
  if (!url2 || typeof url2 !== "string") return 0;
67088
66358
  if (!url2.startsWith("data:")) return 0;
@@ -67098,7 +66368,7 @@ function estimateDataURLDecodedBytes(url2) {
67098
66368
  if (body.charCodeAt(i) === 37 && i + 2 < len) {
67099
66369
  const a = body.charCodeAt(i + 1);
67100
66370
  const b = body.charCodeAt(i + 2);
67101
- const isHex = isHexDigit(a) && isHexDigit(b);
66371
+ const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
67102
66372
  if (isHex) {
67103
66373
  effectiveLen -= 2;
67104
66374
  i += 2;
@@ -67130,13 +66400,13 @@ function estimateDataURLDecodedBytes(url2) {
67130
66400
  const bytes2 = groups * 3 - (pad || 0);
67131
66401
  return bytes2 > 0 ? bytes2 : 0;
67132
66402
  }
66403
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
66404
+ return Buffer.byteLength(body, "utf8");
66405
+ }
67133
66406
  let bytes = 0;
67134
66407
  for (let i = 0, len = body.length; i < len; i++) {
67135
66408
  const c = body.charCodeAt(i);
67136
- if (c === 37 && isPercentEncodedByte(body, i, len)) {
67137
- bytes += 1;
67138
- i += 2;
67139
- } else if (c < 128) {
66409
+ if (c < 128) {
67140
66410
  bytes += 1;
67141
66411
  } else if (c < 2048) {
67142
66412
  bytes += 2;
@@ -67155,7 +66425,7 @@ function estimateDataURLDecodedBytes(url2) {
67155
66425
  return bytes;
67156
66426
  }
67157
66427
 
67158
- // node_modules/axios/lib/adapters/http.js
66428
+ // packages/kong-cli/node_modules/axios/lib/adapters/http.js
67159
66429
  var zlibOptions = {
67160
66430
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
67161
66431
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -67164,14 +66434,7 @@ var brotliOptions = {
67164
66434
  flush: import_zlib.default.constants.BROTLI_OPERATION_FLUSH,
67165
66435
  finishFlush: import_zlib.default.constants.BROTLI_OPERATION_FLUSH
67166
66436
  };
67167
- var zstdOptions = {
67168
- flush: import_zlib.default.constants.ZSTD_e_flush,
67169
- finishFlush: import_zlib.default.constants.ZSTD_e_flush
67170
- };
67171
66437
  var isBrotliSupported = utils_default2.isFunction(import_zlib.default.createBrotliDecompress);
67172
- var isZstdSupported = utils_default2.isFunction(import_zlib.default.createZstdDecompress);
67173
- var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
67174
- var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
67175
66438
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
67176
66439
  var isHttps = /https:?/;
67177
66440
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
@@ -67188,56 +66451,6 @@ function setFormDataHeaders(headers, formHeaders, policy) {
67188
66451
  }
67189
66452
  var kAxiosSocketListener = Symbol("axios.http.socketListener");
67190
66453
  var kAxiosCurrentReq = Symbol("axios.http.currentReq");
67191
- var kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
67192
- var tunnelingAgentCache = /* @__PURE__ */ new Map();
67193
- var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
67194
- var NODE_NATIVE_ENV_PROXY_SUPPORT = {
67195
- 22: 21,
67196
- 24: 5
67197
- };
67198
- function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
67199
- if (!nodeVersion) {
67200
- return false;
67201
- }
67202
- const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
67203
- if (!Number.isInteger(major) || !Number.isInteger(minor)) {
67204
- return false;
67205
- }
67206
- if (major > 24) {
67207
- return true;
67208
- }
67209
- return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
67210
- }
67211
- function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
67212
- if (!isNodeNativeEnvProxySupported(nodeVersion)) {
67213
- return false;
67214
- }
67215
- const agentOptions = agent && agent.options;
67216
- return Boolean(
67217
- agentOptions && utils_default2.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
67218
- );
67219
- }
67220
- function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
67221
- return isHttps.test(options.protocol) ? configHttpsAgent || import_https.default.globalAgent : configHttpAgent || import_http.default.globalAgent;
67222
- }
67223
- function getTunnelingAgent(agentOptions, userHttpsAgent) {
67224
- const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
67225
- const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
67226
- let agent = cache.get(key);
67227
- if (agent) return agent;
67228
- const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
67229
- agent = new import_https_proxy_agent.default(merged);
67230
- if (userHttpsAgent && userHttpsAgent.options) {
67231
- const originTLSOptions = { ...userHttpsAgent.options };
67232
- const callback = agent.callback;
67233
- agent.callback = function axiosTunnelingAgentCallback(req, opts) {
67234
- return callback.call(this, req, { ...originTLSOptions, ...opts });
67235
- };
67236
- }
67237
- agent[kAxiosInstalledTunnel] = true;
67238
- cache.set(key, agent);
67239
- return agent;
67240
- }
67241
66454
  var supportedProtocols = platform_default.protocols.map((protocol) => {
67242
66455
  return protocol + ":";
67243
66456
  });
@@ -67255,45 +66468,90 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
67255
66468
  stream4.on("end", flush).on("error", flush);
67256
66469
  return throttled;
67257
66470
  };
67258
- var http2Sessions = new Http2Sessions_default();
66471
+ var Http2Sessions = class {
66472
+ constructor() {
66473
+ this.sessions = /* @__PURE__ */ Object.create(null);
66474
+ }
66475
+ getSession(authority, options) {
66476
+ options = Object.assign(
66477
+ {
66478
+ sessionTimeout: 1e3
66479
+ },
66480
+ options
66481
+ );
66482
+ let authoritySessions = this.sessions[authority];
66483
+ if (authoritySessions) {
66484
+ let len = authoritySessions.length;
66485
+ for (let i = 0; i < len; i++) {
66486
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
66487
+ if (!sessionHandle.destroyed && !sessionHandle.closed && import_util2.default.isDeepStrictEqual(sessionOptions, options)) {
66488
+ return sessionHandle;
66489
+ }
66490
+ }
66491
+ }
66492
+ const session = import_http2.default.connect(authority, options);
66493
+ let removed;
66494
+ const removeSession = () => {
66495
+ if (removed) {
66496
+ return;
66497
+ }
66498
+ removed = true;
66499
+ let entries = authoritySessions, len = entries.length, i = len;
66500
+ while (i--) {
66501
+ if (entries[i][0] === session) {
66502
+ if (len === 1) {
66503
+ delete this.sessions[authority];
66504
+ } else {
66505
+ entries.splice(i, 1);
66506
+ }
66507
+ if (!session.closed) {
66508
+ session.close();
66509
+ }
66510
+ return;
66511
+ }
66512
+ }
66513
+ };
66514
+ const originalRequestFn = session.request;
66515
+ const { sessionTimeout } = options;
66516
+ if (sessionTimeout != null) {
66517
+ let timer;
66518
+ let streamsCount = 0;
66519
+ session.request = function() {
66520
+ const stream4 = originalRequestFn.apply(this, arguments);
66521
+ streamsCount++;
66522
+ if (timer) {
66523
+ clearTimeout(timer);
66524
+ timer = null;
66525
+ }
66526
+ stream4.once("close", () => {
66527
+ if (!--streamsCount) {
66528
+ timer = setTimeout(() => {
66529
+ timer = null;
66530
+ removeSession();
66531
+ }, sessionTimeout);
66532
+ }
66533
+ });
66534
+ return stream4;
66535
+ };
66536
+ }
66537
+ session.once("close", removeSession);
66538
+ let entry = [session, options];
66539
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
66540
+ return session;
66541
+ }
66542
+ };
66543
+ var http2Sessions = new Http2Sessions();
67259
66544
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
67260
66545
  if (options.beforeRedirects.proxy) {
67261
66546
  options.beforeRedirects.proxy(options);
67262
66547
  }
67263
- if (options.beforeRedirects.auth) {
67264
- options.beforeRedirects.auth(options);
67265
- }
67266
- if (options.beforeRedirects.sensitiveHeaders) {
67267
- options.beforeRedirects.sensitiveHeaders(options, requestDetails);
67268
- }
67269
66548
  if (options.beforeRedirects.config) {
67270
66549
  options.beforeRedirects.config(options, responseDetails, requestDetails);
67271
66550
  }
67272
66551
  }
67273
- function stripMatchingHeaders(headers, sensitiveSet) {
67274
- if (!headers) {
67275
- return;
67276
- }
67277
- Object.keys(headers).forEach((header) => {
67278
- if (sensitiveSet.has(header.toLowerCase())) {
67279
- delete headers[header];
67280
- }
67281
- });
67282
- }
67283
- function isSameOriginRedirect(redirectOptions, requestDetails) {
67284
- if (!requestDetails) {
67285
- return false;
67286
- }
67287
- try {
67288
- return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
67289
- } catch (e) {
67290
- return false;
67291
- }
67292
- }
67293
- function setProxy(options, configProxy, location2, isRedirect, configHttpsAgent, configHttpAgent) {
66552
+ function setProxy(options, configProxy, location2, isRedirect) {
67294
66553
  let proxy2 = configProxy;
67295
- const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
67296
- if (!proxy2 && proxy2 !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
66554
+ if (!proxy2 && proxy2 !== false) {
67297
66555
  const proxyUrl = getProxyForUrl(location2);
67298
66556
  if (proxyUrl) {
67299
66557
  if (!shouldBypassProxy(location2)) {
@@ -67308,9 +66566,6 @@ function setProxy(options, configProxy, location2, isRedirect, configHttpsAgent,
67308
66566
  }
67309
66567
  }
67310
66568
  }
67311
- if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
67312
- options.agent = void 0;
67313
- }
67314
66569
  if (proxy2) {
67315
66570
  const isProxyURL = proxy2 instanceof URL;
67316
66571
  const readProxyField = (key) => isProxyURL || utils_default2.hasOwnProp(proxy2, key) ? proxy2[key] : void 0;
@@ -67330,68 +66585,31 @@ function setProxy(options, configProxy, location2, isRedirect, configHttpsAgent,
67330
66585
  } else if (authIsObject) {
67331
66586
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy: proxy2 });
67332
66587
  }
66588
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
66589
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
67333
66590
  }
67334
- const targetIsHttps = isHttps.test(options.protocol);
67335
- if (targetIsHttps) {
67336
- if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
67337
- const proxyHost = readProxyField("hostname") || readProxyField("host");
67338
- const proxyPort = readProxyField("port");
67339
- const rawProxyProtocol = readProxyField("protocol");
67340
- const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
67341
- const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
67342
- const proxyURL = new URL(
67343
- `${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
67344
- );
67345
- const agentOptions = {
67346
- protocol: proxyURL.protocol,
67347
- hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
67348
- port: proxyURL.port,
67349
- auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
67350
- };
67351
- if (proxyURL.protocol === "https:") {
67352
- agentOptions.ALPNProtocols = ["http/1.1"];
67353
- }
67354
- const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
67355
- options.agent = tunnelingAgent;
67356
- if (options.agents) {
67357
- options.agents.https = tunnelingAgent;
67358
- }
67359
- }
67360
- } else {
67361
- if (proxyAuth) {
67362
- const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
67363
- options.headers["Proxy-Authorization"] = "Basic " + base64;
67364
- }
67365
- let hasUserHostHeader = false;
67366
- for (const name of Object.keys(options.headers)) {
67367
- if (name.toLowerCase() === "host") {
67368
- hasUserHostHeader = true;
67369
- break;
67370
- }
67371
- }
67372
- if (!hasUserHostHeader) {
67373
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
67374
- }
67375
- const proxyHost = readProxyField("hostname") || readProxyField("host");
67376
- options.hostname = proxyHost;
67377
- options.host = proxyHost;
67378
- options.port = readProxyField("port");
67379
- options.path = location2;
67380
- const proxyProtocol = readProxyField("protocol");
67381
- if (proxyProtocol) {
67382
- options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
66591
+ let hasUserHostHeader = false;
66592
+ for (const name of Object.keys(options.headers)) {
66593
+ if (name.toLowerCase() === "host") {
66594
+ hasUserHostHeader = true;
66595
+ break;
67383
66596
  }
67384
66597
  }
66598
+ if (!hasUserHostHeader) {
66599
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
66600
+ }
66601
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
66602
+ options.hostname = proxyHost;
66603
+ options.host = proxyHost;
66604
+ options.port = readProxyField("port");
66605
+ options.path = location2;
66606
+ const proxyProtocol = readProxyField("protocol");
66607
+ if (proxyProtocol) {
66608
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
66609
+ }
67385
66610
  }
67386
66611
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
67387
- setProxy(
67388
- redirectOptions,
67389
- configProxy,
67390
- redirectOptions.href,
67391
- true,
67392
- configHttpsAgent,
67393
- configHttpAgent
67394
- );
66612
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true);
67395
66613
  };
67396
66614
  }
67397
66615
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default2.kindOf(process) === "process";
@@ -67430,7 +66648,7 @@ var http2Transport = {
67430
66648
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
67431
66649
  const { http2Options, headers } = options;
67432
66650
  const session = http2Sessions.getSession(authority, http2Options);
67433
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http22.default.constants;
66651
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
67434
66652
  const http2Headers = {
67435
66653
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
67436
66654
  [HTTP2_HEADER_METHOD]: options.method,
@@ -67454,25 +66672,16 @@ var http2Transport = {
67454
66672
  };
67455
66673
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67456
66674
  return wrapAsync(async function dispatchHttpRequest(resolve2, reject, onDone) {
67457
- const own2 = (key) => utils_default2.getSafeProp(config, key);
67458
- const transitional2 = own2("transitional") || transitional_default;
66675
+ const own2 = (key) => utils_default2.hasOwnProp(config, key) ? config[key] : void 0;
67459
66676
  let data = own2("data");
67460
66677
  let lookup = own2("lookup");
67461
66678
  let family = own2("family");
67462
66679
  let httpVersion = own2("httpVersion");
67463
66680
  if (httpVersion === void 0) httpVersion = 1;
67464
66681
  let http2Options = own2("http2Options");
67465
- const httpAgent = own2("httpAgent");
67466
- const httpsAgent = own2("httpsAgent");
67467
- const configProxy = own2("proxy");
67468
66682
  const responseType = own2("responseType");
67469
66683
  const responseEncoding = own2("responseEncoding");
67470
- const socketPath = own2("socketPath");
67471
- const method = own2("method").toUpperCase();
67472
- const maxRedirects = own2("maxRedirects");
67473
- const maxBodyLength = own2("maxBodyLength");
67474
- const maxContentLength = own2("maxContentLength");
67475
- const decompress = own2("decompress");
66684
+ const method = config.method.toUpperCase();
67476
66685
  let isDone;
67477
66686
  let rejected = false;
67478
66687
  let req;
@@ -67505,6 +66714,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67505
66714
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
67506
66715
  );
67507
66716
  } catch (err) {
66717
+ console.warn("emit error", err);
67508
66718
  }
67509
66719
  }
67510
66720
  function clearConnectPhaseTimer() {
@@ -67514,11 +66724,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67514
66724
  }
67515
66725
  }
67516
66726
  function createTimeoutError() {
67517
- const configTimeout = own2("timeout");
67518
- let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
67519
- const configTimeoutErrorMessage = own2("timeoutErrorMessage");
67520
- if (configTimeoutErrorMessage) {
67521
- timeoutErrorMessage = configTimeoutErrorMessage;
66727
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
66728
+ const transitional2 = config.transitional || transitional_default;
66729
+ if (config.timeoutErrorMessage) {
66730
+ timeoutErrorMessage = config.timeoutErrorMessage;
67522
66731
  }
67523
66732
  return new AxiosError_default(
67524
66733
  timeoutErrorMessage,
@@ -67562,18 +66771,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67562
66771
  onFinished();
67563
66772
  }
67564
66773
  });
67565
- const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
67566
- const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
67567
- const parsed = new URL(fullPath, urlBase);
66774
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
66775
+ const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
67568
66776
  const protocol = parsed.protocol || supportedProtocols[0];
67569
66777
  if (protocol === "data:") {
67570
- if (maxContentLength > -1) {
67571
- const dataUrl = String(own2("url") || fullPath || "");
66778
+ if (config.maxContentLength > -1) {
66779
+ const dataUrl = String(config.url || fullPath || "");
67572
66780
  const estimated = estimateDataURLDecodedBytes(dataUrl);
67573
- if (estimated > maxContentLength) {
66781
+ if (estimated > config.maxContentLength) {
67574
66782
  return reject(
67575
66783
  new AxiosError_default(
67576
- "maxContentLength size of " + maxContentLength + " exceeded",
66784
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
67577
66785
  AxiosError_default.ERR_BAD_RESPONSE,
67578
66786
  config
67579
66787
  )
@@ -67590,7 +66798,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67590
66798
  });
67591
66799
  }
67592
66800
  try {
67593
- convertedData = fromDataURI(own2("url"), responseType === "blob", {
66801
+ convertedData = fromDataURI(config.url, responseType === "blob", {
67594
66802
  Blob: config.env && config.env.Blob
67595
66803
  });
67596
66804
  } catch (err) {
@@ -67639,7 +66847,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67639
66847
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
67640
66848
  if (!headers.hasContentLength()) {
67641
66849
  try {
67642
- const knownLength = await import_util3.default.promisify(data.getLength).call(data);
66850
+ const knownLength = await import_util2.default.promisify(data.getLength).call(data);
67643
66851
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
67644
66852
  } catch (e) {
67645
66853
  }
@@ -67664,7 +66872,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67664
66872
  );
67665
66873
  }
67666
66874
  headers.setContentLength(data.length, false);
67667
- if (maxBodyLength > -1 && data.length > maxBodyLength) {
66875
+ if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
67668
66876
  return reject(
67669
66877
  new AxiosError_default(
67670
66878
  "Request body larger than maxBodyLength limit",
@@ -67708,11 +66916,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67708
66916
  let auth = void 0;
67709
66917
  const configAuth = own2("auth");
67710
66918
  if (configAuth) {
67711
- const username = utils_default2.getSafeProp(configAuth, "username") || "";
67712
- const password = utils_default2.getSafeProp(configAuth, "password") || "";
66919
+ const username = configAuth.username || "";
66920
+ const password = configAuth.password || "";
67713
66921
  auth = username + ":" + password;
67714
66922
  }
67715
- if (!auth && (parsed.username || parsed.password)) {
66923
+ if (!auth && parsed.username) {
67716
66924
  const urlUsername = decodeURIComponentSafe(parsed.username);
67717
66925
  const urlPassword = decodeURIComponentSafe(parsed.password);
67718
66926
  auth = urlUsername + ":" + urlPassword;
@@ -67722,27 +66930,26 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67722
66930
  try {
67723
66931
  path10 = buildURL(
67724
66932
  parsed.pathname + parsed.search,
67725
- own2("params"),
67726
- own2("paramsSerializer")
66933
+ config.params,
66934
+ config.paramsSerializer
67727
66935
  ).replace(/^\?/, "");
67728
66936
  } catch (err) {
67729
- return reject(
67730
- AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
67731
- url: own2("url"),
67732
- exists: true
67733
- })
67734
- );
66937
+ const customErr = new Error(err.message);
66938
+ customErr.config = config;
66939
+ customErr.url = config.url;
66940
+ customErr.exists = true;
66941
+ return reject(customErr);
67735
66942
  }
67736
66943
  headers.set(
67737
66944
  "Accept-Encoding",
67738
- utils_default2.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
66945
+ "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
67739
66946
  false
67740
66947
  );
67741
66948
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
67742
66949
  path: path10,
67743
66950
  method,
67744
- headers: toByteStringHeaderObject(headers),
67745
- agents: { http: httpAgent, https: httpsAgent },
66951
+ headers: headers.toJSON(),
66952
+ agents: { http: config.httpAgent, https: config.httpsAgent },
67746
66953
  auth,
67747
66954
  protocol,
67748
66955
  family,
@@ -67751,118 +66958,64 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67751
66958
  http2Options
67752
66959
  });
67753
66960
  !utils_default2.isUndefined(lookup) && (options.lookup = lookup);
67754
- if (socketPath) {
67755
- if (typeof socketPath !== "string") {
66961
+ if (config.socketPath) {
66962
+ if (typeof config.socketPath !== "string") {
67756
66963
  return reject(
67757
66964
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
67758
66965
  );
67759
66966
  }
67760
- const allowedSocketPaths = own2("allowedSocketPaths");
67761
- if (allowedSocketPaths != null) {
67762
- const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
67763
- const resolvedSocket = (0, import_path.resolve)(socketPath);
66967
+ if (config.allowedSocketPaths != null) {
66968
+ const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
66969
+ const resolvedSocket = (0, import_path.resolve)(config.socketPath);
67764
66970
  const isAllowed = allowed.some(
67765
66971
  (entry) => typeof entry === "string" && (0, import_path.resolve)(entry) === resolvedSocket
67766
66972
  );
67767
66973
  if (!isAllowed) {
67768
66974
  return reject(
67769
66975
  new AxiosError_default(
67770
- `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
66976
+ `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
67771
66977
  AxiosError_default.ERR_BAD_OPTION_VALUE,
67772
66978
  config
67773
66979
  )
67774
66980
  );
67775
66981
  }
67776
66982
  }
67777
- options.socketPath = socketPath;
66983
+ options.socketPath = config.socketPath;
67778
66984
  } else {
67779
66985
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
67780
66986
  options.port = parsed.port;
67781
66987
  setProxy(
67782
66988
  options,
67783
- configProxy,
67784
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
67785
- false,
67786
- httpsAgent,
67787
- httpAgent
66989
+ config.proxy,
66990
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
67788
66991
  );
67789
66992
  }
67790
66993
  let transport;
67791
66994
  let isNativeTransport = false;
67792
- let transportEnforcesMaxBodyLength = false;
67793
66995
  const isHttpsRequest = isHttps.test(options.protocol);
67794
- if (options.agent == null) {
67795
- options.agent = isHttpsRequest ? httpsAgent : httpAgent;
67796
- }
66996
+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
67797
66997
  if (isHttp2) {
67798
66998
  transport = http2Transport;
67799
66999
  } else {
67800
67000
  const configTransport = own2("transport");
67801
67001
  if (configTransport) {
67802
67002
  transport = configTransport;
67803
- } else if (maxRedirects === 0) {
67003
+ } else if (config.maxRedirects === 0) {
67804
67004
  transport = isHttpsRequest ? import_https.default : import_http.default;
67805
67005
  isNativeTransport = true;
67806
67006
  } else {
67807
- transportEnforcesMaxBodyLength = true;
67808
- options.sensitiveHeaders = [];
67809
- if (maxRedirects) {
67810
- options.maxRedirects = maxRedirects;
67007
+ if (config.maxRedirects) {
67008
+ options.maxRedirects = config.maxRedirects;
67811
67009
  }
67812
67010
  const configBeforeRedirect = own2("beforeRedirect");
67813
67011
  if (configBeforeRedirect) {
67814
67012
  options.beforeRedirects.config = configBeforeRedirect;
67815
67013
  }
67816
- if (auth) {
67817
- const requestOrigin = parsed.origin;
67818
- const authToRestore = auth;
67819
- options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
67820
- try {
67821
- if (new URL(redirectOptions.href).origin === requestOrigin) {
67822
- redirectOptions.auth = authToRestore;
67823
- }
67824
- } catch (e) {
67825
- }
67826
- };
67827
- }
67828
- const sensitiveHeaders = own2("sensitiveHeaders");
67829
- if (sensitiveHeaders != null) {
67830
- if (!utils_default2.isArray(sensitiveHeaders)) {
67831
- return reject(
67832
- new AxiosError_default(
67833
- "sensitiveHeaders must be an array of strings",
67834
- AxiosError_default.ERR_BAD_OPTION_VALUE,
67835
- config
67836
- )
67837
- );
67838
- }
67839
- const sensitiveSet = /* @__PURE__ */ new Set();
67840
- for (const header of sensitiveHeaders) {
67841
- if (!utils_default2.isString(header)) {
67842
- return reject(
67843
- new AxiosError_default(
67844
- "sensitiveHeaders must be an array of strings",
67845
- AxiosError_default.ERR_BAD_OPTION_VALUE,
67846
- config
67847
- )
67848
- );
67849
- }
67850
- sensitiveSet.add(header.toLowerCase());
67851
- }
67852
- if (sensitiveSet.size) {
67853
- options.sensitiveHeaders = Array.from(sensitiveSet);
67854
- options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
67855
- if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
67856
- stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
67857
- }
67858
- };
67859
- }
67860
- }
67861
67014
  transport = isHttpsRequest ? httpsFollow : httpFollow;
67862
67015
  }
67863
67016
  }
67864
- if (maxBodyLength > -1) {
67865
- options.maxBodyLength = maxBodyLength;
67017
+ if (config.maxBodyLength > -1) {
67018
+ options.maxBodyLength = config.maxBodyLength;
67866
67019
  } else {
67867
67020
  options.maxBodyLength = Infinity;
67868
67021
  }
@@ -67890,7 +67043,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67890
67043
  }
67891
67044
  let responseStream = res;
67892
67045
  const lastRequest = res.req || req;
67893
- if (decompress !== false && res.headers["content-encoding"]) {
67046
+ if (config.decompress !== false && res.headers["content-encoding"]) {
67894
67047
  if (method === "HEAD" || res.statusCode === 204) {
67895
67048
  delete res.headers["content-encoding"];
67896
67049
  }
@@ -67913,13 +67066,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67913
67066
  streams.push(import_zlib.default.createBrotliDecompress(brotliOptions));
67914
67067
  delete res.headers["content-encoding"];
67915
67068
  }
67916
- break;
67917
- case "zstd":
67918
- if (isZstdSupported) {
67919
- streams.push(import_zlib.default.createZstdDecompress(zstdOptions));
67920
- delete res.headers["content-encoding"];
67921
- }
67922
- break;
67923
67069
  }
67924
67070
  }
67925
67071
  responseStream = streams.length > 1 ? import_stream4.default.pipeline(streams, utils_default2.noop) : streams[0];
@@ -67931,8 +67077,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67931
67077
  request: lastRequest
67932
67078
  };
67933
67079
  if (responseType === "stream") {
67934
- if (maxContentLength > -1) {
67935
- const limit = maxContentLength;
67080
+ if (config.maxContentLength > -1) {
67081
+ const limit = config.maxContentLength;
67936
67082
  const source = responseStream;
67937
67083
  async function* enforceMaxContentLength() {
67938
67084
  let totalResponseBytes = 0;
@@ -67961,12 +67107,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
67961
67107
  responseStream.on("data", function handleStreamData(chunk) {
67962
67108
  responseBuffer.push(chunk);
67963
67109
  totalResponseBytes += chunk.length;
67964
- if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
67110
+ if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
67965
67111
  rejected = true;
67966
67112
  responseStream.destroy();
67967
67113
  abort(
67968
67114
  new AxiosError_default(
67969
- "maxContentLength size of " + maxContentLength + " exceeded",
67115
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
67970
67116
  AxiosError_default.ERR_BAD_RESPONSE,
67971
67117
  config,
67972
67118
  lastRequest
@@ -68027,9 +67173,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
68027
67173
  });
68028
67174
  const boundSockets = /* @__PURE__ */ new Set();
68029
67175
  req.on("socket", function handleRequestSocket(socket) {
68030
- if (typeof socket.setKeepAlive === "function") {
68031
- socket.setKeepAlive(true, 1e3 * 60);
68032
- }
67176
+ socket.setKeepAlive(true, 1e3 * 60);
68033
67177
  if (!socket[kAxiosSocketListener]) {
68034
67178
  socket.on("error", function handleSocketError(err) {
68035
67179
  const current = socket[kAxiosCurrentReq];
@@ -68051,8 +67195,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
68051
67195
  }
68052
67196
  boundSockets.clear();
68053
67197
  });
68054
- if (own2("timeout")) {
68055
- const timeout = parseInt(own2("timeout"), 10);
67198
+ if (config.timeout) {
67199
+ const timeout = parseInt(config.timeout, 10);
68056
67200
  if (Number.isNaN(timeout)) {
68057
67201
  abort(
68058
67202
  new AxiosError_default(
@@ -68091,8 +67235,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
68091
67235
  }
68092
67236
  });
68093
67237
  let uploadStream = data;
68094
- if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
68095
- const limit = maxBodyLength;
67238
+ if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
67239
+ const limit = config.maxBodyLength;
68096
67240
  let bytesSent = 0;
68097
67241
  uploadStream = import_stream4.default.pipeline(
68098
67242
  [
@@ -68128,7 +67272,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
68128
67272
  });
68129
67273
  };
68130
67274
 
68131
- // node_modules/axios/lib/helpers/isURLSameOrigin.js
67275
+ // packages/kong-cli/node_modules/axios/lib/helpers/isURLSameOrigin.js
68132
67276
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
68133
67277
  url2 = new URL(url2, platform_default.origin);
68134
67278
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -68137,7 +67281,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
68137
67281
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
68138
67282
  ) : () => true;
68139
67283
 
68140
- // node_modules/axios/lib/helpers/cookies.js
67284
+ // packages/kong-cli/node_modules/axios/lib/helpers/cookies.js
68141
67285
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
68142
67286
  // Standard browser envs support document.cookie
68143
67287
  {
@@ -68168,11 +67312,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
68168
67312
  const cookie = cookies[i].replace(/^\s+/, "");
68169
67313
  const eq = cookie.indexOf("=");
68170
67314
  if (eq !== -1 && cookie.slice(0, eq) === name) {
68171
- try {
68172
- return decodeURIComponent(cookie.slice(eq + 1));
68173
- } catch (e) {
68174
- return cookie.slice(eq + 1);
68175
- }
67315
+ return decodeURIComponent(cookie.slice(eq + 1));
68176
67316
  }
68177
67317
  }
68178
67318
  return null;
@@ -68194,10 +67334,9 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
68194
67334
  }
68195
67335
  );
68196
67336
 
68197
- // node_modules/axios/lib/core/mergeConfig.js
67337
+ // packages/kong-cli/node_modules/axios/lib/core/mergeConfig.js
68198
67338
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
68199
67339
  function mergeConfig(config1, config2) {
68200
- config1 = config1 || {};
68201
67340
  config2 = config2 || {};
68202
67341
  const config = /* @__PURE__ */ Object.create(null);
68203
67342
  Object.defineProperty(config, "hasOwnProperty", {
@@ -68238,23 +67377,6 @@ function mergeConfig(config1, config2) {
68238
67377
  return getMergedValue(void 0, a);
68239
67378
  }
68240
67379
  }
68241
- function getMergedTransitionalOption(prop) {
68242
- const transitional2 = utils_default2.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
68243
- if (!utils_default2.isUndefined(transitional2)) {
68244
- if (utils_default2.isPlainObject(transitional2)) {
68245
- if (utils_default2.hasOwnProp(transitional2, prop)) {
68246
- return transitional2[prop];
68247
- }
68248
- } else {
68249
- return void 0;
68250
- }
68251
- }
68252
- const transitional1 = utils_default2.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
68253
- if (utils_default2.isPlainObject(transitional1) && utils_default2.hasOwnProp(transitional1, prop)) {
68254
- return transitional1[prop];
68255
- }
68256
- return void 0;
68257
- }
68258
67380
  function mergeDirectKeys(a, b, prop) {
68259
67381
  if (utils_default2.hasOwnProp(config2, prop)) {
68260
67382
  return getMergedValue(a, b);
@@ -68302,24 +67424,17 @@ function mergeConfig(config1, config2) {
68302
67424
  const configValue = merge3(a, b, prop);
68303
67425
  utils_default2.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config[prop] = configValue);
68304
67426
  });
68305
- if (utils_default2.hasOwnProp(config2, "validateStatus") && utils_default2.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
68306
- if (utils_default2.hasOwnProp(config1, "validateStatus")) {
68307
- config.validateStatus = getMergedValue(void 0, config1.validateStatus);
68308
- } else {
68309
- delete config.validateStatus;
68310
- }
68311
- }
68312
67427
  return config;
68313
67428
  }
68314
67429
 
68315
- // node_modules/axios/lib/helpers/resolveConfig.js
67430
+ // packages/kong-cli/node_modules/axios/lib/helpers/resolveConfig.js
68316
67431
  var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
68317
67432
  function setFormDataHeaders2(headers, formHeaders, policy) {
68318
67433
  if (policy !== "content-only") {
68319
67434
  headers.set(formHeaders);
68320
67435
  return;
68321
67436
  }
68322
- Object.entries(formHeaders || {}).forEach(([key, val]) => {
67437
+ Object.entries(formHeaders).forEach(([key, val]) => {
68323
67438
  if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
68324
67439
  headers.set(key, val);
68325
67440
  }
@@ -68329,7 +67444,7 @@ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
68329
67444
  /%([0-9A-F]{2})/gi,
68330
67445
  (_2, hex) => String.fromCharCode(parseInt(hex, 16))
68331
67446
  );
68332
- function resolveConfig(config) {
67447
+ var resolveConfig_default = (config) => {
68333
67448
  const newConfig = mergeConfig({}, config);
68334
67449
  const own2 = (key) => utils_default2.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
68335
67450
  const data = own2("data");
@@ -68343,24 +67458,18 @@ function resolveConfig(config) {
68343
67458
  const url2 = own2("url");
68344
67459
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
68345
67460
  newConfig.url = buildURL(
68346
- buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
68347
- own2("params"),
68348
- own2("paramsSerializer")
67461
+ buildFullPath(baseURL, url2, allowAbsoluteUrls),
67462
+ config.params,
67463
+ config.paramsSerializer
68349
67464
  );
68350
67465
  if (auth) {
68351
- const username = utils_default2.getSafeProp(auth, "username") || "";
68352
- const password = utils_default2.getSafeProp(auth, "password") || "";
68353
- try {
68354
- headers.set(
68355
- "Authorization",
68356
- "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
68357
- );
68358
- } catch (e) {
68359
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
68360
- }
67466
+ headers.set(
67467
+ "Authorization",
67468
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
67469
+ );
68361
67470
  }
68362
67471
  if (utils_default2.isFormData(data)) {
68363
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default2.isReactNative(data)) {
67472
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
68364
67473
  headers.setContentType(void 0);
68365
67474
  } else if (utils_default2.isFunction(data.getHeaders)) {
68366
67475
  setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
@@ -68379,10 +67488,9 @@ function resolveConfig(config) {
68379
67488
  }
68380
67489
  }
68381
67490
  return newConfig;
68382
- }
68383
- var resolveConfig_default = resolveConfig;
67491
+ };
68384
67492
 
68385
- // node_modules/axios/lib/adapters/xhr.js
67493
+ // packages/kong-cli/node_modules/axios/lib/adapters/xhr.js
68386
67494
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
68387
67495
  var xhr_default = isXHRAdapterSupported && function(config) {
68388
67496
  return new Promise(function dispatchXhrRequest(resolve2, reject) {
@@ -68479,7 +67587,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
68479
67587
  };
68480
67588
  requestData === void 0 && requestHeaders.setContentType(null);
68481
67589
  if ("setRequestHeader" in request) {
68482
- utils_default2.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
67590
+ utils_default2.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
68483
67591
  request.setRequestHeader(key, val);
68484
67592
  });
68485
67593
  }
@@ -68522,54 +67630,51 @@ var xhr_default = isXHRAdapterSupported && function(config) {
68522
67630
  config
68523
67631
  )
68524
67632
  );
68525
- done();
68526
67633
  return;
68527
67634
  }
68528
67635
  request.send(requestData || null);
68529
67636
  });
68530
67637
  };
68531
67638
 
68532
- // node_modules/axios/lib/helpers/composeSignals.js
67639
+ // packages/kong-cli/node_modules/axios/lib/helpers/composeSignals.js
68533
67640
  var composeSignals = (signals3, timeout) => {
68534
- signals3 = signals3 ? signals3.filter(Boolean) : [];
68535
- if (!timeout && !signals3.length) {
68536
- return;
67641
+ const { length } = signals3 = signals3 ? signals3.filter(Boolean) : [];
67642
+ if (timeout || length) {
67643
+ let controller = new AbortController();
67644
+ let aborted;
67645
+ const onabort = function(reason) {
67646
+ if (!aborted) {
67647
+ aborted = true;
67648
+ unsubscribe();
67649
+ const err = reason instanceof Error ? reason : this.reason;
67650
+ controller.abort(
67651
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
67652
+ );
67653
+ }
67654
+ };
67655
+ let timer = timeout && setTimeout(() => {
67656
+ timer = null;
67657
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
67658
+ }, timeout);
67659
+ const unsubscribe = () => {
67660
+ if (signals3) {
67661
+ timer && clearTimeout(timer);
67662
+ timer = null;
67663
+ signals3.forEach((signal2) => {
67664
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
67665
+ });
67666
+ signals3 = null;
67667
+ }
67668
+ };
67669
+ signals3.forEach((signal2) => signal2.addEventListener("abort", onabort));
67670
+ const { signal } = controller;
67671
+ signal.unsubscribe = () => utils_default2.asap(unsubscribe);
67672
+ return signal;
68537
67673
  }
68538
- const controller = new AbortController();
68539
- let aborted = false;
68540
- const onabort = function(reason) {
68541
- if (!aborted) {
68542
- aborted = true;
68543
- unsubscribe();
68544
- const err = reason instanceof Error ? reason : this.reason;
68545
- controller.abort(
68546
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
68547
- );
68548
- }
68549
- };
68550
- let timer = timeout && setTimeout(() => {
68551
- timer = null;
68552
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
68553
- }, timeout);
68554
- const unsubscribe = () => {
68555
- if (!signals3) {
68556
- return;
68557
- }
68558
- timer && clearTimeout(timer);
68559
- timer = null;
68560
- signals3.forEach((signal2) => {
68561
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
68562
- });
68563
- signals3 = null;
68564
- };
68565
- signals3.forEach((signal2) => signal2.addEventListener("abort", onabort, { once: true }));
68566
- const { signal } = controller;
68567
- signal.unsubscribe = () => utils_default2.asap(unsubscribe);
68568
- return signal;
68569
67674
  };
68570
67675
  var composeSignals_default = composeSignals;
68571
67676
 
68572
- // node_modules/axios/lib/helpers/trackStream.js
67677
+ // packages/kong-cli/node_modules/axios/lib/helpers/trackStream.js
68573
67678
  var streamChunk = function* (chunk, chunkSize) {
68574
67679
  let len = chunk.byteLength;
68575
67680
  if (!chunkSize || len < chunkSize) {
@@ -68649,23 +67754,9 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
68649
67754
  );
68650
67755
  };
68651
67756
 
68652
- // node_modules/axios/lib/adapters/fetch.js
67757
+ // packages/kong-cli/node_modules/axios/lib/adapters/fetch.js
68653
67758
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
68654
67759
  var { isFunction: isFunction3 } = utils_default2;
68655
- var encodeUTF82 = (str) => encodeURIComponent(str).replace(
68656
- /%([0-9A-F]{2})/gi,
68657
- (_2, hex) => String.fromCharCode(parseInt(hex, 16))
68658
- );
68659
- var decodeURIComponentSafe2 = (value) => {
68660
- if (!utils_default2.isString(value)) {
68661
- return value;
68662
- }
68663
- try {
68664
- return decodeURIComponent(value);
68665
- } catch (error) {
68666
- return value;
68667
- }
68668
- };
68669
67760
  var test = (fn, ...args) => {
68670
67761
  try {
68671
67762
  return !!fn(...args);
@@ -68673,16 +67764,8 @@ var test = (fn, ...args) => {
68673
67764
  return false;
68674
67765
  }
68675
67766
  };
68676
- var maybeWithAuthCredentials = (url2) => {
68677
- const protocolIndex = url2.indexOf("://");
68678
- let urlToCheck = url2;
68679
- if (protocolIndex !== -1) {
68680
- urlToCheck = urlToCheck.slice(protocolIndex + 3);
68681
- }
68682
- return urlToCheck.includes("@") || urlToCheck.includes(":");
68683
- };
68684
67767
  var factory = (env) => {
68685
- const globalObject = utils_default2.global !== void 0 && utils_default2.global !== null ? utils_default2.global : globalThis;
67768
+ const globalObject = utils_default2.global ?? globalThis;
68686
67769
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
68687
67770
  env = utils_default2.merge.call(
68688
67771
  {
@@ -68785,7 +67868,6 @@ var factory = (env) => {
68785
67868
  } = resolveConfig_default(config);
68786
67869
  const hasMaxContentLength = utils_default2.isNumber(maxContentLength) && maxContentLength > -1;
68787
67870
  const hasMaxBodyLength = utils_default2.isNumber(maxBodyLength) && maxBodyLength > -1;
68788
- const own2 = (key) => utils_default2.hasOwnProp(config, key) ? config[key] : void 0;
68789
67871
  let _fetch = envFetch || fetch;
68790
67872
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
68791
67873
  let composedSignal = composeSignals_default(
@@ -68797,47 +67879,7 @@ var factory = (env) => {
68797
67879
  composedSignal.unsubscribe();
68798
67880
  });
68799
67881
  let requestContentLength;
68800
- let pendingBodyError = null;
68801
- const maxBodyLengthError = () => new AxiosError_default(
68802
- "Request body larger than maxBodyLength limit",
68803
- AxiosError_default.ERR_BAD_REQUEST,
68804
- config,
68805
- request
68806
- );
68807
67882
  try {
68808
- let auth = void 0;
68809
- const configAuth = own2("auth");
68810
- if (configAuth) {
68811
- const username = utils_default2.getSafeProp(configAuth, "username") || "";
68812
- const password = utils_default2.getSafeProp(configAuth, "password") || "";
68813
- auth = {
68814
- username,
68815
- password
68816
- };
68817
- }
68818
- if (maybeWithAuthCredentials(url2)) {
68819
- const parsedURL = new URL(url2, platform_default.origin);
68820
- if (!auth && (parsedURL.username || parsedURL.password)) {
68821
- const urlUsername = decodeURIComponentSafe2(parsedURL.username);
68822
- const urlPassword = decodeURIComponentSafe2(parsedURL.password);
68823
- auth = {
68824
- username: urlUsername,
68825
- password: urlPassword
68826
- };
68827
- }
68828
- if (parsedURL.username || parsedURL.password) {
68829
- parsedURL.username = "";
68830
- parsedURL.password = "";
68831
- url2 = parsedURL.href;
68832
- }
68833
- }
68834
- if (auth) {
68835
- headers.delete("authorization");
68836
- headers.set(
68837
- "Authorization",
68838
- "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
68839
- );
68840
- }
68841
67883
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
68842
67884
  const estimated = estimateDataURLDecodedBytes(url2);
68843
67885
  if (estimated > maxContentLength) {
@@ -68850,55 +67892,33 @@ var factory = (env) => {
68850
67892
  }
68851
67893
  }
68852
67894
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
68853
- const outboundLength = await getBodyLength(data);
68854
- if (typeof outboundLength === "number" && isFinite(outboundLength)) {
68855
- requestContentLength = outboundLength;
68856
- if (outboundLength > maxBodyLength) {
68857
- throw maxBodyLengthError();
68858
- }
67895
+ const outboundLength = await resolveBodyLength(headers, data);
67896
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
67897
+ throw new AxiosError_default(
67898
+ "Request body larger than maxBodyLength limit",
67899
+ AxiosError_default.ERR_BAD_REQUEST,
67900
+ config,
67901
+ request
67902
+ );
68859
67903
  }
68860
67904
  }
68861
- const mustEnforceStreamBody = hasMaxBodyLength && (utils_default2.isReadableStream(data) || utils_default2.isStream(data));
68862
- const trackRequestStream = (stream4, onProgress, flush) => trackStream(
68863
- stream4,
68864
- DEFAULT_CHUNK_SIZE,
68865
- (loadedBytes) => {
68866
- if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
68867
- throw pendingBodyError = maxBodyLengthError();
68868
- }
68869
- onProgress && onProgress(loadedBytes);
68870
- },
68871
- flush
68872
- );
68873
- if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
68874
- requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
68875
- if (requestContentLength !== 0 || mustEnforceStreamBody) {
68876
- let _request = new Request(url2, {
68877
- method: "POST",
68878
- body: data,
68879
- duplex: "half"
68880
- });
68881
- let contentTypeHeader;
68882
- if (utils_default2.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
68883
- headers.setContentType(contentTypeHeader);
68884
- }
68885
- if (_request.body) {
68886
- const [onProgress, flush] = onUploadProgress && progressEventDecorator(
68887
- requestContentLength,
68888
- progressEventReducer(asyncDecorator(onUploadProgress))
68889
- ) || [];
68890
- data = trackRequestStream(_request.body, onProgress, flush);
68891
- }
67905
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
67906
+ let _request = new Request(url2, {
67907
+ method: "POST",
67908
+ body: data,
67909
+ duplex: "half"
67910
+ });
67911
+ let contentTypeHeader;
67912
+ if (utils_default2.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
67913
+ headers.setContentType(contentTypeHeader);
67914
+ }
67915
+ if (_request.body) {
67916
+ const [onProgress, flush] = progressEventDecorator(
67917
+ requestContentLength,
67918
+ progressEventReducer(asyncDecorator(onUploadProgress))
67919
+ );
67920
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
68892
67921
  }
68893
- } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
68894
- data = trackRequestStream(data);
68895
- } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
68896
- throw new AxiosError_default(
68897
- "Stream request bodies are not supported by the current fetch implementation",
68898
- AxiosError_default.ERR_NOT_SUPPORT,
68899
- config,
68900
- request
68901
- );
68902
67922
  }
68903
67923
  if (!utils_default2.isString(withCredentials)) {
68904
67924
  withCredentials = withCredentials ? "include" : "omit";
@@ -68915,16 +67935,15 @@ var factory = (env) => {
68915
67935
  ...fetchOptions,
68916
67936
  signal: composedSignal,
68917
67937
  method: method.toUpperCase(),
68918
- headers: toByteStringHeaderObject(headers.normalize()),
67938
+ headers: headers.normalize().toJSON(),
68919
67939
  body: data,
68920
67940
  duplex: "half",
68921
67941
  credentials: isCredentialsSupported ? withCredentials : void 0
68922
67942
  };
68923
67943
  request = isRequestSupported && new Request(url2, resolvedOptions);
68924
67944
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
68925
- const responseHeaders = AxiosHeaders_default.from(response.headers);
68926
67945
  if (hasMaxContentLength) {
68927
- const declaredLength = utils_default2.toFiniteNumber(responseHeaders.getContentLength());
67946
+ const declaredLength = utils_default2.toFiniteNumber(response.headers.get("content-length"));
68928
67947
  if (declaredLength != null && declaredLength > maxContentLength) {
68929
67948
  throw new AxiosError_default(
68930
67949
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -68940,7 +67959,7 @@ var factory = (env) => {
68940
67959
  ["status", "statusText", "headers"].forEach((prop) => {
68941
67960
  options[prop] = response[prop];
68942
67961
  });
68943
- const responseContentLength = utils_default2.toFiniteNumber(responseHeaders.getContentLength());
67962
+ const responseContentLength = utils_default2.toFiniteNumber(response.headers.get("content-length"));
68944
67963
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
68945
67964
  responseContentLength,
68946
67965
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -69010,41 +68029,22 @@ var factory = (env) => {
69010
68029
  const canceledError = composedSignal.reason;
69011
68030
  canceledError.config = config;
69012
68031
  request && (canceledError.request = request);
69013
- if (err !== canceledError) {
69014
- Object.defineProperty(canceledError, "cause", {
69015
- __proto__: null,
69016
- value: err,
69017
- writable: true,
69018
- enumerable: false,
69019
- configurable: true
69020
- });
69021
- }
68032
+ err !== canceledError && (canceledError.cause = err);
69022
68033
  throw canceledError;
69023
68034
  }
69024
- if (pendingBodyError) {
69025
- request && !pendingBodyError.request && (pendingBodyError.request = request);
69026
- throw pendingBodyError;
69027
- }
69028
- if (err instanceof AxiosError_default) {
69029
- request && !err.request && (err.request = request);
69030
- throw err;
69031
- }
69032
68035
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
69033
- const networkError = new AxiosError_default(
69034
- "Network Error",
69035
- AxiosError_default.ERR_NETWORK,
69036
- config,
69037
- request,
69038
- err && err.response
68036
+ throw Object.assign(
68037
+ new AxiosError_default(
68038
+ "Network Error",
68039
+ AxiosError_default.ERR_NETWORK,
68040
+ config,
68041
+ request,
68042
+ err && err.response
68043
+ ),
68044
+ {
68045
+ cause: err.cause || err
68046
+ }
69039
68047
  );
69040
- Object.defineProperty(networkError, "cause", {
69041
- __proto__: null,
69042
- value: err.cause || err,
69043
- writable: true,
69044
- enumerable: false,
69045
- configurable: true
69046
- });
69047
- throw networkError;
69048
68048
  }
69049
68049
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
69050
68050
  }
@@ -69066,7 +68066,7 @@ var getFetch = (config) => {
69066
68066
  };
69067
68067
  var adapter = getFetch();
69068
68068
 
69069
- // node_modules/axios/lib/adapters/adapters.js
68069
+ // packages/kong-cli/node_modules/axios/lib/adapters/adapters.js
69070
68070
  var knownAdapters = {
69071
68071
  http: http_default,
69072
68072
  xhr: xhr_default,
@@ -69113,7 +68113,7 @@ function getAdapter(adapters, config) {
69113
68113
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
69114
68114
  throw new AxiosError_default(
69115
68115
  `There is no suitable adapter to dispatch the request ` + s,
69116
- AxiosError_default.ERR_NOT_SUPPORT
68116
+ "ERR_NOT_SUPPORT"
69117
68117
  );
69118
68118
  }
69119
68119
  return adapter2;
@@ -69131,7 +68131,7 @@ var adapters_default = {
69131
68131
  adapters: knownAdapters
69132
68132
  };
69133
68133
 
69134
- // node_modules/axios/lib/core/dispatchRequest.js
68134
+ // packages/kong-cli/node_modules/axios/lib/core/dispatchRequest.js
69135
68135
  function throwIfCancellationRequested(config) {
69136
68136
  if (config.cancelToken) {
69137
68137
  config.cancelToken.throwIfRequested();
@@ -69182,7 +68182,7 @@ function dispatchRequest(config) {
69182
68182
  );
69183
68183
  }
69184
68184
 
69185
- // node_modules/axios/lib/helpers/validator.js
68185
+ // packages/kong-cli/node_modules/axios/lib/helpers/validator.js
69186
68186
  var validators = {};
69187
68187
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
69188
68188
  validators[type] = function validator(thing) {
@@ -69220,7 +68220,7 @@ validators.spelling = function spelling(correctSpelling) {
69220
68220
  };
69221
68221
  };
69222
68222
  function assertOptions(options, schema, allowUnknown) {
69223
- if (typeof options !== "object" || options === null) {
68223
+ if (typeof options !== "object") {
69224
68224
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
69225
68225
  }
69226
68226
  const keys = Object.keys(options);
@@ -69249,7 +68249,7 @@ var validator_default = {
69249
68249
  validators
69250
68250
  };
69251
68251
 
69252
- // node_modules/axios/lib/core/Axios.js
68252
+ // packages/kong-cli/node_modules/axios/lib/core/Axios.js
69253
68253
  var validators2 = validator_default.validators;
69254
68254
  var Axios = class {
69255
68255
  constructor(instanceConfig) {
@@ -69314,9 +68314,7 @@ var Axios = class {
69314
68314
  silentJSONParsing: validators2.transitional(validators2.boolean),
69315
68315
  forcedJSONParsing: validators2.transitional(validators2.boolean),
69316
68316
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
69317
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
69318
- advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
69319
- validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
68317
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
69320
68318
  },
69321
68319
  false
69322
68320
  );
@@ -69416,7 +68414,7 @@ var Axios = class {
69416
68414
  }
69417
68415
  getUri(config) {
69418
68416
  config = mergeConfig(this.defaults, config);
69419
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
68417
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
69420
68418
  return buildURL(fullPath, config.params, config.paramsSerializer);
69421
68419
  }
69422
68420
  };
@@ -69426,7 +68424,7 @@ utils_default2.forEach(["delete", "get", "head", "options"], function forEachMet
69426
68424
  mergeConfig(config || {}, {
69427
68425
  method,
69428
68426
  url: url2,
69429
- data: config && utils_default2.hasOwnProp(config, "data") ? config.data : void 0
68427
+ data: (config || {}).data
69430
68428
  })
69431
68429
  );
69432
68430
  };
@@ -69453,7 +68451,7 @@ utils_default2.forEach(["post", "put", "patch", "query"], function forEachMethod
69453
68451
  });
69454
68452
  var Axios_default = Axios;
69455
68453
 
69456
- // node_modules/axios/lib/cancel/CancelToken.js
68454
+ // packages/kong-cli/node_modules/axios/lib/cancel/CancelToken.js
69457
68455
  var CancelToken = class _CancelToken {
69458
68456
  constructor(executor) {
69459
68457
  if (typeof executor !== "function") {
@@ -69551,19 +68549,19 @@ var CancelToken = class _CancelToken {
69551
68549
  };
69552
68550
  var CancelToken_default = CancelToken;
69553
68551
 
69554
- // node_modules/axios/lib/helpers/spread.js
68552
+ // packages/kong-cli/node_modules/axios/lib/helpers/spread.js
69555
68553
  function spread(callback) {
69556
68554
  return function wrap(arr) {
69557
68555
  return callback.apply(null, arr);
69558
68556
  };
69559
68557
  }
69560
68558
 
69561
- // node_modules/axios/lib/helpers/isAxiosError.js
68559
+ // packages/kong-cli/node_modules/axios/lib/helpers/isAxiosError.js
69562
68560
  function isAxiosError(payload) {
69563
68561
  return utils_default2.isObject(payload) && payload.isAxiosError === true;
69564
68562
  }
69565
68563
 
69566
- // node_modules/axios/lib/helpers/HttpStatusCode.js
68564
+ // packages/kong-cli/node_modules/axios/lib/helpers/HttpStatusCode.js
69567
68565
  var HttpStatusCode = {
69568
68566
  Continue: 100,
69569
68567
  SwitchingProtocols: 101,
@@ -69640,7 +68638,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
69640
68638
  });
69641
68639
  var HttpStatusCode_default = HttpStatusCode;
69642
68640
 
69643
- // node_modules/axios/lib/axios.js
68641
+ // packages/kong-cli/node_modules/axios/lib/axios.js
69644
68642
  function createInstance(defaultConfig) {
69645
68643
  const context = new Axios_default(defaultConfig);
69646
68644
  const instance = bind(Axios_default.prototype.request, context);
@@ -69673,7 +68671,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
69673
68671
  axios.default = axios;
69674
68672
  var axios_default = axios;
69675
68673
 
69676
- // node_modules/axios/index.js
68674
+ // packages/kong-cli/node_modules/axios/index.js
69677
68675
  var {
69678
68676
  Axios: Axios2,
69679
68677
  AxiosError: AxiosError2,
@@ -69698,730 +68696,6 @@ var {
69698
68696
  var import_child_process = require("child_process");
69699
68697
  var import_fs = __toESM(require("fs"));
69700
68698
  var import_path2 = __toESM(require("path"));
69701
-
69702
- // node_modules/sqids/esm/sqids.js
69703
- var defaultOptions2 = {
69704
- alphabet: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
69705
- minLength: 0,
69706
- blocklist: /* @__PURE__ */ new Set([
69707
- "0rgasm",
69708
- "1d10t",
69709
- "1d1ot",
69710
- "1di0t",
69711
- "1diot",
69712
- "1eccacu10",
69713
- "1eccacu1o",
69714
- "1eccacul0",
69715
- "1eccaculo",
69716
- "1mbec11e",
69717
- "1mbec1le",
69718
- "1mbeci1e",
69719
- "1mbecile",
69720
- "a11upat0",
69721
- "a11upato",
69722
- "a1lupat0",
69723
- "a1lupato",
69724
- "aand",
69725
- "ah01e",
69726
- "ah0le",
69727
- "aho1e",
69728
- "ahole",
69729
- "al1upat0",
69730
- "al1upato",
69731
- "allupat0",
69732
- "allupato",
69733
- "ana1",
69734
- "ana1e",
69735
- "anal",
69736
- "anale",
69737
- "anus",
69738
- "arrapat0",
69739
- "arrapato",
69740
- "arsch",
69741
- "arse",
69742
- "ass",
69743
- "b00b",
69744
- "b00be",
69745
- "b01ata",
69746
- "b0ceta",
69747
- "b0iata",
69748
- "b0ob",
69749
- "b0obe",
69750
- "b0sta",
69751
- "b1tch",
69752
- "b1te",
69753
- "b1tte",
69754
- "ba1atkar",
69755
- "balatkar",
69756
- "bastard0",
69757
- "bastardo",
69758
- "batt0na",
69759
- "battona",
69760
- "bitch",
69761
- "bite",
69762
- "bitte",
69763
- "bo0b",
69764
- "bo0be",
69765
- "bo1ata",
69766
- "boceta",
69767
- "boiata",
69768
- "boob",
69769
- "boobe",
69770
- "bosta",
69771
- "bran1age",
69772
- "bran1er",
69773
- "bran1ette",
69774
- "bran1eur",
69775
- "bran1euse",
69776
- "branlage",
69777
- "branler",
69778
- "branlette",
69779
- "branleur",
69780
- "branleuse",
69781
- "c0ck",
69782
- "c0g110ne",
69783
- "c0g11one",
69784
- "c0g1i0ne",
69785
- "c0g1ione",
69786
- "c0gl10ne",
69787
- "c0gl1one",
69788
- "c0gli0ne",
69789
- "c0glione",
69790
- "c0na",
69791
- "c0nnard",
69792
- "c0nnasse",
69793
- "c0nne",
69794
- "c0u111es",
69795
- "c0u11les",
69796
- "c0u1l1es",
69797
- "c0u1lles",
69798
- "c0ui11es",
69799
- "c0ui1les",
69800
- "c0uil1es",
69801
- "c0uilles",
69802
- "c11t",
69803
- "c11t0",
69804
- "c11to",
69805
- "c1it",
69806
- "c1it0",
69807
- "c1ito",
69808
- "cabr0n",
69809
- "cabra0",
69810
- "cabrao",
69811
- "cabron",
69812
- "caca",
69813
- "cacca",
69814
- "cacete",
69815
- "cagante",
69816
- "cagar",
69817
- "cagare",
69818
- "cagna",
69819
- "cara1h0",
69820
- "cara1ho",
69821
- "caracu10",
69822
- "caracu1o",
69823
- "caracul0",
69824
- "caraculo",
69825
- "caralh0",
69826
- "caralho",
69827
- "cazz0",
69828
- "cazz1mma",
69829
- "cazzata",
69830
- "cazzimma",
69831
- "cazzo",
69832
- "ch00t1a",
69833
- "ch00t1ya",
69834
- "ch00tia",
69835
- "ch00tiya",
69836
- "ch0d",
69837
- "ch0ot1a",
69838
- "ch0ot1ya",
69839
- "ch0otia",
69840
- "ch0otiya",
69841
- "ch1asse",
69842
- "ch1avata",
69843
- "ch1er",
69844
- "ch1ng0",
69845
- "ch1ngadaz0s",
69846
- "ch1ngadazos",
69847
- "ch1ngader1ta",
69848
- "ch1ngaderita",
69849
- "ch1ngar",
69850
- "ch1ngo",
69851
- "ch1ngues",
69852
- "ch1nk",
69853
- "chatte",
69854
- "chiasse",
69855
- "chiavata",
69856
- "chier",
69857
- "ching0",
69858
- "chingadaz0s",
69859
- "chingadazos",
69860
- "chingader1ta",
69861
- "chingaderita",
69862
- "chingar",
69863
- "chingo",
69864
- "chingues",
69865
- "chink",
69866
- "cho0t1a",
69867
- "cho0t1ya",
69868
- "cho0tia",
69869
- "cho0tiya",
69870
- "chod",
69871
- "choot1a",
69872
- "choot1ya",
69873
- "chootia",
69874
- "chootiya",
69875
- "cl1t",
69876
- "cl1t0",
69877
- "cl1to",
69878
- "clit",
69879
- "clit0",
69880
- "clito",
69881
- "cock",
69882
- "cog110ne",
69883
- "cog11one",
69884
- "cog1i0ne",
69885
- "cog1ione",
69886
- "cogl10ne",
69887
- "cogl1one",
69888
- "cogli0ne",
69889
- "coglione",
69890
- "cona",
69891
- "connard",
69892
- "connasse",
69893
- "conne",
69894
- "cou111es",
69895
- "cou11les",
69896
- "cou1l1es",
69897
- "cou1lles",
69898
- "coui11es",
69899
- "coui1les",
69900
- "couil1es",
69901
- "couilles",
69902
- "cracker",
69903
- "crap",
69904
- "cu10",
69905
- "cu1att0ne",
69906
- "cu1attone",
69907
- "cu1er0",
69908
- "cu1ero",
69909
- "cu1o",
69910
- "cul0",
69911
- "culatt0ne",
69912
- "culattone",
69913
- "culer0",
69914
- "culero",
69915
- "culo",
69916
- "cum",
69917
- "cunt",
69918
- "d11d0",
69919
- "d11do",
69920
- "d1ck",
69921
- "d1ld0",
69922
- "d1ldo",
69923
- "damn",
69924
- "de1ch",
69925
- "deich",
69926
- "depp",
69927
- "di1d0",
69928
- "di1do",
69929
- "dick",
69930
- "dild0",
69931
- "dildo",
69932
- "dyke",
69933
- "encu1e",
69934
- "encule",
69935
- "enema",
69936
- "enf01re",
69937
- "enf0ire",
69938
- "enfo1re",
69939
- "enfoire",
69940
- "estup1d0",
69941
- "estup1do",
69942
- "estupid0",
69943
- "estupido",
69944
- "etr0n",
69945
- "etron",
69946
- "f0da",
69947
- "f0der",
69948
- "f0ttere",
69949
- "f0tters1",
69950
- "f0ttersi",
69951
- "f0tze",
69952
- "f0utre",
69953
- "f1ca",
69954
- "f1cker",
69955
- "f1ga",
69956
- "fag",
69957
- "fica",
69958
- "ficker",
69959
- "figa",
69960
- "foda",
69961
- "foder",
69962
- "fottere",
69963
- "fotters1",
69964
- "fottersi",
69965
- "fotze",
69966
- "foutre",
69967
- "fr0c10",
69968
- "fr0c1o",
69969
- "fr0ci0",
69970
- "fr0cio",
69971
- "fr0sc10",
69972
- "fr0sc1o",
69973
- "fr0sci0",
69974
- "fr0scio",
69975
- "froc10",
69976
- "froc1o",
69977
- "froci0",
69978
- "frocio",
69979
- "frosc10",
69980
- "frosc1o",
69981
- "frosci0",
69982
- "froscio",
69983
- "fuck",
69984
- "g00",
69985
- "g0o",
69986
- "g0u1ne",
69987
- "g0uine",
69988
- "gandu",
69989
- "go0",
69990
- "goo",
69991
- "gou1ne",
69992
- "gouine",
69993
- "gr0gnasse",
69994
- "grognasse",
69995
- "haram1",
69996
- "harami",
69997
- "haramzade",
69998
- "hund1n",
69999
- "hundin",
70000
- "id10t",
70001
- "id1ot",
70002
- "idi0t",
70003
- "idiot",
70004
- "imbec11e",
70005
- "imbec1le",
70006
- "imbeci1e",
70007
- "imbecile",
70008
- "j1zz",
70009
- "jerk",
70010
- "jizz",
70011
- "k1ke",
70012
- "kam1ne",
70013
- "kamine",
70014
- "kike",
70015
- "leccacu10",
70016
- "leccacu1o",
70017
- "leccacul0",
70018
- "leccaculo",
70019
- "m1erda",
70020
- "m1gn0tta",
70021
- "m1gnotta",
70022
- "m1nch1a",
70023
- "m1nchia",
70024
- "m1st",
70025
- "mam0n",
70026
- "mamahuev0",
70027
- "mamahuevo",
70028
- "mamon",
70029
- "masturbat10n",
70030
- "masturbat1on",
70031
- "masturbate",
70032
- "masturbati0n",
70033
- "masturbation",
70034
- "merd0s0",
70035
- "merd0so",
70036
- "merda",
70037
- "merde",
70038
- "merdos0",
70039
- "merdoso",
70040
- "mierda",
70041
- "mign0tta",
70042
- "mignotta",
70043
- "minch1a",
70044
- "minchia",
70045
- "mist",
70046
- "musch1",
70047
- "muschi",
70048
- "n1gger",
70049
- "neger",
70050
- "negr0",
70051
- "negre",
70052
- "negro",
70053
- "nerch1a",
70054
- "nerchia",
70055
- "nigger",
70056
- "orgasm",
70057
- "p00p",
70058
- "p011a",
70059
- "p01la",
70060
- "p0l1a",
70061
- "p0lla",
70062
- "p0mp1n0",
70063
- "p0mp1no",
70064
- "p0mpin0",
70065
- "p0mpino",
70066
- "p0op",
70067
- "p0rca",
70068
- "p0rn",
70069
- "p0rra",
70070
- "p0uff1asse",
70071
- "p0uffiasse",
70072
- "p1p1",
70073
- "p1pi",
70074
- "p1r1a",
70075
- "p1rla",
70076
- "p1sc10",
70077
- "p1sc1o",
70078
- "p1sci0",
70079
- "p1scio",
70080
- "p1sser",
70081
- "pa11e",
70082
- "pa1le",
70083
- "pal1e",
70084
- "palle",
70085
- "pane1e1r0",
70086
- "pane1e1ro",
70087
- "pane1eir0",
70088
- "pane1eiro",
70089
- "panele1r0",
70090
- "panele1ro",
70091
- "paneleir0",
70092
- "paneleiro",
70093
- "patakha",
70094
- "pec0r1na",
70095
- "pec0rina",
70096
- "pecor1na",
70097
- "pecorina",
70098
- "pen1s",
70099
- "pendej0",
70100
- "pendejo",
70101
- "penis",
70102
- "pip1",
70103
- "pipi",
70104
- "pir1a",
70105
- "pirla",
70106
- "pisc10",
70107
- "pisc1o",
70108
- "pisci0",
70109
- "piscio",
70110
- "pisser",
70111
- "po0p",
70112
- "po11a",
70113
- "po1la",
70114
- "pol1a",
70115
- "polla",
70116
- "pomp1n0",
70117
- "pomp1no",
70118
- "pompin0",
70119
- "pompino",
70120
- "poop",
70121
- "porca",
70122
- "porn",
70123
- "porra",
70124
- "pouff1asse",
70125
- "pouffiasse",
70126
- "pr1ck",
70127
- "prick",
70128
- "pussy",
70129
- "put1za",
70130
- "puta",
70131
- "puta1n",
70132
- "putain",
70133
- "pute",
70134
- "putiza",
70135
- "puttana",
70136
- "queca",
70137
- "r0mp1ba11e",
70138
- "r0mp1ba1le",
70139
- "r0mp1bal1e",
70140
- "r0mp1balle",
70141
- "r0mpiba11e",
70142
- "r0mpiba1le",
70143
- "r0mpibal1e",
70144
- "r0mpiballe",
70145
- "rand1",
70146
- "randi",
70147
- "rape",
70148
- "recch10ne",
70149
- "recch1one",
70150
- "recchi0ne",
70151
- "recchione",
70152
- "retard",
70153
- "romp1ba11e",
70154
- "romp1ba1le",
70155
- "romp1bal1e",
70156
- "romp1balle",
70157
- "rompiba11e",
70158
- "rompiba1le",
70159
- "rompibal1e",
70160
- "rompiballe",
70161
- "ruff1an0",
70162
- "ruff1ano",
70163
- "ruffian0",
70164
- "ruffiano",
70165
- "s1ut",
70166
- "sa10pe",
70167
- "sa1aud",
70168
- "sa1ope",
70169
- "sacanagem",
70170
- "sal0pe",
70171
- "salaud",
70172
- "salope",
70173
- "saugnapf",
70174
- "sb0rr0ne",
70175
- "sb0rra",
70176
- "sb0rrone",
70177
- "sbattere",
70178
- "sbatters1",
70179
- "sbattersi",
70180
- "sborr0ne",
70181
- "sborra",
70182
- "sborrone",
70183
- "sc0pare",
70184
- "sc0pata",
70185
- "sch1ampe",
70186
- "sche1se",
70187
- "sche1sse",
70188
- "scheise",
70189
- "scheisse",
70190
- "schlampe",
70191
- "schwachs1nn1g",
70192
- "schwachs1nnig",
70193
- "schwachsinn1g",
70194
- "schwachsinnig",
70195
- "schwanz",
70196
- "scopare",
70197
- "scopata",
70198
- "sexy",
70199
- "sh1t",
70200
- "shit",
70201
- "slut",
70202
- "sp0mp1nare",
70203
- "sp0mpinare",
70204
- "spomp1nare",
70205
- "spompinare",
70206
- "str0nz0",
70207
- "str0nza",
70208
- "str0nzo",
70209
- "stronz0",
70210
- "stronza",
70211
- "stronzo",
70212
- "stup1d",
70213
- "stupid",
70214
- "succh1am1",
70215
- "succh1ami",
70216
- "succhiam1",
70217
- "succhiami",
70218
- "sucker",
70219
- "t0pa",
70220
- "tapette",
70221
- "test1c1e",
70222
- "test1cle",
70223
- "testic1e",
70224
- "testicle",
70225
- "tette",
70226
- "topa",
70227
- "tr01a",
70228
- "tr0ia",
70229
- "tr0mbare",
70230
- "tr1ng1er",
70231
- "tr1ngler",
70232
- "tring1er",
70233
- "tringler",
70234
- "tro1a",
70235
- "troia",
70236
- "trombare",
70237
- "turd",
70238
- "twat",
70239
- "vaffancu10",
70240
- "vaffancu1o",
70241
- "vaffancul0",
70242
- "vaffanculo",
70243
- "vag1na",
70244
- "vagina",
70245
- "verdammt",
70246
- "verga",
70247
- "w1chsen",
70248
- "wank",
70249
- "wichsen",
70250
- "x0ch0ta",
70251
- "x0chota",
70252
- "xana",
70253
- "xoch0ta",
70254
- "xochota",
70255
- "z0cc01a",
70256
- "z0cc0la",
70257
- "z0cco1a",
70258
- "z0ccola",
70259
- "z1z1",
70260
- "z1zi",
70261
- "ziz1",
70262
- "zizi",
70263
- "zocc01a",
70264
- "zocc0la",
70265
- "zocco1a",
70266
- "zoccola"
70267
- ])
70268
- };
70269
- var Sqids = class {
70270
- constructor(options) {
70271
- var _a, _b, _c;
70272
- const alphabet = (_a = options === null || options === void 0 ? void 0 : options.alphabet) !== null && _a !== void 0 ? _a : defaultOptions2.alphabet;
70273
- const minLength = (_b = options === null || options === void 0 ? void 0 : options.minLength) !== null && _b !== void 0 ? _b : defaultOptions2.minLength;
70274
- const blocklist = (_c = options === null || options === void 0 ? void 0 : options.blocklist) !== null && _c !== void 0 ? _c : defaultOptions2.blocklist;
70275
- if (new Blob([alphabet]).size !== alphabet.length) {
70276
- throw new Error("Alphabet cannot contain multibyte characters");
70277
- }
70278
- const minAlphabetLength = 3;
70279
- if (alphabet.length < minAlphabetLength) {
70280
- throw new Error(`Alphabet length must be at least ${minAlphabetLength}`);
70281
- }
70282
- if (new Set(alphabet).size !== alphabet.length) {
70283
- throw new Error("Alphabet must contain unique characters");
70284
- }
70285
- const minLengthLimit = 255;
70286
- if (typeof minLength !== "number" || minLength < 0 || minLength > minLengthLimit) {
70287
- throw new Error(`Minimum length has to be between 0 and ${minLengthLimit}`);
70288
- }
70289
- const filteredBlocklist = /* @__PURE__ */ new Set();
70290
- const alphabetChars = alphabet.toLowerCase().split("");
70291
- for (const word of blocklist) {
70292
- if (word.length >= 3) {
70293
- const wordLowercased = word.toLowerCase();
70294
- const wordChars = wordLowercased.split("");
70295
- const intersection = wordChars.filter((c) => alphabetChars.includes(c));
70296
- if (intersection.length === wordChars.length) {
70297
- filteredBlocklist.add(wordLowercased);
70298
- }
70299
- }
70300
- }
70301
- this.alphabet = this.shuffle(alphabet);
70302
- this.minLength = minLength;
70303
- this.blocklist = filteredBlocklist;
70304
- }
70305
- encode(numbers) {
70306
- if (numbers.length === 0) {
70307
- return "";
70308
- }
70309
- const inRangeNumbers = numbers.filter((n) => n >= 0 && n <= this.maxValue());
70310
- if (inRangeNumbers.length !== numbers.length) {
70311
- throw new Error(`Encoding supports numbers between 0 and ${this.maxValue()}`);
70312
- }
70313
- return this.encodeNumbers(numbers);
70314
- }
70315
- decode(id) {
70316
- const ret = [];
70317
- if (id === "") {
70318
- return ret;
70319
- }
70320
- const alphabetChars = this.alphabet.split("");
70321
- for (const c of id.split("")) {
70322
- if (!alphabetChars.includes(c)) {
70323
- return ret;
70324
- }
70325
- }
70326
- const prefix = id.charAt(0);
70327
- const offset = this.alphabet.indexOf(prefix);
70328
- let alphabet = this.alphabet.slice(offset) + this.alphabet.slice(0, offset);
70329
- alphabet = alphabet.split("").reverse().join("");
70330
- let slicedId = id.slice(1);
70331
- while (slicedId.length > 0) {
70332
- const separator = alphabet.slice(0, 1);
70333
- const chunks = slicedId.split(separator);
70334
- if (chunks.length > 0) {
70335
- if (chunks[0] === "") {
70336
- return ret;
70337
- }
70338
- ret.push(this.toNumber(chunks[0], alphabet.slice(1)));
70339
- if (chunks.length > 1) {
70340
- alphabet = this.shuffle(alphabet);
70341
- }
70342
- }
70343
- slicedId = chunks.slice(1).join(separator);
70344
- }
70345
- return ret;
70346
- }
70347
- encodeNumbers(numbers, increment = 0) {
70348
- if (increment > this.alphabet.length) {
70349
- throw new Error("Reached max attempts to re-generate the ID");
70350
- }
70351
- let offset = numbers.reduce((a, v, i) => this.alphabet[v % this.alphabet.length].codePointAt(0) + i + a, numbers.length) % this.alphabet.length;
70352
- offset = (offset + increment) % this.alphabet.length;
70353
- let alphabet = this.alphabet.slice(offset) + this.alphabet.slice(0, offset);
70354
- const prefix = alphabet.charAt(0);
70355
- alphabet = alphabet.split("").reverse().join("");
70356
- const ret = [prefix];
70357
- for (let i = 0; i !== numbers.length; i++) {
70358
- const num = numbers[i];
70359
- ret.push(this.toId(num, alphabet.slice(1)));
70360
- if (i < numbers.length - 1) {
70361
- ret.push(alphabet.slice(0, 1));
70362
- alphabet = this.shuffle(alphabet);
70363
- }
70364
- }
70365
- let id = ret.join("");
70366
- if (this.minLength > id.length) {
70367
- id += alphabet.slice(0, 1);
70368
- while (this.minLength - id.length > 0) {
70369
- alphabet = this.shuffle(alphabet);
70370
- id += alphabet.slice(0, Math.min(this.minLength - id.length, alphabet.length));
70371
- }
70372
- }
70373
- if (this.isBlockedId(id)) {
70374
- id = this.encodeNumbers(numbers, increment + 1);
70375
- }
70376
- return id;
70377
- }
70378
- shuffle(alphabet) {
70379
- const chars = alphabet.split("");
70380
- for (let i = 0, j = chars.length - 1; j > 0; i++, j--) {
70381
- const r = (i * j + chars[i].codePointAt(0) + chars[j].codePointAt(0)) % chars.length;
70382
- [chars[i], chars[r]] = [chars[r], chars[i]];
70383
- }
70384
- return chars.join("");
70385
- }
70386
- toId(num, alphabet) {
70387
- const id = [];
70388
- const chars = alphabet.split("");
70389
- let result = num;
70390
- do {
70391
- id.unshift(chars[result % chars.length]);
70392
- result = Math.floor(result / chars.length);
70393
- } while (result > 0);
70394
- return id.join("");
70395
- }
70396
- toNumber(id, alphabet) {
70397
- const chars = alphabet.split("");
70398
- return id.split("").reduce((a, v) => a * chars.length + chars.indexOf(v), 0);
70399
- }
70400
- isBlockedId(id) {
70401
- const lowercaseId = id.toLowerCase();
70402
- for (const word of this.blocklist) {
70403
- if (word.length <= lowercaseId.length) {
70404
- if (lowercaseId.length <= 3 || word.length <= 3) {
70405
- if (lowercaseId === word) {
70406
- return true;
70407
- }
70408
- } else if (/\d/.test(word)) {
70409
- if (lowercaseId.startsWith(word) || lowercaseId.endsWith(word)) {
70410
- return true;
70411
- }
70412
- } else if (lowercaseId.includes(word)) {
70413
- return true;
70414
- }
70415
- }
70416
- }
70417
- return false;
70418
- }
70419
- maxValue() {
70420
- return Number.MAX_SAFE_INTEGER;
70421
- }
70422
- };
70423
-
70424
- // packages/kong-cli/src/common/utils.ts
70425
68699
  function commandToArray(inputCommand) {
70426
68700
  const regex4 = /[^\s"]+|"([^"]*)"/g;
70427
68701
  const result = [];
@@ -70459,27 +68733,6 @@ function resolveProjectPath(fileName) {
70459
68733
  `${fileName} file was not found at paths: ${prettyJsonObject(pathsInWorkspaces)}`
70460
68734
  );
70461
68735
  }
70462
- function uuidToJavaHashCode(uuid) {
70463
- const hex = uuid.replace(/-/g, "");
70464
- const mostSigBits = BigInt("0x" + hex.substring(0, 16));
70465
- const leastSigBits = BigInt("0x" + hex.substring(16));
70466
- const hash = Number(mostSigBits >> 32n ^ mostSigBits ^ leastSigBits >> 32n ^ leastSigBits);
70467
- return hash | 0;
70468
- }
70469
- function generateShortId2() {
70470
- const sqids = new Sqids({
70471
- minLength: 12,
70472
- alphabet: "abcdefghijklmnopqrstuvwxyz0123456789"
70473
- });
70474
- const uuidHash = [];
70475
- uuidHash.push(uuidToJavaHashCode(guid()) & 2147483647);
70476
- let id = sqids.encode(uuidHash).toLowerCase().substring(0, 12);
70477
- if (!/^[a-z]/.test(id)) {
70478
- const randomLetter = String.fromCharCode(Math.floor(Math.random() * 26) + 97);
70479
- id = randomLetter + id.slice(1, 12);
70480
- }
70481
- return id;
70482
- }
70483
68736
  async function spawnCommand(commandText, logger = null, shell = false) {
70484
68737
  logger?.debug(commandText);
70485
68738
  const commandWithArgs = commandToArray(commandText).filter((x) => Boolean(x));
@@ -70837,7 +69090,7 @@ function getKongJson() {
70837
69090
  // packages/kong-cli/src/commands/generateCommand.ts
70838
69091
  var GenerateCommand = class {
70839
69092
  async execute(extensionName, sdk, presetVersion, template2) {
70840
- const id = generateShortId2();
69093
+ const id = generateShortId();
70841
69094
  const variant = sdk === "python" ? template2 ?? await this.promptTemplate() : "basic";
70842
69095
  validateKongJson({
70843
69096
  id,
@@ -70887,7 +69140,7 @@ var eventemitter3_default = import_index.default;
70887
69140
 
70888
69141
  // node_modules/listr2/dist/index.mjs
70889
69142
  var import_node_util11 = require("node:util");
70890
- var import_util4 = require("util");
69143
+ var import_util3 = require("util");
70891
69144
  var import_os2 = require("os");
70892
69145
  var import_string_decoder = require("string_decoder");
70893
69146
  var import_stream5 = require("stream");
@@ -70971,7 +69224,7 @@ var FIGURES_FALLBACK = {
70971
69224
  };
70972
69225
  var figures2 = isUnicodeSupported2() ? FIGURES_MAIN : FIGURES_FALLBACK;
70973
69226
  function splat(message2, ...splat2) {
70974
- return (0, import_util4.format)(String(message2), ...splat2);
69227
+ return (0, import_util3.format)(String(message2), ...splat2);
70975
69228
  }
70976
69229
  var LISTR_LOGGER_STYLE = {
70977
69230
  icon: {
@@ -72920,26 +71173,26 @@ var PublishVersionCommand = class {
72920
71173
  // returns the published version number. `onStep` mirrors each task's
72921
71174
  // lifecycle so an embedding command (e.g. kong connect) can surface the same
72922
71175
  // progress without parsing the Listr output.
72923
- async execute(appName, notes, onStep) {
72924
- const tasks = [...this.flowFactory(appName, notes)].map(
72925
- (definition) => {
72926
- const title = String(definition.title);
72927
- const original = definition.task;
72928
- return {
72929
- ...definition,
72930
- task: async (ctx2, task) => {
72931
- onStep?.(title, "pending");
72932
- try {
72933
- await original?.(ctx2, task);
72934
- onStep?.(title, "succeeded");
72935
- } catch (ex) {
72936
- onStep?.(title, "failed");
72937
- throw ex;
72938
- }
71176
+ async execute(appName, notes, checkpoint, onStep) {
71177
+ const tasks = [
71178
+ ...this.flowFactory(appName, notes, checkpoint)
71179
+ ].map((definition) => {
71180
+ const title = String(definition.title);
71181
+ const original = definition.task;
71182
+ return {
71183
+ ...definition,
71184
+ task: async (ctx2, task) => {
71185
+ onStep?.(title, "pending");
71186
+ try {
71187
+ await original?.(ctx2, task);
71188
+ onStep?.(title, "succeeded");
71189
+ } catch (ex) {
71190
+ onStep?.(title, "failed");
71191
+ throw ex;
72939
71192
  }
72940
- };
72941
- }
72942
- );
71193
+ }
71194
+ };
71195
+ });
72943
71196
  const ctx = await new Listr(tasks, {
72944
71197
  renderer: "default",
72945
71198
  rendererOptions: {
@@ -72950,7 +71203,7 @@ var PublishVersionCommand = class {
72950
71203
  }).run();
72951
71204
  return Number(ctx.publishDetails?.imageVersion ?? NaN);
72952
71205
  }
72953
- *flowFactory(appName, notes) {
71206
+ *flowFactory(appName, notes, checkpoint) {
72954
71207
  const kongJson = getKongJson();
72955
71208
  if (kongJson.sdk === "kotlin" && !this.contractPath) {
72956
71209
  yield {
@@ -73076,7 +71329,7 @@ var PublishVersionCommand = class {
73076
71329
  metadata,
73077
71330
  version: Number(publishDetails.imageVersion),
73078
71331
  notes,
73079
- checkpoint: "",
71332
+ checkpoint: checkpoint ?? "",
73080
71333
  created: utcNow(DEFAULT_TIMEZONE),
73081
71334
  createdBy: ""
73082
71335
  };
@@ -73086,7 +71339,7 @@ var PublishVersionCommand = class {
73086
71339
  category: kongJson.category,
73087
71340
  deprecated: false,
73088
71341
  origin: "cli",
73089
- checkpoint: void 0,
71342
+ checkpoint,
73090
71343
  createdBy: "",
73091
71344
  created: utcNow(DEFAULT_TIMEZONE),
73092
71345
  updated: utcNow(DEFAULT_TIMEZONE),
@@ -73260,7 +71513,7 @@ ${ansi.cyan}\u25B6 running tests for ${request.extensionName}${ansi.reset}`);
73260
71513
  * renders the steps in the same progress dialog as the kong-build path.
73261
71514
  */
73262
71515
  startDeployment(request) {
73263
- const deploymentId = generateShortId2();
71516
+ const deploymentId = generateShortId();
73264
71517
  const job = {
73265
71518
  status: "pending",
73266
71519
  steps: DEPLOY_STEPS.map((name) => ({ name, status: "idle" })),
@@ -73302,6 +71555,7 @@ ${ansi.cyan}\u25B6 deploying ${request.extensionName}${ansi.reset}`);
73302
71555
  const version = await new PublishVersionCommand(this.profile, true).execute(
73303
71556
  `${tenant}-k-extension-${request.extensionId}`,
73304
71557
  request.notes ?? "",
71558
+ request.checkpoint,
73305
71559
  (step, status) => this.setStep(job, step, status)
73306
71560
  );
73307
71561
  job.version = version;
@@ -73372,7 +71626,7 @@ ${ansi.cyan}\u25B6 deploying ${request.extensionName}${ansi.reset}`);
73372
71626
  }
73373
71627
  /** Runs `kong generate` into a fresh temp workspace and locates its root. */
73374
71628
  async scaffold(extensionName) {
73375
- const parent = import_fs5.default.mkdtempSync(import_path6.default.join(import_os3.default.tmpdir(), `kong-connect-${generateShortId2()}-`));
71629
+ const parent = import_fs5.default.mkdtempSync(import_path6.default.join(import_os3.default.tmpdir(), `kong-connect-${generateShortId()}-`));
73376
71630
  const previousCwd = process.cwd();
73377
71631
  try {
73378
71632
  process.chdir(parent);