@tonyclaw/agent-inspector 3.0.16 → 3.0.18
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/.output/nitro.json +1 -1
- package/.output/public/assets/{CompareDrawer-BJmxAiM0.js → CompareDrawer-Daj03-RL.js} +1 -1
- package/.output/public/assets/ProxyViewerContainer-BLCRQtU_.js +106 -0
- package/.output/public/assets/{ReplayDialog-CkLdOMJr.js → ReplayDialog-5FR5crdo.js} +1 -1
- package/.output/public/assets/{RequestAnatomy-DemOFfSc.js → RequestAnatomy-DF0hHdQY.js} +1 -1
- package/.output/public/assets/{ResponseView-9LhpuDo7.js → ResponseView-BwkMSsUa.js} +2 -2
- package/.output/public/assets/{StreamingChunkSequence-RRWYBOdz.js → StreamingChunkSequence-CKeUd58x.js} +1 -1
- package/.output/public/assets/{_sessionId-CWEh2Jsn.js → _sessionId-CThgXa41.js} +1 -1
- package/.output/public/assets/index-BHXN1Fsx.css +1 -0
- package/.output/public/assets/{index-Lwir70Rs.js → index-ClQ7Vi3J.js} +1 -1
- package/.output/public/assets/{index-hjNWJZGE.js → index-gm3A0idN.js} +1 -1
- package/.output/public/assets/{json-viewer-D8gvbDlB.js → json-viewer-BA-W-PZq.js} +1 -1
- package/.output/public/assets/{main-ovrz0tyD.js → main-BnRC1932.js} +2 -2
- package/.output/server/_libs/@opentelemetry/semantic-conventions+[...].mjs +2658 -0
- package/.output/server/_libs/agent-base.mjs +234 -0
- package/.output/server/_libs/anthropic-ai__sdk.mjs +6042 -0
- package/.output/server/_libs/atomically.mjs +3 -0
- package/.output/server/_libs/base64-js.mjs +102 -0
- package/.output/server/_libs/bignumber.js.mjs +1353 -0
- package/.output/server/_libs/buffer-equal-constant-time.mjs +38 -0
- package/.output/server/_libs/data-uri-to-buffer.mjs +39 -0
- package/.output/server/_libs/debug.mjs +547 -0
- package/.output/server/_libs/ecdsa-sig-formatter.mjs +162 -0
- package/.output/server/_libs/extend.mjs +2 -1
- package/.output/server/_libs/fetch-blob.mjs +287 -0
- package/.output/server/_libs/formdata-polyfill.mjs +88 -0
- package/.output/server/_libs/gaxios.mjs +927 -0
- package/.output/server/_libs/gcp-metadata.mjs +322 -0
- package/.output/server/_libs/google-auth-library.mjs +6339 -0
- package/.output/server/_libs/google-logging-utils.mjs +385 -0
- package/.output/server/_libs/google__genai.mjs +18034 -0
- package/.output/server/_libs/has-flag.mjs +16 -0
- package/.output/server/_libs/https-proxy-agent.mjs +280 -0
- package/.output/server/_libs/json-bigint.mjs +413 -0
- package/.output/server/_libs/jwa.mjs +233 -0
- package/.output/server/_libs/jws.mjs +298 -0
- package/.output/server/_libs/lucide-react.mjs +261 -226
- package/.output/server/_libs/mariozechner__pi-agent-core.mjs +824 -0
- package/.output/server/_libs/mariozechner__pi-ai.mjs +22889 -0
- package/.output/server/_libs/mistralai__mistralai.mjs +32045 -0
- package/.output/server/_libs/ms.mjs +120 -0
- package/.output/server/_libs/node-domexception.mjs +17 -0
- package/.output/server/_libs/node-fetch.mjs +1578 -0
- package/.output/server/_libs/ohash.mjs +1 -1
- package/.output/server/_libs/openai.mjs +6766 -0
- package/.output/server/_libs/opentelemetry__api.mjs +1678 -0
- package/.output/server/_libs/p-retry.mjs +87 -0
- package/.output/server/_libs/partial-json.mjs +244 -0
- package/.output/server/_libs/react-dom.mjs +5 -5
- package/.output/server/_libs/react-markdown.mjs +2 -2
- package/.output/server/_libs/react.mjs +30 -0
- package/.output/server/_libs/readable-stream.mjs +5 -5
- package/.output/server/_libs/retry.mjs +236 -0
- package/.output/server/_libs/safe-buffer.mjs +63 -1
- package/.output/server/_libs/srvx.mjs +2 -2
- package/.output/server/_libs/supports-color.mjs +108 -0
- package/.output/server/_libs/tanstack__router-core.mjs +1 -1
- package/.output/server/_libs/typebox.mjs +6596 -0
- package/.output/server/_libs/util-deprecate.mjs +2 -2
- package/.output/server/_libs/vfile.mjs +2 -2
- package/.output/server/_libs/web-streams-polyfill.mjs +4282 -0
- package/.output/server/_libs/ws.mjs +3715 -0
- package/.output/server/_libs/zod-to-json-schema.mjs +1207 -0
- package/.output/server/_libs/zod.mjs +597 -9
- package/.output/server/{_sessionId-zI_GFX_7.mjs → _sessionId-Bi3ZIrqT.mjs} +14 -13
- package/.output/server/_ssr/{CompareDrawer-Ckcx1RVu.mjs → CompareDrawer-BYZS_hCR.mjs} +14 -13
- package/.output/server/_ssr/{ProxyViewerContainer-BgXewlIr.mjs → ProxyViewerContainer-BE4umfVs.mjs} +205 -106
- package/.output/server/_ssr/{ReplayDialog-wx3nDtZn.mjs → ReplayDialog-BlID2ZH4.mjs} +15 -14
- package/.output/server/_ssr/{RequestAnatomy-DN80zt0G.mjs → RequestAnatomy-CGJ2lkzT.mjs} +14 -13
- package/.output/server/_ssr/{ResponseView-DD7rTu_l.mjs → ResponseView-DDjcGf7M.mjs} +14 -13
- package/.output/server/_ssr/{StreamingChunkSequence-DAgz6Vvw.mjs → StreamingChunkSequence-G7B8M5G2.mjs} +14 -13
- package/.output/server/_ssr/{index-dcTjp8du.mjs → index-ClQ9FvRJ.mjs} +13 -12
- package/.output/server/_ssr/index.mjs +4 -4
- package/.output/server/_ssr/{json-viewer-N2cuzGWR.mjs → json-viewer-CFbpkiBJ.mjs} +14 -13
- package/.output/server/_ssr/{router-BfQ0QsD5.mjs → router-Cq8LEvhE.mjs} +523 -97
- package/.output/server/_tanstack-start-manifest_v-p7J0QCMh.mjs +4 -0
- package/.output/server/index.mjs +75 -75
- package/package.json +4 -1
- package/src/components/ProxyViewer.tsx +3 -0
- package/src/components/pi-agent/PiAgentPanel.tsx +204 -0
- package/src/components/proxy-viewer/LogEntry.tsx +54 -19
- package/src/components/proxy-viewer/logEntryVisibility.ts +22 -0
- package/src/lib/piAgentContract.ts +21 -0
- package/src/routes/api/pi-agent.ts +29 -0
- package/src/services/piAgent.ts +390 -0
- package/.output/public/assets/ProxyViewerContainer-C40Nig73.js +0 -106
- package/.output/public/assets/index-HRfrFVYw.css +0 -1
- package/.output/server/_tanstack-start-manifest_v-BXnYrbcJ.mjs +0 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import require$$0 from "buffer";
|
|
2
|
+
var bufferEqualConstantTime;
|
|
3
|
+
var hasRequiredBufferEqualConstantTime;
|
|
4
|
+
function requireBufferEqualConstantTime() {
|
|
5
|
+
if (hasRequiredBufferEqualConstantTime) return bufferEqualConstantTime;
|
|
6
|
+
hasRequiredBufferEqualConstantTime = 1;
|
|
7
|
+
var Buffer = require$$0.Buffer;
|
|
8
|
+
var SlowBuffer = require$$0.SlowBuffer;
|
|
9
|
+
bufferEqualConstantTime = bufferEq;
|
|
10
|
+
function bufferEq(a, b) {
|
|
11
|
+
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (a.length !== b.length) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
var c = 0;
|
|
18
|
+
for (var i = 0; i < a.length; i++) {
|
|
19
|
+
c |= a[i] ^ b[i];
|
|
20
|
+
}
|
|
21
|
+
return c === 0;
|
|
22
|
+
}
|
|
23
|
+
bufferEq.install = function() {
|
|
24
|
+
Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) {
|
|
25
|
+
return bufferEq(this, that);
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
var origBufEqual = Buffer.prototype.equal;
|
|
29
|
+
var origSlowBufEqual = SlowBuffer.prototype.equal;
|
|
30
|
+
bufferEq.restore = function() {
|
|
31
|
+
Buffer.prototype.equal = origBufEqual;
|
|
32
|
+
SlowBuffer.prototype.equal = origSlowBufEqual;
|
|
33
|
+
};
|
|
34
|
+
return bufferEqualConstantTime;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
requireBufferEqualConstantTime as r
|
|
38
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function dataUriToBuffer(uri) {
|
|
2
|
+
if (!/^data:/i.test(uri)) {
|
|
3
|
+
throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');
|
|
4
|
+
}
|
|
5
|
+
uri = uri.replace(/\r?\n/g, "");
|
|
6
|
+
const firstComma = uri.indexOf(",");
|
|
7
|
+
if (firstComma === -1 || firstComma <= 4) {
|
|
8
|
+
throw new TypeError("malformed data: URI");
|
|
9
|
+
}
|
|
10
|
+
const meta = uri.substring(5, firstComma).split(";");
|
|
11
|
+
let charset = "";
|
|
12
|
+
let base64 = false;
|
|
13
|
+
const type = meta[0] || "text/plain";
|
|
14
|
+
let typeFull = type;
|
|
15
|
+
for (let i = 1; i < meta.length; i++) {
|
|
16
|
+
if (meta[i] === "base64") {
|
|
17
|
+
base64 = true;
|
|
18
|
+
} else if (meta[i]) {
|
|
19
|
+
typeFull += `;${meta[i]}`;
|
|
20
|
+
if (meta[i].indexOf("charset=") === 0) {
|
|
21
|
+
charset = meta[i].substring(8);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (!meta[0] && !charset.length) {
|
|
26
|
+
typeFull += ";charset=US-ASCII";
|
|
27
|
+
charset = "US-ASCII";
|
|
28
|
+
}
|
|
29
|
+
const encoding = base64 ? "base64" : "ascii";
|
|
30
|
+
const data = unescape(uri.substring(firstComma + 1));
|
|
31
|
+
const buffer = Buffer.from(data, encoding);
|
|
32
|
+
buffer.type = type;
|
|
33
|
+
buffer.typeFull = typeFull;
|
|
34
|
+
buffer.charset = charset;
|
|
35
|
+
return buffer;
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
dataUriToBuffer as d
|
|
39
|
+
};
|
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import { r as requireMs } from "./ms.mjs";
|
|
2
|
+
import require$$1 from "tty";
|
|
3
|
+
import require$$2 from "util";
|
|
4
|
+
import { r as requireSupportsColor } from "./supports-color.mjs";
|
|
5
|
+
var src = { exports: {} };
|
|
6
|
+
var browser = { exports: {} };
|
|
7
|
+
var common;
|
|
8
|
+
var hasRequiredCommon;
|
|
9
|
+
function requireCommon() {
|
|
10
|
+
if (hasRequiredCommon) return common;
|
|
11
|
+
hasRequiredCommon = 1;
|
|
12
|
+
function setup(env) {
|
|
13
|
+
createDebug.debug = createDebug;
|
|
14
|
+
createDebug.default = createDebug;
|
|
15
|
+
createDebug.coerce = coerce;
|
|
16
|
+
createDebug.disable = disable;
|
|
17
|
+
createDebug.enable = enable;
|
|
18
|
+
createDebug.enabled = enabled;
|
|
19
|
+
createDebug.humanize = requireMs();
|
|
20
|
+
createDebug.destroy = destroy;
|
|
21
|
+
Object.keys(env).forEach((key) => {
|
|
22
|
+
createDebug[key] = env[key];
|
|
23
|
+
});
|
|
24
|
+
createDebug.names = [];
|
|
25
|
+
createDebug.skips = [];
|
|
26
|
+
createDebug.formatters = {};
|
|
27
|
+
function selectColor(namespace) {
|
|
28
|
+
let hash = 0;
|
|
29
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
30
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
31
|
+
hash |= 0;
|
|
32
|
+
}
|
|
33
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
34
|
+
}
|
|
35
|
+
createDebug.selectColor = selectColor;
|
|
36
|
+
function createDebug(namespace) {
|
|
37
|
+
let prevTime;
|
|
38
|
+
let enableOverride = null;
|
|
39
|
+
let namespacesCache;
|
|
40
|
+
let enabledCache;
|
|
41
|
+
function debug(...args) {
|
|
42
|
+
if (!debug.enabled) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const self = debug;
|
|
46
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
47
|
+
const ms = curr - (prevTime || curr);
|
|
48
|
+
self.diff = ms;
|
|
49
|
+
self.prev = prevTime;
|
|
50
|
+
self.curr = curr;
|
|
51
|
+
prevTime = curr;
|
|
52
|
+
args[0] = createDebug.coerce(args[0]);
|
|
53
|
+
if (typeof args[0] !== "string") {
|
|
54
|
+
args.unshift("%O");
|
|
55
|
+
}
|
|
56
|
+
let index = 0;
|
|
57
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
58
|
+
if (match === "%%") {
|
|
59
|
+
return "%";
|
|
60
|
+
}
|
|
61
|
+
index++;
|
|
62
|
+
const formatter = createDebug.formatters[format];
|
|
63
|
+
if (typeof formatter === "function") {
|
|
64
|
+
const val = args[index];
|
|
65
|
+
match = formatter.call(self, val);
|
|
66
|
+
args.splice(index, 1);
|
|
67
|
+
index--;
|
|
68
|
+
}
|
|
69
|
+
return match;
|
|
70
|
+
});
|
|
71
|
+
createDebug.formatArgs.call(self, args);
|
|
72
|
+
const logFn = self.log || createDebug.log;
|
|
73
|
+
logFn.apply(self, args);
|
|
74
|
+
}
|
|
75
|
+
debug.namespace = namespace;
|
|
76
|
+
debug.useColors = createDebug.useColors();
|
|
77
|
+
debug.color = createDebug.selectColor(namespace);
|
|
78
|
+
debug.extend = extend;
|
|
79
|
+
debug.destroy = createDebug.destroy;
|
|
80
|
+
Object.defineProperty(debug, "enabled", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
configurable: false,
|
|
83
|
+
get: () => {
|
|
84
|
+
if (enableOverride !== null) {
|
|
85
|
+
return enableOverride;
|
|
86
|
+
}
|
|
87
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
88
|
+
namespacesCache = createDebug.namespaces;
|
|
89
|
+
enabledCache = createDebug.enabled(namespace);
|
|
90
|
+
}
|
|
91
|
+
return enabledCache;
|
|
92
|
+
},
|
|
93
|
+
set: (v) => {
|
|
94
|
+
enableOverride = v;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
if (typeof createDebug.init === "function") {
|
|
98
|
+
createDebug.init(debug);
|
|
99
|
+
}
|
|
100
|
+
return debug;
|
|
101
|
+
}
|
|
102
|
+
function extend(namespace, delimiter) {
|
|
103
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
104
|
+
newDebug.log = this.log;
|
|
105
|
+
return newDebug;
|
|
106
|
+
}
|
|
107
|
+
function enable(namespaces) {
|
|
108
|
+
createDebug.save(namespaces);
|
|
109
|
+
createDebug.namespaces = namespaces;
|
|
110
|
+
createDebug.names = [];
|
|
111
|
+
createDebug.skips = [];
|
|
112
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
113
|
+
for (const ns of split) {
|
|
114
|
+
if (ns[0] === "-") {
|
|
115
|
+
createDebug.skips.push(ns.slice(1));
|
|
116
|
+
} else {
|
|
117
|
+
createDebug.names.push(ns);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function matchesTemplate(search, template) {
|
|
122
|
+
let searchIndex = 0;
|
|
123
|
+
let templateIndex = 0;
|
|
124
|
+
let starIndex = -1;
|
|
125
|
+
let matchIndex = 0;
|
|
126
|
+
while (searchIndex < search.length) {
|
|
127
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
128
|
+
if (template[templateIndex] === "*") {
|
|
129
|
+
starIndex = templateIndex;
|
|
130
|
+
matchIndex = searchIndex;
|
|
131
|
+
templateIndex++;
|
|
132
|
+
} else {
|
|
133
|
+
searchIndex++;
|
|
134
|
+
templateIndex++;
|
|
135
|
+
}
|
|
136
|
+
} else if (starIndex !== -1) {
|
|
137
|
+
templateIndex = starIndex + 1;
|
|
138
|
+
matchIndex++;
|
|
139
|
+
searchIndex = matchIndex;
|
|
140
|
+
} else {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
145
|
+
templateIndex++;
|
|
146
|
+
}
|
|
147
|
+
return templateIndex === template.length;
|
|
148
|
+
}
|
|
149
|
+
function disable() {
|
|
150
|
+
const namespaces = [
|
|
151
|
+
...createDebug.names,
|
|
152
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
153
|
+
].join(",");
|
|
154
|
+
createDebug.enable("");
|
|
155
|
+
return namespaces;
|
|
156
|
+
}
|
|
157
|
+
function enabled(name) {
|
|
158
|
+
for (const skip of createDebug.skips) {
|
|
159
|
+
if (matchesTemplate(name, skip)) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
for (const ns of createDebug.names) {
|
|
164
|
+
if (matchesTemplate(name, ns)) {
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
function coerce(val) {
|
|
171
|
+
if (val instanceof Error) {
|
|
172
|
+
return val.stack || val.message;
|
|
173
|
+
}
|
|
174
|
+
return val;
|
|
175
|
+
}
|
|
176
|
+
function destroy() {
|
|
177
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
178
|
+
}
|
|
179
|
+
createDebug.enable(createDebug.load());
|
|
180
|
+
return createDebug;
|
|
181
|
+
}
|
|
182
|
+
common = setup;
|
|
183
|
+
return common;
|
|
184
|
+
}
|
|
185
|
+
var hasRequiredBrowser;
|
|
186
|
+
function requireBrowser() {
|
|
187
|
+
if (hasRequiredBrowser) return browser.exports;
|
|
188
|
+
hasRequiredBrowser = 1;
|
|
189
|
+
(function(module, exports$1) {
|
|
190
|
+
exports$1.formatArgs = formatArgs;
|
|
191
|
+
exports$1.save = save;
|
|
192
|
+
exports$1.load = load;
|
|
193
|
+
exports$1.useColors = useColors;
|
|
194
|
+
exports$1.storage = localstorage();
|
|
195
|
+
exports$1.destroy = /* @__PURE__ */ (() => {
|
|
196
|
+
let warned = false;
|
|
197
|
+
return () => {
|
|
198
|
+
if (!warned) {
|
|
199
|
+
warned = true;
|
|
200
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
})();
|
|
204
|
+
exports$1.colors = [
|
|
205
|
+
"#0000CC",
|
|
206
|
+
"#0000FF",
|
|
207
|
+
"#0033CC",
|
|
208
|
+
"#0033FF",
|
|
209
|
+
"#0066CC",
|
|
210
|
+
"#0066FF",
|
|
211
|
+
"#0099CC",
|
|
212
|
+
"#0099FF",
|
|
213
|
+
"#00CC00",
|
|
214
|
+
"#00CC33",
|
|
215
|
+
"#00CC66",
|
|
216
|
+
"#00CC99",
|
|
217
|
+
"#00CCCC",
|
|
218
|
+
"#00CCFF",
|
|
219
|
+
"#3300CC",
|
|
220
|
+
"#3300FF",
|
|
221
|
+
"#3333CC",
|
|
222
|
+
"#3333FF",
|
|
223
|
+
"#3366CC",
|
|
224
|
+
"#3366FF",
|
|
225
|
+
"#3399CC",
|
|
226
|
+
"#3399FF",
|
|
227
|
+
"#33CC00",
|
|
228
|
+
"#33CC33",
|
|
229
|
+
"#33CC66",
|
|
230
|
+
"#33CC99",
|
|
231
|
+
"#33CCCC",
|
|
232
|
+
"#33CCFF",
|
|
233
|
+
"#6600CC",
|
|
234
|
+
"#6600FF",
|
|
235
|
+
"#6633CC",
|
|
236
|
+
"#6633FF",
|
|
237
|
+
"#66CC00",
|
|
238
|
+
"#66CC33",
|
|
239
|
+
"#9900CC",
|
|
240
|
+
"#9900FF",
|
|
241
|
+
"#9933CC",
|
|
242
|
+
"#9933FF",
|
|
243
|
+
"#99CC00",
|
|
244
|
+
"#99CC33",
|
|
245
|
+
"#CC0000",
|
|
246
|
+
"#CC0033",
|
|
247
|
+
"#CC0066",
|
|
248
|
+
"#CC0099",
|
|
249
|
+
"#CC00CC",
|
|
250
|
+
"#CC00FF",
|
|
251
|
+
"#CC3300",
|
|
252
|
+
"#CC3333",
|
|
253
|
+
"#CC3366",
|
|
254
|
+
"#CC3399",
|
|
255
|
+
"#CC33CC",
|
|
256
|
+
"#CC33FF",
|
|
257
|
+
"#CC6600",
|
|
258
|
+
"#CC6633",
|
|
259
|
+
"#CC9900",
|
|
260
|
+
"#CC9933",
|
|
261
|
+
"#CCCC00",
|
|
262
|
+
"#CCCC33",
|
|
263
|
+
"#FF0000",
|
|
264
|
+
"#FF0033",
|
|
265
|
+
"#FF0066",
|
|
266
|
+
"#FF0099",
|
|
267
|
+
"#FF00CC",
|
|
268
|
+
"#FF00FF",
|
|
269
|
+
"#FF3300",
|
|
270
|
+
"#FF3333",
|
|
271
|
+
"#FF3366",
|
|
272
|
+
"#FF3399",
|
|
273
|
+
"#FF33CC",
|
|
274
|
+
"#FF33FF",
|
|
275
|
+
"#FF6600",
|
|
276
|
+
"#FF6633",
|
|
277
|
+
"#FF9900",
|
|
278
|
+
"#FF9933",
|
|
279
|
+
"#FFCC00",
|
|
280
|
+
"#FFCC33"
|
|
281
|
+
];
|
|
282
|
+
function useColors() {
|
|
283
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
284
|
+
return true;
|
|
285
|
+
}
|
|
286
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
let m;
|
|
290
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
291
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
292
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
293
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
294
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
295
|
+
}
|
|
296
|
+
function formatArgs(args) {
|
|
297
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
298
|
+
if (!this.useColors) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
const c = "color: " + this.color;
|
|
302
|
+
args.splice(1, 0, c, "color: inherit");
|
|
303
|
+
let index = 0;
|
|
304
|
+
let lastC = 0;
|
|
305
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
306
|
+
if (match === "%%") {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
index++;
|
|
310
|
+
if (match === "%c") {
|
|
311
|
+
lastC = index;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
args.splice(lastC, 0, c);
|
|
315
|
+
}
|
|
316
|
+
exports$1.log = console.debug || console.log || (() => {
|
|
317
|
+
});
|
|
318
|
+
function save(namespaces) {
|
|
319
|
+
try {
|
|
320
|
+
if (namespaces) {
|
|
321
|
+
exports$1.storage.setItem("debug", namespaces);
|
|
322
|
+
} else {
|
|
323
|
+
exports$1.storage.removeItem("debug");
|
|
324
|
+
}
|
|
325
|
+
} catch (error) {
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function load() {
|
|
329
|
+
let r;
|
|
330
|
+
try {
|
|
331
|
+
r = exports$1.storage.getItem("debug") || exports$1.storage.getItem("DEBUG");
|
|
332
|
+
} catch (error) {
|
|
333
|
+
}
|
|
334
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
335
|
+
r = process.env.DEBUG;
|
|
336
|
+
}
|
|
337
|
+
return r;
|
|
338
|
+
}
|
|
339
|
+
function localstorage() {
|
|
340
|
+
try {
|
|
341
|
+
return localStorage;
|
|
342
|
+
} catch (error) {
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
module.exports = requireCommon()(exports$1);
|
|
346
|
+
const { formatters } = module.exports;
|
|
347
|
+
formatters.j = function(v) {
|
|
348
|
+
try {
|
|
349
|
+
return JSON.stringify(v);
|
|
350
|
+
} catch (error) {
|
|
351
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
})(browser, browser.exports);
|
|
355
|
+
return browser.exports;
|
|
356
|
+
}
|
|
357
|
+
var node = { exports: {} };
|
|
358
|
+
var hasRequiredNode;
|
|
359
|
+
function requireNode() {
|
|
360
|
+
if (hasRequiredNode) return node.exports;
|
|
361
|
+
hasRequiredNode = 1;
|
|
362
|
+
(function(module, exports$1) {
|
|
363
|
+
const tty = require$$1;
|
|
364
|
+
const util = require$$2;
|
|
365
|
+
exports$1.init = init;
|
|
366
|
+
exports$1.log = log;
|
|
367
|
+
exports$1.formatArgs = formatArgs;
|
|
368
|
+
exports$1.save = save;
|
|
369
|
+
exports$1.load = load;
|
|
370
|
+
exports$1.useColors = useColors;
|
|
371
|
+
exports$1.destroy = util.deprecate(
|
|
372
|
+
() => {
|
|
373
|
+
},
|
|
374
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
375
|
+
);
|
|
376
|
+
exports$1.colors = [6, 2, 3, 4, 5, 1];
|
|
377
|
+
try {
|
|
378
|
+
const supportsColor = requireSupportsColor();
|
|
379
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
380
|
+
exports$1.colors = [
|
|
381
|
+
20,
|
|
382
|
+
21,
|
|
383
|
+
26,
|
|
384
|
+
27,
|
|
385
|
+
32,
|
|
386
|
+
33,
|
|
387
|
+
38,
|
|
388
|
+
39,
|
|
389
|
+
40,
|
|
390
|
+
41,
|
|
391
|
+
42,
|
|
392
|
+
43,
|
|
393
|
+
44,
|
|
394
|
+
45,
|
|
395
|
+
56,
|
|
396
|
+
57,
|
|
397
|
+
62,
|
|
398
|
+
63,
|
|
399
|
+
68,
|
|
400
|
+
69,
|
|
401
|
+
74,
|
|
402
|
+
75,
|
|
403
|
+
76,
|
|
404
|
+
77,
|
|
405
|
+
78,
|
|
406
|
+
79,
|
|
407
|
+
80,
|
|
408
|
+
81,
|
|
409
|
+
92,
|
|
410
|
+
93,
|
|
411
|
+
98,
|
|
412
|
+
99,
|
|
413
|
+
112,
|
|
414
|
+
113,
|
|
415
|
+
128,
|
|
416
|
+
129,
|
|
417
|
+
134,
|
|
418
|
+
135,
|
|
419
|
+
148,
|
|
420
|
+
149,
|
|
421
|
+
160,
|
|
422
|
+
161,
|
|
423
|
+
162,
|
|
424
|
+
163,
|
|
425
|
+
164,
|
|
426
|
+
165,
|
|
427
|
+
166,
|
|
428
|
+
167,
|
|
429
|
+
168,
|
|
430
|
+
169,
|
|
431
|
+
170,
|
|
432
|
+
171,
|
|
433
|
+
172,
|
|
434
|
+
173,
|
|
435
|
+
178,
|
|
436
|
+
179,
|
|
437
|
+
184,
|
|
438
|
+
185,
|
|
439
|
+
196,
|
|
440
|
+
197,
|
|
441
|
+
198,
|
|
442
|
+
199,
|
|
443
|
+
200,
|
|
444
|
+
201,
|
|
445
|
+
202,
|
|
446
|
+
203,
|
|
447
|
+
204,
|
|
448
|
+
205,
|
|
449
|
+
206,
|
|
450
|
+
207,
|
|
451
|
+
208,
|
|
452
|
+
209,
|
|
453
|
+
214,
|
|
454
|
+
215,
|
|
455
|
+
220,
|
|
456
|
+
221
|
|
457
|
+
];
|
|
458
|
+
}
|
|
459
|
+
} catch (error) {
|
|
460
|
+
}
|
|
461
|
+
exports$1.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
462
|
+
return /^debug_/i.test(key);
|
|
463
|
+
}).reduce((obj, key) => {
|
|
464
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
465
|
+
return k.toUpperCase();
|
|
466
|
+
});
|
|
467
|
+
let val = process.env[key];
|
|
468
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
469
|
+
val = true;
|
|
470
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
471
|
+
val = false;
|
|
472
|
+
} else if (val === "null") {
|
|
473
|
+
val = null;
|
|
474
|
+
} else {
|
|
475
|
+
val = Number(val);
|
|
476
|
+
}
|
|
477
|
+
obj[prop] = val;
|
|
478
|
+
return obj;
|
|
479
|
+
}, {});
|
|
480
|
+
function useColors() {
|
|
481
|
+
return "colors" in exports$1.inspectOpts ? Boolean(exports$1.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
482
|
+
}
|
|
483
|
+
function formatArgs(args) {
|
|
484
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
485
|
+
if (useColors2) {
|
|
486
|
+
const c = this.color;
|
|
487
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
488
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
489
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
490
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
491
|
+
} else {
|
|
492
|
+
args[0] = getDate() + name + " " + args[0];
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
function getDate() {
|
|
496
|
+
if (exports$1.inspectOpts.hideDate) {
|
|
497
|
+
return "";
|
|
498
|
+
}
|
|
499
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
500
|
+
}
|
|
501
|
+
function log(...args) {
|
|
502
|
+
return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + "\n");
|
|
503
|
+
}
|
|
504
|
+
function save(namespaces) {
|
|
505
|
+
if (namespaces) {
|
|
506
|
+
process.env.DEBUG = namespaces;
|
|
507
|
+
} else {
|
|
508
|
+
delete process.env.DEBUG;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function load() {
|
|
512
|
+
return process.env.DEBUG;
|
|
513
|
+
}
|
|
514
|
+
function init(debug) {
|
|
515
|
+
debug.inspectOpts = {};
|
|
516
|
+
const keys = Object.keys(exports$1.inspectOpts);
|
|
517
|
+
for (let i = 0; i < keys.length; i++) {
|
|
518
|
+
debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
module.exports = requireCommon()(exports$1);
|
|
522
|
+
const { formatters } = module.exports;
|
|
523
|
+
formatters.o = function(v) {
|
|
524
|
+
this.inspectOpts.colors = this.useColors;
|
|
525
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
526
|
+
};
|
|
527
|
+
formatters.O = function(v) {
|
|
528
|
+
this.inspectOpts.colors = this.useColors;
|
|
529
|
+
return util.inspect(v, this.inspectOpts);
|
|
530
|
+
};
|
|
531
|
+
})(node, node.exports);
|
|
532
|
+
return node.exports;
|
|
533
|
+
}
|
|
534
|
+
var hasRequiredSrc;
|
|
535
|
+
function requireSrc() {
|
|
536
|
+
if (hasRequiredSrc) return src.exports;
|
|
537
|
+
hasRequiredSrc = 1;
|
|
538
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
539
|
+
src.exports = requireBrowser();
|
|
540
|
+
} else {
|
|
541
|
+
src.exports = requireNode();
|
|
542
|
+
}
|
|
543
|
+
return src.exports;
|
|
544
|
+
}
|
|
545
|
+
export {
|
|
546
|
+
requireSrc as r
|
|
547
|
+
};
|