@kubb/core 0.37.19 → 0.37.20

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.
@@ -7,17 +7,10 @@ var kubb = (function (exports) {
7
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
8
  var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
12
- }) : x)(function(x) {
13
- if (typeof require !== "undefined")
14
- return require.apply(this, arguments);
15
- throw new Error('Dynamic require of "' + x + '" is not supported');
16
- });
17
10
  var __esm = (fn, res) => function __init() {
18
11
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
19
12
  };
20
- var __commonJS = (cb, mod) => function __require2() {
13
+ var __commonJS = (cb, mod) => function __require() {
21
14
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
22
15
  };
23
16
  var __copyProps = (to, from, except, desc) => {
@@ -5289,10 +5282,10 @@ var kubb = (function (exports) {
5289
5282
  "../../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js"(exports, module) {
5290
5283
  init_define_process();
5291
5284
  var getPolyfill = require_polyfill();
5292
- var define = require_define_properties();
5285
+ var define2 = require_define_properties();
5293
5286
  module.exports = function shimObjectIs() {
5294
5287
  var polyfill = getPolyfill();
5295
- define(Object, { is: polyfill }, {
5288
+ define2(Object, { is: polyfill }, {
5296
5289
  is: function testObjectIs() {
5297
5290
  return Object.is !== polyfill;
5298
5291
  }
@@ -5306,13 +5299,13 @@ var kubb = (function (exports) {
5306
5299
  var require_object_is = __commonJS({
5307
5300
  "../../node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/index.js"(exports, module) {
5308
5301
  init_define_process();
5309
- var define = require_define_properties();
5302
+ var define2 = require_define_properties();
5310
5303
  var callBind = require_call_bind();
5311
5304
  var implementation = require_implementation3();
5312
5305
  var getPolyfill = require_polyfill();
5313
5306
  var shim = require_shim();
5314
5307
  var polyfill = callBind(getPolyfill(), Object);
5315
- define(polyfill, {
5308
+ define2(polyfill, {
5316
5309
  getPolyfill,
5317
5310
  implementation,
5318
5311
  shim
@@ -5349,11 +5342,11 @@ var kubb = (function (exports) {
5349
5342
  var require_shim2 = __commonJS({
5350
5343
  "../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/shim.js"(exports, module) {
5351
5344
  init_define_process();
5352
- var define = require_define_properties();
5345
+ var define2 = require_define_properties();
5353
5346
  var getPolyfill = require_polyfill2();
5354
5347
  module.exports = function shimNumberIsNaN() {
5355
5348
  var polyfill = getPolyfill();
5356
- define(Number, { isNaN: polyfill }, {
5349
+ define2(Number, { isNaN: polyfill }, {
5357
5350
  isNaN: function testIsNaN() {
5358
5351
  return Number.isNaN !== polyfill;
5359
5352
  }
@@ -5368,12 +5361,12 @@ var kubb = (function (exports) {
5368
5361
  "../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/index.js"(exports, module) {
5369
5362
  init_define_process();
5370
5363
  var callBind = require_call_bind();
5371
- var define = require_define_properties();
5364
+ var define2 = require_define_properties();
5372
5365
  var implementation = require_implementation4();
5373
5366
  var getPolyfill = require_polyfill2();
5374
5367
  var shim = require_shim2();
5375
5368
  var polyfill = callBind(getPolyfill(), Number);
5376
- define(polyfill, {
5369
+ define2(polyfill, {
5377
5370
  getPolyfill,
5378
5371
  implementation,
5379
5372
  shim
@@ -10542,6 +10535,853 @@ var kubb = (function (exports) {
10542
10535
  }
10543
10536
  });
10544
10537
 
10538
+ // ../../node_modules/.pnpm/punycode@1.3.2/node_modules/punycode/punycode.js
10539
+ var require_punycode = __commonJS({
10540
+ "../../node_modules/.pnpm/punycode@1.3.2/node_modules/punycode/punycode.js"(exports, module) {
10541
+ init_define_process();
10542
+ (function(root) {
10543
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
10544
+ var freeModule = typeof module == "object" && module && !module.nodeType && module;
10545
+ var freeGlobal = typeof globalThis == "object" && globalThis;
10546
+ if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {
10547
+ root = freeGlobal;
10548
+ }
10549
+ var punycode, maxInt = 2147483647, base = 36, tMin = 1, tMax = 26, skew = 38, damp = 700, initialBias = 72, initialN = 128, delimiter = "-", regexPunycode = /^xn--/, regexNonASCII = /[^\x20-\x7E]/, regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, errors = {
10550
+ "overflow": "Overflow: input needs wider integers to process",
10551
+ "not-basic": "Illegal input >= 0x80 (not a basic code point)",
10552
+ "invalid-input": "Invalid input"
10553
+ }, baseMinusTMin = base - tMin, floor = Math.floor, stringFromCharCode = String.fromCharCode, key;
10554
+ function error(type) {
10555
+ throw RangeError(errors[type]);
10556
+ }
10557
+ function map(array, fn) {
10558
+ var length = array.length;
10559
+ var result = [];
10560
+ while (length--) {
10561
+ result[length] = fn(array[length]);
10562
+ }
10563
+ return result;
10564
+ }
10565
+ function mapDomain(string, fn) {
10566
+ var parts = string.split("@");
10567
+ var result = "";
10568
+ if (parts.length > 1) {
10569
+ result = parts[0] + "@";
10570
+ string = parts[1];
10571
+ }
10572
+ string = string.replace(regexSeparators, ".");
10573
+ var labels = string.split(".");
10574
+ var encoded = map(labels, fn).join(".");
10575
+ return result + encoded;
10576
+ }
10577
+ function ucs2decode(string) {
10578
+ var output = [], counter = 0, length = string.length, value, extra;
10579
+ while (counter < length) {
10580
+ value = string.charCodeAt(counter++);
10581
+ if (value >= 55296 && value <= 56319 && counter < length) {
10582
+ extra = string.charCodeAt(counter++);
10583
+ if ((extra & 64512) == 56320) {
10584
+ output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
10585
+ } else {
10586
+ output.push(value);
10587
+ counter--;
10588
+ }
10589
+ } else {
10590
+ output.push(value);
10591
+ }
10592
+ }
10593
+ return output;
10594
+ }
10595
+ function ucs2encode(array) {
10596
+ return map(array, function(value) {
10597
+ var output = "";
10598
+ if (value > 65535) {
10599
+ value -= 65536;
10600
+ output += stringFromCharCode(value >>> 10 & 1023 | 55296);
10601
+ value = 56320 | value & 1023;
10602
+ }
10603
+ output += stringFromCharCode(value);
10604
+ return output;
10605
+ }).join("");
10606
+ }
10607
+ function basicToDigit(codePoint) {
10608
+ if (codePoint - 48 < 10) {
10609
+ return codePoint - 22;
10610
+ }
10611
+ if (codePoint - 65 < 26) {
10612
+ return codePoint - 65;
10613
+ }
10614
+ if (codePoint - 97 < 26) {
10615
+ return codePoint - 97;
10616
+ }
10617
+ return base;
10618
+ }
10619
+ function digitToBasic(digit, flag) {
10620
+ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
10621
+ }
10622
+ function adapt(delta, numPoints, firstTime) {
10623
+ var k = 0;
10624
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
10625
+ delta += floor(delta / numPoints);
10626
+ for (; delta > baseMinusTMin * tMax >> 1; k += base) {
10627
+ delta = floor(delta / baseMinusTMin);
10628
+ }
10629
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
10630
+ }
10631
+ function decode(input) {
10632
+ var output = [], inputLength = input.length, out, i = 0, n = initialN, bias = initialBias, basic, j, index, oldi, w, k, digit, t, baseMinusT;
10633
+ basic = input.lastIndexOf(delimiter);
10634
+ if (basic < 0) {
10635
+ basic = 0;
10636
+ }
10637
+ for (j = 0; j < basic; ++j) {
10638
+ if (input.charCodeAt(j) >= 128) {
10639
+ error("not-basic");
10640
+ }
10641
+ output.push(input.charCodeAt(j));
10642
+ }
10643
+ for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
10644
+ for (oldi = i, w = 1, k = base; ; k += base) {
10645
+ if (index >= inputLength) {
10646
+ error("invalid-input");
10647
+ }
10648
+ digit = basicToDigit(input.charCodeAt(index++));
10649
+ if (digit >= base || digit > floor((maxInt - i) / w)) {
10650
+ error("overflow");
10651
+ }
10652
+ i += digit * w;
10653
+ t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
10654
+ if (digit < t) {
10655
+ break;
10656
+ }
10657
+ baseMinusT = base - t;
10658
+ if (w > floor(maxInt / baseMinusT)) {
10659
+ error("overflow");
10660
+ }
10661
+ w *= baseMinusT;
10662
+ }
10663
+ out = output.length + 1;
10664
+ bias = adapt(i - oldi, out, oldi == 0);
10665
+ if (floor(i / out) > maxInt - n) {
10666
+ error("overflow");
10667
+ }
10668
+ n += floor(i / out);
10669
+ i %= out;
10670
+ output.splice(i++, 0, n);
10671
+ }
10672
+ return ucs2encode(output);
10673
+ }
10674
+ function encode(input) {
10675
+ var n, delta, handledCPCount, basicLength, bias, j, m, q, k, t, currentValue, output = [], inputLength, handledCPCountPlusOne, baseMinusT, qMinusT;
10676
+ input = ucs2decode(input);
10677
+ inputLength = input.length;
10678
+ n = initialN;
10679
+ delta = 0;
10680
+ bias = initialBias;
10681
+ for (j = 0; j < inputLength; ++j) {
10682
+ currentValue = input[j];
10683
+ if (currentValue < 128) {
10684
+ output.push(stringFromCharCode(currentValue));
10685
+ }
10686
+ }
10687
+ handledCPCount = basicLength = output.length;
10688
+ if (basicLength) {
10689
+ output.push(delimiter);
10690
+ }
10691
+ while (handledCPCount < inputLength) {
10692
+ for (m = maxInt, j = 0; j < inputLength; ++j) {
10693
+ currentValue = input[j];
10694
+ if (currentValue >= n && currentValue < m) {
10695
+ m = currentValue;
10696
+ }
10697
+ }
10698
+ handledCPCountPlusOne = handledCPCount + 1;
10699
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
10700
+ error("overflow");
10701
+ }
10702
+ delta += (m - n) * handledCPCountPlusOne;
10703
+ n = m;
10704
+ for (j = 0; j < inputLength; ++j) {
10705
+ currentValue = input[j];
10706
+ if (currentValue < n && ++delta > maxInt) {
10707
+ error("overflow");
10708
+ }
10709
+ if (currentValue == n) {
10710
+ for (q = delta, k = base; ; k += base) {
10711
+ t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
10712
+ if (q < t) {
10713
+ break;
10714
+ }
10715
+ qMinusT = q - t;
10716
+ baseMinusT = base - t;
10717
+ output.push(
10718
+ stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
10719
+ );
10720
+ q = floor(qMinusT / baseMinusT);
10721
+ }
10722
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
10723
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
10724
+ delta = 0;
10725
+ ++handledCPCount;
10726
+ }
10727
+ }
10728
+ ++delta;
10729
+ ++n;
10730
+ }
10731
+ return output.join("");
10732
+ }
10733
+ function toUnicode(input) {
10734
+ return mapDomain(input, function(string) {
10735
+ return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
10736
+ });
10737
+ }
10738
+ function toASCII(input) {
10739
+ return mapDomain(input, function(string) {
10740
+ return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
10741
+ });
10742
+ }
10743
+ punycode = {
10744
+ "version": "1.3.2",
10745
+ "ucs2": {
10746
+ "decode": ucs2decode,
10747
+ "encode": ucs2encode
10748
+ },
10749
+ "decode": decode,
10750
+ "encode": encode,
10751
+ "toASCII": toASCII,
10752
+ "toUnicode": toUnicode
10753
+ };
10754
+ if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
10755
+ define("punycode", function() {
10756
+ return punycode;
10757
+ });
10758
+ } else if (freeExports && freeModule) {
10759
+ if (module.exports == freeExports) {
10760
+ freeModule.exports = punycode;
10761
+ } else {
10762
+ for (key in punycode) {
10763
+ punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
10764
+ }
10765
+ }
10766
+ } else {
10767
+ root.punycode = punycode;
10768
+ }
10769
+ })(exports);
10770
+ }
10771
+ });
10772
+
10773
+ // ../../node_modules/.pnpm/url@0.11.0/node_modules/url/util.js
10774
+ var require_util3 = __commonJS({
10775
+ "../../node_modules/.pnpm/url@0.11.0/node_modules/url/util.js"(exports, module) {
10776
+ init_define_process();
10777
+ module.exports = {
10778
+ isString: function(arg) {
10779
+ return typeof arg === "string";
10780
+ },
10781
+ isObject: function(arg) {
10782
+ return typeof arg === "object" && arg !== null;
10783
+ },
10784
+ isNull: function(arg) {
10785
+ return arg === null;
10786
+ },
10787
+ isNullOrUndefined: function(arg) {
10788
+ return arg == null;
10789
+ }
10790
+ };
10791
+ }
10792
+ });
10793
+
10794
+ // ../../node_modules/.pnpm/querystring@0.2.0/node_modules/querystring/decode.js
10795
+ var require_decode = __commonJS({
10796
+ "../../node_modules/.pnpm/querystring@0.2.0/node_modules/querystring/decode.js"(exports, module) {
10797
+ init_define_process();
10798
+ function hasOwnProperty(obj, prop) {
10799
+ return Object.prototype.hasOwnProperty.call(obj, prop);
10800
+ }
10801
+ module.exports = function(qs, sep, eq, options) {
10802
+ sep = sep || "&";
10803
+ eq = eq || "=";
10804
+ var obj = {};
10805
+ if (typeof qs !== "string" || qs.length === 0) {
10806
+ return obj;
10807
+ }
10808
+ var regexp = /\+/g;
10809
+ qs = qs.split(sep);
10810
+ var maxKeys = 1e3;
10811
+ if (options && typeof options.maxKeys === "number") {
10812
+ maxKeys = options.maxKeys;
10813
+ }
10814
+ var len = qs.length;
10815
+ if (maxKeys > 0 && len > maxKeys) {
10816
+ len = maxKeys;
10817
+ }
10818
+ for (var i = 0; i < len; ++i) {
10819
+ var x = qs[i].replace(regexp, "%20"), idx = x.indexOf(eq), kstr, vstr, k, v;
10820
+ if (idx >= 0) {
10821
+ kstr = x.substr(0, idx);
10822
+ vstr = x.substr(idx + 1);
10823
+ } else {
10824
+ kstr = x;
10825
+ vstr = "";
10826
+ }
10827
+ k = decodeURIComponent(kstr);
10828
+ v = decodeURIComponent(vstr);
10829
+ if (!hasOwnProperty(obj, k)) {
10830
+ obj[k] = v;
10831
+ } else if (Array.isArray(obj[k])) {
10832
+ obj[k].push(v);
10833
+ } else {
10834
+ obj[k] = [obj[k], v];
10835
+ }
10836
+ }
10837
+ return obj;
10838
+ };
10839
+ }
10840
+ });
10841
+
10842
+ // ../../node_modules/.pnpm/querystring@0.2.0/node_modules/querystring/encode.js
10843
+ var require_encode = __commonJS({
10844
+ "../../node_modules/.pnpm/querystring@0.2.0/node_modules/querystring/encode.js"(exports, module) {
10845
+ init_define_process();
10846
+ var stringifyPrimitive = function(v) {
10847
+ switch (typeof v) {
10848
+ case "string":
10849
+ return v;
10850
+ case "boolean":
10851
+ return v ? "true" : "false";
10852
+ case "number":
10853
+ return isFinite(v) ? v : "";
10854
+ default:
10855
+ return "";
10856
+ }
10857
+ };
10858
+ module.exports = function(obj, sep, eq, name2) {
10859
+ sep = sep || "&";
10860
+ eq = eq || "=";
10861
+ if (obj === null) {
10862
+ obj = void 0;
10863
+ }
10864
+ if (typeof obj === "object") {
10865
+ return Object.keys(obj).map(function(k) {
10866
+ var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
10867
+ if (Array.isArray(obj[k])) {
10868
+ return obj[k].map(function(v) {
10869
+ return ks + encodeURIComponent(stringifyPrimitive(v));
10870
+ }).join(sep);
10871
+ } else {
10872
+ return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
10873
+ }
10874
+ }).join(sep);
10875
+ }
10876
+ if (!name2)
10877
+ return "";
10878
+ return encodeURIComponent(stringifyPrimitive(name2)) + eq + encodeURIComponent(stringifyPrimitive(obj));
10879
+ };
10880
+ }
10881
+ });
10882
+
10883
+ // ../../node_modules/.pnpm/querystring@0.2.0/node_modules/querystring/index.js
10884
+ var require_querystring = __commonJS({
10885
+ "../../node_modules/.pnpm/querystring@0.2.0/node_modules/querystring/index.js"(exports) {
10886
+ init_define_process();
10887
+ exports.decode = exports.parse = require_decode();
10888
+ exports.encode = exports.stringify = require_encode();
10889
+ }
10890
+ });
10891
+
10892
+ // ../../node_modules/.pnpm/url@0.11.0/node_modules/url/url.js
10893
+ var require_url = __commonJS({
10894
+ "../../node_modules/.pnpm/url@0.11.0/node_modules/url/url.js"(exports) {
10895
+ init_define_process();
10896
+ var punycode = require_punycode();
10897
+ var util = require_util3();
10898
+ exports.parse = urlParse;
10899
+ exports.resolve = urlResolve;
10900
+ exports.resolveObject = urlResolveObject;
10901
+ exports.format = urlFormat;
10902
+ exports.Url = Url;
10903
+ function Url() {
10904
+ this.protocol = null;
10905
+ this.slashes = null;
10906
+ this.auth = null;
10907
+ this.host = null;
10908
+ this.port = null;
10909
+ this.hostname = null;
10910
+ this.hash = null;
10911
+ this.search = null;
10912
+ this.query = null;
10913
+ this.pathname = null;
10914
+ this.path = null;
10915
+ this.href = null;
10916
+ }
10917
+ var protocolPattern = /^([a-z0-9.+-]+:)/i;
10918
+ var portPattern = /:[0-9]*$/;
10919
+ var simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;
10920
+ var delims = ["<", ">", '"', "`", " ", "\r", "\n", " "];
10921
+ var unwise = ["{", "}", "|", "\\", "^", "`"].concat(delims);
10922
+ var autoEscape = ["'"].concat(unwise);
10923
+ var nonHostChars = ["%", "/", "?", ";", "#"].concat(autoEscape);
10924
+ var hostEndingChars = ["/", "?", "#"];
10925
+ var hostnameMaxLen = 255;
10926
+ var hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/;
10927
+ var hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/;
10928
+ var unsafeProtocol = {
10929
+ "javascript": true,
10930
+ "javascript:": true
10931
+ };
10932
+ var hostlessProtocol = {
10933
+ "javascript": true,
10934
+ "javascript:": true
10935
+ };
10936
+ var slashedProtocol = {
10937
+ "http": true,
10938
+ "https": true,
10939
+ "ftp": true,
10940
+ "gopher": true,
10941
+ "file": true,
10942
+ "http:": true,
10943
+ "https:": true,
10944
+ "ftp:": true,
10945
+ "gopher:": true,
10946
+ "file:": true
10947
+ };
10948
+ var querystring = require_querystring();
10949
+ function urlParse(url, parseQueryString, slashesDenoteHost) {
10950
+ if (url && util.isObject(url) && url instanceof Url)
10951
+ return url;
10952
+ var u = new Url();
10953
+ u.parse(url, parseQueryString, slashesDenoteHost);
10954
+ return u;
10955
+ }
10956
+ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
10957
+ if (!util.isString(url)) {
10958
+ throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
10959
+ }
10960
+ var queryIndex = url.indexOf("?"), splitter = queryIndex !== -1 && queryIndex < url.indexOf("#") ? "?" : "#", uSplit = url.split(splitter), slashRegex = /\\/g;
10961
+ uSplit[0] = uSplit[0].replace(slashRegex, "/");
10962
+ url = uSplit.join(splitter);
10963
+ var rest = url;
10964
+ rest = rest.trim();
10965
+ if (!slashesDenoteHost && url.split("#").length === 1) {
10966
+ var simplePath = simplePathPattern.exec(rest);
10967
+ if (simplePath) {
10968
+ this.path = rest;
10969
+ this.href = rest;
10970
+ this.pathname = simplePath[1];
10971
+ if (simplePath[2]) {
10972
+ this.search = simplePath[2];
10973
+ if (parseQueryString) {
10974
+ this.query = querystring.parse(this.search.substr(1));
10975
+ } else {
10976
+ this.query = this.search.substr(1);
10977
+ }
10978
+ } else if (parseQueryString) {
10979
+ this.search = "";
10980
+ this.query = {};
10981
+ }
10982
+ return this;
10983
+ }
10984
+ }
10985
+ var proto = protocolPattern.exec(rest);
10986
+ if (proto) {
10987
+ proto = proto[0];
10988
+ var lowerProto = proto.toLowerCase();
10989
+ this.protocol = lowerProto;
10990
+ rest = rest.substr(proto.length);
10991
+ }
10992
+ if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
10993
+ var slashes = rest.substr(0, 2) === "//";
10994
+ if (slashes && !(proto && hostlessProtocol[proto])) {
10995
+ rest = rest.substr(2);
10996
+ this.slashes = true;
10997
+ }
10998
+ }
10999
+ if (!hostlessProtocol[proto] && (slashes || proto && !slashedProtocol[proto])) {
11000
+ var hostEnd = -1;
11001
+ for (var i = 0; i < hostEndingChars.length; i++) {
11002
+ var hec = rest.indexOf(hostEndingChars[i]);
11003
+ if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
11004
+ hostEnd = hec;
11005
+ }
11006
+ var auth, atSign;
11007
+ if (hostEnd === -1) {
11008
+ atSign = rest.lastIndexOf("@");
11009
+ } else {
11010
+ atSign = rest.lastIndexOf("@", hostEnd);
11011
+ }
11012
+ if (atSign !== -1) {
11013
+ auth = rest.slice(0, atSign);
11014
+ rest = rest.slice(atSign + 1);
11015
+ this.auth = decodeURIComponent(auth);
11016
+ }
11017
+ hostEnd = -1;
11018
+ for (var i = 0; i < nonHostChars.length; i++) {
11019
+ var hec = rest.indexOf(nonHostChars[i]);
11020
+ if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
11021
+ hostEnd = hec;
11022
+ }
11023
+ if (hostEnd === -1)
11024
+ hostEnd = rest.length;
11025
+ this.host = rest.slice(0, hostEnd);
11026
+ rest = rest.slice(hostEnd);
11027
+ this.parseHost();
11028
+ this.hostname = this.hostname || "";
11029
+ var ipv6Hostname = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
11030
+ if (!ipv6Hostname) {
11031
+ var hostparts = this.hostname.split(/\./);
11032
+ for (var i = 0, l = hostparts.length; i < l; i++) {
11033
+ var part = hostparts[i];
11034
+ if (!part)
11035
+ continue;
11036
+ if (!part.match(hostnamePartPattern)) {
11037
+ var newpart = "";
11038
+ for (var j = 0, k = part.length; j < k; j++) {
11039
+ if (part.charCodeAt(j) > 127) {
11040
+ newpart += "x";
11041
+ } else {
11042
+ newpart += part[j];
11043
+ }
11044
+ }
11045
+ if (!newpart.match(hostnamePartPattern)) {
11046
+ var validParts = hostparts.slice(0, i);
11047
+ var notHost = hostparts.slice(i + 1);
11048
+ var bit = part.match(hostnamePartStart);
11049
+ if (bit) {
11050
+ validParts.push(bit[1]);
11051
+ notHost.unshift(bit[2]);
11052
+ }
11053
+ if (notHost.length) {
11054
+ rest = "/" + notHost.join(".") + rest;
11055
+ }
11056
+ this.hostname = validParts.join(".");
11057
+ break;
11058
+ }
11059
+ }
11060
+ }
11061
+ }
11062
+ if (this.hostname.length > hostnameMaxLen) {
11063
+ this.hostname = "";
11064
+ } else {
11065
+ this.hostname = this.hostname.toLowerCase();
11066
+ }
11067
+ if (!ipv6Hostname) {
11068
+ this.hostname = punycode.toASCII(this.hostname);
11069
+ }
11070
+ var p = this.port ? ":" + this.port : "";
11071
+ var h = this.hostname || "";
11072
+ this.host = h + p;
11073
+ this.href += this.host;
11074
+ if (ipv6Hostname) {
11075
+ this.hostname = this.hostname.substr(1, this.hostname.length - 2);
11076
+ if (rest[0] !== "/") {
11077
+ rest = "/" + rest;
11078
+ }
11079
+ }
11080
+ }
11081
+ if (!unsafeProtocol[lowerProto]) {
11082
+ for (var i = 0, l = autoEscape.length; i < l; i++) {
11083
+ var ae = autoEscape[i];
11084
+ if (rest.indexOf(ae) === -1)
11085
+ continue;
11086
+ var esc = encodeURIComponent(ae);
11087
+ if (esc === ae) {
11088
+ esc = escape(ae);
11089
+ }
11090
+ rest = rest.split(ae).join(esc);
11091
+ }
11092
+ }
11093
+ var hash = rest.indexOf("#");
11094
+ if (hash !== -1) {
11095
+ this.hash = rest.substr(hash);
11096
+ rest = rest.slice(0, hash);
11097
+ }
11098
+ var qm = rest.indexOf("?");
11099
+ if (qm !== -1) {
11100
+ this.search = rest.substr(qm);
11101
+ this.query = rest.substr(qm + 1);
11102
+ if (parseQueryString) {
11103
+ this.query = querystring.parse(this.query);
11104
+ }
11105
+ rest = rest.slice(0, qm);
11106
+ } else if (parseQueryString) {
11107
+ this.search = "";
11108
+ this.query = {};
11109
+ }
11110
+ if (rest)
11111
+ this.pathname = rest;
11112
+ if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {
11113
+ this.pathname = "/";
11114
+ }
11115
+ if (this.pathname || this.search) {
11116
+ var p = this.pathname || "";
11117
+ var s = this.search || "";
11118
+ this.path = p + s;
11119
+ }
11120
+ this.href = this.format();
11121
+ return this;
11122
+ };
11123
+ function urlFormat(obj) {
11124
+ if (util.isString(obj))
11125
+ obj = urlParse(obj);
11126
+ if (!(obj instanceof Url))
11127
+ return Url.prototype.format.call(obj);
11128
+ return obj.format();
11129
+ }
11130
+ Url.prototype.format = function() {
11131
+ var auth = this.auth || "";
11132
+ if (auth) {
11133
+ auth = encodeURIComponent(auth);
11134
+ auth = auth.replace(/%3A/i, ":");
11135
+ auth += "@";
11136
+ }
11137
+ var protocol = this.protocol || "", pathname = this.pathname || "", hash = this.hash || "", host = false, query = "";
11138
+ if (this.host) {
11139
+ host = auth + this.host;
11140
+ } else if (this.hostname) {
11141
+ host = auth + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]");
11142
+ if (this.port) {
11143
+ host += ":" + this.port;
11144
+ }
11145
+ }
11146
+ if (this.query && util.isObject(this.query) && Object.keys(this.query).length) {
11147
+ query = querystring.stringify(this.query);
11148
+ }
11149
+ var search = this.search || query && "?" + query || "";
11150
+ if (protocol && protocol.substr(-1) !== ":")
11151
+ protocol += ":";
11152
+ if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {
11153
+ host = "//" + (host || "");
11154
+ if (pathname && pathname.charAt(0) !== "/")
11155
+ pathname = "/" + pathname;
11156
+ } else if (!host) {
11157
+ host = "";
11158
+ }
11159
+ if (hash && hash.charAt(0) !== "#")
11160
+ hash = "#" + hash;
11161
+ if (search && search.charAt(0) !== "?")
11162
+ search = "?" + search;
11163
+ pathname = pathname.replace(/[?#]/g, function(match) {
11164
+ return encodeURIComponent(match);
11165
+ });
11166
+ search = search.replace("#", "%23");
11167
+ return protocol + host + pathname + search + hash;
11168
+ };
11169
+ function urlResolve(source, relative) {
11170
+ return urlParse(source, false, true).resolve(relative);
11171
+ }
11172
+ Url.prototype.resolve = function(relative) {
11173
+ return this.resolveObject(urlParse(relative, false, true)).format();
11174
+ };
11175
+ function urlResolveObject(source, relative) {
11176
+ if (!source)
11177
+ return relative;
11178
+ return urlParse(source, false, true).resolveObject(relative);
11179
+ }
11180
+ Url.prototype.resolveObject = function(relative) {
11181
+ if (util.isString(relative)) {
11182
+ var rel = new Url();
11183
+ rel.parse(relative, false, true);
11184
+ relative = rel;
11185
+ }
11186
+ var result = new Url();
11187
+ var tkeys = Object.keys(this);
11188
+ for (var tk = 0; tk < tkeys.length; tk++) {
11189
+ var tkey = tkeys[tk];
11190
+ result[tkey] = this[tkey];
11191
+ }
11192
+ result.hash = relative.hash;
11193
+ if (relative.href === "") {
11194
+ result.href = result.format();
11195
+ return result;
11196
+ }
11197
+ if (relative.slashes && !relative.protocol) {
11198
+ var rkeys = Object.keys(relative);
11199
+ for (var rk = 0; rk < rkeys.length; rk++) {
11200
+ var rkey = rkeys[rk];
11201
+ if (rkey !== "protocol")
11202
+ result[rkey] = relative[rkey];
11203
+ }
11204
+ if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {
11205
+ result.path = result.pathname = "/";
11206
+ }
11207
+ result.href = result.format();
11208
+ return result;
11209
+ }
11210
+ if (relative.protocol && relative.protocol !== result.protocol) {
11211
+ if (!slashedProtocol[relative.protocol]) {
11212
+ var keys2 = Object.keys(relative);
11213
+ for (var v = 0; v < keys2.length; v++) {
11214
+ var k = keys2[v];
11215
+ result[k] = relative[k];
11216
+ }
11217
+ result.href = result.format();
11218
+ return result;
11219
+ }
11220
+ result.protocol = relative.protocol;
11221
+ if (!relative.host && !hostlessProtocol[relative.protocol]) {
11222
+ var relPath = (relative.pathname || "").split("/");
11223
+ while (relPath.length && !(relative.host = relPath.shift()))
11224
+ ;
11225
+ if (!relative.host)
11226
+ relative.host = "";
11227
+ if (!relative.hostname)
11228
+ relative.hostname = "";
11229
+ if (relPath[0] !== "")
11230
+ relPath.unshift("");
11231
+ if (relPath.length < 2)
11232
+ relPath.unshift("");
11233
+ result.pathname = relPath.join("/");
11234
+ } else {
11235
+ result.pathname = relative.pathname;
11236
+ }
11237
+ result.search = relative.search;
11238
+ result.query = relative.query;
11239
+ result.host = relative.host || "";
11240
+ result.auth = relative.auth;
11241
+ result.hostname = relative.hostname || relative.host;
11242
+ result.port = relative.port;
11243
+ if (result.pathname || result.search) {
11244
+ var p = result.pathname || "";
11245
+ var s = result.search || "";
11246
+ result.path = p + s;
11247
+ }
11248
+ result.slashes = result.slashes || relative.slashes;
11249
+ result.href = result.format();
11250
+ return result;
11251
+ }
11252
+ var isSourceAbs = result.pathname && result.pathname.charAt(0) === "/", isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === "/", mustEndAbs = isRelAbs || isSourceAbs || result.host && relative.pathname, removeAllDots = mustEndAbs, srcPath = result.pathname && result.pathname.split("/") || [], relPath = relative.pathname && relative.pathname.split("/") || [], psychotic = result.protocol && !slashedProtocol[result.protocol];
11253
+ if (psychotic) {
11254
+ result.hostname = "";
11255
+ result.port = null;
11256
+ if (result.host) {
11257
+ if (srcPath[0] === "")
11258
+ srcPath[0] = result.host;
11259
+ else
11260
+ srcPath.unshift(result.host);
11261
+ }
11262
+ result.host = "";
11263
+ if (relative.protocol) {
11264
+ relative.hostname = null;
11265
+ relative.port = null;
11266
+ if (relative.host) {
11267
+ if (relPath[0] === "")
11268
+ relPath[0] = relative.host;
11269
+ else
11270
+ relPath.unshift(relative.host);
11271
+ }
11272
+ relative.host = null;
11273
+ }
11274
+ mustEndAbs = mustEndAbs && (relPath[0] === "" || srcPath[0] === "");
11275
+ }
11276
+ if (isRelAbs) {
11277
+ result.host = relative.host || relative.host === "" ? relative.host : result.host;
11278
+ result.hostname = relative.hostname || relative.hostname === "" ? relative.hostname : result.hostname;
11279
+ result.search = relative.search;
11280
+ result.query = relative.query;
11281
+ srcPath = relPath;
11282
+ } else if (relPath.length) {
11283
+ if (!srcPath)
11284
+ srcPath = [];
11285
+ srcPath.pop();
11286
+ srcPath = srcPath.concat(relPath);
11287
+ result.search = relative.search;
11288
+ result.query = relative.query;
11289
+ } else if (!util.isNullOrUndefined(relative.search)) {
11290
+ if (psychotic) {
11291
+ result.hostname = result.host = srcPath.shift();
11292
+ var authInHost = result.host && result.host.indexOf("@") > 0 ? result.host.split("@") : false;
11293
+ if (authInHost) {
11294
+ result.auth = authInHost.shift();
11295
+ result.host = result.hostname = authInHost.shift();
11296
+ }
11297
+ }
11298
+ result.search = relative.search;
11299
+ result.query = relative.query;
11300
+ if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
11301
+ result.path = (result.pathname ? result.pathname : "") + (result.search ? result.search : "");
11302
+ }
11303
+ result.href = result.format();
11304
+ return result;
11305
+ }
11306
+ if (!srcPath.length) {
11307
+ result.pathname = null;
11308
+ if (result.search) {
11309
+ result.path = "/" + result.search;
11310
+ } else {
11311
+ result.path = null;
11312
+ }
11313
+ result.href = result.format();
11314
+ return result;
11315
+ }
11316
+ var last = srcPath.slice(-1)[0];
11317
+ var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === "." || last === "..") || last === "";
11318
+ var up = 0;
11319
+ for (var i = srcPath.length; i >= 0; i--) {
11320
+ last = srcPath[i];
11321
+ if (last === ".") {
11322
+ srcPath.splice(i, 1);
11323
+ } else if (last === "..") {
11324
+ srcPath.splice(i, 1);
11325
+ up++;
11326
+ } else if (up) {
11327
+ srcPath.splice(i, 1);
11328
+ up--;
11329
+ }
11330
+ }
11331
+ if (!mustEndAbs && !removeAllDots) {
11332
+ for (; up--; up) {
11333
+ srcPath.unshift("..");
11334
+ }
11335
+ }
11336
+ if (mustEndAbs && srcPath[0] !== "" && (!srcPath[0] || srcPath[0].charAt(0) !== "/")) {
11337
+ srcPath.unshift("");
11338
+ }
11339
+ if (hasTrailingSlash && srcPath.join("/").substr(-1) !== "/") {
11340
+ srcPath.push("");
11341
+ }
11342
+ var isAbsolute = srcPath[0] === "" || srcPath[0] && srcPath[0].charAt(0) === "/";
11343
+ if (psychotic) {
11344
+ result.hostname = result.host = isAbsolute ? "" : srcPath.length ? srcPath.shift() : "";
11345
+ var authInHost = result.host && result.host.indexOf("@") > 0 ? result.host.split("@") : false;
11346
+ if (authInHost) {
11347
+ result.auth = authInHost.shift();
11348
+ result.host = result.hostname = authInHost.shift();
11349
+ }
11350
+ }
11351
+ mustEndAbs = mustEndAbs || result.host && srcPath.length;
11352
+ if (mustEndAbs && !isAbsolute) {
11353
+ srcPath.unshift("");
11354
+ }
11355
+ if (!srcPath.length) {
11356
+ result.pathname = null;
11357
+ result.path = null;
11358
+ } else {
11359
+ result.pathname = srcPath.join("/");
11360
+ }
11361
+ if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
11362
+ result.path = (result.pathname ? result.pathname : "") + (result.search ? result.search : "");
11363
+ }
11364
+ result.auth = relative.auth || result.auth;
11365
+ result.slashes = result.slashes || relative.slashes;
11366
+ result.href = result.format();
11367
+ return result;
11368
+ };
11369
+ Url.prototype.parseHost = function() {
11370
+ var host = this.host;
11371
+ var port = portPattern.exec(host);
11372
+ if (port) {
11373
+ port = port[0];
11374
+ if (port !== ":") {
11375
+ this.port = port.substr(1);
11376
+ }
11377
+ host = host.substr(0, host.length - port.length);
11378
+ }
11379
+ if (host)
11380
+ this.hostname = host;
11381
+ };
11382
+ }
11383
+ });
11384
+
10545
11385
  // ../../node_modules/.pnpm/fs-monkey@1.0.3/node_modules/fs-monkey/lib/correctPath.js
10546
11386
  var require_correctPath = __commonJS({
10547
11387
  "../../node_modules/.pnpm/fs-monkey@1.0.3/node_modules/fs-monkey/lib/correctPath.js"(exports) {
@@ -10907,7 +11747,7 @@ var kubb = (function (exports) {
10907
11747
  function pathToFilename(path) {
10908
11748
  if (typeof path !== "string" && !buffer_1.Buffer.isBuffer(path)) {
10909
11749
  try {
10910
- if (!(path instanceof __require("url").URL))
11750
+ if (!(path instanceof require_url().URL))
10911
11751
  throw new TypeError(ERRSTR.PATH_STR);
10912
11752
  } catch (err) {
10913
11753
  throw new TypeError(ERRSTR.PATH_STR);
@@ -16312,6 +17152,7 @@ ${file.source}`
16312
17152
  * @author Feross Aboukhadijeh <https://feross.org>
16313
17153
  * @license MIT
16314
17154
  */
17155
+ /*! https://mths.be/punycode v1.3.2 by @mathias */
16315
17156
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
16316
17157
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
16317
17158