@qwen-code/qwen-code 0.16.2 → 0.17.0-nightly.20260530.c699738f9
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/bundled/qc-helper/docs/configuration/settings.md +5 -1
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/feishu.md +170 -0
- package/chunks/{agent-RY5EB3XR.js → agent-4M25QGDR.js} +17 -12
- package/chunks/{anthropicContentGenerator-LYI3OHBB.js → anthropicContentGenerator-L4HWAOIV.js} +5 -5
- package/chunks/{askUserQuestion-R3MKD2JT.js → askUserQuestion-DC6OWQIL.js} +5 -3
- package/chunks/chunk-24YKA2DA.js +233 -0
- package/chunks/{chunk-UFC57OYT.js → chunk-33RDTIU6.js} +5 -3
- package/chunks/{chunk-C6WMLUNB.js → chunk-3BJBCG2K.js} +1 -1
- package/chunks/chunk-3HX5LZ6R.js +1798 -0
- package/chunks/{chunk-66CJCYYZ.js → chunk-556C74RS.js} +1 -1
- package/chunks/{chunk-RDYWTWEM.js → chunk-5IFG2VC4.js} +299 -232
- package/chunks/{chunk-7HM6OB7M.js → chunk-64GSYJKZ.js} +1336 -5164
- package/chunks/chunk-6RQTH7UQ.js +115 -0
- package/chunks/{chunk-K5PGHDBN.js → chunk-AKBFRR6J.js} +112 -132
- package/chunks/{chunk-UE5LPQF7.js → chunk-BY2NB5PD.js} +7 -7
- package/chunks/{chunk-C27V5A2J.js → chunk-EMVEDSVZ.js} +1 -1
- package/chunks/{chunk-TXQI3VZ7.js → chunk-GJHMAWS7.js} +1 -1
- package/chunks/{chunk-K72FHBFO.js → chunk-HAQCNXSG.js} +1 -0
- package/chunks/{chunk-T4VD6OJ4.js → chunk-HCSJIOLR.js} +1 -1
- package/chunks/chunk-J37FGIOA.js +1623 -0
- package/chunks/chunk-J5VCSWPA.js +1467 -0
- package/chunks/{chunk-4YNZFYJY.js → chunk-JVAHBN7G.js} +2533 -3943
- package/chunks/{chunk-USE2VQ5P.js → chunk-NP3ICQCN.js} +1 -1
- package/chunks/{chunk-YMDXEEOW.js → chunk-R2B65CAN.js} +1 -82
- package/chunks/{chunk-PJLEMR7N.js → chunk-S6JU6P35.js} +6 -6
- package/chunks/chunk-SZOEIL6S.js +35 -0
- package/chunks/chunk-TI4GXJKO.js +4277 -0
- package/chunks/{chunk-E7E2MFYM.js → chunk-U2K6HDUJ.js} +434 -13
- package/chunks/{chunk-FO7BIVSR.js → chunk-UQRYJQBE.js} +5 -3
- package/chunks/{chunk-VMOWXTRC.js → chunk-V7LMZR76.js} +1 -1
- package/chunks/{chunk-GQXXO5HJ.js → chunk-VRZJCBJ5.js} +25 -5
- package/chunks/chunk-W57YDFU5.js +41 -0
- package/chunks/computer-use-2J5ZXEER.js +768 -0
- package/chunks/{contextCommand-DDGVLQSF.js → contextCommand-FYLWOPEY.js} +19 -14
- package/chunks/{cron-create-BTEOGHPH.js → cron-create-FXRORK2U.js} +5 -3
- package/chunks/{cron-delete-56CEWELN.js → cron-delete-D24IN6CA.js} +5 -3
- package/chunks/{cron-list-SV6QRZW2.js → cron-list-SMOX26SL.js} +5 -3
- package/chunks/{devtools-WN62SQPV.js → devtools-IXE4UP72.js} +31 -3748
- package/chunks/{dist-MN2PDDPR.js → dist-6RUZ2JD6.js} +13 -1612
- package/chunks/{dist-R2SXPG74.js → dist-AHZNZWRI.js} +5 -4
- package/chunks/dist-GRQVFL3G.js +94147 -0
- package/chunks/{dist-BXDUQ2QY.js → dist-XTTPOFAH.js} +4 -3
- package/chunks/{edit-4LLGNYVZ.js → edit-WZ25CEWG.js} +20 -14
- package/chunks/{enter-worktree-E2R5XAFT.js → enter-worktree-2NOCLXKO.js} +20 -14
- package/chunks/{exit-worktree-YVBYYYDD.js → exit-worktree-VU52DVL2.js} +20 -14
- package/chunks/{exitPlanMode-WD5IH7NS.js → exitPlanMode-WAAHXBC4.js} +20 -14
- package/chunks/{geminiContentGenerator-LM65ADWM.js → geminiContentGenerator-4S4ZKVVJ.js} +4 -3
- package/chunks/{glob-6X6OCEWE.js → glob-PB3CLV76.js} +20 -14
- package/chunks/{grep-2UUPSSIQ.js → grep-4LUZHGQ6.js} +20 -14
- package/chunks/{ls-MYXAM7LJ.js → ls-7FYQHPWF.js} +5 -3
- package/chunks/{lsp-PFGI35JL.js → lsp-DKG34USR.js} +5 -3
- package/chunks/{monitor-VUHPEGUW.js → monitor-F3VYF56B.js} +20 -14
- package/chunks/{notebook-edit-P4QVLW6I.js → notebook-edit-IRJY3X55.js} +21 -15
- package/chunks/{openaiContentGenerator-JH4YNZ3H.js → openaiContentGenerator-MVJS4YJ2.js} +13 -10
- package/chunks/{qwenContentGenerator-5FE4UYUT.js → qwenContentGenerator-RZ73WRUY.js} +21 -16
- package/chunks/{read-file-J7DH4OKV.js → read-file-ATYZ7S64.js} +10 -6
- package/chunks/{ripGrep-33DECY4F.js → ripGrep-RHBCA4T6.js} +17 -12
- package/chunks/{send-message-JUFP62VD.js → send-message-ZL7CDM7K.js} +5 -3
- package/chunks/{serve-7FX7MREA.js → serve-MFW42BGQ.js} +63 -1837
- package/chunks/{shell-ZNTQIRK6.js → shell-5KBRNDKF.js} +17 -12
- package/chunks/{skill-CFCUIY23.js → skill-5IYMA66H.js} +24 -13
- package/chunks/{src-AHV2CWEQ.js → src-3NJ2SSXI.js} +49 -41
- package/chunks/{syntheticOutput-AKTXC6FR.js → syntheticOutput-U3YJ3GOO.js} +3 -2
- package/chunks/{task-stop-2NYFR2ES.js → task-stop-NPUI3YBA.js} +5 -3
- package/chunks/{todoWrite-WHZ2O2XP.js → todoWrite-Y6F7YEIM.js} +6 -4
- package/chunks/{tool-search-C2EMLFBJ.js → tool-search-ZDWODLO5.js} +13 -8
- package/chunks/{web-fetch-S6MZXPZ5.js → web-fetch-XWEK4TFX.js} +6 -4
- package/chunks/{write-file-EEPVRS4Q.js → write-file-AWKMBOEG.js} +21 -15
- package/cli.js +414 -331
- package/package.json +2 -2
- package/chunks/chunk-JVD46YJV.js +0 -434
- package/chunks/undici-4ARNOH74.js +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
require_lib
|
|
5
|
+
} from "./chunk-3HX5LZ6R.js";
|
|
6
|
+
import {
|
|
7
|
+
require_mime_db
|
|
8
8
|
} from "./chunk-7RYW5LQV.js";
|
|
9
9
|
import {
|
|
10
10
|
ACP_PREFLIGHT_KINDS,
|
|
@@ -29,16 +29,16 @@ import {
|
|
|
29
29
|
getNpmVersion,
|
|
30
30
|
loadSettings,
|
|
31
31
|
mapDomainErrorToErrorKind
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VRZJCBJ5.js";
|
|
33
33
|
import {
|
|
34
34
|
ClientSideConnection,
|
|
35
35
|
PROTOCOL_VERSION,
|
|
36
36
|
ndJsonStream
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-33RDTIU6.js";
|
|
38
38
|
import {
|
|
39
39
|
writeStderrLine,
|
|
40
40
|
writeStdoutLine
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-556C74RS.js";
|
|
42
42
|
import {
|
|
43
43
|
APPROVAL_MODES,
|
|
44
44
|
BuiltinAgentRegistry,
|
|
@@ -56,20 +56,18 @@ import {
|
|
|
56
56
|
loadIgnoreRules,
|
|
57
57
|
require_once,
|
|
58
58
|
writeWorkspaceContextFile
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-64GSYJKZ.js";
|
|
60
|
+
import "./chunk-24YKA2DA.js";
|
|
61
61
|
import "./chunk-O4PICXES.js";
|
|
62
62
|
import "./chunk-TW522KN6.js";
|
|
63
|
+
import "./chunk-TI4GXJKO.js";
|
|
64
|
+
import "./chunk-AKBFRR6J.js";
|
|
63
65
|
import "./chunk-MLZQVCF3.js";
|
|
64
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-EMVEDSVZ.js";
|
|
65
67
|
import "./chunk-EY6BDW7Y.js";
|
|
66
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-HAQCNXSG.js";
|
|
67
69
|
import "./chunk-77WXWU44.js";
|
|
68
70
|
import "./chunk-GVWPJCXU.js";
|
|
69
|
-
import {
|
|
70
|
-
detectRuntime,
|
|
71
|
-
redactProxyCredentials
|
|
72
|
-
} from "./chunk-JVD46YJV.js";
|
|
73
71
|
import {
|
|
74
72
|
decodeBufferWithEncodingInfo,
|
|
75
73
|
getAllGeminiMdFilenames,
|
|
@@ -77,16 +75,16 @@ import {
|
|
|
77
75
|
isBinaryFile,
|
|
78
76
|
isWithinRoot,
|
|
79
77
|
require_safer
|
|
80
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-JVAHBN7G.js";
|
|
79
|
+
import "./chunk-J5VCSWPA.js";
|
|
81
80
|
import "./chunk-UWCTAVOD.js";
|
|
81
|
+
import "./chunk-W57YDFU5.js";
|
|
82
82
|
import "./chunk-OFEVLU4C.js";
|
|
83
83
|
import "./chunk-NQ3E7YLD.js";
|
|
84
|
-
import "./chunk-6NUSWV4M.js";
|
|
85
84
|
import "./chunk-ODPVJ6JJ.js";
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-YMDXEEOW.js";
|
|
85
|
+
import "./chunk-UQRYJQBE.js";
|
|
86
|
+
import "./chunk-6RQTH7UQ.js";
|
|
87
|
+
import "./chunk-R2B65CAN.js";
|
|
90
88
|
import {
|
|
91
89
|
QwenOAuth2Client,
|
|
92
90
|
QwenOAuthPollError,
|
|
@@ -97,10 +95,17 @@ import {
|
|
|
97
95
|
isDeviceTokenSuccess
|
|
98
96
|
} from "./chunk-7YJIR2FX.js";
|
|
99
97
|
import "./chunk-OIL7KDWV.js";
|
|
98
|
+
import {
|
|
99
|
+
detectRuntime,
|
|
100
|
+
redactProxyCredentials
|
|
101
|
+
} from "./chunk-U2K6HDUJ.js";
|
|
102
|
+
import "./chunk-6NUSWV4M.js";
|
|
103
|
+
import "./chunk-HCSJIOLR.js";
|
|
104
|
+
import "./chunk-SZOEIL6S.js";
|
|
105
|
+
import "./chunk-5IFG2VC4.js";
|
|
100
106
|
import {
|
|
101
107
|
Storage
|
|
102
108
|
} from "./chunk-ACBGEKB7.js";
|
|
103
|
-
import "./chunk-E7E2MFYM.js";
|
|
104
109
|
import "./chunk-ZERZSAZL.js";
|
|
105
110
|
import {
|
|
106
111
|
require_src
|
|
@@ -4586,7 +4591,7 @@ var require_streams = __commonJS({
|
|
|
4586
4591
|
});
|
|
4587
4592
|
|
|
4588
4593
|
// node_modules/raw-body/node_modules/iconv-lite/lib/index.js
|
|
4589
|
-
var
|
|
4594
|
+
var require_lib2 = __commonJS({
|
|
4590
4595
|
"node_modules/raw-body/node_modules/iconv-lite/lib/index.js"(exports, module) {
|
|
4591
4596
|
"use strict";
|
|
4592
4597
|
init_esbuild_shims();
|
|
@@ -4767,7 +4772,7 @@ var require_raw_body = __commonJS({
|
|
|
4767
4772
|
var asyncHooks = tryRequireAsyncHooks();
|
|
4768
4773
|
var bytes = require_bytes();
|
|
4769
4774
|
var createError = require_http_errors();
|
|
4770
|
-
var iconv =
|
|
4775
|
+
var iconv = require_lib2();
|
|
4771
4776
|
var unpipe = require_unpipe();
|
|
4772
4777
|
module.exports = getRawBody;
|
|
4773
4778
|
var ICONV_ENCODING_MESSAGE_REGEXP = /^Encoding not recognized: /;
|
|
@@ -8597,7 +8602,7 @@ var require_streams2 = __commonJS({
|
|
|
8597
8602
|
});
|
|
8598
8603
|
|
|
8599
8604
|
// node_modules/body-parser/node_modules/iconv-lite/lib/index.js
|
|
8600
|
-
var
|
|
8605
|
+
var require_lib3 = __commonJS({
|
|
8601
8606
|
"node_modules/body-parser/node_modules/iconv-lite/lib/index.js"(exports, module) {
|
|
8602
8607
|
"use strict";
|
|
8603
8608
|
init_esbuild_shims();
|
|
@@ -9551,7 +9556,7 @@ var require_read = __commonJS({
|
|
|
9551
9556
|
init_esbuild_shims();
|
|
9552
9557
|
var createError = require_http_errors();
|
|
9553
9558
|
var getBody = require_raw_body();
|
|
9554
|
-
var iconv =
|
|
9559
|
+
var iconv = require_lib3();
|
|
9555
9560
|
var onFinished = require_on_finished();
|
|
9556
9561
|
var zlib = __require("node:zlib");
|
|
9557
9562
|
var hasBody = require_type_is().hasBody;
|
|
@@ -9838,1785 +9843,6 @@ var require_text = __commonJS({
|
|
|
9838
9843
|
}
|
|
9839
9844
|
});
|
|
9840
9845
|
|
|
9841
|
-
// node_modules/object-inspect/util.inspect.js
|
|
9842
|
-
var require_util_inspect = __commonJS({
|
|
9843
|
-
"node_modules/object-inspect/util.inspect.js"(exports, module) {
|
|
9844
|
-
init_esbuild_shims();
|
|
9845
|
-
module.exports = __require("util").inspect;
|
|
9846
|
-
}
|
|
9847
|
-
});
|
|
9848
|
-
|
|
9849
|
-
// node_modules/object-inspect/index.js
|
|
9850
|
-
var require_object_inspect = __commonJS({
|
|
9851
|
-
"node_modules/object-inspect/index.js"(exports, module) {
|
|
9852
|
-
init_esbuild_shims();
|
|
9853
|
-
var hasMap = typeof Map === "function" && Map.prototype;
|
|
9854
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
9855
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
9856
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
9857
|
-
var hasSet = typeof Set === "function" && Set.prototype;
|
|
9858
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
|
|
9859
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
|
|
9860
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
9861
|
-
var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
|
|
9862
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
9863
|
-
var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
|
|
9864
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
9865
|
-
var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
|
|
9866
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
9867
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
9868
|
-
var objectToString = Object.prototype.toString;
|
|
9869
|
-
var functionToString = Function.prototype.toString;
|
|
9870
|
-
var $match = String.prototype.match;
|
|
9871
|
-
var $slice = String.prototype.slice;
|
|
9872
|
-
var $replace = String.prototype.replace;
|
|
9873
|
-
var $toUpperCase = String.prototype.toUpperCase;
|
|
9874
|
-
var $toLowerCase = String.prototype.toLowerCase;
|
|
9875
|
-
var $test = RegExp.prototype.test;
|
|
9876
|
-
var $concat = Array.prototype.concat;
|
|
9877
|
-
var $join = Array.prototype.join;
|
|
9878
|
-
var $arrSlice = Array.prototype.slice;
|
|
9879
|
-
var $floor = Math.floor;
|
|
9880
|
-
var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
|
|
9881
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
9882
|
-
var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
|
|
9883
|
-
var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
|
|
9884
|
-
var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
|
|
9885
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
9886
|
-
var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
|
|
9887
|
-
return O.__proto__;
|
|
9888
|
-
} : null);
|
|
9889
|
-
function addNumericSeparator(num, str) {
|
|
9890
|
-
if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
|
|
9891
|
-
return str;
|
|
9892
|
-
}
|
|
9893
|
-
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
9894
|
-
if (typeof num === "number") {
|
|
9895
|
-
var int = num < 0 ? -$floor(-num) : $floor(num);
|
|
9896
|
-
if (int !== num) {
|
|
9897
|
-
var intStr = String(int);
|
|
9898
|
-
var dec = $slice.call(str, intStr.length + 1);
|
|
9899
|
-
return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
9900
|
-
}
|
|
9901
|
-
}
|
|
9902
|
-
return $replace.call(str, sepRegex, "$&_");
|
|
9903
|
-
}
|
|
9904
|
-
__name(addNumericSeparator, "addNumericSeparator");
|
|
9905
|
-
var utilInspect = require_util_inspect();
|
|
9906
|
-
var inspectCustom = utilInspect.custom;
|
|
9907
|
-
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
9908
|
-
var quotes = {
|
|
9909
|
-
__proto__: null,
|
|
9910
|
-
"double": '"',
|
|
9911
|
-
single: "'"
|
|
9912
|
-
};
|
|
9913
|
-
var quoteREs = {
|
|
9914
|
-
__proto__: null,
|
|
9915
|
-
"double": /(["\\])/g,
|
|
9916
|
-
single: /(['\\])/g
|
|
9917
|
-
};
|
|
9918
|
-
module.exports = /* @__PURE__ */ __name(function inspect_(obj, options, depth, seen) {
|
|
9919
|
-
var opts = options || {};
|
|
9920
|
-
if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
|
|
9921
|
-
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
9922
|
-
}
|
|
9923
|
-
if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
|
|
9924
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
9925
|
-
}
|
|
9926
|
-
var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
|
|
9927
|
-
if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
|
|
9928
|
-
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
9929
|
-
}
|
|
9930
|
-
if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
|
|
9931
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
9932
|
-
}
|
|
9933
|
-
if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
|
|
9934
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
9935
|
-
}
|
|
9936
|
-
var numericSeparator = opts.numericSeparator;
|
|
9937
|
-
if (typeof obj === "undefined") {
|
|
9938
|
-
return "undefined";
|
|
9939
|
-
}
|
|
9940
|
-
if (obj === null) {
|
|
9941
|
-
return "null";
|
|
9942
|
-
}
|
|
9943
|
-
if (typeof obj === "boolean") {
|
|
9944
|
-
return obj ? "true" : "false";
|
|
9945
|
-
}
|
|
9946
|
-
if (typeof obj === "string") {
|
|
9947
|
-
return inspectString(obj, opts);
|
|
9948
|
-
}
|
|
9949
|
-
if (typeof obj === "number") {
|
|
9950
|
-
if (obj === 0) {
|
|
9951
|
-
return Infinity / obj > 0 ? "0" : "-0";
|
|
9952
|
-
}
|
|
9953
|
-
var str = String(obj);
|
|
9954
|
-
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
9955
|
-
}
|
|
9956
|
-
if (typeof obj === "bigint") {
|
|
9957
|
-
var bigIntStr = String(obj) + "n";
|
|
9958
|
-
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
9959
|
-
}
|
|
9960
|
-
var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
|
|
9961
|
-
if (typeof depth === "undefined") {
|
|
9962
|
-
depth = 0;
|
|
9963
|
-
}
|
|
9964
|
-
if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
|
|
9965
|
-
return isArray(obj) ? "[Array]" : "[Object]";
|
|
9966
|
-
}
|
|
9967
|
-
var indent = getIndent(opts, depth);
|
|
9968
|
-
if (typeof seen === "undefined") {
|
|
9969
|
-
seen = [];
|
|
9970
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
9971
|
-
return "[Circular]";
|
|
9972
|
-
}
|
|
9973
|
-
function inspect(value, from, noIndent) {
|
|
9974
|
-
if (from) {
|
|
9975
|
-
seen = $arrSlice.call(seen);
|
|
9976
|
-
seen.push(from);
|
|
9977
|
-
}
|
|
9978
|
-
if (noIndent) {
|
|
9979
|
-
var newOpts = {
|
|
9980
|
-
depth: opts.depth
|
|
9981
|
-
};
|
|
9982
|
-
if (has(opts, "quoteStyle")) {
|
|
9983
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
9984
|
-
}
|
|
9985
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
9986
|
-
}
|
|
9987
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
9988
|
-
}
|
|
9989
|
-
__name(inspect, "inspect");
|
|
9990
|
-
if (typeof obj === "function" && !isRegExp(obj)) {
|
|
9991
|
-
var name = nameOf(obj);
|
|
9992
|
-
var keys = arrObjKeys(obj, inspect);
|
|
9993
|
-
return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
|
|
9994
|
-
}
|
|
9995
|
-
if (isSymbol(obj)) {
|
|
9996
|
-
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
|
|
9997
|
-
return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
9998
|
-
}
|
|
9999
|
-
if (isElement(obj)) {
|
|
10000
|
-
var s = "<" + $toLowerCase.call(String(obj.nodeName));
|
|
10001
|
-
var attrs = obj.attributes || [];
|
|
10002
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
10003
|
-
s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
|
|
10004
|
-
}
|
|
10005
|
-
s += ">";
|
|
10006
|
-
if (obj.childNodes && obj.childNodes.length) {
|
|
10007
|
-
s += "...";
|
|
10008
|
-
}
|
|
10009
|
-
s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
|
|
10010
|
-
return s;
|
|
10011
|
-
}
|
|
10012
|
-
if (isArray(obj)) {
|
|
10013
|
-
if (obj.length === 0) {
|
|
10014
|
-
return "[]";
|
|
10015
|
-
}
|
|
10016
|
-
var xs = arrObjKeys(obj, inspect);
|
|
10017
|
-
if (indent && !singleLineValues(xs)) {
|
|
10018
|
-
return "[" + indentedJoin(xs, indent) + "]";
|
|
10019
|
-
}
|
|
10020
|
-
return "[ " + $join.call(xs, ", ") + " ]";
|
|
10021
|
-
}
|
|
10022
|
-
if (isError(obj)) {
|
|
10023
|
-
var parts = arrObjKeys(obj, inspect);
|
|
10024
|
-
if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
|
|
10025
|
-
return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
|
|
10026
|
-
}
|
|
10027
|
-
if (parts.length === 0) {
|
|
10028
|
-
return "[" + String(obj) + "]";
|
|
10029
|
-
}
|
|
10030
|
-
return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
|
|
10031
|
-
}
|
|
10032
|
-
if (typeof obj === "object" && customInspect) {
|
|
10033
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
|
|
10034
|
-
return utilInspect(obj, { depth: maxDepth - depth });
|
|
10035
|
-
} else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
|
|
10036
|
-
return obj.inspect();
|
|
10037
|
-
}
|
|
10038
|
-
}
|
|
10039
|
-
if (isMap(obj)) {
|
|
10040
|
-
var mapParts = [];
|
|
10041
|
-
if (mapForEach) {
|
|
10042
|
-
mapForEach.call(obj, function(value, key) {
|
|
10043
|
-
mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
|
|
10044
|
-
});
|
|
10045
|
-
}
|
|
10046
|
-
return collectionOf("Map", mapSize.call(obj), mapParts, indent);
|
|
10047
|
-
}
|
|
10048
|
-
if (isSet(obj)) {
|
|
10049
|
-
var setParts = [];
|
|
10050
|
-
if (setForEach) {
|
|
10051
|
-
setForEach.call(obj, function(value) {
|
|
10052
|
-
setParts.push(inspect(value, obj));
|
|
10053
|
-
});
|
|
10054
|
-
}
|
|
10055
|
-
return collectionOf("Set", setSize.call(obj), setParts, indent);
|
|
10056
|
-
}
|
|
10057
|
-
if (isWeakMap(obj)) {
|
|
10058
|
-
return weakCollectionOf("WeakMap");
|
|
10059
|
-
}
|
|
10060
|
-
if (isWeakSet(obj)) {
|
|
10061
|
-
return weakCollectionOf("WeakSet");
|
|
10062
|
-
}
|
|
10063
|
-
if (isWeakRef(obj)) {
|
|
10064
|
-
return weakCollectionOf("WeakRef");
|
|
10065
|
-
}
|
|
10066
|
-
if (isNumber(obj)) {
|
|
10067
|
-
return markBoxed(inspect(Number(obj)));
|
|
10068
|
-
}
|
|
10069
|
-
if (isBigInt(obj)) {
|
|
10070
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
10071
|
-
}
|
|
10072
|
-
if (isBoolean(obj)) {
|
|
10073
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
10074
|
-
}
|
|
10075
|
-
if (isString(obj)) {
|
|
10076
|
-
return markBoxed(inspect(String(obj)));
|
|
10077
|
-
}
|
|
10078
|
-
if (typeof window !== "undefined" && obj === window) {
|
|
10079
|
-
return "{ [object Window] }";
|
|
10080
|
-
}
|
|
10081
|
-
if (typeof globalThis !== "undefined" && obj === globalThis || typeof globalThis !== "undefined" && obj === globalThis) {
|
|
10082
|
-
return "{ [object globalThis] }";
|
|
10083
|
-
}
|
|
10084
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
10085
|
-
var ys = arrObjKeys(obj, inspect);
|
|
10086
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
10087
|
-
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
10088
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
10089
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
10090
|
-
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
10091
|
-
if (ys.length === 0) {
|
|
10092
|
-
return tag + "{}";
|
|
10093
|
-
}
|
|
10094
|
-
if (indent) {
|
|
10095
|
-
return tag + "{" + indentedJoin(ys, indent) + "}";
|
|
10096
|
-
}
|
|
10097
|
-
return tag + "{ " + $join.call(ys, ", ") + " }";
|
|
10098
|
-
}
|
|
10099
|
-
return String(obj);
|
|
10100
|
-
}, "inspect_");
|
|
10101
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
10102
|
-
var style = opts.quoteStyle || defaultStyle;
|
|
10103
|
-
var quoteChar = quotes[style];
|
|
10104
|
-
return quoteChar + s + quoteChar;
|
|
10105
|
-
}
|
|
10106
|
-
__name(wrapQuotes, "wrapQuotes");
|
|
10107
|
-
function quote(s) {
|
|
10108
|
-
return $replace.call(String(s), /"/g, """);
|
|
10109
|
-
}
|
|
10110
|
-
__name(quote, "quote");
|
|
10111
|
-
function canTrustToString(obj) {
|
|
10112
|
-
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
10113
|
-
}
|
|
10114
|
-
__name(canTrustToString, "canTrustToString");
|
|
10115
|
-
function isArray(obj) {
|
|
10116
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
10117
|
-
}
|
|
10118
|
-
__name(isArray, "isArray");
|
|
10119
|
-
function isDate(obj) {
|
|
10120
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
10121
|
-
}
|
|
10122
|
-
__name(isDate, "isDate");
|
|
10123
|
-
function isRegExp(obj) {
|
|
10124
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
10125
|
-
}
|
|
10126
|
-
__name(isRegExp, "isRegExp");
|
|
10127
|
-
function isError(obj) {
|
|
10128
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
10129
|
-
}
|
|
10130
|
-
__name(isError, "isError");
|
|
10131
|
-
function isString(obj) {
|
|
10132
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
10133
|
-
}
|
|
10134
|
-
__name(isString, "isString");
|
|
10135
|
-
function isNumber(obj) {
|
|
10136
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
10137
|
-
}
|
|
10138
|
-
__name(isNumber, "isNumber");
|
|
10139
|
-
function isBoolean(obj) {
|
|
10140
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
10141
|
-
}
|
|
10142
|
-
__name(isBoolean, "isBoolean");
|
|
10143
|
-
function isSymbol(obj) {
|
|
10144
|
-
if (hasShammedSymbols) {
|
|
10145
|
-
return obj && typeof obj === "object" && obj instanceof Symbol;
|
|
10146
|
-
}
|
|
10147
|
-
if (typeof obj === "symbol") {
|
|
10148
|
-
return true;
|
|
10149
|
-
}
|
|
10150
|
-
if (!obj || typeof obj !== "object" || !symToString) {
|
|
10151
|
-
return false;
|
|
10152
|
-
}
|
|
10153
|
-
try {
|
|
10154
|
-
symToString.call(obj);
|
|
10155
|
-
return true;
|
|
10156
|
-
} catch (e) {
|
|
10157
|
-
}
|
|
10158
|
-
return false;
|
|
10159
|
-
}
|
|
10160
|
-
__name(isSymbol, "isSymbol");
|
|
10161
|
-
function isBigInt(obj) {
|
|
10162
|
-
if (!obj || typeof obj !== "object" || !bigIntValueOf) {
|
|
10163
|
-
return false;
|
|
10164
|
-
}
|
|
10165
|
-
try {
|
|
10166
|
-
bigIntValueOf.call(obj);
|
|
10167
|
-
return true;
|
|
10168
|
-
} catch (e) {
|
|
10169
|
-
}
|
|
10170
|
-
return false;
|
|
10171
|
-
}
|
|
10172
|
-
__name(isBigInt, "isBigInt");
|
|
10173
|
-
var hasOwn = Object.prototype.hasOwnProperty || function(key) {
|
|
10174
|
-
return key in this;
|
|
10175
|
-
};
|
|
10176
|
-
function has(obj, key) {
|
|
10177
|
-
return hasOwn.call(obj, key);
|
|
10178
|
-
}
|
|
10179
|
-
__name(has, "has");
|
|
10180
|
-
function toStr(obj) {
|
|
10181
|
-
return objectToString.call(obj);
|
|
10182
|
-
}
|
|
10183
|
-
__name(toStr, "toStr");
|
|
10184
|
-
function nameOf(f) {
|
|
10185
|
-
if (f.name) {
|
|
10186
|
-
return f.name;
|
|
10187
|
-
}
|
|
10188
|
-
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
10189
|
-
if (m) {
|
|
10190
|
-
return m[1];
|
|
10191
|
-
}
|
|
10192
|
-
return null;
|
|
10193
|
-
}
|
|
10194
|
-
__name(nameOf, "nameOf");
|
|
10195
|
-
function indexOf(xs, x) {
|
|
10196
|
-
if (xs.indexOf) {
|
|
10197
|
-
return xs.indexOf(x);
|
|
10198
|
-
}
|
|
10199
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
10200
|
-
if (xs[i] === x) {
|
|
10201
|
-
return i;
|
|
10202
|
-
}
|
|
10203
|
-
}
|
|
10204
|
-
return -1;
|
|
10205
|
-
}
|
|
10206
|
-
__name(indexOf, "indexOf");
|
|
10207
|
-
function isMap(x) {
|
|
10208
|
-
if (!mapSize || !x || typeof x !== "object") {
|
|
10209
|
-
return false;
|
|
10210
|
-
}
|
|
10211
|
-
try {
|
|
10212
|
-
mapSize.call(x);
|
|
10213
|
-
try {
|
|
10214
|
-
setSize.call(x);
|
|
10215
|
-
} catch (s) {
|
|
10216
|
-
return true;
|
|
10217
|
-
}
|
|
10218
|
-
return x instanceof Map;
|
|
10219
|
-
} catch (e) {
|
|
10220
|
-
}
|
|
10221
|
-
return false;
|
|
10222
|
-
}
|
|
10223
|
-
__name(isMap, "isMap");
|
|
10224
|
-
function isWeakMap(x) {
|
|
10225
|
-
if (!weakMapHas || !x || typeof x !== "object") {
|
|
10226
|
-
return false;
|
|
10227
|
-
}
|
|
10228
|
-
try {
|
|
10229
|
-
weakMapHas.call(x, weakMapHas);
|
|
10230
|
-
try {
|
|
10231
|
-
weakSetHas.call(x, weakSetHas);
|
|
10232
|
-
} catch (s) {
|
|
10233
|
-
return true;
|
|
10234
|
-
}
|
|
10235
|
-
return x instanceof WeakMap;
|
|
10236
|
-
} catch (e) {
|
|
10237
|
-
}
|
|
10238
|
-
return false;
|
|
10239
|
-
}
|
|
10240
|
-
__name(isWeakMap, "isWeakMap");
|
|
10241
|
-
function isWeakRef(x) {
|
|
10242
|
-
if (!weakRefDeref || !x || typeof x !== "object") {
|
|
10243
|
-
return false;
|
|
10244
|
-
}
|
|
10245
|
-
try {
|
|
10246
|
-
weakRefDeref.call(x);
|
|
10247
|
-
return true;
|
|
10248
|
-
} catch (e) {
|
|
10249
|
-
}
|
|
10250
|
-
return false;
|
|
10251
|
-
}
|
|
10252
|
-
__name(isWeakRef, "isWeakRef");
|
|
10253
|
-
function isSet(x) {
|
|
10254
|
-
if (!setSize || !x || typeof x !== "object") {
|
|
10255
|
-
return false;
|
|
10256
|
-
}
|
|
10257
|
-
try {
|
|
10258
|
-
setSize.call(x);
|
|
10259
|
-
try {
|
|
10260
|
-
mapSize.call(x);
|
|
10261
|
-
} catch (m) {
|
|
10262
|
-
return true;
|
|
10263
|
-
}
|
|
10264
|
-
return x instanceof Set;
|
|
10265
|
-
} catch (e) {
|
|
10266
|
-
}
|
|
10267
|
-
return false;
|
|
10268
|
-
}
|
|
10269
|
-
__name(isSet, "isSet");
|
|
10270
|
-
function isWeakSet(x) {
|
|
10271
|
-
if (!weakSetHas || !x || typeof x !== "object") {
|
|
10272
|
-
return false;
|
|
10273
|
-
}
|
|
10274
|
-
try {
|
|
10275
|
-
weakSetHas.call(x, weakSetHas);
|
|
10276
|
-
try {
|
|
10277
|
-
weakMapHas.call(x, weakMapHas);
|
|
10278
|
-
} catch (s) {
|
|
10279
|
-
return true;
|
|
10280
|
-
}
|
|
10281
|
-
return x instanceof WeakSet;
|
|
10282
|
-
} catch (e) {
|
|
10283
|
-
}
|
|
10284
|
-
return false;
|
|
10285
|
-
}
|
|
10286
|
-
__name(isWeakSet, "isWeakSet");
|
|
10287
|
-
function isElement(x) {
|
|
10288
|
-
if (!x || typeof x !== "object") {
|
|
10289
|
-
return false;
|
|
10290
|
-
}
|
|
10291
|
-
if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
|
|
10292
|
-
return true;
|
|
10293
|
-
}
|
|
10294
|
-
return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
|
|
10295
|
-
}
|
|
10296
|
-
__name(isElement, "isElement");
|
|
10297
|
-
function inspectString(str, opts) {
|
|
10298
|
-
if (str.length > opts.maxStringLength) {
|
|
10299
|
-
var remaining = str.length - opts.maxStringLength;
|
|
10300
|
-
var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
|
|
10301
|
-
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
10302
|
-
}
|
|
10303
|
-
var quoteRE = quoteREs[opts.quoteStyle || "single"];
|
|
10304
|
-
quoteRE.lastIndex = 0;
|
|
10305
|
-
var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
|
|
10306
|
-
return wrapQuotes(s, "single", opts);
|
|
10307
|
-
}
|
|
10308
|
-
__name(inspectString, "inspectString");
|
|
10309
|
-
function lowbyte(c) {
|
|
10310
|
-
var n = c.charCodeAt(0);
|
|
10311
|
-
var x = {
|
|
10312
|
-
8: "b",
|
|
10313
|
-
9: "t",
|
|
10314
|
-
10: "n",
|
|
10315
|
-
12: "f",
|
|
10316
|
-
13: "r"
|
|
10317
|
-
}[n];
|
|
10318
|
-
if (x) {
|
|
10319
|
-
return "\\" + x;
|
|
10320
|
-
}
|
|
10321
|
-
return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
|
|
10322
|
-
}
|
|
10323
|
-
__name(lowbyte, "lowbyte");
|
|
10324
|
-
function markBoxed(str) {
|
|
10325
|
-
return "Object(" + str + ")";
|
|
10326
|
-
}
|
|
10327
|
-
__name(markBoxed, "markBoxed");
|
|
10328
|
-
function weakCollectionOf(type) {
|
|
10329
|
-
return type + " { ? }";
|
|
10330
|
-
}
|
|
10331
|
-
__name(weakCollectionOf, "weakCollectionOf");
|
|
10332
|
-
function collectionOf(type, size, entries, indent) {
|
|
10333
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
|
|
10334
|
-
return type + " (" + size + ") {" + joinedEntries + "}";
|
|
10335
|
-
}
|
|
10336
|
-
__name(collectionOf, "collectionOf");
|
|
10337
|
-
function singleLineValues(xs) {
|
|
10338
|
-
for (var i = 0; i < xs.length; i++) {
|
|
10339
|
-
if (indexOf(xs[i], "\n") >= 0) {
|
|
10340
|
-
return false;
|
|
10341
|
-
}
|
|
10342
|
-
}
|
|
10343
|
-
return true;
|
|
10344
|
-
}
|
|
10345
|
-
__name(singleLineValues, "singleLineValues");
|
|
10346
|
-
function getIndent(opts, depth) {
|
|
10347
|
-
var baseIndent;
|
|
10348
|
-
if (opts.indent === " ") {
|
|
10349
|
-
baseIndent = " ";
|
|
10350
|
-
} else if (typeof opts.indent === "number" && opts.indent > 0) {
|
|
10351
|
-
baseIndent = $join.call(Array(opts.indent + 1), " ");
|
|
10352
|
-
} else {
|
|
10353
|
-
return null;
|
|
10354
|
-
}
|
|
10355
|
-
return {
|
|
10356
|
-
base: baseIndent,
|
|
10357
|
-
prev: $join.call(Array(depth + 1), baseIndent)
|
|
10358
|
-
};
|
|
10359
|
-
}
|
|
10360
|
-
__name(getIndent, "getIndent");
|
|
10361
|
-
function indentedJoin(xs, indent) {
|
|
10362
|
-
if (xs.length === 0) {
|
|
10363
|
-
return "";
|
|
10364
|
-
}
|
|
10365
|
-
var lineJoiner = "\n" + indent.prev + indent.base;
|
|
10366
|
-
return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
|
|
10367
|
-
}
|
|
10368
|
-
__name(indentedJoin, "indentedJoin");
|
|
10369
|
-
function arrObjKeys(obj, inspect) {
|
|
10370
|
-
var isArr = isArray(obj);
|
|
10371
|
-
var xs = [];
|
|
10372
|
-
if (isArr) {
|
|
10373
|
-
xs.length = obj.length;
|
|
10374
|
-
for (var i = 0; i < obj.length; i++) {
|
|
10375
|
-
xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
|
|
10376
|
-
}
|
|
10377
|
-
}
|
|
10378
|
-
var syms = typeof gOPS === "function" ? gOPS(obj) : [];
|
|
10379
|
-
var symMap;
|
|
10380
|
-
if (hasShammedSymbols) {
|
|
10381
|
-
symMap = {};
|
|
10382
|
-
for (var k = 0; k < syms.length; k++) {
|
|
10383
|
-
symMap["$" + syms[k]] = syms[k];
|
|
10384
|
-
}
|
|
10385
|
-
}
|
|
10386
|
-
for (var key in obj) {
|
|
10387
|
-
if (!has(obj, key)) {
|
|
10388
|
-
continue;
|
|
10389
|
-
}
|
|
10390
|
-
if (isArr && String(Number(key)) === key && key < obj.length) {
|
|
10391
|
-
continue;
|
|
10392
|
-
}
|
|
10393
|
-
if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
|
|
10394
|
-
continue;
|
|
10395
|
-
} else if ($test.call(/[^\w$]/, key)) {
|
|
10396
|
-
xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
|
|
10397
|
-
} else {
|
|
10398
|
-
xs.push(key + ": " + inspect(obj[key], obj));
|
|
10399
|
-
}
|
|
10400
|
-
}
|
|
10401
|
-
if (typeof gOPS === "function") {
|
|
10402
|
-
for (var j = 0; j < syms.length; j++) {
|
|
10403
|
-
if (isEnumerable.call(obj, syms[j])) {
|
|
10404
|
-
xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
|
|
10405
|
-
}
|
|
10406
|
-
}
|
|
10407
|
-
}
|
|
10408
|
-
return xs;
|
|
10409
|
-
}
|
|
10410
|
-
__name(arrObjKeys, "arrObjKeys");
|
|
10411
|
-
}
|
|
10412
|
-
});
|
|
10413
|
-
|
|
10414
|
-
// node_modules/side-channel-list/index.js
|
|
10415
|
-
var require_side_channel_list = __commonJS({
|
|
10416
|
-
"node_modules/side-channel-list/index.js"(exports, module) {
|
|
10417
|
-
"use strict";
|
|
10418
|
-
init_esbuild_shims();
|
|
10419
|
-
var inspect = require_object_inspect();
|
|
10420
|
-
var $TypeError = require_type();
|
|
10421
|
-
var listGetNode = /* @__PURE__ */ __name(function(list, key, isDelete) {
|
|
10422
|
-
var prev = list;
|
|
10423
|
-
var curr;
|
|
10424
|
-
for (; (curr = prev.next) != null; prev = curr) {
|
|
10425
|
-
if (curr.key === key) {
|
|
10426
|
-
prev.next = curr.next;
|
|
10427
|
-
if (!isDelete) {
|
|
10428
|
-
curr.next = /** @type {NonNullable<typeof list.next>} */
|
|
10429
|
-
list.next;
|
|
10430
|
-
list.next = curr;
|
|
10431
|
-
}
|
|
10432
|
-
return curr;
|
|
10433
|
-
}
|
|
10434
|
-
}
|
|
10435
|
-
}, "listGetNode");
|
|
10436
|
-
var listGet = /* @__PURE__ */ __name(function(objects, key) {
|
|
10437
|
-
if (!objects) {
|
|
10438
|
-
return void 0;
|
|
10439
|
-
}
|
|
10440
|
-
var node = listGetNode(objects, key);
|
|
10441
|
-
return node && node.value;
|
|
10442
|
-
}, "listGet");
|
|
10443
|
-
var listSet = /* @__PURE__ */ __name(function(objects, key, value) {
|
|
10444
|
-
var node = listGetNode(objects, key);
|
|
10445
|
-
if (node) {
|
|
10446
|
-
node.value = value;
|
|
10447
|
-
} else {
|
|
10448
|
-
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
10449
|
-
{
|
|
10450
|
-
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
10451
|
-
key,
|
|
10452
|
-
next: objects.next,
|
|
10453
|
-
value
|
|
10454
|
-
};
|
|
10455
|
-
}
|
|
10456
|
-
}, "listSet");
|
|
10457
|
-
var listHas = /* @__PURE__ */ __name(function(objects, key) {
|
|
10458
|
-
if (!objects) {
|
|
10459
|
-
return false;
|
|
10460
|
-
}
|
|
10461
|
-
return !!listGetNode(objects, key);
|
|
10462
|
-
}, "listHas");
|
|
10463
|
-
var listDelete = /* @__PURE__ */ __name(function(objects, key) {
|
|
10464
|
-
if (objects) {
|
|
10465
|
-
return listGetNode(objects, key, true);
|
|
10466
|
-
}
|
|
10467
|
-
}, "listDelete");
|
|
10468
|
-
module.exports = /* @__PURE__ */ __name(function getSideChannelList() {
|
|
10469
|
-
var $o;
|
|
10470
|
-
var channel = {
|
|
10471
|
-
assert: /* @__PURE__ */ __name(function(key) {
|
|
10472
|
-
if (!channel.has(key)) {
|
|
10473
|
-
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
10474
|
-
}
|
|
10475
|
-
}, "assert"),
|
|
10476
|
-
"delete": /* @__PURE__ */ __name(function(key) {
|
|
10477
|
-
var root = $o && $o.next;
|
|
10478
|
-
var deletedNode = listDelete($o, key);
|
|
10479
|
-
if (deletedNode && root && root === deletedNode) {
|
|
10480
|
-
$o = void 0;
|
|
10481
|
-
}
|
|
10482
|
-
return !!deletedNode;
|
|
10483
|
-
}, "delete"),
|
|
10484
|
-
get: /* @__PURE__ */ __name(function(key) {
|
|
10485
|
-
return listGet($o, key);
|
|
10486
|
-
}, "get"),
|
|
10487
|
-
has: /* @__PURE__ */ __name(function(key) {
|
|
10488
|
-
return listHas($o, key);
|
|
10489
|
-
}, "has"),
|
|
10490
|
-
set: /* @__PURE__ */ __name(function(key, value) {
|
|
10491
|
-
if (!$o) {
|
|
10492
|
-
$o = {
|
|
10493
|
-
next: void 0
|
|
10494
|
-
};
|
|
10495
|
-
}
|
|
10496
|
-
listSet(
|
|
10497
|
-
/** @type {NonNullable<typeof $o>} */
|
|
10498
|
-
$o,
|
|
10499
|
-
key,
|
|
10500
|
-
value
|
|
10501
|
-
);
|
|
10502
|
-
}, "set")
|
|
10503
|
-
};
|
|
10504
|
-
return channel;
|
|
10505
|
-
}, "getSideChannelList");
|
|
10506
|
-
}
|
|
10507
|
-
});
|
|
10508
|
-
|
|
10509
|
-
// node_modules/call-bound/index.js
|
|
10510
|
-
var require_call_bound = __commonJS({
|
|
10511
|
-
"node_modules/call-bound/index.js"(exports, module) {
|
|
10512
|
-
"use strict";
|
|
10513
|
-
init_esbuild_shims();
|
|
10514
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
10515
|
-
var callBindBasic = require_call_bind_apply_helpers();
|
|
10516
|
-
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
10517
|
-
module.exports = /* @__PURE__ */ __name(function callBoundIntrinsic(name, allowMissing) {
|
|
10518
|
-
var intrinsic = (
|
|
10519
|
-
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
10520
|
-
GetIntrinsic(name, !!allowMissing)
|
|
10521
|
-
);
|
|
10522
|
-
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
10523
|
-
return callBindBasic(
|
|
10524
|
-
/** @type {const} */
|
|
10525
|
-
[intrinsic]
|
|
10526
|
-
);
|
|
10527
|
-
}
|
|
10528
|
-
return intrinsic;
|
|
10529
|
-
}, "callBoundIntrinsic");
|
|
10530
|
-
}
|
|
10531
|
-
});
|
|
10532
|
-
|
|
10533
|
-
// node_modules/side-channel-map/index.js
|
|
10534
|
-
var require_side_channel_map = __commonJS({
|
|
10535
|
-
"node_modules/side-channel-map/index.js"(exports, module) {
|
|
10536
|
-
"use strict";
|
|
10537
|
-
init_esbuild_shims();
|
|
10538
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
10539
|
-
var callBound = require_call_bound();
|
|
10540
|
-
var inspect = require_object_inspect();
|
|
10541
|
-
var $TypeError = require_type();
|
|
10542
|
-
var $Map = GetIntrinsic("%Map%", true);
|
|
10543
|
-
var $mapGet = callBound("Map.prototype.get", true);
|
|
10544
|
-
var $mapSet = callBound("Map.prototype.set", true);
|
|
10545
|
-
var $mapHas = callBound("Map.prototype.has", true);
|
|
10546
|
-
var $mapDelete = callBound("Map.prototype.delete", true);
|
|
10547
|
-
var $mapSize = callBound("Map.prototype.size", true);
|
|
10548
|
-
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */
|
|
10549
|
-
/* @__PURE__ */ __name(function getSideChannelMap() {
|
|
10550
|
-
var $m;
|
|
10551
|
-
var channel = {
|
|
10552
|
-
assert: /* @__PURE__ */ __name(function(key) {
|
|
10553
|
-
if (!channel.has(key)) {
|
|
10554
|
-
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
10555
|
-
}
|
|
10556
|
-
}, "assert"),
|
|
10557
|
-
"delete": /* @__PURE__ */ __name(function(key) {
|
|
10558
|
-
if ($m) {
|
|
10559
|
-
var result = $mapDelete($m, key);
|
|
10560
|
-
if ($mapSize($m) === 0) {
|
|
10561
|
-
$m = void 0;
|
|
10562
|
-
}
|
|
10563
|
-
return result;
|
|
10564
|
-
}
|
|
10565
|
-
return false;
|
|
10566
|
-
}, "delete"),
|
|
10567
|
-
get: /* @__PURE__ */ __name(function(key) {
|
|
10568
|
-
if ($m) {
|
|
10569
|
-
return $mapGet($m, key);
|
|
10570
|
-
}
|
|
10571
|
-
}, "get"),
|
|
10572
|
-
has: /* @__PURE__ */ __name(function(key) {
|
|
10573
|
-
if ($m) {
|
|
10574
|
-
return $mapHas($m, key);
|
|
10575
|
-
}
|
|
10576
|
-
return false;
|
|
10577
|
-
}, "has"),
|
|
10578
|
-
set: /* @__PURE__ */ __name(function(key, value) {
|
|
10579
|
-
if (!$m) {
|
|
10580
|
-
$m = new $Map();
|
|
10581
|
-
}
|
|
10582
|
-
$mapSet($m, key, value);
|
|
10583
|
-
}, "set")
|
|
10584
|
-
};
|
|
10585
|
-
return channel;
|
|
10586
|
-
}, "getSideChannelMap");
|
|
10587
|
-
}
|
|
10588
|
-
});
|
|
10589
|
-
|
|
10590
|
-
// node_modules/side-channel-weakmap/index.js
|
|
10591
|
-
var require_side_channel_weakmap = __commonJS({
|
|
10592
|
-
"node_modules/side-channel-weakmap/index.js"(exports, module) {
|
|
10593
|
-
"use strict";
|
|
10594
|
-
init_esbuild_shims();
|
|
10595
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
10596
|
-
var callBound = require_call_bound();
|
|
10597
|
-
var inspect = require_object_inspect();
|
|
10598
|
-
var getSideChannelMap = require_side_channel_map();
|
|
10599
|
-
var $TypeError = require_type();
|
|
10600
|
-
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
10601
|
-
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
10602
|
-
var $weakMapSet = callBound("WeakMap.prototype.set", true);
|
|
10603
|
-
var $weakMapHas = callBound("WeakMap.prototype.has", true);
|
|
10604
|
-
var $weakMapDelete = callBound("WeakMap.prototype.delete", true);
|
|
10605
|
-
module.exports = $WeakMap ? (
|
|
10606
|
-
/** @type {Exclude<import('.'), false>} */
|
|
10607
|
-
/* @__PURE__ */ __name(function getSideChannelWeakMap() {
|
|
10608
|
-
var $wm;
|
|
10609
|
-
var $m;
|
|
10610
|
-
var channel = {
|
|
10611
|
-
assert: /* @__PURE__ */ __name(function(key) {
|
|
10612
|
-
if (!channel.has(key)) {
|
|
10613
|
-
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
10614
|
-
}
|
|
10615
|
-
}, "assert"),
|
|
10616
|
-
"delete": /* @__PURE__ */ __name(function(key) {
|
|
10617
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
10618
|
-
if ($wm) {
|
|
10619
|
-
return $weakMapDelete($wm, key);
|
|
10620
|
-
}
|
|
10621
|
-
} else if (getSideChannelMap) {
|
|
10622
|
-
if ($m) {
|
|
10623
|
-
return $m["delete"](key);
|
|
10624
|
-
}
|
|
10625
|
-
}
|
|
10626
|
-
return false;
|
|
10627
|
-
}, "delete"),
|
|
10628
|
-
get: /* @__PURE__ */ __name(function(key) {
|
|
10629
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
10630
|
-
if ($wm) {
|
|
10631
|
-
return $weakMapGet($wm, key);
|
|
10632
|
-
}
|
|
10633
|
-
}
|
|
10634
|
-
return $m && $m.get(key);
|
|
10635
|
-
}, "get"),
|
|
10636
|
-
has: /* @__PURE__ */ __name(function(key) {
|
|
10637
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
10638
|
-
if ($wm) {
|
|
10639
|
-
return $weakMapHas($wm, key);
|
|
10640
|
-
}
|
|
10641
|
-
}
|
|
10642
|
-
return !!$m && $m.has(key);
|
|
10643
|
-
}, "has"),
|
|
10644
|
-
set: /* @__PURE__ */ __name(function(key, value) {
|
|
10645
|
-
if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
|
|
10646
|
-
if (!$wm) {
|
|
10647
|
-
$wm = new $WeakMap();
|
|
10648
|
-
}
|
|
10649
|
-
$weakMapSet($wm, key, value);
|
|
10650
|
-
} else if (getSideChannelMap) {
|
|
10651
|
-
if (!$m) {
|
|
10652
|
-
$m = getSideChannelMap();
|
|
10653
|
-
}
|
|
10654
|
-
$m.set(key, value);
|
|
10655
|
-
}
|
|
10656
|
-
}, "set")
|
|
10657
|
-
};
|
|
10658
|
-
return channel;
|
|
10659
|
-
}, "getSideChannelWeakMap")
|
|
10660
|
-
) : getSideChannelMap;
|
|
10661
|
-
}
|
|
10662
|
-
});
|
|
10663
|
-
|
|
10664
|
-
// node_modules/side-channel/index.js
|
|
10665
|
-
var require_side_channel = __commonJS({
|
|
10666
|
-
"node_modules/side-channel/index.js"(exports, module) {
|
|
10667
|
-
"use strict";
|
|
10668
|
-
init_esbuild_shims();
|
|
10669
|
-
var $TypeError = require_type();
|
|
10670
|
-
var inspect = require_object_inspect();
|
|
10671
|
-
var getSideChannelList = require_side_channel_list();
|
|
10672
|
-
var getSideChannelMap = require_side_channel_map();
|
|
10673
|
-
var getSideChannelWeakMap = require_side_channel_weakmap();
|
|
10674
|
-
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
10675
|
-
module.exports = /* @__PURE__ */ __name(function getSideChannel() {
|
|
10676
|
-
var $channelData;
|
|
10677
|
-
var channel = {
|
|
10678
|
-
assert: /* @__PURE__ */ __name(function(key) {
|
|
10679
|
-
if (!channel.has(key)) {
|
|
10680
|
-
throw new $TypeError("Side channel does not contain " + inspect(key));
|
|
10681
|
-
}
|
|
10682
|
-
}, "assert"),
|
|
10683
|
-
"delete": /* @__PURE__ */ __name(function(key) {
|
|
10684
|
-
return !!$channelData && $channelData["delete"](key);
|
|
10685
|
-
}, "delete"),
|
|
10686
|
-
get: /* @__PURE__ */ __name(function(key) {
|
|
10687
|
-
return $channelData && $channelData.get(key);
|
|
10688
|
-
}, "get"),
|
|
10689
|
-
has: /* @__PURE__ */ __name(function(key) {
|
|
10690
|
-
return !!$channelData && $channelData.has(key);
|
|
10691
|
-
}, "has"),
|
|
10692
|
-
set: /* @__PURE__ */ __name(function(key, value) {
|
|
10693
|
-
if (!$channelData) {
|
|
10694
|
-
$channelData = makeChannel();
|
|
10695
|
-
}
|
|
10696
|
-
$channelData.set(key, value);
|
|
10697
|
-
}, "set")
|
|
10698
|
-
};
|
|
10699
|
-
return channel;
|
|
10700
|
-
}, "getSideChannel");
|
|
10701
|
-
}
|
|
10702
|
-
});
|
|
10703
|
-
|
|
10704
|
-
// node_modules/qs/lib/formats.js
|
|
10705
|
-
var require_formats = __commonJS({
|
|
10706
|
-
"node_modules/qs/lib/formats.js"(exports, module) {
|
|
10707
|
-
"use strict";
|
|
10708
|
-
init_esbuild_shims();
|
|
10709
|
-
var replace = String.prototype.replace;
|
|
10710
|
-
var percentTwenties = /%20/g;
|
|
10711
|
-
var Format = {
|
|
10712
|
-
RFC1738: "RFC1738",
|
|
10713
|
-
RFC3986: "RFC3986"
|
|
10714
|
-
};
|
|
10715
|
-
module.exports = {
|
|
10716
|
-
"default": Format.RFC3986,
|
|
10717
|
-
formatters: {
|
|
10718
|
-
RFC1738: /* @__PURE__ */ __name(function(value) {
|
|
10719
|
-
return replace.call(value, percentTwenties, "+");
|
|
10720
|
-
}, "RFC1738"),
|
|
10721
|
-
RFC3986: /* @__PURE__ */ __name(function(value) {
|
|
10722
|
-
return String(value);
|
|
10723
|
-
}, "RFC3986")
|
|
10724
|
-
},
|
|
10725
|
-
RFC1738: Format.RFC1738,
|
|
10726
|
-
RFC3986: Format.RFC3986
|
|
10727
|
-
};
|
|
10728
|
-
}
|
|
10729
|
-
});
|
|
10730
|
-
|
|
10731
|
-
// node_modules/qs/lib/utils.js
|
|
10732
|
-
var require_utils2 = __commonJS({
|
|
10733
|
-
"node_modules/qs/lib/utils.js"(exports, module) {
|
|
10734
|
-
"use strict";
|
|
10735
|
-
init_esbuild_shims();
|
|
10736
|
-
var formats = require_formats();
|
|
10737
|
-
var getSideChannel = require_side_channel();
|
|
10738
|
-
var has = Object.prototype.hasOwnProperty;
|
|
10739
|
-
var isArray = Array.isArray;
|
|
10740
|
-
var overflowChannel = getSideChannel();
|
|
10741
|
-
var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
|
|
10742
|
-
overflowChannel.set(obj, maxIndex);
|
|
10743
|
-
return obj;
|
|
10744
|
-
}, "markOverflow");
|
|
10745
|
-
var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
|
|
10746
|
-
return overflowChannel.has(obj);
|
|
10747
|
-
}, "isOverflow");
|
|
10748
|
-
var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
|
|
10749
|
-
return overflowChannel.get(obj);
|
|
10750
|
-
}, "getMaxIndex");
|
|
10751
|
-
var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
|
|
10752
|
-
overflowChannel.set(obj, maxIndex);
|
|
10753
|
-
}, "setMaxIndex");
|
|
10754
|
-
var hexTable = function() {
|
|
10755
|
-
var array = [];
|
|
10756
|
-
for (var i = 0; i < 256; ++i) {
|
|
10757
|
-
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
10758
|
-
}
|
|
10759
|
-
return array;
|
|
10760
|
-
}();
|
|
10761
|
-
var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
|
|
10762
|
-
while (queue.length > 1) {
|
|
10763
|
-
var item = queue.pop();
|
|
10764
|
-
var obj = item.obj[item.prop];
|
|
10765
|
-
if (isArray(obj)) {
|
|
10766
|
-
var compacted = [];
|
|
10767
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
10768
|
-
if (typeof obj[j] !== "undefined") {
|
|
10769
|
-
compacted[compacted.length] = obj[j];
|
|
10770
|
-
}
|
|
10771
|
-
}
|
|
10772
|
-
item.obj[item.prop] = compacted;
|
|
10773
|
-
}
|
|
10774
|
-
}
|
|
10775
|
-
}, "compactQueue");
|
|
10776
|
-
var arrayToObject = /* @__PURE__ */ __name(function arrayToObject2(source, options) {
|
|
10777
|
-
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
10778
|
-
for (var i = 0; i < source.length; ++i) {
|
|
10779
|
-
if (typeof source[i] !== "undefined") {
|
|
10780
|
-
obj[i] = source[i];
|
|
10781
|
-
}
|
|
10782
|
-
}
|
|
10783
|
-
return obj;
|
|
10784
|
-
}, "arrayToObject");
|
|
10785
|
-
var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
|
|
10786
|
-
if (!source) {
|
|
10787
|
-
return target;
|
|
10788
|
-
}
|
|
10789
|
-
if (typeof source !== "object" && typeof source !== "function") {
|
|
10790
|
-
if (isArray(target)) {
|
|
10791
|
-
var nextIndex = target.length;
|
|
10792
|
-
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
10793
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
10794
|
-
}
|
|
10795
|
-
target[nextIndex] = source;
|
|
10796
|
-
} else if (target && typeof target === "object") {
|
|
10797
|
-
if (isOverflow(target)) {
|
|
10798
|
-
var newIndex = getMaxIndex(target) + 1;
|
|
10799
|
-
target[newIndex] = source;
|
|
10800
|
-
setMaxIndex(target, newIndex);
|
|
10801
|
-
} else if (options && options.strictMerge) {
|
|
10802
|
-
return [target, source];
|
|
10803
|
-
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
10804
|
-
target[source] = true;
|
|
10805
|
-
}
|
|
10806
|
-
} else {
|
|
10807
|
-
return [target, source];
|
|
10808
|
-
}
|
|
10809
|
-
return target;
|
|
10810
|
-
}
|
|
10811
|
-
if (!target || typeof target !== "object") {
|
|
10812
|
-
if (isOverflow(source)) {
|
|
10813
|
-
var sourceKeys = Object.keys(source);
|
|
10814
|
-
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
10815
|
-
for (var m = 0; m < sourceKeys.length; m++) {
|
|
10816
|
-
var oldKey = parseInt(sourceKeys[m], 10);
|
|
10817
|
-
result[oldKey + 1] = source[sourceKeys[m]];
|
|
10818
|
-
}
|
|
10819
|
-
return markOverflow(result, getMaxIndex(source) + 1);
|
|
10820
|
-
}
|
|
10821
|
-
var combined = [target].concat(source);
|
|
10822
|
-
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
10823
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
10824
|
-
}
|
|
10825
|
-
return combined;
|
|
10826
|
-
}
|
|
10827
|
-
var mergeTarget = target;
|
|
10828
|
-
if (isArray(target) && !isArray(source)) {
|
|
10829
|
-
mergeTarget = arrayToObject(target, options);
|
|
10830
|
-
}
|
|
10831
|
-
if (isArray(target) && isArray(source)) {
|
|
10832
|
-
source.forEach(function(item, i) {
|
|
10833
|
-
if (has.call(target, i)) {
|
|
10834
|
-
var targetItem = target[i];
|
|
10835
|
-
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
10836
|
-
target[i] = merge2(targetItem, item, options);
|
|
10837
|
-
} else {
|
|
10838
|
-
target[target.length] = item;
|
|
10839
|
-
}
|
|
10840
|
-
} else {
|
|
10841
|
-
target[i] = item;
|
|
10842
|
-
}
|
|
10843
|
-
});
|
|
10844
|
-
return target;
|
|
10845
|
-
}
|
|
10846
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
10847
|
-
var value = source[key];
|
|
10848
|
-
if (has.call(acc, key)) {
|
|
10849
|
-
acc[key] = merge2(acc[key], value, options);
|
|
10850
|
-
} else {
|
|
10851
|
-
acc[key] = value;
|
|
10852
|
-
}
|
|
10853
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
10854
|
-
markOverflow(acc, getMaxIndex(source));
|
|
10855
|
-
}
|
|
10856
|
-
if (isOverflow(acc)) {
|
|
10857
|
-
var keyNum = parseInt(key, 10);
|
|
10858
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
10859
|
-
setMaxIndex(acc, keyNum);
|
|
10860
|
-
}
|
|
10861
|
-
}
|
|
10862
|
-
return acc;
|
|
10863
|
-
}, mergeTarget);
|
|
10864
|
-
}, "merge");
|
|
10865
|
-
var assign = /* @__PURE__ */ __name(function assignSingleSource(target, source) {
|
|
10866
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
10867
|
-
acc[key] = source[key];
|
|
10868
|
-
return acc;
|
|
10869
|
-
}, target);
|
|
10870
|
-
}, "assignSingleSource");
|
|
10871
|
-
var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
|
|
10872
|
-
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
10873
|
-
if (charset === "iso-8859-1") {
|
|
10874
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
10875
|
-
}
|
|
10876
|
-
try {
|
|
10877
|
-
return decodeURIComponent(strWithoutPlus);
|
|
10878
|
-
} catch (e) {
|
|
10879
|
-
return strWithoutPlus;
|
|
10880
|
-
}
|
|
10881
|
-
}, "decode");
|
|
10882
|
-
var limit = 1024;
|
|
10883
|
-
var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
|
|
10884
|
-
if (str.length === 0) {
|
|
10885
|
-
return str;
|
|
10886
|
-
}
|
|
10887
|
-
var string = str;
|
|
10888
|
-
if (typeof str === "symbol") {
|
|
10889
|
-
string = Symbol.prototype.toString.call(str);
|
|
10890
|
-
} else if (typeof str !== "string") {
|
|
10891
|
-
string = String(str);
|
|
10892
|
-
}
|
|
10893
|
-
if (charset === "iso-8859-1") {
|
|
10894
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
10895
|
-
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
10896
|
-
});
|
|
10897
|
-
}
|
|
10898
|
-
var out = "";
|
|
10899
|
-
for (var j = 0; j < string.length; j += limit) {
|
|
10900
|
-
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
10901
|
-
var arr = [];
|
|
10902
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
10903
|
-
var c = segment.charCodeAt(i);
|
|
10904
|
-
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)) {
|
|
10905
|
-
arr[arr.length] = segment.charAt(i);
|
|
10906
|
-
continue;
|
|
10907
|
-
}
|
|
10908
|
-
if (c < 128) {
|
|
10909
|
-
arr[arr.length] = hexTable[c];
|
|
10910
|
-
continue;
|
|
10911
|
-
}
|
|
10912
|
-
if (c < 2048) {
|
|
10913
|
-
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
10914
|
-
continue;
|
|
10915
|
-
}
|
|
10916
|
-
if (c < 55296 || c >= 57344) {
|
|
10917
|
-
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
10918
|
-
continue;
|
|
10919
|
-
}
|
|
10920
|
-
i += 1;
|
|
10921
|
-
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
10922
|
-
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
10923
|
-
}
|
|
10924
|
-
out += arr.join("");
|
|
10925
|
-
}
|
|
10926
|
-
return out;
|
|
10927
|
-
}, "encode");
|
|
10928
|
-
var compact = /* @__PURE__ */ __name(function compact2(value) {
|
|
10929
|
-
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
10930
|
-
var refs = [];
|
|
10931
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
10932
|
-
var item = queue[i];
|
|
10933
|
-
var obj = item.obj[item.prop];
|
|
10934
|
-
var keys = Object.keys(obj);
|
|
10935
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
10936
|
-
var key = keys[j];
|
|
10937
|
-
var val = obj[key];
|
|
10938
|
-
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
10939
|
-
queue[queue.length] = { obj, prop: key };
|
|
10940
|
-
refs[refs.length] = val;
|
|
10941
|
-
}
|
|
10942
|
-
}
|
|
10943
|
-
}
|
|
10944
|
-
compactQueue(queue);
|
|
10945
|
-
return value;
|
|
10946
|
-
}, "compact");
|
|
10947
|
-
var isRegExp = /* @__PURE__ */ __name(function isRegExp2(obj) {
|
|
10948
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
10949
|
-
}, "isRegExp");
|
|
10950
|
-
var isBuffer = /* @__PURE__ */ __name(function isBuffer2(obj) {
|
|
10951
|
-
if (!obj || typeof obj !== "object") {
|
|
10952
|
-
return false;
|
|
10953
|
-
}
|
|
10954
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
10955
|
-
}, "isBuffer");
|
|
10956
|
-
var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
|
|
10957
|
-
if (isOverflow(a)) {
|
|
10958
|
-
var newIndex = getMaxIndex(a) + 1;
|
|
10959
|
-
a[newIndex] = b;
|
|
10960
|
-
setMaxIndex(a, newIndex);
|
|
10961
|
-
return a;
|
|
10962
|
-
}
|
|
10963
|
-
var result = [].concat(a, b);
|
|
10964
|
-
if (result.length > arrayLimit) {
|
|
10965
|
-
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
10966
|
-
}
|
|
10967
|
-
return result;
|
|
10968
|
-
}, "combine");
|
|
10969
|
-
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
|
|
10970
|
-
if (isArray(val)) {
|
|
10971
|
-
var mapped = [];
|
|
10972
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
10973
|
-
mapped[mapped.length] = fn(val[i]);
|
|
10974
|
-
}
|
|
10975
|
-
return mapped;
|
|
10976
|
-
}
|
|
10977
|
-
return fn(val);
|
|
10978
|
-
}, "maybeMap");
|
|
10979
|
-
module.exports = {
|
|
10980
|
-
arrayToObject,
|
|
10981
|
-
assign,
|
|
10982
|
-
combine,
|
|
10983
|
-
compact,
|
|
10984
|
-
decode,
|
|
10985
|
-
encode,
|
|
10986
|
-
isBuffer,
|
|
10987
|
-
isOverflow,
|
|
10988
|
-
isRegExp,
|
|
10989
|
-
markOverflow,
|
|
10990
|
-
maybeMap,
|
|
10991
|
-
merge
|
|
10992
|
-
};
|
|
10993
|
-
}
|
|
10994
|
-
});
|
|
10995
|
-
|
|
10996
|
-
// node_modules/qs/lib/stringify.js
|
|
10997
|
-
var require_stringify = __commonJS({
|
|
10998
|
-
"node_modules/qs/lib/stringify.js"(exports, module) {
|
|
10999
|
-
"use strict";
|
|
11000
|
-
init_esbuild_shims();
|
|
11001
|
-
var getSideChannel = require_side_channel();
|
|
11002
|
-
var utils = require_utils2();
|
|
11003
|
-
var formats = require_formats();
|
|
11004
|
-
var has = Object.prototype.hasOwnProperty;
|
|
11005
|
-
var arrayPrefixGenerators = {
|
|
11006
|
-
brackets: /* @__PURE__ */ __name(function brackets(prefix) {
|
|
11007
|
-
return prefix + "[]";
|
|
11008
|
-
}, "brackets"),
|
|
11009
|
-
comma: "comma",
|
|
11010
|
-
indices: /* @__PURE__ */ __name(function indices(prefix, key) {
|
|
11011
|
-
return prefix + "[" + key + "]";
|
|
11012
|
-
}, "indices"),
|
|
11013
|
-
repeat: /* @__PURE__ */ __name(function repeat(prefix) {
|
|
11014
|
-
return prefix;
|
|
11015
|
-
}, "repeat")
|
|
11016
|
-
};
|
|
11017
|
-
var isArray = Array.isArray;
|
|
11018
|
-
var push = Array.prototype.push;
|
|
11019
|
-
var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
|
|
11020
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
11021
|
-
}, "pushToArray");
|
|
11022
|
-
var toISO = Date.prototype.toISOString;
|
|
11023
|
-
var defaultFormat = formats["default"];
|
|
11024
|
-
var defaults = {
|
|
11025
|
-
addQueryPrefix: false,
|
|
11026
|
-
allowDots: false,
|
|
11027
|
-
allowEmptyArrays: false,
|
|
11028
|
-
arrayFormat: "indices",
|
|
11029
|
-
charset: "utf-8",
|
|
11030
|
-
charsetSentinel: false,
|
|
11031
|
-
commaRoundTrip: false,
|
|
11032
|
-
delimiter: "&",
|
|
11033
|
-
encode: true,
|
|
11034
|
-
encodeDotInKeys: false,
|
|
11035
|
-
encoder: utils.encode,
|
|
11036
|
-
encodeValuesOnly: false,
|
|
11037
|
-
filter: void 0,
|
|
11038
|
-
format: defaultFormat,
|
|
11039
|
-
formatter: formats.formatters[defaultFormat],
|
|
11040
|
-
// deprecated
|
|
11041
|
-
indices: false,
|
|
11042
|
-
serializeDate: /* @__PURE__ */ __name(function serializeDate(date) {
|
|
11043
|
-
return toISO.call(date);
|
|
11044
|
-
}, "serializeDate"),
|
|
11045
|
-
skipNulls: false,
|
|
11046
|
-
strictNullHandling: false
|
|
11047
|
-
};
|
|
11048
|
-
var isNonNullishPrimitive = /* @__PURE__ */ __name(function isNonNullishPrimitive2(v) {
|
|
11049
|
-
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
11050
|
-
}, "isNonNullishPrimitive");
|
|
11051
|
-
var sentinel = {};
|
|
11052
|
-
var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
11053
|
-
var obj = object;
|
|
11054
|
-
var tmpSc = sideChannel;
|
|
11055
|
-
var step = 0;
|
|
11056
|
-
var findFlag = false;
|
|
11057
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
11058
|
-
var pos = tmpSc.get(object);
|
|
11059
|
-
step += 1;
|
|
11060
|
-
if (typeof pos !== "undefined") {
|
|
11061
|
-
if (pos === step) {
|
|
11062
|
-
throw new RangeError("Cyclic object value");
|
|
11063
|
-
} else {
|
|
11064
|
-
findFlag = true;
|
|
11065
|
-
}
|
|
11066
|
-
}
|
|
11067
|
-
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
11068
|
-
step = 0;
|
|
11069
|
-
}
|
|
11070
|
-
}
|
|
11071
|
-
if (typeof filter === "function") {
|
|
11072
|
-
obj = filter(prefix, obj);
|
|
11073
|
-
} else if (obj instanceof Date) {
|
|
11074
|
-
obj = serializeDate(obj);
|
|
11075
|
-
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
11076
|
-
obj = utils.maybeMap(obj, function(value2) {
|
|
11077
|
-
if (value2 instanceof Date) {
|
|
11078
|
-
return serializeDate(value2);
|
|
11079
|
-
}
|
|
11080
|
-
return value2;
|
|
11081
|
-
});
|
|
11082
|
-
}
|
|
11083
|
-
if (obj === null) {
|
|
11084
|
-
if (strictNullHandling) {
|
|
11085
|
-
return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
|
|
11086
|
-
}
|
|
11087
|
-
obj = "";
|
|
11088
|
-
}
|
|
11089
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
11090
|
-
if (encoder) {
|
|
11091
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
11092
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
|
|
11093
|
-
}
|
|
11094
|
-
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
11095
|
-
}
|
|
11096
|
-
var values = [];
|
|
11097
|
-
if (typeof obj === "undefined") {
|
|
11098
|
-
return values;
|
|
11099
|
-
}
|
|
11100
|
-
var objKeys;
|
|
11101
|
-
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
11102
|
-
if (encodeValuesOnly && encoder) {
|
|
11103
|
-
obj = utils.maybeMap(obj, function(v) {
|
|
11104
|
-
return v == null ? v : encoder(v);
|
|
11105
|
-
});
|
|
11106
|
-
}
|
|
11107
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
11108
|
-
} else if (isArray(filter)) {
|
|
11109
|
-
objKeys = filter;
|
|
11110
|
-
} else {
|
|
11111
|
-
var keys = Object.keys(obj);
|
|
11112
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
11113
|
-
}
|
|
11114
|
-
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
11115
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
11116
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
11117
|
-
return adjustedPrefix + "[]";
|
|
11118
|
-
}
|
|
11119
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
11120
|
-
var key = objKeys[j];
|
|
11121
|
-
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
11122
|
-
if (skipNulls && value === null) {
|
|
11123
|
-
continue;
|
|
11124
|
-
}
|
|
11125
|
-
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
11126
|
-
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
11127
|
-
sideChannel.set(object, step);
|
|
11128
|
-
var valueSideChannel = getSideChannel();
|
|
11129
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
11130
|
-
pushToArray(values, stringify2(
|
|
11131
|
-
value,
|
|
11132
|
-
keyPrefix,
|
|
11133
|
-
generateArrayPrefix,
|
|
11134
|
-
commaRoundTrip,
|
|
11135
|
-
allowEmptyArrays,
|
|
11136
|
-
strictNullHandling,
|
|
11137
|
-
skipNulls,
|
|
11138
|
-
encodeDotInKeys,
|
|
11139
|
-
generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
11140
|
-
filter,
|
|
11141
|
-
sort,
|
|
11142
|
-
allowDots,
|
|
11143
|
-
serializeDate,
|
|
11144
|
-
format,
|
|
11145
|
-
formatter,
|
|
11146
|
-
encodeValuesOnly,
|
|
11147
|
-
charset,
|
|
11148
|
-
valueSideChannel
|
|
11149
|
-
));
|
|
11150
|
-
}
|
|
11151
|
-
return values;
|
|
11152
|
-
}, "stringify");
|
|
11153
|
-
var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringifyOptions2(opts) {
|
|
11154
|
-
if (!opts) {
|
|
11155
|
-
return defaults;
|
|
11156
|
-
}
|
|
11157
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
11158
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
11159
|
-
}
|
|
11160
|
-
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
11161
|
-
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
11162
|
-
}
|
|
11163
|
-
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
11164
|
-
throw new TypeError("Encoder has to be a function.");
|
|
11165
|
-
}
|
|
11166
|
-
var charset = opts.charset || defaults.charset;
|
|
11167
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
11168
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
11169
|
-
}
|
|
11170
|
-
var format = formats["default"];
|
|
11171
|
-
if (typeof opts.format !== "undefined") {
|
|
11172
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
11173
|
-
throw new TypeError("Unknown format option provided.");
|
|
11174
|
-
}
|
|
11175
|
-
format = opts.format;
|
|
11176
|
-
}
|
|
11177
|
-
var formatter = formats.formatters[format];
|
|
11178
|
-
var filter = defaults.filter;
|
|
11179
|
-
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
11180
|
-
filter = opts.filter;
|
|
11181
|
-
}
|
|
11182
|
-
var arrayFormat;
|
|
11183
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
11184
|
-
arrayFormat = opts.arrayFormat;
|
|
11185
|
-
} else if ("indices" in opts) {
|
|
11186
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
11187
|
-
} else {
|
|
11188
|
-
arrayFormat = defaults.arrayFormat;
|
|
11189
|
-
}
|
|
11190
|
-
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
11191
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
11192
|
-
}
|
|
11193
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
11194
|
-
return {
|
|
11195
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
11196
|
-
allowDots,
|
|
11197
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
11198
|
-
arrayFormat,
|
|
11199
|
-
charset,
|
|
11200
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
11201
|
-
commaRoundTrip: !!opts.commaRoundTrip,
|
|
11202
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
11203
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
11204
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
11205
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
11206
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
11207
|
-
filter,
|
|
11208
|
-
format,
|
|
11209
|
-
formatter,
|
|
11210
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
11211
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
11212
|
-
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
11213
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
11214
|
-
};
|
|
11215
|
-
}, "normalizeStringifyOptions");
|
|
11216
|
-
module.exports = function(object, opts) {
|
|
11217
|
-
var obj = object;
|
|
11218
|
-
var options = normalizeStringifyOptions(opts);
|
|
11219
|
-
var objKeys;
|
|
11220
|
-
var filter;
|
|
11221
|
-
if (typeof options.filter === "function") {
|
|
11222
|
-
filter = options.filter;
|
|
11223
|
-
obj = filter("", obj);
|
|
11224
|
-
} else if (isArray(options.filter)) {
|
|
11225
|
-
filter = options.filter;
|
|
11226
|
-
objKeys = filter;
|
|
11227
|
-
}
|
|
11228
|
-
var keys = [];
|
|
11229
|
-
if (typeof obj !== "object" || obj === null) {
|
|
11230
|
-
return "";
|
|
11231
|
-
}
|
|
11232
|
-
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
11233
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
11234
|
-
if (!objKeys) {
|
|
11235
|
-
objKeys = Object.keys(obj);
|
|
11236
|
-
}
|
|
11237
|
-
if (options.sort) {
|
|
11238
|
-
objKeys.sort(options.sort);
|
|
11239
|
-
}
|
|
11240
|
-
var sideChannel = getSideChannel();
|
|
11241
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
11242
|
-
var key = objKeys[i];
|
|
11243
|
-
if (typeof key === "undefined" || key === null) {
|
|
11244
|
-
continue;
|
|
11245
|
-
}
|
|
11246
|
-
var value = obj[key];
|
|
11247
|
-
if (options.skipNulls && value === null) {
|
|
11248
|
-
continue;
|
|
11249
|
-
}
|
|
11250
|
-
pushToArray(keys, stringify(
|
|
11251
|
-
value,
|
|
11252
|
-
key,
|
|
11253
|
-
generateArrayPrefix,
|
|
11254
|
-
commaRoundTrip,
|
|
11255
|
-
options.allowEmptyArrays,
|
|
11256
|
-
options.strictNullHandling,
|
|
11257
|
-
options.skipNulls,
|
|
11258
|
-
options.encodeDotInKeys,
|
|
11259
|
-
options.encode ? options.encoder : null,
|
|
11260
|
-
options.filter,
|
|
11261
|
-
options.sort,
|
|
11262
|
-
options.allowDots,
|
|
11263
|
-
options.serializeDate,
|
|
11264
|
-
options.format,
|
|
11265
|
-
options.formatter,
|
|
11266
|
-
options.encodeValuesOnly,
|
|
11267
|
-
options.charset,
|
|
11268
|
-
sideChannel
|
|
11269
|
-
));
|
|
11270
|
-
}
|
|
11271
|
-
var joined = keys.join(options.delimiter);
|
|
11272
|
-
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
11273
|
-
if (options.charsetSentinel) {
|
|
11274
|
-
if (options.charset === "iso-8859-1") {
|
|
11275
|
-
prefix += "utf8=%26%2310003%3B" + options.delimiter;
|
|
11276
|
-
} else {
|
|
11277
|
-
prefix += "utf8=%E2%9C%93" + options.delimiter;
|
|
11278
|
-
}
|
|
11279
|
-
}
|
|
11280
|
-
return joined.length > 0 ? prefix + joined : "";
|
|
11281
|
-
};
|
|
11282
|
-
}
|
|
11283
|
-
});
|
|
11284
|
-
|
|
11285
|
-
// node_modules/qs/lib/parse.js
|
|
11286
|
-
var require_parse = __commonJS({
|
|
11287
|
-
"node_modules/qs/lib/parse.js"(exports, module) {
|
|
11288
|
-
"use strict";
|
|
11289
|
-
init_esbuild_shims();
|
|
11290
|
-
var utils = require_utils2();
|
|
11291
|
-
var has = Object.prototype.hasOwnProperty;
|
|
11292
|
-
var isArray = Array.isArray;
|
|
11293
|
-
var defaults = {
|
|
11294
|
-
allowDots: false,
|
|
11295
|
-
allowEmptyArrays: false,
|
|
11296
|
-
allowPrototypes: false,
|
|
11297
|
-
allowSparse: false,
|
|
11298
|
-
arrayLimit: 20,
|
|
11299
|
-
charset: "utf-8",
|
|
11300
|
-
charsetSentinel: false,
|
|
11301
|
-
comma: false,
|
|
11302
|
-
decodeDotInKeys: false,
|
|
11303
|
-
decoder: utils.decode,
|
|
11304
|
-
delimiter: "&",
|
|
11305
|
-
depth: 5,
|
|
11306
|
-
duplicates: "combine",
|
|
11307
|
-
ignoreQueryPrefix: false,
|
|
11308
|
-
interpretNumericEntities: false,
|
|
11309
|
-
parameterLimit: 1e3,
|
|
11310
|
-
parseArrays: true,
|
|
11311
|
-
plainObjects: false,
|
|
11312
|
-
strictDepth: false,
|
|
11313
|
-
strictMerge: true,
|
|
11314
|
-
strictNullHandling: false,
|
|
11315
|
-
throwOnLimitExceeded: false
|
|
11316
|
-
};
|
|
11317
|
-
var interpretNumericEntities = /* @__PURE__ */ __name(function(str) {
|
|
11318
|
-
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
11319
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
11320
|
-
});
|
|
11321
|
-
}, "interpretNumericEntities");
|
|
11322
|
-
var parseArrayValue = /* @__PURE__ */ __name(function(val, options, currentArrayLength) {
|
|
11323
|
-
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
11324
|
-
return val.split(",");
|
|
11325
|
-
}
|
|
11326
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
11327
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
11328
|
-
}
|
|
11329
|
-
return val;
|
|
11330
|
-
}, "parseArrayValue");
|
|
11331
|
-
var isoSentinel = "utf8=%26%2310003%3B";
|
|
11332
|
-
var charsetSentinel = "utf8=%E2%9C%93";
|
|
11333
|
-
var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, options) {
|
|
11334
|
-
var obj = { __proto__: null };
|
|
11335
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
11336
|
-
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
11337
|
-
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
11338
|
-
var parts = cleanStr.split(
|
|
11339
|
-
options.delimiter,
|
|
11340
|
-
options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit
|
|
11341
|
-
);
|
|
11342
|
-
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
|
|
11343
|
-
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
11344
|
-
}
|
|
11345
|
-
var skipIndex = -1;
|
|
11346
|
-
var i;
|
|
11347
|
-
var charset = options.charset;
|
|
11348
|
-
if (options.charsetSentinel) {
|
|
11349
|
-
for (i = 0; i < parts.length; ++i) {
|
|
11350
|
-
if (parts[i].indexOf("utf8=") === 0) {
|
|
11351
|
-
if (parts[i] === charsetSentinel) {
|
|
11352
|
-
charset = "utf-8";
|
|
11353
|
-
} else if (parts[i] === isoSentinel) {
|
|
11354
|
-
charset = "iso-8859-1";
|
|
11355
|
-
}
|
|
11356
|
-
skipIndex = i;
|
|
11357
|
-
i = parts.length;
|
|
11358
|
-
}
|
|
11359
|
-
}
|
|
11360
|
-
}
|
|
11361
|
-
for (i = 0; i < parts.length; ++i) {
|
|
11362
|
-
if (i === skipIndex) {
|
|
11363
|
-
continue;
|
|
11364
|
-
}
|
|
11365
|
-
var part = parts[i];
|
|
11366
|
-
var bracketEqualsPos = part.indexOf("]=");
|
|
11367
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
11368
|
-
var key;
|
|
11369
|
-
var val;
|
|
11370
|
-
if (pos === -1) {
|
|
11371
|
-
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
11372
|
-
val = options.strictNullHandling ? null : "";
|
|
11373
|
-
} else {
|
|
11374
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
11375
|
-
if (key !== null) {
|
|
11376
|
-
val = utils.maybeMap(
|
|
11377
|
-
parseArrayValue(
|
|
11378
|
-
part.slice(pos + 1),
|
|
11379
|
-
options,
|
|
11380
|
-
isArray(obj[key]) ? obj[key].length : 0
|
|
11381
|
-
),
|
|
11382
|
-
function(encodedVal) {
|
|
11383
|
-
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
11384
|
-
}
|
|
11385
|
-
);
|
|
11386
|
-
}
|
|
11387
|
-
}
|
|
11388
|
-
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
11389
|
-
val = interpretNumericEntities(String(val));
|
|
11390
|
-
}
|
|
11391
|
-
if (part.indexOf("[]=") > -1) {
|
|
11392
|
-
val = isArray(val) ? [val] : val;
|
|
11393
|
-
}
|
|
11394
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
11395
|
-
if (options.throwOnLimitExceeded) {
|
|
11396
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
11397
|
-
}
|
|
11398
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
11399
|
-
}
|
|
11400
|
-
if (key !== null) {
|
|
11401
|
-
var existing = has.call(obj, key);
|
|
11402
|
-
if (existing && (options.duplicates === "combine" || part.indexOf("[]=") > -1)) {
|
|
11403
|
-
obj[key] = utils.combine(
|
|
11404
|
-
obj[key],
|
|
11405
|
-
val,
|
|
11406
|
-
options.arrayLimit,
|
|
11407
|
-
options.plainObjects
|
|
11408
|
-
);
|
|
11409
|
-
} else if (!existing || options.duplicates === "last") {
|
|
11410
|
-
obj[key] = val;
|
|
11411
|
-
}
|
|
11412
|
-
}
|
|
11413
|
-
}
|
|
11414
|
-
return obj;
|
|
11415
|
-
}, "parseQueryStringValues");
|
|
11416
|
-
var parseObject = /* @__PURE__ */ __name(function(chain, val, options, valuesParsed) {
|
|
11417
|
-
var currentArrayLength = 0;
|
|
11418
|
-
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
11419
|
-
var parentKey = chain.slice(0, -1).join("");
|
|
11420
|
-
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
11421
|
-
}
|
|
11422
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
11423
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
11424
|
-
var obj;
|
|
11425
|
-
var root = chain[i];
|
|
11426
|
-
if (root === "[]" && options.parseArrays) {
|
|
11427
|
-
if (utils.isOverflow(leaf)) {
|
|
11428
|
-
obj = leaf;
|
|
11429
|
-
} else {
|
|
11430
|
-
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
|
|
11431
|
-
[],
|
|
11432
|
-
leaf,
|
|
11433
|
-
options.arrayLimit,
|
|
11434
|
-
options.plainObjects
|
|
11435
|
-
);
|
|
11436
|
-
}
|
|
11437
|
-
} else {
|
|
11438
|
-
obj = options.plainObjects ? { __proto__: null } : {};
|
|
11439
|
-
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
11440
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
11441
|
-
var index = parseInt(decodedRoot, 10);
|
|
11442
|
-
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
11443
|
-
if (!options.parseArrays && decodedRoot === "") {
|
|
11444
|
-
obj = { 0: leaf };
|
|
11445
|
-
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
11446
|
-
obj = [];
|
|
11447
|
-
obj[index] = leaf;
|
|
11448
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
11449
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
11450
|
-
} else if (isValidArrayIndex) {
|
|
11451
|
-
obj[index] = leaf;
|
|
11452
|
-
utils.markOverflow(obj, index);
|
|
11453
|
-
} else if (decodedRoot !== "__proto__") {
|
|
11454
|
-
obj[decodedRoot] = leaf;
|
|
11455
|
-
}
|
|
11456
|
-
}
|
|
11457
|
-
leaf = obj;
|
|
11458
|
-
}
|
|
11459
|
-
return leaf;
|
|
11460
|
-
}, "parseObject");
|
|
11461
|
-
var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(originalKey, options) {
|
|
11462
|
-
var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
|
|
11463
|
-
if (options.depth <= 0) {
|
|
11464
|
-
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
11465
|
-
if (!options.allowPrototypes) {
|
|
11466
|
-
return;
|
|
11467
|
-
}
|
|
11468
|
-
}
|
|
11469
|
-
return [key];
|
|
11470
|
-
}
|
|
11471
|
-
var segments = [];
|
|
11472
|
-
var first = key.indexOf("[");
|
|
11473
|
-
var parent = first >= 0 ? key.slice(0, first) : key;
|
|
11474
|
-
if (parent) {
|
|
11475
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
11476
|
-
if (!options.allowPrototypes) {
|
|
11477
|
-
return;
|
|
11478
|
-
}
|
|
11479
|
-
}
|
|
11480
|
-
segments[segments.length] = parent;
|
|
11481
|
-
}
|
|
11482
|
-
var n = key.length;
|
|
11483
|
-
var open = first;
|
|
11484
|
-
var collected = 0;
|
|
11485
|
-
while (open >= 0 && collected < options.depth) {
|
|
11486
|
-
var level = 1;
|
|
11487
|
-
var i = open + 1;
|
|
11488
|
-
var close = -1;
|
|
11489
|
-
while (i < n && close < 0) {
|
|
11490
|
-
var cu = key.charCodeAt(i);
|
|
11491
|
-
if (cu === 91) {
|
|
11492
|
-
level += 1;
|
|
11493
|
-
} else if (cu === 93) {
|
|
11494
|
-
level -= 1;
|
|
11495
|
-
if (level === 0) {
|
|
11496
|
-
close = i;
|
|
11497
|
-
}
|
|
11498
|
-
}
|
|
11499
|
-
i += 1;
|
|
11500
|
-
}
|
|
11501
|
-
if (close < 0) {
|
|
11502
|
-
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
11503
|
-
return segments;
|
|
11504
|
-
}
|
|
11505
|
-
var seg = key.slice(open, close + 1);
|
|
11506
|
-
var content = seg.slice(1, -1);
|
|
11507
|
-
if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
|
|
11508
|
-
return;
|
|
11509
|
-
}
|
|
11510
|
-
segments[segments.length] = seg;
|
|
11511
|
-
collected += 1;
|
|
11512
|
-
open = key.indexOf("[", close + 1);
|
|
11513
|
-
}
|
|
11514
|
-
if (open >= 0) {
|
|
11515
|
-
if (options.strictDepth === true) {
|
|
11516
|
-
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
11517
|
-
}
|
|
11518
|
-
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
11519
|
-
}
|
|
11520
|
-
return segments;
|
|
11521
|
-
}, "splitKeyIntoSegments");
|
|
11522
|
-
var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
11523
|
-
if (!givenKey) {
|
|
11524
|
-
return;
|
|
11525
|
-
}
|
|
11526
|
-
var keys = splitKeyIntoSegments(givenKey, options);
|
|
11527
|
-
if (!keys) {
|
|
11528
|
-
return;
|
|
11529
|
-
}
|
|
11530
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
11531
|
-
}, "parseQueryStringKeys");
|
|
11532
|
-
var normalizeParseOptions = /* @__PURE__ */ __name(function normalizeParseOptions2(opts) {
|
|
11533
|
-
if (!opts) {
|
|
11534
|
-
return defaults;
|
|
11535
|
-
}
|
|
11536
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
11537
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
11538
|
-
}
|
|
11539
|
-
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
11540
|
-
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
11541
|
-
}
|
|
11542
|
-
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
11543
|
-
throw new TypeError("Decoder has to be a function.");
|
|
11544
|
-
}
|
|
11545
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
11546
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
11547
|
-
}
|
|
11548
|
-
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
11549
|
-
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
11550
|
-
}
|
|
11551
|
-
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
11552
|
-
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
11553
|
-
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
11554
|
-
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
11555
|
-
}
|
|
11556
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
11557
|
-
return {
|
|
11558
|
-
allowDots,
|
|
11559
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
11560
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
11561
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
11562
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
11563
|
-
charset,
|
|
11564
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
11565
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
11566
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
11567
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
11568
|
-
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
11569
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
11570
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
11571
|
-
duplicates,
|
|
11572
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
11573
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
11574
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
11575
|
-
parseArrays: opts.parseArrays !== false,
|
|
11576
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
11577
|
-
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
11578
|
-
strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
|
|
11579
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
11580
|
-
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
11581
|
-
};
|
|
11582
|
-
}, "normalizeParseOptions");
|
|
11583
|
-
module.exports = function(str, opts) {
|
|
11584
|
-
var options = normalizeParseOptions(opts);
|
|
11585
|
-
if (str === "" || str === null || typeof str === "undefined") {
|
|
11586
|
-
return options.plainObjects ? { __proto__: null } : {};
|
|
11587
|
-
}
|
|
11588
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
11589
|
-
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
11590
|
-
var keys = Object.keys(tempObj);
|
|
11591
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
11592
|
-
var key = keys[i];
|
|
11593
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
11594
|
-
obj = utils.merge(obj, newObj, options);
|
|
11595
|
-
}
|
|
11596
|
-
if (options.allowSparse === true) {
|
|
11597
|
-
return obj;
|
|
11598
|
-
}
|
|
11599
|
-
return utils.compact(obj);
|
|
11600
|
-
};
|
|
11601
|
-
}
|
|
11602
|
-
});
|
|
11603
|
-
|
|
11604
|
-
// node_modules/qs/lib/index.js
|
|
11605
|
-
var require_lib3 = __commonJS({
|
|
11606
|
-
"node_modules/qs/lib/index.js"(exports, module) {
|
|
11607
|
-
"use strict";
|
|
11608
|
-
init_esbuild_shims();
|
|
11609
|
-
var stringify = require_stringify();
|
|
11610
|
-
var parse = require_parse();
|
|
11611
|
-
var formats = require_formats();
|
|
11612
|
-
module.exports = {
|
|
11613
|
-
formats,
|
|
11614
|
-
parse,
|
|
11615
|
-
stringify
|
|
11616
|
-
};
|
|
11617
|
-
}
|
|
11618
|
-
});
|
|
11619
|
-
|
|
11620
9846
|
// node_modules/body-parser/lib/types/urlencoded.js
|
|
11621
9847
|
var require_urlencoded = __commonJS({
|
|
11622
9848
|
"node_modules/body-parser/lib/types/urlencoded.js"(exports, module) {
|
|
@@ -11625,7 +9851,7 @@ var require_urlencoded = __commonJS({
|
|
|
11625
9851
|
var createError = require_http_errors();
|
|
11626
9852
|
var debug = require_src()("body-parser:urlencoded");
|
|
11627
9853
|
var read = require_read();
|
|
11628
|
-
var qs =
|
|
9854
|
+
var qs = require_lib();
|
|
11629
9855
|
var { normalizeOptions } = require_utils();
|
|
11630
9856
|
module.exports = urlencoded;
|
|
11631
9857
|
function urlencoded(options) {
|
|
@@ -11798,26 +10024,26 @@ var require_escape_html = __commonJS({
|
|
|
11798
10024
|
if (!match) {
|
|
11799
10025
|
return str;
|
|
11800
10026
|
}
|
|
11801
|
-
var
|
|
10027
|
+
var escape;
|
|
11802
10028
|
var html = "";
|
|
11803
10029
|
var index = 0;
|
|
11804
10030
|
var lastIndex = 0;
|
|
11805
10031
|
for (index = match.index; index < str.length; index++) {
|
|
11806
10032
|
switch (str.charCodeAt(index)) {
|
|
11807
10033
|
case 34:
|
|
11808
|
-
|
|
10034
|
+
escape = """;
|
|
11809
10035
|
break;
|
|
11810
10036
|
case 38:
|
|
11811
|
-
|
|
10037
|
+
escape = "&";
|
|
11812
10038
|
break;
|
|
11813
10039
|
case 39:
|
|
11814
|
-
|
|
10040
|
+
escape = "'";
|
|
11815
10041
|
break;
|
|
11816
10042
|
case 60:
|
|
11817
|
-
|
|
10043
|
+
escape = "<";
|
|
11818
10044
|
break;
|
|
11819
10045
|
case 62:
|
|
11820
|
-
|
|
10046
|
+
escape = ">";
|
|
11821
10047
|
break;
|
|
11822
10048
|
default:
|
|
11823
10049
|
continue;
|
|
@@ -11826,7 +10052,7 @@ var require_escape_html = __commonJS({
|
|
|
11826
10052
|
html += str.substring(lastIndex, index);
|
|
11827
10053
|
}
|
|
11828
10054
|
lastIndex = index + 1;
|
|
11829
|
-
html +=
|
|
10055
|
+
html += escape;
|
|
11830
10056
|
}
|
|
11831
10057
|
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
|
11832
10058
|
}
|
|
@@ -13051,7 +11277,7 @@ var require_proxy_addr = __commonJS({
|
|
|
13051
11277
|
});
|
|
13052
11278
|
|
|
13053
11279
|
// node_modules/express/lib/utils.js
|
|
13054
|
-
var
|
|
11280
|
+
var require_utils2 = __commonJS({
|
|
13055
11281
|
"node_modules/express/lib/utils.js"(exports) {
|
|
13056
11282
|
"use strict";
|
|
13057
11283
|
init_esbuild_shims();
|
|
@@ -13060,7 +11286,7 @@ var require_utils3 = __commonJS({
|
|
|
13060
11286
|
var etag = require_etag();
|
|
13061
11287
|
var mime = require_mime_types();
|
|
13062
11288
|
var proxyaddr = require_proxy_addr();
|
|
13063
|
-
var qs =
|
|
11289
|
+
var qs = require_lib();
|
|
13064
11290
|
var querystring = __require("node:querystring");
|
|
13065
11291
|
var { Buffer: Buffer2 } = __require("node:buffer");
|
|
13066
11292
|
exports.methods = METHODS.map((method) => method.toLowerCase());
|
|
@@ -13228,10 +11454,10 @@ var require_dist2 = __commonJS({
|
|
|
13228
11454
|
return str.replace(/[{}()\[\]+?!:*]/g, "\\$&");
|
|
13229
11455
|
}
|
|
13230
11456
|
__name(escapeText, "escapeText");
|
|
13231
|
-
function
|
|
11457
|
+
function escape(str) {
|
|
13232
11458
|
return str.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
13233
11459
|
}
|
|
13234
|
-
__name(
|
|
11460
|
+
__name(escape, "escape");
|
|
13235
11461
|
function* lexer(str) {
|
|
13236
11462
|
const chars = [...str];
|
|
13237
11463
|
let i = 0;
|
|
@@ -13484,8 +11710,8 @@ var require_dist2 = __commonJS({
|
|
|
13484
11710
|
}
|
|
13485
11711
|
let pattern = `^(?:${sources.join("|")})`;
|
|
13486
11712
|
if (trailing)
|
|
13487
|
-
pattern += `(?:${
|
|
13488
|
-
pattern += end ? "$" : `(?=${
|
|
11713
|
+
pattern += `(?:${escape(delimiter)}$)?`;
|
|
11714
|
+
pattern += end ? "$" : `(?=${escape(delimiter)}|$)`;
|
|
13489
11715
|
const regexp = new RegExp(pattern, flags);
|
|
13490
11716
|
return { regexp, keys };
|
|
13491
11717
|
}
|
|
@@ -13513,7 +11739,7 @@ var require_dist2 = __commonJS({
|
|
|
13513
11739
|
for (let i = 0; i < tokens.length; i++) {
|
|
13514
11740
|
const token = tokens[i];
|
|
13515
11741
|
if (token.type === "text") {
|
|
13516
|
-
result +=
|
|
11742
|
+
result += escape(token.value);
|
|
13517
11743
|
backtrack += token.value;
|
|
13518
11744
|
isSafeSegmentParam || (isSafeSegmentParam = token.value.includes(delimiter));
|
|
13519
11745
|
continue;
|
|
@@ -13539,13 +11765,13 @@ var require_dist2 = __commonJS({
|
|
|
13539
11765
|
function negate(delimiter, backtrack) {
|
|
13540
11766
|
if (backtrack.length < 2) {
|
|
13541
11767
|
if (delimiter.length < 2)
|
|
13542
|
-
return `[^${
|
|
13543
|
-
return `(?:(?!${
|
|
11768
|
+
return `[^${escape(delimiter + backtrack)}]`;
|
|
11769
|
+
return `(?:(?!${escape(delimiter)})[^${escape(backtrack)}])`;
|
|
13544
11770
|
}
|
|
13545
11771
|
if (delimiter.length < 2) {
|
|
13546
|
-
return `(?:(?!${
|
|
11772
|
+
return `(?:(?!${escape(backtrack)})[^${escape(delimiter)}])`;
|
|
13547
11773
|
}
|
|
13548
|
-
return `(?:(?!${
|
|
11774
|
+
return `(?:(?!${escape(backtrack)}|${escape(delimiter)})[\\s\\S])`;
|
|
13549
11775
|
}
|
|
13550
11776
|
__name(negate, "negate");
|
|
13551
11777
|
function stringify(data) {
|
|
@@ -14284,10 +12510,10 @@ var require_application = __commonJS({
|
|
|
14284
12510
|
var debug = require_src()("express:application");
|
|
14285
12511
|
var View = require_view();
|
|
14286
12512
|
var http = __require("node:http");
|
|
14287
|
-
var methods =
|
|
14288
|
-
var compileETag =
|
|
14289
|
-
var compileQueryParser =
|
|
14290
|
-
var compileTrust =
|
|
12513
|
+
var methods = require_utils2().methods;
|
|
12514
|
+
var compileETag = require_utils2().compileETag;
|
|
12515
|
+
var compileQueryParser = require_utils2().compileQueryParser;
|
|
12516
|
+
var compileTrust = require_utils2().compileTrust;
|
|
14291
12517
|
var resolve6 = __require("node:path").resolve;
|
|
14292
12518
|
var once = require_once();
|
|
14293
12519
|
var Router = require_router();
|
|
@@ -16505,9 +14731,9 @@ var require_response = __commonJS({
|
|
|
16505
14731
|
var pathIsAbsolute = __require("node:path").isAbsolute;
|
|
16506
14732
|
var statuses = require_statuses();
|
|
16507
14733
|
var sign = require_cookie_signature().sign;
|
|
16508
|
-
var normalizeType =
|
|
16509
|
-
var normalizeTypes =
|
|
16510
|
-
var setCharset =
|
|
14734
|
+
var normalizeType = require_utils2().normalizeType;
|
|
14735
|
+
var normalizeTypes = require_utils2().normalizeTypes;
|
|
14736
|
+
var setCharset = require_utils2().setCharset;
|
|
16511
14737
|
var cookie = require_cookie();
|
|
16512
14738
|
var send = require_send();
|
|
16513
14739
|
var extname = path11.extname;
|
|
@@ -16615,10 +14841,10 @@ var require_response = __commonJS({
|
|
|
16615
14841
|
}, "send");
|
|
16616
14842
|
res.json = /* @__PURE__ */ __name(function json(obj) {
|
|
16617
14843
|
var app = this.app;
|
|
16618
|
-
var
|
|
14844
|
+
var escape = app.get("json escape");
|
|
16619
14845
|
var replacer = app.get("json replacer");
|
|
16620
14846
|
var spaces = app.get("json spaces");
|
|
16621
|
-
var body = stringify(obj, replacer, spaces,
|
|
14847
|
+
var body = stringify(obj, replacer, spaces, escape);
|
|
16622
14848
|
if (!this.get("Content-Type")) {
|
|
16623
14849
|
this.set("Content-Type", "application/json");
|
|
16624
14850
|
}
|
|
@@ -16626,10 +14852,10 @@ var require_response = __commonJS({
|
|
|
16626
14852
|
}, "json");
|
|
16627
14853
|
res.jsonp = /* @__PURE__ */ __name(function jsonp(obj) {
|
|
16628
14854
|
var app = this.app;
|
|
16629
|
-
var
|
|
14855
|
+
var escape = app.get("json escape");
|
|
16630
14856
|
var replacer = app.get("json replacer");
|
|
16631
14857
|
var spaces = app.get("json spaces");
|
|
16632
|
-
var body = stringify(obj, replacer, spaces,
|
|
14858
|
+
var body = stringify(obj, replacer, spaces, escape);
|
|
16633
14859
|
var callback = this.req.query[app.get("jsonp callback name")];
|
|
16634
14860
|
if (!this.get("Content-Type")) {
|
|
16635
14861
|
this.set("X-Content-Type-Options", "nosniff");
|
|
@@ -16945,9 +15171,9 @@ var require_response = __commonJS({
|
|
|
16945
15171
|
file.pipe(res2);
|
|
16946
15172
|
}
|
|
16947
15173
|
__name(sendfile, "sendfile");
|
|
16948
|
-
function stringify(value, replacer, spaces,
|
|
15174
|
+
function stringify(value, replacer, spaces, escape) {
|
|
16949
15175
|
var json = replacer || spaces ? JSON.stringify(value, replacer, spaces) : JSON.stringify(value);
|
|
16950
|
-
if (
|
|
15176
|
+
if (escape && typeof json === "string") {
|
|
16951
15177
|
json = json.replace(/[<>&]/g, function(c) {
|
|
16952
15178
|
switch (c.charCodeAt(0)) {
|
|
16953
15179
|
case 60:
|