@lark-apaas/fullstack-nestjs-core 1.1.29 → 1.1.31
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/README.md +39 -0
- package/dist/index.cjs +1616 -143
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1615 -143
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -966,9 +966,9 @@ var require_http_errors = __commonJS({
|
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
968
|
|
|
969
|
-
// ../../../node_modules/
|
|
969
|
+
// ../../../node_modules/body-parser/node_modules/ms/index.js
|
|
970
970
|
var require_ms = __commonJS({
|
|
971
|
-
"../../../node_modules/
|
|
971
|
+
"../../../node_modules/body-parser/node_modules/ms/index.js"(exports2, module2) {
|
|
972
972
|
"use strict";
|
|
973
973
|
var s = 1e3;
|
|
974
974
|
var m = s * 60;
|
|
@@ -1069,9 +1069,9 @@ var require_ms = __commonJS({
|
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
1071
|
|
|
1072
|
-
// ../../../node_modules/
|
|
1072
|
+
// ../../../node_modules/body-parser/node_modules/debug/src/debug.js
|
|
1073
1073
|
var require_debug = __commonJS({
|
|
1074
|
-
"../../../node_modules/
|
|
1074
|
+
"../../../node_modules/body-parser/node_modules/debug/src/debug.js"(exports2, module2) {
|
|
1075
1075
|
"use strict";
|
|
1076
1076
|
exports2 = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
1077
1077
|
exports2.coerce = coerce;
|
|
@@ -1182,9 +1182,9 @@ var require_debug = __commonJS({
|
|
|
1182
1182
|
}
|
|
1183
1183
|
});
|
|
1184
1184
|
|
|
1185
|
-
// ../../../node_modules/
|
|
1185
|
+
// ../../../node_modules/body-parser/node_modules/debug/src/browser.js
|
|
1186
1186
|
var require_browser = __commonJS({
|
|
1187
|
-
"../../../node_modules/
|
|
1187
|
+
"../../../node_modules/body-parser/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
1188
1188
|
"use strict";
|
|
1189
1189
|
exports2 = module2.exports = require_debug();
|
|
1190
1190
|
exports2.log = log;
|
|
@@ -1275,9 +1275,9 @@ var require_browser = __commonJS({
|
|
|
1275
1275
|
}
|
|
1276
1276
|
});
|
|
1277
1277
|
|
|
1278
|
-
// ../../../node_modules/
|
|
1278
|
+
// ../../../node_modules/body-parser/node_modules/debug/src/node.js
|
|
1279
1279
|
var require_node = __commonJS({
|
|
1280
|
-
"../../../node_modules/
|
|
1280
|
+
"../../../node_modules/body-parser/node_modules/debug/src/node.js"(exports2, module2) {
|
|
1281
1281
|
"use strict";
|
|
1282
1282
|
var tty = require("tty");
|
|
1283
1283
|
var util = require("util");
|
|
@@ -1412,9 +1412,9 @@ var require_node = __commonJS({
|
|
|
1412
1412
|
}
|
|
1413
1413
|
});
|
|
1414
1414
|
|
|
1415
|
-
// ../../../node_modules/
|
|
1415
|
+
// ../../../node_modules/body-parser/node_modules/debug/src/index.js
|
|
1416
1416
|
var require_src = __commonJS({
|
|
1417
|
-
"../../../node_modules/
|
|
1417
|
+
"../../../node_modules/body-parser/node_modules/debug/src/index.js"(exports2, module2) {
|
|
1418
1418
|
"use strict";
|
|
1419
1419
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
1420
1420
|
module2.exports = require_browser();
|
|
@@ -1590,9 +1590,9 @@ var require_safer = __commonJS({
|
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
|
|
1593
|
-
// ../../../node_modules/iconv-lite/lib/bom-handling.js
|
|
1593
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/lib/bom-handling.js
|
|
1594
1594
|
var require_bom_handling = __commonJS({
|
|
1595
|
-
"../../../node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
1595
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
1596
1596
|
"use strict";
|
|
1597
1597
|
var BOMChar = "\uFEFF";
|
|
1598
1598
|
exports2.PrependBOM = PrependBOMWrapper;
|
|
@@ -1634,9 +1634,9 @@ var require_bom_handling = __commonJS({
|
|
|
1634
1634
|
}
|
|
1635
1635
|
});
|
|
1636
1636
|
|
|
1637
|
-
// ../../../node_modules/iconv-lite/encodings/internal.js
|
|
1637
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/internal.js
|
|
1638
1638
|
var require_internal = __commonJS({
|
|
1639
|
-
"../../../node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
1639
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
1640
1640
|
"use strict";
|
|
1641
1641
|
var Buffer2 = require_safer().Buffer;
|
|
1642
1642
|
module2.exports = {
|
|
@@ -1793,9 +1793,9 @@ var require_internal = __commonJS({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
|
|
1796
|
-
// ../../../node_modules/iconv-lite/encodings/utf16.js
|
|
1796
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf16.js
|
|
1797
1797
|
var require_utf16 = __commonJS({
|
|
1798
|
-
"../../../node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
1798
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
1799
1799
|
"use strict";
|
|
1800
1800
|
var Buffer2 = require_safer().Buffer;
|
|
1801
1801
|
exports2.utf16be = Utf16BECodec;
|
|
@@ -1909,9 +1909,9 @@ var require_utf16 = __commonJS({
|
|
|
1909
1909
|
}
|
|
1910
1910
|
});
|
|
1911
1911
|
|
|
1912
|
-
// ../../../node_modules/iconv-lite/encodings/utf7.js
|
|
1912
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf7.js
|
|
1913
1913
|
var require_utf7 = __commonJS({
|
|
1914
|
-
"../../../node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
1914
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
1915
1915
|
"use strict";
|
|
1916
1916
|
var Buffer2 = require_safer().Buffer;
|
|
1917
1917
|
exports2.utf7 = Utf7Codec;
|
|
@@ -2110,9 +2110,9 @@ var require_utf7 = __commonJS({
|
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
|
-
// ../../../node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
2113
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
2114
2114
|
var require_sbcs_codec = __commonJS({
|
|
2115
|
-
"../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
2115
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
2116
2116
|
"use strict";
|
|
2117
2117
|
var Buffer2 = require_safer().Buffer;
|
|
2118
2118
|
exports2._sbcs = SBCSCodec;
|
|
@@ -2164,9 +2164,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
2164
2164
|
}
|
|
2165
2165
|
});
|
|
2166
2166
|
|
|
2167
|
-
// ../../../node_modules/iconv-lite/encodings/sbcs-data.js
|
|
2167
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
2168
2168
|
var require_sbcs_data = __commonJS({
|
|
2169
|
-
"../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
2169
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
2170
2170
|
"use strict";
|
|
2171
2171
|
module2.exports = {
|
|
2172
2172
|
// Not supported by iconv, not sure why.
|
|
@@ -2313,9 +2313,9 @@ var require_sbcs_data = __commonJS({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
|
|
2316
|
-
// ../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
2316
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
2317
2317
|
var require_sbcs_data_generated = __commonJS({
|
|
2318
|
-
"../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
2318
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
2319
2319
|
"use strict";
|
|
2320
2320
|
module2.exports = {
|
|
2321
2321
|
"437": "cp437",
|
|
@@ -2768,9 +2768,9 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
2768
2768
|
}
|
|
2769
2769
|
});
|
|
2770
2770
|
|
|
2771
|
-
// ../../../node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
2771
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
2772
2772
|
var require_dbcs_codec = __commonJS({
|
|
2773
|
-
"../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
2773
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
2774
2774
|
"use strict";
|
|
2775
2775
|
var Buffer2 = require_safer().Buffer;
|
|
2776
2776
|
exports2._dbcs = DBCSCodec;
|
|
@@ -3115,9 +3115,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
|
|
3118
|
-
// ../../../node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
3118
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
3119
3119
|
var require_shiftjis = __commonJS({
|
|
3120
|
-
"../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
3120
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
3121
3121
|
module2.exports = [
|
|
3122
3122
|
["0", "\0", 128],
|
|
3123
3123
|
["a1", "\uFF61", 62],
|
|
@@ -3246,9 +3246,9 @@ var require_shiftjis = __commonJS({
|
|
|
3246
3246
|
}
|
|
3247
3247
|
});
|
|
3248
3248
|
|
|
3249
|
-
// ../../../node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
3249
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
3250
3250
|
var require_eucjp = __commonJS({
|
|
3251
|
-
"../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
3251
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
3252
3252
|
module2.exports = [
|
|
3253
3253
|
["0", "\0", 127],
|
|
3254
3254
|
["8ea1", "\uFF61", 62],
|
|
@@ -3434,9 +3434,9 @@ var require_eucjp = __commonJS({
|
|
|
3434
3434
|
}
|
|
3435
3435
|
});
|
|
3436
3436
|
|
|
3437
|
-
// ../../../node_modules/iconv-lite/encodings/tables/cp936.json
|
|
3437
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
3438
3438
|
var require_cp936 = __commonJS({
|
|
3439
|
-
"../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
3439
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
3440
3440
|
module2.exports = [
|
|
3441
3441
|
["0", "\0", 127, "\u20AC"],
|
|
3442
3442
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
@@ -3704,9 +3704,9 @@ var require_cp936 = __commonJS({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
3706
3706
|
|
|
3707
|
-
// ../../../node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
3707
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
3708
3708
|
var require_gbk_added = __commonJS({
|
|
3709
|
-
"../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
3709
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
3710
3710
|
module2.exports = [
|
|
3711
3711
|
["a140", "\uE4C6", 62],
|
|
3712
3712
|
["a180", "\uE505", 32],
|
|
@@ -3765,16 +3765,16 @@ var require_gbk_added = __commonJS({
|
|
|
3765
3765
|
}
|
|
3766
3766
|
});
|
|
3767
3767
|
|
|
3768
|
-
// ../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
3768
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
3769
3769
|
var require_gb18030_ranges = __commonJS({
|
|
3770
|
-
"../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
3770
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
3771
3771
|
module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
3772
3772
|
}
|
|
3773
3773
|
});
|
|
3774
3774
|
|
|
3775
|
-
// ../../../node_modules/iconv-lite/encodings/tables/cp949.json
|
|
3775
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
3776
3776
|
var require_cp949 = __commonJS({
|
|
3777
|
-
"../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
3777
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
3778
3778
|
module2.exports = [
|
|
3779
3779
|
["0", "\0", 127],
|
|
3780
3780
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
@@ -4051,9 +4051,9 @@ var require_cp949 = __commonJS({
|
|
|
4051
4051
|
}
|
|
4052
4052
|
});
|
|
4053
4053
|
|
|
4054
|
-
// ../../../node_modules/iconv-lite/encodings/tables/cp950.json
|
|
4054
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
4055
4055
|
var require_cp950 = __commonJS({
|
|
4056
|
-
"../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
4056
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
4057
4057
|
module2.exports = [
|
|
4058
4058
|
["0", "\0", 127],
|
|
4059
4059
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
@@ -4234,9 +4234,9 @@ var require_cp950 = __commonJS({
|
|
|
4234
4234
|
}
|
|
4235
4235
|
});
|
|
4236
4236
|
|
|
4237
|
-
// ../../../node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
4237
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
4238
4238
|
var require_big5_added = __commonJS({
|
|
4239
|
-
"../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
4239
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
4240
4240
|
module2.exports = [
|
|
4241
4241
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
4242
4242
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
@@ -4362,9 +4362,9 @@ var require_big5_added = __commonJS({
|
|
|
4362
4362
|
}
|
|
4363
4363
|
});
|
|
4364
4364
|
|
|
4365
|
-
// ../../../node_modules/iconv-lite/encodings/dbcs-data.js
|
|
4365
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
4366
4366
|
var require_dbcs_data = __commonJS({
|
|
4367
|
-
"../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
4367
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
4368
4368
|
"use strict";
|
|
4369
4369
|
module2.exports = {
|
|
4370
4370
|
// == Japanese/ShiftJIS ====================================================
|
|
@@ -4554,9 +4554,9 @@ var require_dbcs_data = __commonJS({
|
|
|
4554
4554
|
}
|
|
4555
4555
|
});
|
|
4556
4556
|
|
|
4557
|
-
// ../../../node_modules/iconv-lite/encodings/index.js
|
|
4557
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/index.js
|
|
4558
4558
|
var require_encodings = __commonJS({
|
|
4559
|
-
"../../../node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
4559
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
4560
4560
|
"use strict";
|
|
4561
4561
|
var modules = [
|
|
4562
4562
|
require_internal(),
|
|
@@ -4578,9 +4578,9 @@ var require_encodings = __commonJS({
|
|
|
4578
4578
|
}
|
|
4579
4579
|
});
|
|
4580
4580
|
|
|
4581
|
-
// ../../../node_modules/iconv-lite/lib/streams.js
|
|
4581
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/lib/streams.js
|
|
4582
4582
|
var require_streams = __commonJS({
|
|
4583
|
-
"../../../node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
4583
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
4584
4584
|
"use strict";
|
|
4585
4585
|
var Buffer2 = require("buffer").Buffer;
|
|
4586
4586
|
var Transform = require("stream").Transform;
|
|
@@ -4683,9 +4683,9 @@ var require_streams = __commonJS({
|
|
|
4683
4683
|
}
|
|
4684
4684
|
});
|
|
4685
4685
|
|
|
4686
|
-
// ../../../node_modules/iconv-lite/lib/extend-node.js
|
|
4686
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js
|
|
4687
4687
|
var require_extend_node = __commonJS({
|
|
4688
|
-
"../../../node_modules/iconv-lite/lib/extend-node.js"(exports2, module2) {
|
|
4688
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js"(exports2, module2) {
|
|
4689
4689
|
"use strict";
|
|
4690
4690
|
var Buffer2 = require("buffer").Buffer;
|
|
4691
4691
|
module2.exports = function(iconv) {
|
|
@@ -4836,9 +4836,9 @@ var require_extend_node = __commonJS({
|
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
4838
4838
|
|
|
4839
|
-
// ../../../node_modules/iconv-lite/lib/index.js
|
|
4839
|
+
// ../../../node_modules/body-parser/node_modules/iconv-lite/lib/index.js
|
|
4840
4840
|
var require_lib = __commonJS({
|
|
4841
|
-
"../../../node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
4841
|
+
"../../../node_modules/body-parser/node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
4842
4842
|
"use strict";
|
|
4843
4843
|
var Buffer2 = require_safer().Buffer;
|
|
4844
4844
|
var bomHandling = require_bom_handling();
|
|
@@ -4975,9 +4975,9 @@ var require_unpipe = __commonJS({
|
|
|
4975
4975
|
}
|
|
4976
4976
|
});
|
|
4977
4977
|
|
|
4978
|
-
// ../../../node_modules/
|
|
4978
|
+
// ../../../node_modules/body-parser/node_modules/raw-body/index.js
|
|
4979
4979
|
var require_raw_body = __commonJS({
|
|
4980
|
-
"../../../node_modules/
|
|
4980
|
+
"../../../node_modules/body-parser/node_modules/raw-body/index.js"(exports2, module2) {
|
|
4981
4981
|
"use strict";
|
|
4982
4982
|
var asyncHooks = tryRequireAsyncHooks();
|
|
4983
4983
|
var bytes = require_bytes();
|
|
@@ -5362,9 +5362,9 @@ var require_on_finished = __commonJS({
|
|
|
5362
5362
|
}
|
|
5363
5363
|
});
|
|
5364
5364
|
|
|
5365
|
-
// ../../../node_modules/
|
|
5365
|
+
// ../../../node_modules/body-parser/lib/read.js
|
|
5366
5366
|
var require_read = __commonJS({
|
|
5367
|
-
"../../../node_modules/
|
|
5367
|
+
"../../../node_modules/body-parser/lib/read.js"(exports2, module2) {
|
|
5368
5368
|
"use strict";
|
|
5369
5369
|
var createError = require_http_errors();
|
|
5370
5370
|
var destroy = require_destroy();
|
|
@@ -14369,9 +14369,9 @@ var require_type_is = __commonJS({
|
|
|
14369
14369
|
}
|
|
14370
14370
|
});
|
|
14371
14371
|
|
|
14372
|
-
// ../../../node_modules/
|
|
14372
|
+
// ../../../node_modules/body-parser/lib/types/json.js
|
|
14373
14373
|
var require_json = __commonJS({
|
|
14374
|
-
"../../../node_modules/
|
|
14374
|
+
"../../../node_modules/body-parser/lib/types/json.js"(exports2, module2) {
|
|
14375
14375
|
"use strict";
|
|
14376
14376
|
var bytes = require_bytes();
|
|
14377
14377
|
var contentType = require_content_type();
|
|
@@ -14510,9 +14510,9 @@ var require_json = __commonJS({
|
|
|
14510
14510
|
}
|
|
14511
14511
|
});
|
|
14512
14512
|
|
|
14513
|
-
// ../../../node_modules/
|
|
14513
|
+
// ../../../node_modules/body-parser/lib/types/raw.js
|
|
14514
14514
|
var require_raw = __commonJS({
|
|
14515
|
-
"../../../node_modules/
|
|
14515
|
+
"../../../node_modules/body-parser/lib/types/raw.js"(exports2, module2) {
|
|
14516
14516
|
"use strict";
|
|
14517
14517
|
var bytes = require_bytes();
|
|
14518
14518
|
var debug = require_src()("body-parser:raw");
|
|
@@ -14569,9 +14569,9 @@ var require_raw = __commonJS({
|
|
|
14569
14569
|
}
|
|
14570
14570
|
});
|
|
14571
14571
|
|
|
14572
|
-
// ../../../node_modules/
|
|
14572
|
+
// ../../../node_modules/body-parser/lib/types/text.js
|
|
14573
14573
|
var require_text = __commonJS({
|
|
14574
|
-
"../../../node_modules/
|
|
14574
|
+
"../../../node_modules/body-parser/lib/types/text.js"(exports2, module2) {
|
|
14575
14575
|
"use strict";
|
|
14576
14576
|
var bytes = require_bytes();
|
|
14577
14577
|
var contentType = require_content_type();
|
|
@@ -16502,9 +16502,9 @@ var require_side_channel = __commonJS({
|
|
|
16502
16502
|
}
|
|
16503
16503
|
});
|
|
16504
16504
|
|
|
16505
|
-
// ../../../node_modules/qs/lib/formats.js
|
|
16505
|
+
// ../../../node_modules/body-parser/node_modules/qs/lib/formats.js
|
|
16506
16506
|
var require_formats = __commonJS({
|
|
16507
|
-
"../../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
16507
|
+
"../../../node_modules/body-parser/node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
16508
16508
|
"use strict";
|
|
16509
16509
|
var replace = String.prototype.replace;
|
|
16510
16510
|
var percentTwenties = /%20/g;
|
|
@@ -16528,17 +16528,32 @@ var require_formats = __commonJS({
|
|
|
16528
16528
|
}
|
|
16529
16529
|
});
|
|
16530
16530
|
|
|
16531
|
-
// ../../../node_modules/qs/lib/utils.js
|
|
16531
|
+
// ../../../node_modules/body-parser/node_modules/qs/lib/utils.js
|
|
16532
16532
|
var require_utils = __commonJS({
|
|
16533
|
-
"../../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
16533
|
+
"../../../node_modules/body-parser/node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
16534
16534
|
"use strict";
|
|
16535
16535
|
var formats = require_formats();
|
|
16536
|
+
var getSideChannel = require_side_channel();
|
|
16536
16537
|
var has = Object.prototype.hasOwnProperty;
|
|
16537
16538
|
var isArray = Array.isArray;
|
|
16539
|
+
var overflowChannel = getSideChannel();
|
|
16540
|
+
var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
|
|
16541
|
+
overflowChannel.set(obj, maxIndex);
|
|
16542
|
+
return obj;
|
|
16543
|
+
}, "markOverflow");
|
|
16544
|
+
var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
|
|
16545
|
+
return overflowChannel.has(obj);
|
|
16546
|
+
}, "isOverflow");
|
|
16547
|
+
var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
|
|
16548
|
+
return overflowChannel.get(obj);
|
|
16549
|
+
}, "getMaxIndex");
|
|
16550
|
+
var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
|
|
16551
|
+
overflowChannel.set(obj, maxIndex);
|
|
16552
|
+
}, "setMaxIndex");
|
|
16538
16553
|
var hexTable = (function() {
|
|
16539
16554
|
var array = [];
|
|
16540
16555
|
for (var i = 0; i < 256; ++i) {
|
|
16541
|
-
array.
|
|
16556
|
+
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
16542
16557
|
}
|
|
16543
16558
|
return array;
|
|
16544
16559
|
})();
|
|
@@ -16550,7 +16565,7 @@ var require_utils = __commonJS({
|
|
|
16550
16565
|
var compacted = [];
|
|
16551
16566
|
for (var j = 0; j < obj.length; ++j) {
|
|
16552
16567
|
if (typeof obj[j] !== "undefined") {
|
|
16553
|
-
compacted.
|
|
16568
|
+
compacted[compacted.length] = obj[j];
|
|
16554
16569
|
}
|
|
16555
16570
|
}
|
|
16556
16571
|
item.obj[item.prop] = compacted;
|
|
@@ -16574,9 +16589,17 @@ var require_utils = __commonJS({
|
|
|
16574
16589
|
}
|
|
16575
16590
|
if (typeof source !== "object" && typeof source !== "function") {
|
|
16576
16591
|
if (isArray(target)) {
|
|
16577
|
-
target.
|
|
16592
|
+
var nextIndex = target.length;
|
|
16593
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
16594
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
16595
|
+
}
|
|
16596
|
+
target[nextIndex] = source;
|
|
16578
16597
|
} else if (target && typeof target === "object") {
|
|
16579
|
-
if (
|
|
16598
|
+
if (isOverflow(target)) {
|
|
16599
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
16600
|
+
target[newIndex] = source;
|
|
16601
|
+
setMaxIndex(target, newIndex);
|
|
16602
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
16580
16603
|
target[source] = true;
|
|
16581
16604
|
}
|
|
16582
16605
|
} else {
|
|
@@ -16588,9 +16611,27 @@ var require_utils = __commonJS({
|
|
|
16588
16611
|
return target;
|
|
16589
16612
|
}
|
|
16590
16613
|
if (!target || typeof target !== "object") {
|
|
16591
|
-
|
|
16614
|
+
if (isOverflow(source)) {
|
|
16615
|
+
var sourceKeys = Object.keys(source);
|
|
16616
|
+
var result = options && options.plainObjects ? {
|
|
16617
|
+
__proto__: null,
|
|
16618
|
+
0: target
|
|
16619
|
+
} : {
|
|
16620
|
+
0: target
|
|
16621
|
+
};
|
|
16622
|
+
for (var m = 0; m < sourceKeys.length; m++) {
|
|
16623
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
16624
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
16625
|
+
}
|
|
16626
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
16627
|
+
}
|
|
16628
|
+
var combined = [
|
|
16592
16629
|
target
|
|
16593
16630
|
].concat(source);
|
|
16631
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
16632
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
16633
|
+
}
|
|
16634
|
+
return combined;
|
|
16594
16635
|
}
|
|
16595
16636
|
var mergeTarget = target;
|
|
16596
16637
|
if (isArray(target) && !isArray(source)) {
|
|
@@ -16603,7 +16644,7 @@ var require_utils = __commonJS({
|
|
|
16603
16644
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
16604
16645
|
target[i] = merge2(targetItem, item, options);
|
|
16605
16646
|
} else {
|
|
16606
|
-
target.
|
|
16647
|
+
target[target.length] = item;
|
|
16607
16648
|
}
|
|
16608
16649
|
} else {
|
|
16609
16650
|
target[i] = item;
|
|
@@ -16618,6 +16659,15 @@ var require_utils = __commonJS({
|
|
|
16618
16659
|
} else {
|
|
16619
16660
|
acc[key] = value;
|
|
16620
16661
|
}
|
|
16662
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
16663
|
+
markOverflow(acc, getMaxIndex(source));
|
|
16664
|
+
}
|
|
16665
|
+
if (isOverflow(acc)) {
|
|
16666
|
+
var keyNum = parseInt(key, 10);
|
|
16667
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
16668
|
+
setMaxIndex(acc, keyNum);
|
|
16669
|
+
}
|
|
16670
|
+
}
|
|
16621
16671
|
return acc;
|
|
16622
16672
|
}, mergeTarget);
|
|
16623
16673
|
}, "merge");
|
|
@@ -16702,11 +16752,11 @@ var require_utils = __commonJS({
|
|
|
16702
16752
|
var key = keys[j];
|
|
16703
16753
|
var val = obj[key];
|
|
16704
16754
|
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
16705
|
-
queue.
|
|
16755
|
+
queue[queue.length] = {
|
|
16706
16756
|
obj,
|
|
16707
16757
|
prop: key
|
|
16708
|
-
}
|
|
16709
|
-
refs.
|
|
16758
|
+
};
|
|
16759
|
+
refs[refs.length] = val;
|
|
16710
16760
|
}
|
|
16711
16761
|
}
|
|
16712
16762
|
}
|
|
@@ -16722,14 +16772,26 @@ var require_utils = __commonJS({
|
|
|
16722
16772
|
}
|
|
16723
16773
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
16724
16774
|
}, "isBuffer");
|
|
16725
|
-
var combine = /* @__PURE__ */ __name(function combine2(a, b) {
|
|
16726
|
-
|
|
16775
|
+
var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
|
|
16776
|
+
if (isOverflow(a)) {
|
|
16777
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
16778
|
+
a[newIndex] = b;
|
|
16779
|
+
setMaxIndex(a, newIndex);
|
|
16780
|
+
return a;
|
|
16781
|
+
}
|
|
16782
|
+
var result = [].concat(a, b);
|
|
16783
|
+
if (result.length > arrayLimit) {
|
|
16784
|
+
return markOverflow(arrayToObject(result, {
|
|
16785
|
+
plainObjects
|
|
16786
|
+
}), result.length - 1);
|
|
16787
|
+
}
|
|
16788
|
+
return result;
|
|
16727
16789
|
}, "combine");
|
|
16728
16790
|
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
|
|
16729
16791
|
if (isArray(val)) {
|
|
16730
16792
|
var mapped = [];
|
|
16731
16793
|
for (var i = 0; i < val.length; i += 1) {
|
|
16732
|
-
mapped.
|
|
16794
|
+
mapped[mapped.length] = fn(val[i]);
|
|
16733
16795
|
}
|
|
16734
16796
|
return mapped;
|
|
16735
16797
|
}
|
|
@@ -16743,16 +16805,18 @@ var require_utils = __commonJS({
|
|
|
16743
16805
|
decode,
|
|
16744
16806
|
encode,
|
|
16745
16807
|
isBuffer,
|
|
16808
|
+
isOverflow,
|
|
16746
16809
|
isRegExp,
|
|
16810
|
+
markOverflow,
|
|
16747
16811
|
maybeMap,
|
|
16748
16812
|
merge
|
|
16749
16813
|
};
|
|
16750
16814
|
}
|
|
16751
16815
|
});
|
|
16752
16816
|
|
|
16753
|
-
// ../../../node_modules/qs/lib/stringify.js
|
|
16817
|
+
// ../../../node_modules/body-parser/node_modules/qs/lib/stringify.js
|
|
16754
16818
|
var require_stringify = __commonJS({
|
|
16755
|
-
"../../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
16819
|
+
"../../../node_modules/body-parser/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
16756
16820
|
"use strict";
|
|
16757
16821
|
var getSideChannel = require_side_channel();
|
|
16758
16822
|
var utils = require_utils();
|
|
@@ -17005,9 +17069,9 @@ var require_stringify = __commonJS({
|
|
|
17005
17069
|
}
|
|
17006
17070
|
});
|
|
17007
17071
|
|
|
17008
|
-
// ../../../node_modules/qs/lib/parse.js
|
|
17072
|
+
// ../../../node_modules/body-parser/node_modules/qs/lib/parse.js
|
|
17009
17073
|
var require_parse = __commonJS({
|
|
17010
|
-
"../../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
17074
|
+
"../../../node_modules/body-parser/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
17011
17075
|
"use strict";
|
|
17012
17076
|
var utils = require_utils();
|
|
17013
17077
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -17092,9 +17156,11 @@ var require_parse = __commonJS({
|
|
|
17092
17156
|
val = options.strictNullHandling ? null : "";
|
|
17093
17157
|
} else {
|
|
17094
17158
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17159
|
+
if (key !== null) {
|
|
17160
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
17161
|
+
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
17162
|
+
});
|
|
17163
|
+
}
|
|
17098
17164
|
}
|
|
17099
17165
|
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
17100
17166
|
val = interpretNumericEntities(String(val));
|
|
@@ -17104,11 +17170,19 @@ var require_parse = __commonJS({
|
|
|
17104
17170
|
val
|
|
17105
17171
|
] : val;
|
|
17106
17172
|
}
|
|
17107
|
-
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
|
|
17173
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
17174
|
+
if (options.throwOnLimitExceeded) {
|
|
17175
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
17176
|
+
}
|
|
17177
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
17178
|
+
}
|
|
17179
|
+
if (key !== null) {
|
|
17180
|
+
var existing = has.call(obj, key);
|
|
17181
|
+
if (existing && options.duplicates === "combine") {
|
|
17182
|
+
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
17183
|
+
} else if (!existing || options.duplicates === "last") {
|
|
17184
|
+
obj[key] = val;
|
|
17185
|
+
}
|
|
17112
17186
|
}
|
|
17113
17187
|
}
|
|
17114
17188
|
return obj;
|
|
@@ -17124,7 +17198,11 @@ var require_parse = __commonJS({
|
|
|
17124
17198
|
var obj;
|
|
17125
17199
|
var root = chain[i];
|
|
17126
17200
|
if (root === "[]" && options.parseArrays) {
|
|
17127
|
-
|
|
17201
|
+
if (utils.isOverflow(leaf)) {
|
|
17202
|
+
obj = leaf;
|
|
17203
|
+
} else {
|
|
17204
|
+
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
17205
|
+
}
|
|
17128
17206
|
} else {
|
|
17129
17207
|
obj = options.plainObjects ? {
|
|
17130
17208
|
__proto__: null
|
|
@@ -17132,13 +17210,19 @@ var require_parse = __commonJS({
|
|
|
17132
17210
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
17133
17211
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
17134
17212
|
var index = parseInt(decodedRoot, 10);
|
|
17213
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
17135
17214
|
if (!options.parseArrays && decodedRoot === "") {
|
|
17136
17215
|
obj = {
|
|
17137
17216
|
0: leaf
|
|
17138
17217
|
};
|
|
17139
|
-
} else if (
|
|
17218
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
17140
17219
|
obj = [];
|
|
17141
17220
|
obj[index] = leaf;
|
|
17221
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
17222
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
17223
|
+
} else if (isValidArrayIndex) {
|
|
17224
|
+
obj[index] = leaf;
|
|
17225
|
+
utils.markOverflow(obj, index);
|
|
17142
17226
|
} else if (decodedRoot !== "__proto__") {
|
|
17143
17227
|
obj[decodedRoot] = leaf;
|
|
17144
17228
|
}
|
|
@@ -17147,14 +17231,21 @@ var require_parse = __commonJS({
|
|
|
17147
17231
|
}
|
|
17148
17232
|
return leaf;
|
|
17149
17233
|
}, "parseObject");
|
|
17150
|
-
var
|
|
17151
|
-
if (!givenKey) {
|
|
17152
|
-
return;
|
|
17153
|
-
}
|
|
17234
|
+
var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(givenKey, options) {
|
|
17154
17235
|
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
17236
|
+
if (options.depth <= 0) {
|
|
17237
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
17238
|
+
if (!options.allowPrototypes) {
|
|
17239
|
+
return;
|
|
17240
|
+
}
|
|
17241
|
+
}
|
|
17242
|
+
return [
|
|
17243
|
+
key
|
|
17244
|
+
];
|
|
17245
|
+
}
|
|
17155
17246
|
var brackets = /(\[[^[\]]*])/;
|
|
17156
17247
|
var child = /(\[[^[\]]*])/g;
|
|
17157
|
-
var segment =
|
|
17248
|
+
var segment = brackets.exec(key);
|
|
17158
17249
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
17159
17250
|
var keys = [];
|
|
17160
17251
|
if (parent) {
|
|
@@ -17163,23 +17254,34 @@ var require_parse = __commonJS({
|
|
|
17163
17254
|
return;
|
|
17164
17255
|
}
|
|
17165
17256
|
}
|
|
17166
|
-
keys.
|
|
17257
|
+
keys[keys.length] = parent;
|
|
17167
17258
|
}
|
|
17168
17259
|
var i = 0;
|
|
17169
|
-
while (
|
|
17260
|
+
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
17170
17261
|
i += 1;
|
|
17171
|
-
|
|
17262
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
17263
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
17172
17264
|
if (!options.allowPrototypes) {
|
|
17173
17265
|
return;
|
|
17174
17266
|
}
|
|
17175
17267
|
}
|
|
17176
|
-
keys.
|
|
17268
|
+
keys[keys.length] = segment[1];
|
|
17177
17269
|
}
|
|
17178
17270
|
if (segment) {
|
|
17179
17271
|
if (options.strictDepth === true) {
|
|
17180
17272
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
17181
17273
|
}
|
|
17182
|
-
keys.
|
|
17274
|
+
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
17275
|
+
}
|
|
17276
|
+
return keys;
|
|
17277
|
+
}, "splitKeyIntoSegments");
|
|
17278
|
+
var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
17279
|
+
if (!givenKey) {
|
|
17280
|
+
return;
|
|
17281
|
+
}
|
|
17282
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
17283
|
+
if (!keys) {
|
|
17284
|
+
return;
|
|
17183
17285
|
}
|
|
17184
17286
|
return parseObject(keys, val, options, valuesParsed);
|
|
17185
17287
|
}, "parseQueryStringKeys");
|
|
@@ -17258,9 +17360,9 @@ var require_parse = __commonJS({
|
|
|
17258
17360
|
}
|
|
17259
17361
|
});
|
|
17260
17362
|
|
|
17261
|
-
// ../../../node_modules/qs/lib/index.js
|
|
17363
|
+
// ../../../node_modules/body-parser/node_modules/qs/lib/index.js
|
|
17262
17364
|
var require_lib2 = __commonJS({
|
|
17263
|
-
"../../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
17365
|
+
"../../../node_modules/body-parser/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
17264
17366
|
"use strict";
|
|
17265
17367
|
var stringify = require_stringify();
|
|
17266
17368
|
var parse = require_parse();
|
|
@@ -17273,9 +17375,9 @@ var require_lib2 = __commonJS({
|
|
|
17273
17375
|
}
|
|
17274
17376
|
});
|
|
17275
17377
|
|
|
17276
|
-
// ../../../node_modules/
|
|
17378
|
+
// ../../../node_modules/body-parser/lib/types/urlencoded.js
|
|
17277
17379
|
var require_urlencoded = __commonJS({
|
|
17278
|
-
"../../../node_modules/
|
|
17380
|
+
"../../../node_modules/body-parser/lib/types/urlencoded.js"(exports2, module2) {
|
|
17279
17381
|
"use strict";
|
|
17280
17382
|
var bytes = require_bytes();
|
|
17281
17383
|
var contentType = require_content_type();
|
|
@@ -17456,9 +17558,9 @@ var require_urlencoded = __commonJS({
|
|
|
17456
17558
|
}
|
|
17457
17559
|
});
|
|
17458
17560
|
|
|
17459
|
-
// ../../../node_modules/
|
|
17561
|
+
// ../../../node_modules/body-parser/index.js
|
|
17460
17562
|
var require_body_parser = __commonJS({
|
|
17461
|
-
"../../../node_modules/
|
|
17563
|
+
"../../../node_modules/body-parser/index.js"(exports2, module2) {
|
|
17462
17564
|
"use strict";
|
|
17463
17565
|
var deprecate = require_depd()("body-parser");
|
|
17464
17566
|
var parsers = /* @__PURE__ */ Object.create(null);
|
|
@@ -18332,6 +18434,464 @@ var require_finalhandler = __commonJS({
|
|
|
18332
18434
|
}
|
|
18333
18435
|
});
|
|
18334
18436
|
|
|
18437
|
+
// ../../../node_modules/express/node_modules/ms/index.js
|
|
18438
|
+
var require_ms3 = __commonJS({
|
|
18439
|
+
"../../../node_modules/express/node_modules/ms/index.js"(exports2, module2) {
|
|
18440
|
+
"use strict";
|
|
18441
|
+
var s = 1e3;
|
|
18442
|
+
var m = s * 60;
|
|
18443
|
+
var h = m * 60;
|
|
18444
|
+
var d = h * 24;
|
|
18445
|
+
var y = d * 365.25;
|
|
18446
|
+
module2.exports = function(val, options) {
|
|
18447
|
+
options = options || {};
|
|
18448
|
+
var type = typeof val;
|
|
18449
|
+
if (type === "string" && val.length > 0) {
|
|
18450
|
+
return parse(val);
|
|
18451
|
+
} else if (type === "number" && isNaN(val) === false) {
|
|
18452
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
18453
|
+
}
|
|
18454
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
18455
|
+
};
|
|
18456
|
+
function parse(str) {
|
|
18457
|
+
str = String(str);
|
|
18458
|
+
if (str.length > 100) {
|
|
18459
|
+
return;
|
|
18460
|
+
}
|
|
18461
|
+
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
|
18462
|
+
if (!match) {
|
|
18463
|
+
return;
|
|
18464
|
+
}
|
|
18465
|
+
var n = parseFloat(match[1]);
|
|
18466
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
18467
|
+
switch (type) {
|
|
18468
|
+
case "years":
|
|
18469
|
+
case "year":
|
|
18470
|
+
case "yrs":
|
|
18471
|
+
case "yr":
|
|
18472
|
+
case "y":
|
|
18473
|
+
return n * y;
|
|
18474
|
+
case "days":
|
|
18475
|
+
case "day":
|
|
18476
|
+
case "d":
|
|
18477
|
+
return n * d;
|
|
18478
|
+
case "hours":
|
|
18479
|
+
case "hour":
|
|
18480
|
+
case "hrs":
|
|
18481
|
+
case "hr":
|
|
18482
|
+
case "h":
|
|
18483
|
+
return n * h;
|
|
18484
|
+
case "minutes":
|
|
18485
|
+
case "minute":
|
|
18486
|
+
case "mins":
|
|
18487
|
+
case "min":
|
|
18488
|
+
case "m":
|
|
18489
|
+
return n * m;
|
|
18490
|
+
case "seconds":
|
|
18491
|
+
case "second":
|
|
18492
|
+
case "secs":
|
|
18493
|
+
case "sec":
|
|
18494
|
+
case "s":
|
|
18495
|
+
return n * s;
|
|
18496
|
+
case "milliseconds":
|
|
18497
|
+
case "millisecond":
|
|
18498
|
+
case "msecs":
|
|
18499
|
+
case "msec":
|
|
18500
|
+
case "ms":
|
|
18501
|
+
return n;
|
|
18502
|
+
default:
|
|
18503
|
+
return void 0;
|
|
18504
|
+
}
|
|
18505
|
+
}
|
|
18506
|
+
__name(parse, "parse");
|
|
18507
|
+
function fmtShort(ms) {
|
|
18508
|
+
if (ms >= d) {
|
|
18509
|
+
return Math.round(ms / d) + "d";
|
|
18510
|
+
}
|
|
18511
|
+
if (ms >= h) {
|
|
18512
|
+
return Math.round(ms / h) + "h";
|
|
18513
|
+
}
|
|
18514
|
+
if (ms >= m) {
|
|
18515
|
+
return Math.round(ms / m) + "m";
|
|
18516
|
+
}
|
|
18517
|
+
if (ms >= s) {
|
|
18518
|
+
return Math.round(ms / s) + "s";
|
|
18519
|
+
}
|
|
18520
|
+
return ms + "ms";
|
|
18521
|
+
}
|
|
18522
|
+
__name(fmtShort, "fmtShort");
|
|
18523
|
+
function fmtLong(ms) {
|
|
18524
|
+
return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms";
|
|
18525
|
+
}
|
|
18526
|
+
__name(fmtLong, "fmtLong");
|
|
18527
|
+
function plural(ms, n, name) {
|
|
18528
|
+
if (ms < n) {
|
|
18529
|
+
return;
|
|
18530
|
+
}
|
|
18531
|
+
if (ms < n * 1.5) {
|
|
18532
|
+
return Math.floor(ms / n) + " " + name;
|
|
18533
|
+
}
|
|
18534
|
+
return Math.ceil(ms / n) + " " + name + "s";
|
|
18535
|
+
}
|
|
18536
|
+
__name(plural, "plural");
|
|
18537
|
+
}
|
|
18538
|
+
});
|
|
18539
|
+
|
|
18540
|
+
// ../../../node_modules/express/node_modules/debug/src/debug.js
|
|
18541
|
+
var require_debug3 = __commonJS({
|
|
18542
|
+
"../../../node_modules/express/node_modules/debug/src/debug.js"(exports2, module2) {
|
|
18543
|
+
"use strict";
|
|
18544
|
+
exports2 = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
18545
|
+
exports2.coerce = coerce;
|
|
18546
|
+
exports2.disable = disable;
|
|
18547
|
+
exports2.enable = enable;
|
|
18548
|
+
exports2.enabled = enabled;
|
|
18549
|
+
exports2.humanize = require_ms3();
|
|
18550
|
+
exports2.names = [];
|
|
18551
|
+
exports2.skips = [];
|
|
18552
|
+
exports2.formatters = {};
|
|
18553
|
+
var prevTime;
|
|
18554
|
+
function selectColor(namespace) {
|
|
18555
|
+
var hash = 0, i;
|
|
18556
|
+
for (i in namespace) {
|
|
18557
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
18558
|
+
hash |= 0;
|
|
18559
|
+
}
|
|
18560
|
+
return exports2.colors[Math.abs(hash) % exports2.colors.length];
|
|
18561
|
+
}
|
|
18562
|
+
__name(selectColor, "selectColor");
|
|
18563
|
+
function createDebug(namespace) {
|
|
18564
|
+
function debug() {
|
|
18565
|
+
if (!debug.enabled) return;
|
|
18566
|
+
var self = debug;
|
|
18567
|
+
var curr = +/* @__PURE__ */ new Date();
|
|
18568
|
+
var ms = curr - (prevTime || curr);
|
|
18569
|
+
self.diff = ms;
|
|
18570
|
+
self.prev = prevTime;
|
|
18571
|
+
self.curr = curr;
|
|
18572
|
+
prevTime = curr;
|
|
18573
|
+
var args = new Array(arguments.length);
|
|
18574
|
+
for (var i = 0; i < args.length; i++) {
|
|
18575
|
+
args[i] = arguments[i];
|
|
18576
|
+
}
|
|
18577
|
+
args[0] = exports2.coerce(args[0]);
|
|
18578
|
+
if ("string" !== typeof args[0]) {
|
|
18579
|
+
args.unshift("%O");
|
|
18580
|
+
}
|
|
18581
|
+
var index = 0;
|
|
18582
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
|
18583
|
+
if (match === "%%") return match;
|
|
18584
|
+
index++;
|
|
18585
|
+
var formatter = exports2.formatters[format];
|
|
18586
|
+
if ("function" === typeof formatter) {
|
|
18587
|
+
var val = args[index];
|
|
18588
|
+
match = formatter.call(self, val);
|
|
18589
|
+
args.splice(index, 1);
|
|
18590
|
+
index--;
|
|
18591
|
+
}
|
|
18592
|
+
return match;
|
|
18593
|
+
});
|
|
18594
|
+
exports2.formatArgs.call(self, args);
|
|
18595
|
+
var logFn = debug.log || exports2.log || console.log.bind(console);
|
|
18596
|
+
logFn.apply(self, args);
|
|
18597
|
+
}
|
|
18598
|
+
__name(debug, "debug");
|
|
18599
|
+
debug.namespace = namespace;
|
|
18600
|
+
debug.enabled = exports2.enabled(namespace);
|
|
18601
|
+
debug.useColors = exports2.useColors();
|
|
18602
|
+
debug.color = selectColor(namespace);
|
|
18603
|
+
if ("function" === typeof exports2.init) {
|
|
18604
|
+
exports2.init(debug);
|
|
18605
|
+
}
|
|
18606
|
+
return debug;
|
|
18607
|
+
}
|
|
18608
|
+
__name(createDebug, "createDebug");
|
|
18609
|
+
function enable(namespaces) {
|
|
18610
|
+
exports2.save(namespaces);
|
|
18611
|
+
exports2.names = [];
|
|
18612
|
+
exports2.skips = [];
|
|
18613
|
+
var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
18614
|
+
var len = split.length;
|
|
18615
|
+
for (var i = 0; i < len; i++) {
|
|
18616
|
+
if (!split[i]) continue;
|
|
18617
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
18618
|
+
if (namespaces[0] === "-") {
|
|
18619
|
+
exports2.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
|
|
18620
|
+
} else {
|
|
18621
|
+
exports2.names.push(new RegExp("^" + namespaces + "$"));
|
|
18622
|
+
}
|
|
18623
|
+
}
|
|
18624
|
+
}
|
|
18625
|
+
__name(enable, "enable");
|
|
18626
|
+
function disable() {
|
|
18627
|
+
exports2.enable("");
|
|
18628
|
+
}
|
|
18629
|
+
__name(disable, "disable");
|
|
18630
|
+
function enabled(name) {
|
|
18631
|
+
var i, len;
|
|
18632
|
+
for (i = 0, len = exports2.skips.length; i < len; i++) {
|
|
18633
|
+
if (exports2.skips[i].test(name)) {
|
|
18634
|
+
return false;
|
|
18635
|
+
}
|
|
18636
|
+
}
|
|
18637
|
+
for (i = 0, len = exports2.names.length; i < len; i++) {
|
|
18638
|
+
if (exports2.names[i].test(name)) {
|
|
18639
|
+
return true;
|
|
18640
|
+
}
|
|
18641
|
+
}
|
|
18642
|
+
return false;
|
|
18643
|
+
}
|
|
18644
|
+
__name(enabled, "enabled");
|
|
18645
|
+
function coerce(val) {
|
|
18646
|
+
if (val instanceof Error) return val.stack || val.message;
|
|
18647
|
+
return val;
|
|
18648
|
+
}
|
|
18649
|
+
__name(coerce, "coerce");
|
|
18650
|
+
}
|
|
18651
|
+
});
|
|
18652
|
+
|
|
18653
|
+
// ../../../node_modules/express/node_modules/debug/src/browser.js
|
|
18654
|
+
var require_browser3 = __commonJS({
|
|
18655
|
+
"../../../node_modules/express/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
18656
|
+
"use strict";
|
|
18657
|
+
exports2 = module2.exports = require_debug3();
|
|
18658
|
+
exports2.log = log;
|
|
18659
|
+
exports2.formatArgs = formatArgs;
|
|
18660
|
+
exports2.save = save;
|
|
18661
|
+
exports2.load = load;
|
|
18662
|
+
exports2.useColors = useColors;
|
|
18663
|
+
exports2.storage = "undefined" != typeof chrome && "undefined" != typeof chrome.storage ? chrome.storage.local : localstorage();
|
|
18664
|
+
exports2.colors = [
|
|
18665
|
+
"lightseagreen",
|
|
18666
|
+
"forestgreen",
|
|
18667
|
+
"goldenrod",
|
|
18668
|
+
"dodgerblue",
|
|
18669
|
+
"darkorchid",
|
|
18670
|
+
"crimson"
|
|
18671
|
+
];
|
|
18672
|
+
function useColors() {
|
|
18673
|
+
if (typeof window !== "undefined" && window.process && window.process.type === "renderer") {
|
|
18674
|
+
return true;
|
|
18675
|
+
}
|
|
18676
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773
|
|
18677
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
|
|
18678
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
18679
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
|
|
18680
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
18681
|
+
}
|
|
18682
|
+
__name(useColors, "useColors");
|
|
18683
|
+
exports2.formatters.j = function(v) {
|
|
18684
|
+
try {
|
|
18685
|
+
return JSON.stringify(v);
|
|
18686
|
+
} catch (err) {
|
|
18687
|
+
return "[UnexpectedJSONParseError]: " + err.message;
|
|
18688
|
+
}
|
|
18689
|
+
};
|
|
18690
|
+
function formatArgs(args) {
|
|
18691
|
+
var useColors2 = this.useColors;
|
|
18692
|
+
args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports2.humanize(this.diff);
|
|
18693
|
+
if (!useColors2) return;
|
|
18694
|
+
var c = "color: " + this.color;
|
|
18695
|
+
args.splice(1, 0, c, "color: inherit");
|
|
18696
|
+
var index = 0;
|
|
18697
|
+
var lastC = 0;
|
|
18698
|
+
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
|
18699
|
+
if ("%%" === match) return;
|
|
18700
|
+
index++;
|
|
18701
|
+
if ("%c" === match) {
|
|
18702
|
+
lastC = index;
|
|
18703
|
+
}
|
|
18704
|
+
});
|
|
18705
|
+
args.splice(lastC, 0, c);
|
|
18706
|
+
}
|
|
18707
|
+
__name(formatArgs, "formatArgs");
|
|
18708
|
+
function log() {
|
|
18709
|
+
return "object" === typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments);
|
|
18710
|
+
}
|
|
18711
|
+
__name(log, "log");
|
|
18712
|
+
function save(namespaces) {
|
|
18713
|
+
try {
|
|
18714
|
+
if (null == namespaces) {
|
|
18715
|
+
exports2.storage.removeItem("debug");
|
|
18716
|
+
} else {
|
|
18717
|
+
exports2.storage.debug = namespaces;
|
|
18718
|
+
}
|
|
18719
|
+
} catch (e) {
|
|
18720
|
+
}
|
|
18721
|
+
}
|
|
18722
|
+
__name(save, "save");
|
|
18723
|
+
function load() {
|
|
18724
|
+
var r;
|
|
18725
|
+
try {
|
|
18726
|
+
r = exports2.storage.debug;
|
|
18727
|
+
} catch (e) {
|
|
18728
|
+
}
|
|
18729
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
18730
|
+
r = process.env.DEBUG;
|
|
18731
|
+
}
|
|
18732
|
+
return r;
|
|
18733
|
+
}
|
|
18734
|
+
__name(load, "load");
|
|
18735
|
+
exports2.enable(load());
|
|
18736
|
+
function localstorage() {
|
|
18737
|
+
try {
|
|
18738
|
+
return window.localStorage;
|
|
18739
|
+
} catch (e) {
|
|
18740
|
+
}
|
|
18741
|
+
}
|
|
18742
|
+
__name(localstorage, "localstorage");
|
|
18743
|
+
}
|
|
18744
|
+
});
|
|
18745
|
+
|
|
18746
|
+
// ../../../node_modules/express/node_modules/debug/src/node.js
|
|
18747
|
+
var require_node3 = __commonJS({
|
|
18748
|
+
"../../../node_modules/express/node_modules/debug/src/node.js"(exports2, module2) {
|
|
18749
|
+
"use strict";
|
|
18750
|
+
var tty = require("tty");
|
|
18751
|
+
var util = require("util");
|
|
18752
|
+
exports2 = module2.exports = require_debug3();
|
|
18753
|
+
exports2.init = init;
|
|
18754
|
+
exports2.log = log;
|
|
18755
|
+
exports2.formatArgs = formatArgs;
|
|
18756
|
+
exports2.save = save;
|
|
18757
|
+
exports2.load = load;
|
|
18758
|
+
exports2.useColors = useColors;
|
|
18759
|
+
exports2.colors = [
|
|
18760
|
+
6,
|
|
18761
|
+
2,
|
|
18762
|
+
3,
|
|
18763
|
+
4,
|
|
18764
|
+
5,
|
|
18765
|
+
1
|
|
18766
|
+
];
|
|
18767
|
+
exports2.inspectOpts = Object.keys(process.env).filter(function(key) {
|
|
18768
|
+
return /^debug_/i.test(key);
|
|
18769
|
+
}).reduce(function(obj, key) {
|
|
18770
|
+
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
|
|
18771
|
+
return k.toUpperCase();
|
|
18772
|
+
});
|
|
18773
|
+
var val = process.env[key];
|
|
18774
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
|
18775
|
+
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
18776
|
+
else if (val === "null") val = null;
|
|
18777
|
+
else val = Number(val);
|
|
18778
|
+
obj[prop] = val;
|
|
18779
|
+
return obj;
|
|
18780
|
+
}, {});
|
|
18781
|
+
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
18782
|
+
if (1 !== fd && 2 !== fd) {
|
|
18783
|
+
util.deprecate(function() {
|
|
18784
|
+
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
18785
|
+
}
|
|
18786
|
+
var stream = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
|
|
18787
|
+
function useColors() {
|
|
18788
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(fd);
|
|
18789
|
+
}
|
|
18790
|
+
__name(useColors, "useColors");
|
|
18791
|
+
exports2.formatters.o = function(v) {
|
|
18792
|
+
this.inspectOpts.colors = this.useColors;
|
|
18793
|
+
return util.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
18794
|
+
return str.trim();
|
|
18795
|
+
}).join(" ");
|
|
18796
|
+
};
|
|
18797
|
+
exports2.formatters.O = function(v) {
|
|
18798
|
+
this.inspectOpts.colors = this.useColors;
|
|
18799
|
+
return util.inspect(v, this.inspectOpts);
|
|
18800
|
+
};
|
|
18801
|
+
function formatArgs(args) {
|
|
18802
|
+
var name = this.namespace;
|
|
18803
|
+
var useColors2 = this.useColors;
|
|
18804
|
+
if (useColors2) {
|
|
18805
|
+
var c = this.color;
|
|
18806
|
+
var prefix = " \x1B[3" + c + ";1m" + name + " \x1B[0m";
|
|
18807
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
18808
|
+
args.push("\x1B[3" + c + "m+" + exports2.humanize(this.diff) + "\x1B[0m");
|
|
18809
|
+
} else {
|
|
18810
|
+
args[0] = (/* @__PURE__ */ new Date()).toUTCString() + " " + name + " " + args[0];
|
|
18811
|
+
}
|
|
18812
|
+
}
|
|
18813
|
+
__name(formatArgs, "formatArgs");
|
|
18814
|
+
function log() {
|
|
18815
|
+
return stream.write(util.format.apply(util, arguments) + "\n");
|
|
18816
|
+
}
|
|
18817
|
+
__name(log, "log");
|
|
18818
|
+
function save(namespaces) {
|
|
18819
|
+
if (null == namespaces) {
|
|
18820
|
+
delete process.env.DEBUG;
|
|
18821
|
+
} else {
|
|
18822
|
+
process.env.DEBUG = namespaces;
|
|
18823
|
+
}
|
|
18824
|
+
}
|
|
18825
|
+
__name(save, "save");
|
|
18826
|
+
function load() {
|
|
18827
|
+
return process.env.DEBUG;
|
|
18828
|
+
}
|
|
18829
|
+
__name(load, "load");
|
|
18830
|
+
function createWritableStdioStream(fd2) {
|
|
18831
|
+
var stream2;
|
|
18832
|
+
var tty_wrap = process.binding("tty_wrap");
|
|
18833
|
+
switch (tty_wrap.guessHandleType(fd2)) {
|
|
18834
|
+
case "TTY":
|
|
18835
|
+
stream2 = new tty.WriteStream(fd2);
|
|
18836
|
+
stream2._type = "tty";
|
|
18837
|
+
if (stream2._handle && stream2._handle.unref) {
|
|
18838
|
+
stream2._handle.unref();
|
|
18839
|
+
}
|
|
18840
|
+
break;
|
|
18841
|
+
case "FILE":
|
|
18842
|
+
var fs2 = require("fs");
|
|
18843
|
+
stream2 = new fs2.SyncWriteStream(fd2, {
|
|
18844
|
+
autoClose: false
|
|
18845
|
+
});
|
|
18846
|
+
stream2._type = "fs";
|
|
18847
|
+
break;
|
|
18848
|
+
case "PIPE":
|
|
18849
|
+
case "TCP":
|
|
18850
|
+
var net = require("net");
|
|
18851
|
+
stream2 = new net.Socket({
|
|
18852
|
+
fd: fd2,
|
|
18853
|
+
readable: false,
|
|
18854
|
+
writable: true
|
|
18855
|
+
});
|
|
18856
|
+
stream2.readable = false;
|
|
18857
|
+
stream2.read = null;
|
|
18858
|
+
stream2._type = "pipe";
|
|
18859
|
+
if (stream2._handle && stream2._handle.unref) {
|
|
18860
|
+
stream2._handle.unref();
|
|
18861
|
+
}
|
|
18862
|
+
break;
|
|
18863
|
+
default:
|
|
18864
|
+
throw new Error("Implement me. Unknown stream file type!");
|
|
18865
|
+
}
|
|
18866
|
+
stream2.fd = fd2;
|
|
18867
|
+
stream2._isStdio = true;
|
|
18868
|
+
return stream2;
|
|
18869
|
+
}
|
|
18870
|
+
__name(createWritableStdioStream, "createWritableStdioStream");
|
|
18871
|
+
function init(debug) {
|
|
18872
|
+
debug.inspectOpts = {};
|
|
18873
|
+
var keys = Object.keys(exports2.inspectOpts);
|
|
18874
|
+
for (var i = 0; i < keys.length; i++) {
|
|
18875
|
+
debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
18876
|
+
}
|
|
18877
|
+
}
|
|
18878
|
+
__name(init, "init");
|
|
18879
|
+
exports2.enable(load());
|
|
18880
|
+
}
|
|
18881
|
+
});
|
|
18882
|
+
|
|
18883
|
+
// ../../../node_modules/express/node_modules/debug/src/index.js
|
|
18884
|
+
var require_src3 = __commonJS({
|
|
18885
|
+
"../../../node_modules/express/node_modules/debug/src/index.js"(exports2, module2) {
|
|
18886
|
+
"use strict";
|
|
18887
|
+
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
18888
|
+
module2.exports = require_browser3();
|
|
18889
|
+
} else {
|
|
18890
|
+
module2.exports = require_node3();
|
|
18891
|
+
}
|
|
18892
|
+
}
|
|
18893
|
+
});
|
|
18894
|
+
|
|
18335
18895
|
// ../../../node_modules/array-flatten/array-flatten.js
|
|
18336
18896
|
var require_array_flatten = __commonJS({
|
|
18337
18897
|
"../../../node_modules/array-flatten/array-flatten.js"(exports2, module2) {
|
|
@@ -18481,7 +19041,7 @@ var require_layer = __commonJS({
|
|
|
18481
19041
|
"../../../node_modules/express/lib/router/layer.js"(exports2, module2) {
|
|
18482
19042
|
"use strict";
|
|
18483
19043
|
var pathRegexp = require_path_to_regexp();
|
|
18484
|
-
var debug =
|
|
19044
|
+
var debug = require_src3()("express:router:layer");
|
|
18485
19045
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
18486
19046
|
module2.exports = Layer;
|
|
18487
19047
|
function Layer(path2, options, fn) {
|
|
@@ -18625,7 +19185,7 @@ var require_methods = __commonJS({
|
|
|
18625
19185
|
var require_route = __commonJS({
|
|
18626
19186
|
"../../../node_modules/express/lib/router/route.js"(exports2, module2) {
|
|
18627
19187
|
"use strict";
|
|
18628
|
-
var debug =
|
|
19188
|
+
var debug = require_src3()("express:router:route");
|
|
18629
19189
|
var flatten = require_array_flatten();
|
|
18630
19190
|
var Layer = require_layer();
|
|
18631
19191
|
var methods = require_methods();
|
|
@@ -18758,7 +19318,7 @@ var require_router = __commonJS({
|
|
|
18758
19318
|
var Layer = require_layer();
|
|
18759
19319
|
var methods = require_methods();
|
|
18760
19320
|
var mixin = require_utils_merge();
|
|
18761
|
-
var debug =
|
|
19321
|
+
var debug = require_src3()("express:router");
|
|
18762
19322
|
var deprecate = require_depd()("express");
|
|
18763
19323
|
var flatten = require_array_flatten();
|
|
18764
19324
|
var parseUrl = require_parseurl();
|
|
@@ -19167,13 +19727,886 @@ var require_init = __commonJS({
|
|
|
19167
19727
|
}
|
|
19168
19728
|
});
|
|
19169
19729
|
|
|
19730
|
+
// ../../../node_modules/express/node_modules/qs/lib/formats.js
|
|
19731
|
+
var require_formats2 = __commonJS({
|
|
19732
|
+
"../../../node_modules/express/node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
19733
|
+
"use strict";
|
|
19734
|
+
var replace = String.prototype.replace;
|
|
19735
|
+
var percentTwenties = /%20/g;
|
|
19736
|
+
var Format = {
|
|
19737
|
+
RFC1738: "RFC1738",
|
|
19738
|
+
RFC3986: "RFC3986"
|
|
19739
|
+
};
|
|
19740
|
+
module2.exports = {
|
|
19741
|
+
"default": Format.RFC3986,
|
|
19742
|
+
formatters: {
|
|
19743
|
+
RFC1738: /* @__PURE__ */ __name(function(value) {
|
|
19744
|
+
return replace.call(value, percentTwenties, "+");
|
|
19745
|
+
}, "RFC1738"),
|
|
19746
|
+
RFC3986: /* @__PURE__ */ __name(function(value) {
|
|
19747
|
+
return String(value);
|
|
19748
|
+
}, "RFC3986")
|
|
19749
|
+
},
|
|
19750
|
+
RFC1738: Format.RFC1738,
|
|
19751
|
+
RFC3986: Format.RFC3986
|
|
19752
|
+
};
|
|
19753
|
+
}
|
|
19754
|
+
});
|
|
19755
|
+
|
|
19756
|
+
// ../../../node_modules/express/node_modules/qs/lib/utils.js
|
|
19757
|
+
var require_utils2 = __commonJS({
|
|
19758
|
+
"../../../node_modules/express/node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
19759
|
+
"use strict";
|
|
19760
|
+
var formats = require_formats2();
|
|
19761
|
+
var getSideChannel = require_side_channel();
|
|
19762
|
+
var has = Object.prototype.hasOwnProperty;
|
|
19763
|
+
var isArray = Array.isArray;
|
|
19764
|
+
var overflowChannel = getSideChannel();
|
|
19765
|
+
var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
|
|
19766
|
+
overflowChannel.set(obj, maxIndex);
|
|
19767
|
+
return obj;
|
|
19768
|
+
}, "markOverflow");
|
|
19769
|
+
var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
|
|
19770
|
+
return overflowChannel.has(obj);
|
|
19771
|
+
}, "isOverflow");
|
|
19772
|
+
var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
|
|
19773
|
+
return overflowChannel.get(obj);
|
|
19774
|
+
}, "getMaxIndex");
|
|
19775
|
+
var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
|
|
19776
|
+
overflowChannel.set(obj, maxIndex);
|
|
19777
|
+
}, "setMaxIndex");
|
|
19778
|
+
var hexTable = (function() {
|
|
19779
|
+
var array = [];
|
|
19780
|
+
for (var i = 0; i < 256; ++i) {
|
|
19781
|
+
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
19782
|
+
}
|
|
19783
|
+
return array;
|
|
19784
|
+
})();
|
|
19785
|
+
var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
|
|
19786
|
+
while (queue.length > 1) {
|
|
19787
|
+
var item = queue.pop();
|
|
19788
|
+
var obj = item.obj[item.prop];
|
|
19789
|
+
if (isArray(obj)) {
|
|
19790
|
+
var compacted = [];
|
|
19791
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
19792
|
+
if (typeof obj[j] !== "undefined") {
|
|
19793
|
+
compacted[compacted.length] = obj[j];
|
|
19794
|
+
}
|
|
19795
|
+
}
|
|
19796
|
+
item.obj[item.prop] = compacted;
|
|
19797
|
+
}
|
|
19798
|
+
}
|
|
19799
|
+
}, "compactQueue");
|
|
19800
|
+
var arrayToObject = /* @__PURE__ */ __name(function arrayToObject2(source, options) {
|
|
19801
|
+
var obj = options && options.plainObjects ? {
|
|
19802
|
+
__proto__: null
|
|
19803
|
+
} : {};
|
|
19804
|
+
for (var i = 0; i < source.length; ++i) {
|
|
19805
|
+
if (typeof source[i] !== "undefined") {
|
|
19806
|
+
obj[i] = source[i];
|
|
19807
|
+
}
|
|
19808
|
+
}
|
|
19809
|
+
return obj;
|
|
19810
|
+
}, "arrayToObject");
|
|
19811
|
+
var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
|
|
19812
|
+
if (!source) {
|
|
19813
|
+
return target;
|
|
19814
|
+
}
|
|
19815
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
19816
|
+
if (isArray(target)) {
|
|
19817
|
+
var nextIndex = target.length;
|
|
19818
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
19819
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
19820
|
+
}
|
|
19821
|
+
target[nextIndex] = source;
|
|
19822
|
+
} else if (target && typeof target === "object") {
|
|
19823
|
+
if (isOverflow(target)) {
|
|
19824
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
19825
|
+
target[newIndex] = source;
|
|
19826
|
+
setMaxIndex(target, newIndex);
|
|
19827
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
19828
|
+
target[source] = true;
|
|
19829
|
+
}
|
|
19830
|
+
} else {
|
|
19831
|
+
return [
|
|
19832
|
+
target,
|
|
19833
|
+
source
|
|
19834
|
+
];
|
|
19835
|
+
}
|
|
19836
|
+
return target;
|
|
19837
|
+
}
|
|
19838
|
+
if (!target || typeof target !== "object") {
|
|
19839
|
+
if (isOverflow(source)) {
|
|
19840
|
+
var sourceKeys = Object.keys(source);
|
|
19841
|
+
var result = options && options.plainObjects ? {
|
|
19842
|
+
__proto__: null,
|
|
19843
|
+
0: target
|
|
19844
|
+
} : {
|
|
19845
|
+
0: target
|
|
19846
|
+
};
|
|
19847
|
+
for (var m = 0; m < sourceKeys.length; m++) {
|
|
19848
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
19849
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
19850
|
+
}
|
|
19851
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
19852
|
+
}
|
|
19853
|
+
var combined = [
|
|
19854
|
+
target
|
|
19855
|
+
].concat(source);
|
|
19856
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
19857
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
19858
|
+
}
|
|
19859
|
+
return combined;
|
|
19860
|
+
}
|
|
19861
|
+
var mergeTarget = target;
|
|
19862
|
+
if (isArray(target) && !isArray(source)) {
|
|
19863
|
+
mergeTarget = arrayToObject(target, options);
|
|
19864
|
+
}
|
|
19865
|
+
if (isArray(target) && isArray(source)) {
|
|
19866
|
+
source.forEach(function(item, i) {
|
|
19867
|
+
if (has.call(target, i)) {
|
|
19868
|
+
var targetItem = target[i];
|
|
19869
|
+
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
19870
|
+
target[i] = merge2(targetItem, item, options);
|
|
19871
|
+
} else {
|
|
19872
|
+
target[target.length] = item;
|
|
19873
|
+
}
|
|
19874
|
+
} else {
|
|
19875
|
+
target[i] = item;
|
|
19876
|
+
}
|
|
19877
|
+
});
|
|
19878
|
+
return target;
|
|
19879
|
+
}
|
|
19880
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
19881
|
+
var value = source[key];
|
|
19882
|
+
if (has.call(acc, key)) {
|
|
19883
|
+
acc[key] = merge2(acc[key], value, options);
|
|
19884
|
+
} else {
|
|
19885
|
+
acc[key] = value;
|
|
19886
|
+
}
|
|
19887
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
19888
|
+
markOverflow(acc, getMaxIndex(source));
|
|
19889
|
+
}
|
|
19890
|
+
if (isOverflow(acc)) {
|
|
19891
|
+
var keyNum = parseInt(key, 10);
|
|
19892
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
19893
|
+
setMaxIndex(acc, keyNum);
|
|
19894
|
+
}
|
|
19895
|
+
}
|
|
19896
|
+
return acc;
|
|
19897
|
+
}, mergeTarget);
|
|
19898
|
+
}, "merge");
|
|
19899
|
+
var assign = /* @__PURE__ */ __name(function assignSingleSource(target, source) {
|
|
19900
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
19901
|
+
acc[key] = source[key];
|
|
19902
|
+
return acc;
|
|
19903
|
+
}, target);
|
|
19904
|
+
}, "assignSingleSource");
|
|
19905
|
+
var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
|
|
19906
|
+
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
19907
|
+
if (charset === "iso-8859-1") {
|
|
19908
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
19909
|
+
}
|
|
19910
|
+
try {
|
|
19911
|
+
return decodeURIComponent(strWithoutPlus);
|
|
19912
|
+
} catch (e) {
|
|
19913
|
+
return strWithoutPlus;
|
|
19914
|
+
}
|
|
19915
|
+
}, "decode");
|
|
19916
|
+
var limit = 1024;
|
|
19917
|
+
var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
|
|
19918
|
+
if (str.length === 0) {
|
|
19919
|
+
return str;
|
|
19920
|
+
}
|
|
19921
|
+
var string = str;
|
|
19922
|
+
if (typeof str === "symbol") {
|
|
19923
|
+
string = Symbol.prototype.toString.call(str);
|
|
19924
|
+
} else if (typeof str !== "string") {
|
|
19925
|
+
string = String(str);
|
|
19926
|
+
}
|
|
19927
|
+
if (charset === "iso-8859-1") {
|
|
19928
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
19929
|
+
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
19930
|
+
});
|
|
19931
|
+
}
|
|
19932
|
+
var out = "";
|
|
19933
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
19934
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
19935
|
+
var arr = [];
|
|
19936
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
19937
|
+
var c = segment.charCodeAt(i);
|
|
19938
|
+
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
19939
|
+
arr[arr.length] = segment.charAt(i);
|
|
19940
|
+
continue;
|
|
19941
|
+
}
|
|
19942
|
+
if (c < 128) {
|
|
19943
|
+
arr[arr.length] = hexTable[c];
|
|
19944
|
+
continue;
|
|
19945
|
+
}
|
|
19946
|
+
if (c < 2048) {
|
|
19947
|
+
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
19948
|
+
continue;
|
|
19949
|
+
}
|
|
19950
|
+
if (c < 55296 || c >= 57344) {
|
|
19951
|
+
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
19952
|
+
continue;
|
|
19953
|
+
}
|
|
19954
|
+
i += 1;
|
|
19955
|
+
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
19956
|
+
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
19957
|
+
}
|
|
19958
|
+
out += arr.join("");
|
|
19959
|
+
}
|
|
19960
|
+
return out;
|
|
19961
|
+
}, "encode");
|
|
19962
|
+
var compact = /* @__PURE__ */ __name(function compact2(value) {
|
|
19963
|
+
var queue = [
|
|
19964
|
+
{
|
|
19965
|
+
obj: {
|
|
19966
|
+
o: value
|
|
19967
|
+
},
|
|
19968
|
+
prop: "o"
|
|
19969
|
+
}
|
|
19970
|
+
];
|
|
19971
|
+
var refs = [];
|
|
19972
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
19973
|
+
var item = queue[i];
|
|
19974
|
+
var obj = item.obj[item.prop];
|
|
19975
|
+
var keys = Object.keys(obj);
|
|
19976
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
19977
|
+
var key = keys[j];
|
|
19978
|
+
var val = obj[key];
|
|
19979
|
+
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
19980
|
+
queue[queue.length] = {
|
|
19981
|
+
obj,
|
|
19982
|
+
prop: key
|
|
19983
|
+
};
|
|
19984
|
+
refs[refs.length] = val;
|
|
19985
|
+
}
|
|
19986
|
+
}
|
|
19987
|
+
}
|
|
19988
|
+
compactQueue(queue);
|
|
19989
|
+
return value;
|
|
19990
|
+
}, "compact");
|
|
19991
|
+
var isRegExp = /* @__PURE__ */ __name(function isRegExp2(obj) {
|
|
19992
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
19993
|
+
}, "isRegExp");
|
|
19994
|
+
var isBuffer = /* @__PURE__ */ __name(function isBuffer2(obj) {
|
|
19995
|
+
if (!obj || typeof obj !== "object") {
|
|
19996
|
+
return false;
|
|
19997
|
+
}
|
|
19998
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
19999
|
+
}, "isBuffer");
|
|
20000
|
+
var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
|
|
20001
|
+
if (isOverflow(a)) {
|
|
20002
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
20003
|
+
a[newIndex] = b;
|
|
20004
|
+
setMaxIndex(a, newIndex);
|
|
20005
|
+
return a;
|
|
20006
|
+
}
|
|
20007
|
+
var result = [].concat(a, b);
|
|
20008
|
+
if (result.length > arrayLimit) {
|
|
20009
|
+
return markOverflow(arrayToObject(result, {
|
|
20010
|
+
plainObjects
|
|
20011
|
+
}), result.length - 1);
|
|
20012
|
+
}
|
|
20013
|
+
return result;
|
|
20014
|
+
}, "combine");
|
|
20015
|
+
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
|
|
20016
|
+
if (isArray(val)) {
|
|
20017
|
+
var mapped = [];
|
|
20018
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
20019
|
+
mapped[mapped.length] = fn(val[i]);
|
|
20020
|
+
}
|
|
20021
|
+
return mapped;
|
|
20022
|
+
}
|
|
20023
|
+
return fn(val);
|
|
20024
|
+
}, "maybeMap");
|
|
20025
|
+
module2.exports = {
|
|
20026
|
+
arrayToObject,
|
|
20027
|
+
assign,
|
|
20028
|
+
combine,
|
|
20029
|
+
compact,
|
|
20030
|
+
decode,
|
|
20031
|
+
encode,
|
|
20032
|
+
isBuffer,
|
|
20033
|
+
isOverflow,
|
|
20034
|
+
isRegExp,
|
|
20035
|
+
markOverflow,
|
|
20036
|
+
maybeMap,
|
|
20037
|
+
merge
|
|
20038
|
+
};
|
|
20039
|
+
}
|
|
20040
|
+
});
|
|
20041
|
+
|
|
20042
|
+
// ../../../node_modules/express/node_modules/qs/lib/stringify.js
|
|
20043
|
+
var require_stringify2 = __commonJS({
|
|
20044
|
+
"../../../node_modules/express/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
20045
|
+
"use strict";
|
|
20046
|
+
var getSideChannel = require_side_channel();
|
|
20047
|
+
var utils = require_utils2();
|
|
20048
|
+
var formats = require_formats2();
|
|
20049
|
+
var has = Object.prototype.hasOwnProperty;
|
|
20050
|
+
var arrayPrefixGenerators = {
|
|
20051
|
+
brackets: /* @__PURE__ */ __name(function brackets(prefix) {
|
|
20052
|
+
return prefix + "[]";
|
|
20053
|
+
}, "brackets"),
|
|
20054
|
+
comma: "comma",
|
|
20055
|
+
indices: /* @__PURE__ */ __name(function indices(prefix, key) {
|
|
20056
|
+
return prefix + "[" + key + "]";
|
|
20057
|
+
}, "indices"),
|
|
20058
|
+
repeat: /* @__PURE__ */ __name(function repeat(prefix) {
|
|
20059
|
+
return prefix;
|
|
20060
|
+
}, "repeat")
|
|
20061
|
+
};
|
|
20062
|
+
var isArray = Array.isArray;
|
|
20063
|
+
var push = Array.prototype.push;
|
|
20064
|
+
var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
|
|
20065
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [
|
|
20066
|
+
valueOrArray
|
|
20067
|
+
]);
|
|
20068
|
+
}, "pushToArray");
|
|
20069
|
+
var toISO = Date.prototype.toISOString;
|
|
20070
|
+
var defaultFormat = formats["default"];
|
|
20071
|
+
var defaults = {
|
|
20072
|
+
addQueryPrefix: false,
|
|
20073
|
+
allowDots: false,
|
|
20074
|
+
allowEmptyArrays: false,
|
|
20075
|
+
arrayFormat: "indices",
|
|
20076
|
+
charset: "utf-8",
|
|
20077
|
+
charsetSentinel: false,
|
|
20078
|
+
commaRoundTrip: false,
|
|
20079
|
+
delimiter: "&",
|
|
20080
|
+
encode: true,
|
|
20081
|
+
encodeDotInKeys: false,
|
|
20082
|
+
encoder: utils.encode,
|
|
20083
|
+
encodeValuesOnly: false,
|
|
20084
|
+
filter: void 0,
|
|
20085
|
+
format: defaultFormat,
|
|
20086
|
+
formatter: formats.formatters[defaultFormat],
|
|
20087
|
+
// deprecated
|
|
20088
|
+
indices: false,
|
|
20089
|
+
serializeDate: /* @__PURE__ */ __name(function serializeDate(date) {
|
|
20090
|
+
return toISO.call(date);
|
|
20091
|
+
}, "serializeDate"),
|
|
20092
|
+
skipNulls: false,
|
|
20093
|
+
strictNullHandling: false
|
|
20094
|
+
};
|
|
20095
|
+
var isNonNullishPrimitive = /* @__PURE__ */ __name(function isNonNullishPrimitive2(v) {
|
|
20096
|
+
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
20097
|
+
}, "isNonNullishPrimitive");
|
|
20098
|
+
var sentinel = {};
|
|
20099
|
+
var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
20100
|
+
var obj = object;
|
|
20101
|
+
var tmpSc = sideChannel;
|
|
20102
|
+
var step = 0;
|
|
20103
|
+
var findFlag = false;
|
|
20104
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
20105
|
+
var pos = tmpSc.get(object);
|
|
20106
|
+
step += 1;
|
|
20107
|
+
if (typeof pos !== "undefined") {
|
|
20108
|
+
if (pos === step) {
|
|
20109
|
+
throw new RangeError("Cyclic object value");
|
|
20110
|
+
} else {
|
|
20111
|
+
findFlag = true;
|
|
20112
|
+
}
|
|
20113
|
+
}
|
|
20114
|
+
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
20115
|
+
step = 0;
|
|
20116
|
+
}
|
|
20117
|
+
}
|
|
20118
|
+
if (typeof filter === "function") {
|
|
20119
|
+
obj = filter(prefix, obj);
|
|
20120
|
+
} else if (obj instanceof Date) {
|
|
20121
|
+
obj = serializeDate(obj);
|
|
20122
|
+
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
20123
|
+
obj = utils.maybeMap(obj, function(value2) {
|
|
20124
|
+
if (value2 instanceof Date) {
|
|
20125
|
+
return serializeDate(value2);
|
|
20126
|
+
}
|
|
20127
|
+
return value2;
|
|
20128
|
+
});
|
|
20129
|
+
}
|
|
20130
|
+
if (obj === null) {
|
|
20131
|
+
if (strictNullHandling) {
|
|
20132
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
20133
|
+
}
|
|
20134
|
+
obj = "";
|
|
20135
|
+
}
|
|
20136
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
20137
|
+
if (encoder) {
|
|
20138
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
20139
|
+
return [
|
|
20140
|
+
formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))
|
|
20141
|
+
];
|
|
20142
|
+
}
|
|
20143
|
+
return [
|
|
20144
|
+
formatter(prefix) + "=" + formatter(String(obj))
|
|
20145
|
+
];
|
|
20146
|
+
}
|
|
20147
|
+
var values = [];
|
|
20148
|
+
if (typeof obj === "undefined") {
|
|
20149
|
+
return values;
|
|
20150
|
+
}
|
|
20151
|
+
var objKeys;
|
|
20152
|
+
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
20153
|
+
if (encodeValuesOnly && encoder) {
|
|
20154
|
+
obj = utils.maybeMap(obj, encoder);
|
|
20155
|
+
}
|
|
20156
|
+
objKeys = [
|
|
20157
|
+
{
|
|
20158
|
+
value: obj.length > 0 ? obj.join(",") || null : void 0
|
|
20159
|
+
}
|
|
20160
|
+
];
|
|
20161
|
+
} else if (isArray(filter)) {
|
|
20162
|
+
objKeys = filter;
|
|
20163
|
+
} else {
|
|
20164
|
+
var keys = Object.keys(obj);
|
|
20165
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
20166
|
+
}
|
|
20167
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
20168
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
20169
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
20170
|
+
return adjustedPrefix + "[]";
|
|
20171
|
+
}
|
|
20172
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
20173
|
+
var key = objKeys[j];
|
|
20174
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
20175
|
+
if (skipNulls && value === null) {
|
|
20176
|
+
continue;
|
|
20177
|
+
}
|
|
20178
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
20179
|
+
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
20180
|
+
sideChannel.set(object, step);
|
|
20181
|
+
var valueSideChannel = getSideChannel();
|
|
20182
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
20183
|
+
pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
20184
|
+
}
|
|
20185
|
+
return values;
|
|
20186
|
+
}, "stringify");
|
|
20187
|
+
var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringifyOptions2(opts) {
|
|
20188
|
+
if (!opts) {
|
|
20189
|
+
return defaults;
|
|
20190
|
+
}
|
|
20191
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
20192
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
20193
|
+
}
|
|
20194
|
+
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
20195
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
20196
|
+
}
|
|
20197
|
+
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
20198
|
+
throw new TypeError("Encoder has to be a function.");
|
|
20199
|
+
}
|
|
20200
|
+
var charset = opts.charset || defaults.charset;
|
|
20201
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
20202
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
20203
|
+
}
|
|
20204
|
+
var format = formats["default"];
|
|
20205
|
+
if (typeof opts.format !== "undefined") {
|
|
20206
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
20207
|
+
throw new TypeError("Unknown format option provided.");
|
|
20208
|
+
}
|
|
20209
|
+
format = opts.format;
|
|
20210
|
+
}
|
|
20211
|
+
var formatter = formats.formatters[format];
|
|
20212
|
+
var filter = defaults.filter;
|
|
20213
|
+
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
20214
|
+
filter = opts.filter;
|
|
20215
|
+
}
|
|
20216
|
+
var arrayFormat;
|
|
20217
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
20218
|
+
arrayFormat = opts.arrayFormat;
|
|
20219
|
+
} else if ("indices" in opts) {
|
|
20220
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
20221
|
+
} else {
|
|
20222
|
+
arrayFormat = defaults.arrayFormat;
|
|
20223
|
+
}
|
|
20224
|
+
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
20225
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
20226
|
+
}
|
|
20227
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
20228
|
+
return {
|
|
20229
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
20230
|
+
allowDots,
|
|
20231
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
20232
|
+
arrayFormat,
|
|
20233
|
+
charset,
|
|
20234
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20235
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
20236
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
20237
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
20238
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
20239
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
20240
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
20241
|
+
filter,
|
|
20242
|
+
format,
|
|
20243
|
+
formatter,
|
|
20244
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
20245
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
20246
|
+
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
20247
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
20248
|
+
};
|
|
20249
|
+
}, "normalizeStringifyOptions");
|
|
20250
|
+
module2.exports = function(object, opts) {
|
|
20251
|
+
var obj = object;
|
|
20252
|
+
var options = normalizeStringifyOptions(opts);
|
|
20253
|
+
var objKeys;
|
|
20254
|
+
var filter;
|
|
20255
|
+
if (typeof options.filter === "function") {
|
|
20256
|
+
filter = options.filter;
|
|
20257
|
+
obj = filter("", obj);
|
|
20258
|
+
} else if (isArray(options.filter)) {
|
|
20259
|
+
filter = options.filter;
|
|
20260
|
+
objKeys = filter;
|
|
20261
|
+
}
|
|
20262
|
+
var keys = [];
|
|
20263
|
+
if (typeof obj !== "object" || obj === null) {
|
|
20264
|
+
return "";
|
|
20265
|
+
}
|
|
20266
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
20267
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
20268
|
+
if (!objKeys) {
|
|
20269
|
+
objKeys = Object.keys(obj);
|
|
20270
|
+
}
|
|
20271
|
+
if (options.sort) {
|
|
20272
|
+
objKeys.sort(options.sort);
|
|
20273
|
+
}
|
|
20274
|
+
var sideChannel = getSideChannel();
|
|
20275
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
20276
|
+
var key = objKeys[i];
|
|
20277
|
+
var value = obj[key];
|
|
20278
|
+
if (options.skipNulls && value === null) {
|
|
20279
|
+
continue;
|
|
20280
|
+
}
|
|
20281
|
+
pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
|
|
20282
|
+
}
|
|
20283
|
+
var joined = keys.join(options.delimiter);
|
|
20284
|
+
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
20285
|
+
if (options.charsetSentinel) {
|
|
20286
|
+
if (options.charset === "iso-8859-1") {
|
|
20287
|
+
prefix += "utf8=%26%2310003%3B&";
|
|
20288
|
+
} else {
|
|
20289
|
+
prefix += "utf8=%E2%9C%93&";
|
|
20290
|
+
}
|
|
20291
|
+
}
|
|
20292
|
+
return joined.length > 0 ? prefix + joined : "";
|
|
20293
|
+
};
|
|
20294
|
+
}
|
|
20295
|
+
});
|
|
20296
|
+
|
|
20297
|
+
// ../../../node_modules/express/node_modules/qs/lib/parse.js
|
|
20298
|
+
var require_parse2 = __commonJS({
|
|
20299
|
+
"../../../node_modules/express/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
20300
|
+
"use strict";
|
|
20301
|
+
var utils = require_utils2();
|
|
20302
|
+
var has = Object.prototype.hasOwnProperty;
|
|
20303
|
+
var isArray = Array.isArray;
|
|
20304
|
+
var defaults = {
|
|
20305
|
+
allowDots: false,
|
|
20306
|
+
allowEmptyArrays: false,
|
|
20307
|
+
allowPrototypes: false,
|
|
20308
|
+
allowSparse: false,
|
|
20309
|
+
arrayLimit: 20,
|
|
20310
|
+
charset: "utf-8",
|
|
20311
|
+
charsetSentinel: false,
|
|
20312
|
+
comma: false,
|
|
20313
|
+
decodeDotInKeys: false,
|
|
20314
|
+
decoder: utils.decode,
|
|
20315
|
+
delimiter: "&",
|
|
20316
|
+
depth: 5,
|
|
20317
|
+
duplicates: "combine",
|
|
20318
|
+
ignoreQueryPrefix: false,
|
|
20319
|
+
interpretNumericEntities: false,
|
|
20320
|
+
parameterLimit: 1e3,
|
|
20321
|
+
parseArrays: true,
|
|
20322
|
+
plainObjects: false,
|
|
20323
|
+
strictDepth: false,
|
|
20324
|
+
strictNullHandling: false,
|
|
20325
|
+
throwOnLimitExceeded: false
|
|
20326
|
+
};
|
|
20327
|
+
var interpretNumericEntities = /* @__PURE__ */ __name(function(str) {
|
|
20328
|
+
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
20329
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
20330
|
+
});
|
|
20331
|
+
}, "interpretNumericEntities");
|
|
20332
|
+
var parseArrayValue = /* @__PURE__ */ __name(function(val, options, currentArrayLength) {
|
|
20333
|
+
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
20334
|
+
return val.split(",");
|
|
20335
|
+
}
|
|
20336
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
20337
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20338
|
+
}
|
|
20339
|
+
return val;
|
|
20340
|
+
}, "parseArrayValue");
|
|
20341
|
+
var isoSentinel = "utf8=%26%2310003%3B";
|
|
20342
|
+
var charsetSentinel = "utf8=%E2%9C%93";
|
|
20343
|
+
var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, options) {
|
|
20344
|
+
var obj = {
|
|
20345
|
+
__proto__: null
|
|
20346
|
+
};
|
|
20347
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
20348
|
+
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
20349
|
+
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
20350
|
+
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
|
|
20351
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
20352
|
+
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
20353
|
+
}
|
|
20354
|
+
var skipIndex = -1;
|
|
20355
|
+
var i;
|
|
20356
|
+
var charset = options.charset;
|
|
20357
|
+
if (options.charsetSentinel) {
|
|
20358
|
+
for (i = 0; i < parts.length; ++i) {
|
|
20359
|
+
if (parts[i].indexOf("utf8=") === 0) {
|
|
20360
|
+
if (parts[i] === charsetSentinel) {
|
|
20361
|
+
charset = "utf-8";
|
|
20362
|
+
} else if (parts[i] === isoSentinel) {
|
|
20363
|
+
charset = "iso-8859-1";
|
|
20364
|
+
}
|
|
20365
|
+
skipIndex = i;
|
|
20366
|
+
i = parts.length;
|
|
20367
|
+
}
|
|
20368
|
+
}
|
|
20369
|
+
}
|
|
20370
|
+
for (i = 0; i < parts.length; ++i) {
|
|
20371
|
+
if (i === skipIndex) {
|
|
20372
|
+
continue;
|
|
20373
|
+
}
|
|
20374
|
+
var part = parts[i];
|
|
20375
|
+
var bracketEqualsPos = part.indexOf("]=");
|
|
20376
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
20377
|
+
var key;
|
|
20378
|
+
var val;
|
|
20379
|
+
if (pos === -1) {
|
|
20380
|
+
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
20381
|
+
val = options.strictNullHandling ? null : "";
|
|
20382
|
+
} else {
|
|
20383
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
20384
|
+
if (key !== null) {
|
|
20385
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
20386
|
+
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
20387
|
+
});
|
|
20388
|
+
}
|
|
20389
|
+
}
|
|
20390
|
+
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
20391
|
+
val = interpretNumericEntities(String(val));
|
|
20392
|
+
}
|
|
20393
|
+
if (part.indexOf("[]=") > -1) {
|
|
20394
|
+
val = isArray(val) ? [
|
|
20395
|
+
val
|
|
20396
|
+
] : val;
|
|
20397
|
+
}
|
|
20398
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
20399
|
+
if (options.throwOnLimitExceeded) {
|
|
20400
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20401
|
+
}
|
|
20402
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
20403
|
+
}
|
|
20404
|
+
if (key !== null) {
|
|
20405
|
+
var existing = has.call(obj, key);
|
|
20406
|
+
if (existing && options.duplicates === "combine") {
|
|
20407
|
+
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
20408
|
+
} else if (!existing || options.duplicates === "last") {
|
|
20409
|
+
obj[key] = val;
|
|
20410
|
+
}
|
|
20411
|
+
}
|
|
20412
|
+
}
|
|
20413
|
+
return obj;
|
|
20414
|
+
}, "parseQueryStringValues");
|
|
20415
|
+
var parseObject = /* @__PURE__ */ __name(function(chain, val, options, valuesParsed) {
|
|
20416
|
+
var currentArrayLength = 0;
|
|
20417
|
+
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
20418
|
+
var parentKey = chain.slice(0, -1).join("");
|
|
20419
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
20420
|
+
}
|
|
20421
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
20422
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
20423
|
+
var obj;
|
|
20424
|
+
var root = chain[i];
|
|
20425
|
+
if (root === "[]" && options.parseArrays) {
|
|
20426
|
+
if (utils.isOverflow(leaf)) {
|
|
20427
|
+
obj = leaf;
|
|
20428
|
+
} else {
|
|
20429
|
+
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
20430
|
+
}
|
|
20431
|
+
} else {
|
|
20432
|
+
obj = options.plainObjects ? {
|
|
20433
|
+
__proto__: null
|
|
20434
|
+
} : {};
|
|
20435
|
+
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
20436
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
20437
|
+
var index = parseInt(decodedRoot, 10);
|
|
20438
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
20439
|
+
if (!options.parseArrays && decodedRoot === "") {
|
|
20440
|
+
obj = {
|
|
20441
|
+
0: leaf
|
|
20442
|
+
};
|
|
20443
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
20444
|
+
obj = [];
|
|
20445
|
+
obj[index] = leaf;
|
|
20446
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
20447
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20448
|
+
} else if (isValidArrayIndex) {
|
|
20449
|
+
obj[index] = leaf;
|
|
20450
|
+
utils.markOverflow(obj, index);
|
|
20451
|
+
} else if (decodedRoot !== "__proto__") {
|
|
20452
|
+
obj[decodedRoot] = leaf;
|
|
20453
|
+
}
|
|
20454
|
+
}
|
|
20455
|
+
leaf = obj;
|
|
20456
|
+
}
|
|
20457
|
+
return leaf;
|
|
20458
|
+
}, "parseObject");
|
|
20459
|
+
var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(givenKey, options) {
|
|
20460
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
20461
|
+
if (options.depth <= 0) {
|
|
20462
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
20463
|
+
if (!options.allowPrototypes) {
|
|
20464
|
+
return;
|
|
20465
|
+
}
|
|
20466
|
+
}
|
|
20467
|
+
return [
|
|
20468
|
+
key
|
|
20469
|
+
];
|
|
20470
|
+
}
|
|
20471
|
+
var brackets = /(\[[^[\]]*])/;
|
|
20472
|
+
var child = /(\[[^[\]]*])/g;
|
|
20473
|
+
var segment = brackets.exec(key);
|
|
20474
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
20475
|
+
var keys = [];
|
|
20476
|
+
if (parent) {
|
|
20477
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
20478
|
+
if (!options.allowPrototypes) {
|
|
20479
|
+
return;
|
|
20480
|
+
}
|
|
20481
|
+
}
|
|
20482
|
+
keys[keys.length] = parent;
|
|
20483
|
+
}
|
|
20484
|
+
var i = 0;
|
|
20485
|
+
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
20486
|
+
i += 1;
|
|
20487
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
20488
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
20489
|
+
if (!options.allowPrototypes) {
|
|
20490
|
+
return;
|
|
20491
|
+
}
|
|
20492
|
+
}
|
|
20493
|
+
keys[keys.length] = segment[1];
|
|
20494
|
+
}
|
|
20495
|
+
if (segment) {
|
|
20496
|
+
if (options.strictDepth === true) {
|
|
20497
|
+
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
20498
|
+
}
|
|
20499
|
+
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
20500
|
+
}
|
|
20501
|
+
return keys;
|
|
20502
|
+
}, "splitKeyIntoSegments");
|
|
20503
|
+
var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
20504
|
+
if (!givenKey) {
|
|
20505
|
+
return;
|
|
20506
|
+
}
|
|
20507
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
20508
|
+
if (!keys) {
|
|
20509
|
+
return;
|
|
20510
|
+
}
|
|
20511
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
20512
|
+
}, "parseQueryStringKeys");
|
|
20513
|
+
var normalizeParseOptions = /* @__PURE__ */ __name(function normalizeParseOptions2(opts) {
|
|
20514
|
+
if (!opts) {
|
|
20515
|
+
return defaults;
|
|
20516
|
+
}
|
|
20517
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
20518
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
20519
|
+
}
|
|
20520
|
+
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
20521
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
20522
|
+
}
|
|
20523
|
+
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
20524
|
+
throw new TypeError("Decoder has to be a function.");
|
|
20525
|
+
}
|
|
20526
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
20527
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
20528
|
+
}
|
|
20529
|
+
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
20530
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
20531
|
+
}
|
|
20532
|
+
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
20533
|
+
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
20534
|
+
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
20535
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
20536
|
+
}
|
|
20537
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
20538
|
+
return {
|
|
20539
|
+
allowDots,
|
|
20540
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
20541
|
+
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
20542
|
+
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
20543
|
+
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
20544
|
+
charset,
|
|
20545
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20546
|
+
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
20547
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
20548
|
+
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
20549
|
+
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
20550
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
20551
|
+
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
20552
|
+
duplicates,
|
|
20553
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
20554
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
20555
|
+
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
20556
|
+
parseArrays: opts.parseArrays !== false,
|
|
20557
|
+
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
20558
|
+
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
20559
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
20560
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
20561
|
+
};
|
|
20562
|
+
}, "normalizeParseOptions");
|
|
20563
|
+
module2.exports = function(str, opts) {
|
|
20564
|
+
var options = normalizeParseOptions(opts);
|
|
20565
|
+
if (str === "" || str === null || typeof str === "undefined") {
|
|
20566
|
+
return options.plainObjects ? {
|
|
20567
|
+
__proto__: null
|
|
20568
|
+
} : {};
|
|
20569
|
+
}
|
|
20570
|
+
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
20571
|
+
var obj = options.plainObjects ? {
|
|
20572
|
+
__proto__: null
|
|
20573
|
+
} : {};
|
|
20574
|
+
var keys = Object.keys(tempObj);
|
|
20575
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
20576
|
+
var key = keys[i];
|
|
20577
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
20578
|
+
obj = utils.merge(obj, newObj, options);
|
|
20579
|
+
}
|
|
20580
|
+
if (options.allowSparse === true) {
|
|
20581
|
+
return obj;
|
|
20582
|
+
}
|
|
20583
|
+
return utils.compact(obj);
|
|
20584
|
+
};
|
|
20585
|
+
}
|
|
20586
|
+
});
|
|
20587
|
+
|
|
20588
|
+
// ../../../node_modules/express/node_modules/qs/lib/index.js
|
|
20589
|
+
var require_lib3 = __commonJS({
|
|
20590
|
+
"../../../node_modules/express/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
20591
|
+
"use strict";
|
|
20592
|
+
var stringify = require_stringify2();
|
|
20593
|
+
var parse = require_parse2();
|
|
20594
|
+
var formats = require_formats2();
|
|
20595
|
+
module2.exports = {
|
|
20596
|
+
formats,
|
|
20597
|
+
parse,
|
|
20598
|
+
stringify
|
|
20599
|
+
};
|
|
20600
|
+
}
|
|
20601
|
+
});
|
|
20602
|
+
|
|
19170
20603
|
// ../../../node_modules/express/lib/middleware/query.js
|
|
19171
20604
|
var require_query = __commonJS({
|
|
19172
20605
|
"../../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
|
|
19173
20606
|
"use strict";
|
|
19174
20607
|
var merge = require_utils_merge();
|
|
19175
20608
|
var parseUrl = require_parseurl();
|
|
19176
|
-
var qs =
|
|
20609
|
+
var qs = require_lib3();
|
|
19177
20610
|
module2.exports = /* @__PURE__ */ __name(function query(options) {
|
|
19178
20611
|
var opts = merge({}, options);
|
|
19179
20612
|
var queryparse = qs.parse;
|
|
@@ -19199,7 +20632,7 @@ var require_query = __commonJS({
|
|
|
19199
20632
|
var require_view = __commonJS({
|
|
19200
20633
|
"../../../node_modules/express/lib/view.js"(exports2, module2) {
|
|
19201
20634
|
"use strict";
|
|
19202
|
-
var debug =
|
|
20635
|
+
var debug = require_src3()("express:view");
|
|
19203
20636
|
var path2 = require("path");
|
|
19204
20637
|
var fs2 = require("fs");
|
|
19205
20638
|
var dirname = path2.dirname;
|
|
@@ -19338,9 +20771,9 @@ var require_safe_buffer = __commonJS({
|
|
|
19338
20771
|
}
|
|
19339
20772
|
});
|
|
19340
20773
|
|
|
19341
|
-
// ../../../node_modules/content-disposition/index.js
|
|
20774
|
+
// ../../../node_modules/express/node_modules/content-disposition/index.js
|
|
19342
20775
|
var require_content_disposition = __commonJS({
|
|
19343
|
-
"../../../node_modules/content-disposition/index.js"(exports2, module2) {
|
|
20776
|
+
"../../../node_modules/express/node_modules/content-disposition/index.js"(exports2, module2) {
|
|
19344
20777
|
"use strict";
|
|
19345
20778
|
module2.exports = contentDisposition;
|
|
19346
20779
|
module2.exports.parse = parse;
|
|
@@ -19513,7 +20946,7 @@ var require_content_disposition = __commonJS({
|
|
|
19513
20946
|
});
|
|
19514
20947
|
|
|
19515
20948
|
// ../../../node_modules/send/node_modules/debug/node_modules/ms/index.js
|
|
19516
|
-
var
|
|
20949
|
+
var require_ms4 = __commonJS({
|
|
19517
20950
|
"../../../node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports2, module2) {
|
|
19518
20951
|
"use strict";
|
|
19519
20952
|
var s = 1e3;
|
|
@@ -19616,7 +21049,7 @@ var require_ms3 = __commonJS({
|
|
|
19616
21049
|
});
|
|
19617
21050
|
|
|
19618
21051
|
// ../../../node_modules/send/node_modules/debug/src/debug.js
|
|
19619
|
-
var
|
|
21052
|
+
var require_debug4 = __commonJS({
|
|
19620
21053
|
"../../../node_modules/send/node_modules/debug/src/debug.js"(exports2, module2) {
|
|
19621
21054
|
"use strict";
|
|
19622
21055
|
exports2 = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
@@ -19624,7 +21057,7 @@ var require_debug3 = __commonJS({
|
|
|
19624
21057
|
exports2.disable = disable;
|
|
19625
21058
|
exports2.enable = enable;
|
|
19626
21059
|
exports2.enabled = enabled;
|
|
19627
|
-
exports2.humanize =
|
|
21060
|
+
exports2.humanize = require_ms4();
|
|
19628
21061
|
exports2.names = [];
|
|
19629
21062
|
exports2.skips = [];
|
|
19630
21063
|
exports2.formatters = {};
|
|
@@ -19729,10 +21162,10 @@ var require_debug3 = __commonJS({
|
|
|
19729
21162
|
});
|
|
19730
21163
|
|
|
19731
21164
|
// ../../../node_modules/send/node_modules/debug/src/browser.js
|
|
19732
|
-
var
|
|
21165
|
+
var require_browser4 = __commonJS({
|
|
19733
21166
|
"../../../node_modules/send/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
19734
21167
|
"use strict";
|
|
19735
|
-
exports2 = module2.exports =
|
|
21168
|
+
exports2 = module2.exports = require_debug4();
|
|
19736
21169
|
exports2.log = log;
|
|
19737
21170
|
exports2.formatArgs = formatArgs;
|
|
19738
21171
|
exports2.save = save;
|
|
@@ -19822,12 +21255,12 @@ var require_browser3 = __commonJS({
|
|
|
19822
21255
|
});
|
|
19823
21256
|
|
|
19824
21257
|
// ../../../node_modules/send/node_modules/debug/src/node.js
|
|
19825
|
-
var
|
|
21258
|
+
var require_node4 = __commonJS({
|
|
19826
21259
|
"../../../node_modules/send/node_modules/debug/src/node.js"(exports2, module2) {
|
|
19827
21260
|
"use strict";
|
|
19828
21261
|
var tty = require("tty");
|
|
19829
21262
|
var util = require("util");
|
|
19830
|
-
exports2 = module2.exports =
|
|
21263
|
+
exports2 = module2.exports = require_debug4();
|
|
19831
21264
|
exports2.init = init;
|
|
19832
21265
|
exports2.log = log;
|
|
19833
21266
|
exports2.formatArgs = formatArgs;
|
|
@@ -19959,13 +21392,13 @@ var require_node3 = __commonJS({
|
|
|
19959
21392
|
});
|
|
19960
21393
|
|
|
19961
21394
|
// ../../../node_modules/send/node_modules/debug/src/index.js
|
|
19962
|
-
var
|
|
21395
|
+
var require_src4 = __commonJS({
|
|
19963
21396
|
"../../../node_modules/send/node_modules/debug/src/index.js"(exports2, module2) {
|
|
19964
21397
|
"use strict";
|
|
19965
21398
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
19966
|
-
module2.exports =
|
|
21399
|
+
module2.exports = require_browser4();
|
|
19967
21400
|
} else {
|
|
19968
|
-
module2.exports =
|
|
21401
|
+
module2.exports = require_node4();
|
|
19969
21402
|
}
|
|
19970
21403
|
}
|
|
19971
21404
|
});
|
|
@@ -20156,7 +21589,7 @@ var require_mime = __commonJS({
|
|
|
20156
21589
|
});
|
|
20157
21590
|
|
|
20158
21591
|
// ../../../node_modules/ms/index.js
|
|
20159
|
-
var
|
|
21592
|
+
var require_ms5 = __commonJS({
|
|
20160
21593
|
"../../../node_modules/ms/index.js"(exports2, module2) {
|
|
20161
21594
|
"use strict";
|
|
20162
21595
|
var s = 1e3;
|
|
@@ -20364,7 +21797,7 @@ var require_send = __commonJS({
|
|
|
20364
21797
|
"../../../node_modules/send/index.js"(exports2, module2) {
|
|
20365
21798
|
"use strict";
|
|
20366
21799
|
var createError = require_http_errors();
|
|
20367
|
-
var debug =
|
|
21800
|
+
var debug = require_src4()("send");
|
|
20368
21801
|
var deprecate = require_depd()("send");
|
|
20369
21802
|
var destroy = require_destroy();
|
|
20370
21803
|
var encodeUrl = require_encodeurl();
|
|
@@ -20373,7 +21806,7 @@ var require_send = __commonJS({
|
|
|
20373
21806
|
var fresh = require_fresh();
|
|
20374
21807
|
var fs2 = require("fs");
|
|
20375
21808
|
var mime = require_mime();
|
|
20376
|
-
var ms =
|
|
21809
|
+
var ms = require_ms5();
|
|
20377
21810
|
var onFinished = require_on_finished();
|
|
20378
21811
|
var parseRange = require_range_parser();
|
|
20379
21812
|
var path2 = require("path");
|
|
@@ -20975,9 +22408,9 @@ var require_forwarded = __commonJS({
|
|
|
20975
22408
|
}
|
|
20976
22409
|
});
|
|
20977
22410
|
|
|
20978
|
-
// ../../../node_modules/ipaddr.js/lib/ipaddr.js
|
|
22411
|
+
// ../../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js
|
|
20979
22412
|
var require_ipaddr = __commonJS({
|
|
20980
|
-
"../../../node_modules/ipaddr.js/lib/ipaddr.js"(exports2, module2) {
|
|
22413
|
+
"../../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js"(exports2, module2) {
|
|
20981
22414
|
"use strict";
|
|
20982
22415
|
(function() {
|
|
20983
22416
|
var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
|
|
@@ -22089,7 +23522,7 @@ var require_proxy_addr = __commonJS({
|
|
|
22089
23522
|
});
|
|
22090
23523
|
|
|
22091
23524
|
// ../../../node_modules/express/lib/utils.js
|
|
22092
|
-
var
|
|
23525
|
+
var require_utils3 = __commonJS({
|
|
22093
23526
|
"../../../node_modules/express/lib/utils.js"(exports2) {
|
|
22094
23527
|
"use strict";
|
|
22095
23528
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
@@ -22100,7 +23533,7 @@ var require_utils2 = __commonJS({
|
|
|
22100
23533
|
var mime = require_send().mime;
|
|
22101
23534
|
var etag = require_etag();
|
|
22102
23535
|
var proxyaddr = require_proxy_addr();
|
|
22103
|
-
var qs =
|
|
23536
|
+
var qs = require_lib3();
|
|
22104
23537
|
var querystring = require("querystring");
|
|
22105
23538
|
exports2.etag = createETagGenerator({
|
|
22106
23539
|
weak: false
|
|
@@ -22243,12 +23676,12 @@ var require_application = __commonJS({
|
|
|
22243
23676
|
var methods = require_methods();
|
|
22244
23677
|
var middleware = require_init();
|
|
22245
23678
|
var query = require_query();
|
|
22246
|
-
var debug =
|
|
23679
|
+
var debug = require_src3()("express:application");
|
|
22247
23680
|
var View = require_view();
|
|
22248
23681
|
var http = require("http");
|
|
22249
|
-
var compileETag =
|
|
22250
|
-
var compileQueryParser =
|
|
22251
|
-
var compileTrust =
|
|
23682
|
+
var compileETag = require_utils3().compileETag;
|
|
23683
|
+
var compileQueryParser = require_utils3().compileQueryParser;
|
|
23684
|
+
var compileTrust = require_utils3().compileTrust;
|
|
22252
23685
|
var deprecate = require_depd()("express");
|
|
22253
23686
|
var flatten = require_array_flatten();
|
|
22254
23687
|
var merge = require_utils_merge();
|
|
@@ -31942,9 +33375,9 @@ var require_request = __commonJS({
|
|
|
31942
33375
|
}
|
|
31943
33376
|
});
|
|
31944
33377
|
|
|
31945
|
-
// ../../../node_modules/
|
|
33378
|
+
// ../../../node_modules/cookie-signature/index.js
|
|
31946
33379
|
var require_cookie_signature = __commonJS({
|
|
31947
|
-
"../../../node_modules/
|
|
33380
|
+
"../../../node_modules/cookie-signature/index.js"(exports2) {
|
|
31948
33381
|
"use strict";
|
|
31949
33382
|
var crypto3 = require("crypto");
|
|
31950
33383
|
exports2.sign = function(val, secret) {
|
|
@@ -32225,15 +33658,15 @@ var require_response = __commonJS({
|
|
|
32225
33658
|
var encodeUrl = require_encodeurl();
|
|
32226
33659
|
var escapeHtml = require_escape_html();
|
|
32227
33660
|
var http = require("http");
|
|
32228
|
-
var isAbsolute =
|
|
33661
|
+
var isAbsolute = require_utils3().isAbsolute;
|
|
32229
33662
|
var onFinished = require_on_finished();
|
|
32230
33663
|
var path2 = require("path");
|
|
32231
33664
|
var statuses = require_statuses();
|
|
32232
33665
|
var merge = require_utils_merge();
|
|
32233
33666
|
var sign = require_cookie_signature().sign;
|
|
32234
|
-
var normalizeType =
|
|
32235
|
-
var normalizeTypes =
|
|
32236
|
-
var setCharset =
|
|
33667
|
+
var normalizeType = require_utils3().normalizeType;
|
|
33668
|
+
var normalizeTypes = require_utils3().normalizeTypes;
|
|
33669
|
+
var setCharset = require_utils3().setCharset;
|
|
32237
33670
|
var cookie = require_cookie();
|
|
32238
33671
|
var send = require_send();
|
|
32239
33672
|
var extname2 = path2.extname;
|
|
@@ -32983,7 +34416,8 @@ __export(index_exports, {
|
|
|
32983
34416
|
StaticModule: () => StaticModule,
|
|
32984
34417
|
UserContextMiddleware: () => UserContextMiddleware,
|
|
32985
34418
|
ViewContextMiddleware: () => ViewContextMiddleware,
|
|
32986
|
-
configureApp: () => configureApp
|
|
34419
|
+
configureApp: () => configureApp,
|
|
34420
|
+
createLegacyPathRedirectMiddleware: () => createLegacyPathRedirectMiddleware
|
|
32987
34421
|
});
|
|
32988
34422
|
module.exports = __toCommonJS(index_exports);
|
|
32989
34423
|
|
|
@@ -34555,6 +35989,43 @@ var import_nestjs_logger3 = require("@lark-apaas/nestjs-logger");
|
|
|
34555
35989
|
var import_cookie_parser = __toESM(require("cookie-parser"), 1);
|
|
34556
35990
|
var import_express = __toESM(require_express2(), 1);
|
|
34557
35991
|
var import_nestjs_openapi_devtools = require("@lark-apaas/nestjs-openapi-devtools");
|
|
35992
|
+
|
|
35993
|
+
// src/middlewares/legacy-path-redirect/index.ts
|
|
35994
|
+
var LEGACY_ROUTE_PATTERNS = [
|
|
35995
|
+
/^\/af\/p\/([^/]+)(\/.*)?$/,
|
|
35996
|
+
/^\/spark\/faas\/([^/]+)(\/.*)?$/
|
|
35997
|
+
];
|
|
35998
|
+
function createLegacyPathRedirectMiddleware() {
|
|
35999
|
+
return (req, res, next) => {
|
|
36000
|
+
const basePath = process.env.CLIENT_BASE_PATH ?? "";
|
|
36001
|
+
if (!/^\/app\/[^/]/.test(basePath)) {
|
|
36002
|
+
return next();
|
|
36003
|
+
}
|
|
36004
|
+
for (const pattern of LEGACY_ROUTE_PATTERNS) {
|
|
36005
|
+
const match = req.path.match(pattern);
|
|
36006
|
+
if (match) {
|
|
36007
|
+
const appId = match[1];
|
|
36008
|
+
const suffix = match[2] || "";
|
|
36009
|
+
const querySuffix = req.originalUrl.slice(req.path.length);
|
|
36010
|
+
const normalized = basePath.replace(/\/+$/, "");
|
|
36011
|
+
const basePrefix = normalized.slice(0, normalized.lastIndexOf("/"));
|
|
36012
|
+
const newUrl = `${basePrefix}/${appId}${suffix}${querySuffix}`;
|
|
36013
|
+
if (suffix.startsWith("/api/") || suffix.startsWith("/__innerapi__/")) {
|
|
36014
|
+
req.url = newUrl;
|
|
36015
|
+
return next();
|
|
36016
|
+
}
|
|
36017
|
+
if (req.method === "GET") {
|
|
36018
|
+
return res.redirect(302, newUrl);
|
|
36019
|
+
}
|
|
36020
|
+
return next();
|
|
36021
|
+
}
|
|
36022
|
+
}
|
|
36023
|
+
return next();
|
|
36024
|
+
};
|
|
36025
|
+
}
|
|
36026
|
+
__name(createLegacyPathRedirectMiddleware, "createLegacyPathRedirectMiddleware");
|
|
36027
|
+
|
|
36028
|
+
// src/setup.ts
|
|
34558
36029
|
var DEFAULT_BODY_LIMIT = "1mb";
|
|
34559
36030
|
var defaultPerms = {
|
|
34560
36031
|
disableSwagger: false
|
|
@@ -34571,6 +36042,7 @@ async function configureApp(app, perms = defaultPerms) {
|
|
|
34571
36042
|
extended: true
|
|
34572
36043
|
}));
|
|
34573
36044
|
app.use((0, import_cookie_parser.default)());
|
|
36045
|
+
app.use(createLegacyPathRedirectMiddleware());
|
|
34574
36046
|
const globalPrefix = process.env.CLIENT_BASE_PATH ?? "";
|
|
34575
36047
|
app.setGlobalPrefix(globalPrefix);
|
|
34576
36048
|
app.set("trust proxy", true);
|
|
@@ -34614,6 +36086,7 @@ var import_nestjs_authzpaas2 = require("@lark-apaas/nestjs-authzpaas");
|
|
|
34614
36086
|
UserContextMiddleware,
|
|
34615
36087
|
ViewContextMiddleware,
|
|
34616
36088
|
configureApp,
|
|
36089
|
+
createLegacyPathRedirectMiddleware,
|
|
34617
36090
|
...require("@lark-apaas/nestjs-authnpaas"),
|
|
34618
36091
|
...require("@lark-apaas/nestjs-capability"),
|
|
34619
36092
|
...require("@lark-apaas/nestjs-datapaas"),
|