@tonyclaw/agent-inspector 4.0.8 → 4.0.9

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.
Files changed (119) hide show
  1. package/.output/backend/nitro.json +1 -1
  2. package/.output/cli.js +915 -25970
  3. package/.output/server/_chunks/ssr-renderer.mjs +1 -38
  4. package/.output/server/_libs/@opentelemetry/semantic-conventions+[...].mjs +1 -2658
  5. package/.output/server/_libs/agent-base.mjs +2 -234
  6. package/.output/server/_libs/ajv-formats.mjs +1 -330
  7. package/.output/server/_libs/ajv.mjs +8 -6080
  8. package/.output/server/_libs/anthropic-ai__sdk.mjs +19 -6021
  9. package/.output/server/_libs/atomically.mjs +1 -155
  10. package/.output/server/_libs/base64-js.mjs +1 -102
  11. package/.output/server/_libs/bignumber.js.mjs +1 -1353
  12. package/.output/server/_libs/buffer-equal-constant-time.mjs +1 -38
  13. package/.output/server/_libs/conf.mjs +1 -635
  14. package/.output/server/_libs/cookie-es.mjs +1 -44
  15. package/.output/server/_libs/core-util-is.mjs +1 -75
  16. package/.output/server/_libs/data-uri-to-buffer.mjs +1 -39
  17. package/.output/server/_libs/debounce-fn.mjs +1 -69
  18. package/.output/server/_libs/debug.mjs +5 -547
  19. package/.output/server/_libs/dot-prop.mjs +1 -265
  20. package/.output/server/_libs/ecdsa-sig-formatter.mjs +1 -162
  21. package/.output/server/_libs/env-paths.mjs +1 -57
  22. package/.output/server/_libs/extend.mjs +1 -94
  23. package/.output/server/_libs/fast-deep-equal.mjs +1 -38
  24. package/.output/server/_libs/fast-uri.mjs +1 -812
  25. package/.output/server/_libs/fetch-blob.mjs +1 -287
  26. package/.output/server/_libs/formdata-polyfill.mjs +9 -86
  27. package/.output/server/_libs/gaxios.mjs +5 -926
  28. package/.output/server/_libs/gcp-metadata.mjs +1 -322
  29. package/.output/server/_libs/google-auth-library.mjs +16 -6339
  30. package/.output/server/_libs/google-logging-utils.mjs +1 -385
  31. package/.output/server/_libs/google__genai.mjs +13 -18034
  32. package/.output/server/_libs/h3-v2.mjs +2 -287
  33. package/.output/server/_libs/h3.mjs +2 -408
  34. package/.output/server/_libs/has-flag.mjs +1 -16
  35. package/.output/server/_libs/https-proxy-agent.mjs +7 -280
  36. package/.output/server/_libs/immediate.mjs +1 -74
  37. package/.output/server/_libs/inherits.mjs +1 -50
  38. package/.output/server/_libs/isarray.mjs +1 -14
  39. package/.output/server/_libs/isbot.mjs +1 -20
  40. package/.output/server/_libs/json-bigint.mjs +8 -413
  41. package/.output/server/_libs/json-schema-traverse.mjs +1 -91
  42. package/.output/server/_libs/jszip.mjs +2 -3051
  43. package/.output/server/_libs/jwa.mjs +3 -233
  44. package/.output/server/_libs/jws.mjs +1 -298
  45. package/.output/server/_libs/lie.mjs +1 -273
  46. package/.output/server/_libs/mariozechner__pi-agent-core.mjs +1 -824
  47. package/.output/server/_libs/mariozechner__pi-ai.mjs +34 -22887
  48. package/.output/server/_libs/mimic-function.mjs +2 -47
  49. package/.output/server/_libs/mistralai__mistralai.mjs +7 -32045
  50. package/.output/server/_libs/modelcontextprotocol__core.mjs +1 -1121
  51. package/.output/server/_libs/modelcontextprotocol__server.mjs +13 -13205
  52. package/.output/server/_libs/ms.mjs +1 -120
  53. package/.output/server/_libs/node-domexception.mjs +1 -17
  54. package/.output/server/_libs/node-fetch.mjs +4 -1578
  55. package/.output/server/_libs/ohash.mjs +1 -1
  56. package/.output/server/_libs/openai.mjs +23 -6766
  57. package/.output/server/_libs/opentelemetry__api.mjs +1 -1678
  58. package/.output/server/_libs/p-retry.mjs +1 -87
  59. package/.output/server/_libs/pako.mjs +1 -4223
  60. package/.output/server/_libs/partial-json.mjs +2 -244
  61. package/.output/server/_libs/process-nextick-args.mjs +1 -48
  62. package/.output/server/_libs/react-dom.mjs +62 -10778
  63. package/.output/server/_libs/react.mjs +1 -519
  64. package/.output/server/_libs/readable-stream.mjs +1 -1518
  65. package/.output/server/_libs/retry.mjs +1 -236
  66. package/.output/server/_libs/rou3.mjs +1 -14
  67. package/.output/server/_libs/safe-buffer.mjs +1 -126
  68. package/.output/server/_libs/semver.mjs +1 -1938
  69. package/.output/server/_libs/seroval-plugins.mjs +1 -58
  70. package/.output/server/_libs/seroval.mjs +3 -1775
  71. package/.output/server/_libs/setimmediate.mjs +1 -152
  72. package/.output/server/_libs/srvx.mjs +4 -1390
  73. package/.output/server/_libs/stubborn-fs.mjs +1 -91
  74. package/.output/server/_libs/stubborn-utils.mjs +1 -66
  75. package/.output/server/_libs/supports-color.mjs +1 -108
  76. package/.output/server/_libs/tanstack__history.mjs +1 -230
  77. package/.output/server/_libs/tanstack__react-router.mjs +1 -848
  78. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  79. package/.output/server/_libs/tanstack__router-core.mjs +1 -4839
  80. package/.output/server/_libs/typebox.mjs +3 -6596
  81. package/.output/server/_libs/ufo.mjs +1 -54
  82. package/.output/server/_libs/uint8array-extras.mjs +1 -69
  83. package/.output/server/_libs/util-deprecate.mjs +1 -12
  84. package/.output/server/_libs/web-streams-polyfill.mjs +1 -4282
  85. package/.output/server/_libs/when-exit.mjs +1 -53
  86. package/.output/server/_libs/ws.mjs +7 -3715
  87. package/.output/server/_libs/zod-to-json-schema.mjs +5 -1207
  88. package/.output/server/_libs/zod.mjs +59 -9958
  89. package/.output/server/_ssr/empty-plugin-adapters-C3Q1xu4u.mjs +1 -0
  90. package/.output/server/_ssr/index.mjs +2 -1512
  91. package/.output/server/_ssr/publicBasePathContext--TAQS2_5.mjs +1 -0
  92. package/.output/server/_ssr/router-zSWaME0l.mjs +341 -0
  93. package/.output/server/_ssr/start-PDVGOqUN.mjs +1 -0
  94. package/.output/server/_tanstack-start-manifest_v-D7cKwKzM.mjs +1 -0
  95. package/.output/server/index.mjs +1 -320
  96. package/.output/ui/assets/{CompareDrawer-DafpfgaT.js → CompareDrawer-C6KvvPtJ.js} +1 -1
  97. package/.output/ui/assets/{InspectorPet-Brsmmfzx.js → InspectorPet-CSH6OAhB.js} +1 -1
  98. package/.output/ui/assets/{ProxyViewerContainer-D2pq1fUr.js → ProxyViewerContainer-vPd7g0Xn.js} +4 -4
  99. package/.output/ui/assets/{ReplayDialog-D4mXXgT9.js → ReplayDialog-DbXUcT39.js} +1 -1
  100. package/.output/ui/assets/{RequestAnatomy-Ccnsq12U.js → RequestAnatomy-BWOCIN7J.js} +1 -1
  101. package/.output/ui/assets/{ResponseView-CJv3vB5X.js → ResponseView-BqDbTzFs.js} +1 -1
  102. package/.output/ui/assets/{StreamingChunkSequence-CEkLnOF6.js → StreamingChunkSequence-UHl2g6w6.js} +1 -1
  103. package/.output/ui/assets/{_sessionId-DlG-yHoI.js → _sessionId-B2S61lDJ.js} +1 -1
  104. package/.output/ui/assets/{_sessionId-C7s68UH3.js → _sessionId-CS6hqj8-.js} +1 -1
  105. package/.output/ui/assets/{index-Cqh47jeU.js → index-C6V66rNI.js} +1 -1
  106. package/.output/ui/assets/{index-CFqnSirZ.js → index-DY5xBYHr.js} +1 -1
  107. package/.output/ui/assets/{index-B0NCZQ93.js → index-DgyIeqyV.js} +2 -2
  108. package/.output/ui/assets/{index-ChZZrVHa.js → index-HLs5jTyi.js} +1 -1
  109. package/.output/ui/assets/{json-viewer-DvpI0vbY.js → json-viewer-i5LcN8e7.js} +1 -1
  110. package/.output/ui/assets/{jszip.min-5AG8hW2c.js → jszip.min-yNpb9qnf.js} +1 -1
  111. package/.output/ui/index.html +1 -1
  112. package/.output/workers/logFinalizer.worker.js +41 -17739
  113. package/.output/workers/sessionWorkerEntry.js +41 -17735
  114. package/package.json +7 -7
  115. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +0 -6
  116. package/.output/server/_ssr/publicBasePathContext-IH2ilOfu.mjs +0 -176
  117. package/.output/server/_ssr/router-BDyF-OMB.mjs +0 -27187
  118. package/.output/server/_ssr/start-COQu_AgD.mjs +0 -57
  119. package/.output/server/_tanstack-start-manifest_v-ClTaMkEj.mjs +0 -4
@@ -1,236 +1 @@
1
- var retry$1 = {};
2
- var retry_operation;
3
- var hasRequiredRetry_operation;
4
- function requireRetry_operation() {
5
- if (hasRequiredRetry_operation) return retry_operation;
6
- hasRequiredRetry_operation = 1;
7
- function RetryOperation(timeouts, options) {
8
- if (typeof options === "boolean") {
9
- options = { forever: options };
10
- }
11
- this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
12
- this._timeouts = timeouts;
13
- this._options = options || {};
14
- this._maxRetryTime = options && options.maxRetryTime || Infinity;
15
- this._fn = null;
16
- this._errors = [];
17
- this._attempts = 1;
18
- this._operationTimeout = null;
19
- this._operationTimeoutCb = null;
20
- this._timeout = null;
21
- this._operationStart = null;
22
- this._timer = null;
23
- if (this._options.forever) {
24
- this._cachedTimeouts = this._timeouts.slice(0);
25
- }
26
- }
27
- retry_operation = RetryOperation;
28
- RetryOperation.prototype.reset = function() {
29
- this._attempts = 1;
30
- this._timeouts = this._originalTimeouts.slice(0);
31
- };
32
- RetryOperation.prototype.stop = function() {
33
- if (this._timeout) {
34
- clearTimeout(this._timeout);
35
- }
36
- if (this._timer) {
37
- clearTimeout(this._timer);
38
- }
39
- this._timeouts = [];
40
- this._cachedTimeouts = null;
41
- };
42
- RetryOperation.prototype.retry = function(err) {
43
- if (this._timeout) {
44
- clearTimeout(this._timeout);
45
- }
46
- if (!err) {
47
- return false;
48
- }
49
- var currentTime = (/* @__PURE__ */ new Date()).getTime();
50
- if (err && currentTime - this._operationStart >= this._maxRetryTime) {
51
- this._errors.push(err);
52
- this._errors.unshift(new Error("RetryOperation timeout occurred"));
53
- return false;
54
- }
55
- this._errors.push(err);
56
- var timeout = this._timeouts.shift();
57
- if (timeout === void 0) {
58
- if (this._cachedTimeouts) {
59
- this._errors.splice(0, this._errors.length - 1);
60
- timeout = this._cachedTimeouts.slice(-1);
61
- } else {
62
- return false;
63
- }
64
- }
65
- var self = this;
66
- this._timer = setTimeout(function() {
67
- self._attempts++;
68
- if (self._operationTimeoutCb) {
69
- self._timeout = setTimeout(function() {
70
- self._operationTimeoutCb(self._attempts);
71
- }, self._operationTimeout);
72
- if (self._options.unref) {
73
- self._timeout.unref();
74
- }
75
- }
76
- self._fn(self._attempts);
77
- }, timeout);
78
- if (this._options.unref) {
79
- this._timer.unref();
80
- }
81
- return true;
82
- };
83
- RetryOperation.prototype.attempt = function(fn, timeoutOps) {
84
- this._fn = fn;
85
- if (timeoutOps) {
86
- if (timeoutOps.timeout) {
87
- this._operationTimeout = timeoutOps.timeout;
88
- }
89
- if (timeoutOps.cb) {
90
- this._operationTimeoutCb = timeoutOps.cb;
91
- }
92
- }
93
- var self = this;
94
- if (this._operationTimeoutCb) {
95
- this._timeout = setTimeout(function() {
96
- self._operationTimeoutCb();
97
- }, self._operationTimeout);
98
- }
99
- this._operationStart = (/* @__PURE__ */ new Date()).getTime();
100
- this._fn(this._attempts);
101
- };
102
- RetryOperation.prototype.try = function(fn) {
103
- console.log("Using RetryOperation.try() is deprecated");
104
- this.attempt(fn);
105
- };
106
- RetryOperation.prototype.start = function(fn) {
107
- console.log("Using RetryOperation.start() is deprecated");
108
- this.attempt(fn);
109
- };
110
- RetryOperation.prototype.start = RetryOperation.prototype.try;
111
- RetryOperation.prototype.errors = function() {
112
- return this._errors;
113
- };
114
- RetryOperation.prototype.attempts = function() {
115
- return this._attempts;
116
- };
117
- RetryOperation.prototype.mainError = function() {
118
- if (this._errors.length === 0) {
119
- return null;
120
- }
121
- var counts = {};
122
- var mainError = null;
123
- var mainErrorCount = 0;
124
- for (var i = 0; i < this._errors.length; i++) {
125
- var error = this._errors[i];
126
- var message = error.message;
127
- var count = (counts[message] || 0) + 1;
128
- counts[message] = count;
129
- if (count >= mainErrorCount) {
130
- mainError = error;
131
- mainErrorCount = count;
132
- }
133
- }
134
- return mainError;
135
- };
136
- return retry_operation;
137
- }
138
- var hasRequiredRetry$1;
139
- function requireRetry$1() {
140
- if (hasRequiredRetry$1) return retry$1;
141
- hasRequiredRetry$1 = 1;
142
- (function(exports$1) {
143
- var RetryOperation = requireRetry_operation();
144
- exports$1.operation = function(options) {
145
- var timeouts = exports$1.timeouts(options);
146
- return new RetryOperation(timeouts, {
147
- forever: options && (options.forever || options.retries === Infinity),
148
- unref: options && options.unref,
149
- maxRetryTime: options && options.maxRetryTime
150
- });
151
- };
152
- exports$1.timeouts = function(options) {
153
- if (options instanceof Array) {
154
- return [].concat(options);
155
- }
156
- var opts = {
157
- retries: 10,
158
- factor: 2,
159
- minTimeout: 1 * 1e3,
160
- maxTimeout: Infinity,
161
- randomize: false
162
- };
163
- for (var key in options) {
164
- opts[key] = options[key];
165
- }
166
- if (opts.minTimeout > opts.maxTimeout) {
167
- throw new Error("minTimeout is greater than maxTimeout");
168
- }
169
- var timeouts = [];
170
- for (var i = 0; i < opts.retries; i++) {
171
- timeouts.push(this.createTimeout(i, opts));
172
- }
173
- if (options && options.forever && !timeouts.length) {
174
- timeouts.push(this.createTimeout(i, opts));
175
- }
176
- timeouts.sort(function(a, b) {
177
- return a - b;
178
- });
179
- return timeouts;
180
- };
181
- exports$1.createTimeout = function(attempt, opts) {
182
- var random = opts.randomize ? Math.random() + 1 : 1;
183
- var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt));
184
- timeout = Math.min(timeout, opts.maxTimeout);
185
- return timeout;
186
- };
187
- exports$1.wrap = function(obj, options, methods) {
188
- if (options instanceof Array) {
189
- methods = options;
190
- options = null;
191
- }
192
- if (!methods) {
193
- methods = [];
194
- for (var key in obj) {
195
- if (typeof obj[key] === "function") {
196
- methods.push(key);
197
- }
198
- }
199
- }
200
- for (var i = 0; i < methods.length; i++) {
201
- var method = methods[i];
202
- var original = obj[method];
203
- obj[method] = (function retryWrapper(original2) {
204
- var op = exports$1.operation(options);
205
- var args = Array.prototype.slice.call(arguments, 1);
206
- var callback = args.pop();
207
- args.push(function(err) {
208
- if (op.retry(err)) {
209
- return;
210
- }
211
- if (err) {
212
- arguments[0] = op.mainError();
213
- }
214
- callback.apply(this, arguments);
215
- });
216
- op.attempt(function() {
217
- original2.apply(obj, args);
218
- });
219
- }).bind(obj, original);
220
- obj[method].options = options;
221
- }
222
- };
223
- })(retry$1);
224
- return retry$1;
225
- }
226
- var retry;
227
- var hasRequiredRetry;
228
- function requireRetry() {
229
- if (hasRequiredRetry) return retry;
230
- hasRequiredRetry = 1;
231
- retry = requireRetry$1();
232
- return retry;
233
- }
234
- export {
235
- requireRetry as r
236
- };
1
+ var h={},_,l;function R(){if(l)return _;l=1;function i(n,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}return _=i,i.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},i.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},i.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var t=new Date().getTime();if(n&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var e=this;return this._timer=setTimeout(function(){e._attempts++,e._operationTimeoutCb&&(e._timeout=setTimeout(function(){e._operationTimeoutCb(e._attempts)},e._operationTimeout),e._options.unref&&e._timeout.unref()),e._fn(e._attempts)},r),this._options.unref&&this._timer.unref(),!0},i.prototype.attempt=function(n,t){this._fn=n,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},i.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},i.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},i.prototype.start=i.prototype.try,i.prototype.errors=function(){return this._errors},i.prototype.attempts=function(){return this._attempts},i.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},t=null,r=0,e=0;e<this._errors.length;e++){var o=this._errors[e],a=o.message,u=(n[a]||0)+1;n[a]=u,u>=r&&(t=o,r=u)}return t},_}var y;function d(){return y||(y=1,(function(i){var n=R();i.operation=function(t){var r=i.timeouts(t);return new n(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},i.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var e in t)r[e]=t[e];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(u,s){return u-s}),o},i.createTimeout=function(t,r){var e=r.randomize?Math.random()+1:1,o=Math.round(e*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},i.wrap=function(t,r,e){if(r instanceof Array&&(e=r,r=null),!e){e=[];for(var o in t)typeof t[o]=="function"&&e.push(o)}for(var a=0;a<e.length;a++){var u=e[a],s=t[u];t[u]=(function(v){var f=i.operation(r),m=Array.prototype.slice.call(arguments,1),g=m.pop();m.push(function(p){f.retry(p)||(p&&(arguments[0]=f.mainError()),g.apply(this,arguments))}),f.attempt(function(){v.apply(t,m)})}).bind(t,s),t[u].options=r}}})(h)),h}var c,T;function C(){return T||(T=1,c=d()),c}export{C as r};
@@ -1,14 +1 @@
1
- const NullProtoObj$1 = /* @__PURE__ */ (() => {
2
- const e = function() {
3
- };
4
- return e.prototype = /* @__PURE__ */ Object.create(null), Object.freeze(e.prototype), e;
5
- })();
6
- const NullProtoObj = /* @__PURE__ */ (() => {
7
- const e = function() {
8
- };
9
- return e.prototype = /* @__PURE__ */ Object.create(null), Object.freeze(e.prototype), e;
10
- })();
11
- export {
12
- NullProtoObj$1 as N,
13
- NullProtoObj as a
14
- };
1
+ const e=(()=>{const t=function(){};return t.prototype=Object.create(null),Object.freeze(t.prototype),t})(),o=(()=>{const t=function(){};return t.prototype=Object.create(null),Object.freeze(t.prototype),t})();export{e as N,o as a};
@@ -1,126 +1 @@
1
- import require$$0 from "buffer";
2
- var safeBuffer$1 = { exports: {} };
3
- var hasRequiredSafeBuffer$1;
4
- function requireSafeBuffer$1() {
5
- if (hasRequiredSafeBuffer$1) return safeBuffer$1.exports;
6
- hasRequiredSafeBuffer$1 = 1;
7
- (function(module, exports$1) {
8
- var buffer = require$$0;
9
- var Buffer = buffer.Buffer;
10
- function copyProps(src, dst) {
11
- for (var key in src) {
12
- dst[key] = src[key];
13
- }
14
- }
15
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
16
- module.exports = buffer;
17
- } else {
18
- copyProps(buffer, exports$1);
19
- exports$1.Buffer = SafeBuffer;
20
- }
21
- function SafeBuffer(arg, encodingOrOffset, length) {
22
- return Buffer(arg, encodingOrOffset, length);
23
- }
24
- copyProps(Buffer, SafeBuffer);
25
- SafeBuffer.from = function(arg, encodingOrOffset, length) {
26
- if (typeof arg === "number") {
27
- throw new TypeError("Argument must not be a number");
28
- }
29
- return Buffer(arg, encodingOrOffset, length);
30
- };
31
- SafeBuffer.alloc = function(size, fill, encoding) {
32
- if (typeof size !== "number") {
33
- throw new TypeError("Argument must be a number");
34
- }
35
- var buf = Buffer(size);
36
- if (fill !== void 0) {
37
- if (typeof encoding === "string") {
38
- buf.fill(fill, encoding);
39
- } else {
40
- buf.fill(fill);
41
- }
42
- } else {
43
- buf.fill(0);
44
- }
45
- return buf;
46
- };
47
- SafeBuffer.allocUnsafe = function(size) {
48
- if (typeof size !== "number") {
49
- throw new TypeError("Argument must be a number");
50
- }
51
- return Buffer(size);
52
- };
53
- SafeBuffer.allocUnsafeSlow = function(size) {
54
- if (typeof size !== "number") {
55
- throw new TypeError("Argument must be a number");
56
- }
57
- return buffer.SlowBuffer(size);
58
- };
59
- })(safeBuffer$1, safeBuffer$1.exports);
60
- return safeBuffer$1.exports;
61
- }
62
- var safeBuffer = { exports: {} };
63
- var hasRequiredSafeBuffer;
64
- function requireSafeBuffer() {
65
- if (hasRequiredSafeBuffer) return safeBuffer.exports;
66
- hasRequiredSafeBuffer = 1;
67
- (function(module, exports$1) {
68
- var buffer = require$$0;
69
- var Buffer = buffer.Buffer;
70
- function copyProps(src, dst) {
71
- for (var key in src) {
72
- dst[key] = src[key];
73
- }
74
- }
75
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
76
- module.exports = buffer;
77
- } else {
78
- copyProps(buffer, exports$1);
79
- exports$1.Buffer = SafeBuffer;
80
- }
81
- function SafeBuffer(arg, encodingOrOffset, length) {
82
- return Buffer(arg, encodingOrOffset, length);
83
- }
84
- SafeBuffer.prototype = Object.create(Buffer.prototype);
85
- copyProps(Buffer, SafeBuffer);
86
- SafeBuffer.from = function(arg, encodingOrOffset, length) {
87
- if (typeof arg === "number") {
88
- throw new TypeError("Argument must not be a number");
89
- }
90
- return Buffer(arg, encodingOrOffset, length);
91
- };
92
- SafeBuffer.alloc = function(size, fill, encoding) {
93
- if (typeof size !== "number") {
94
- throw new TypeError("Argument must be a number");
95
- }
96
- var buf = Buffer(size);
97
- if (fill !== void 0) {
98
- if (typeof encoding === "string") {
99
- buf.fill(fill, encoding);
100
- } else {
101
- buf.fill(fill);
102
- }
103
- } else {
104
- buf.fill(0);
105
- }
106
- return buf;
107
- };
108
- SafeBuffer.allocUnsafe = function(size) {
109
- if (typeof size !== "number") {
110
- throw new TypeError("Argument must be a number");
111
- }
112
- return Buffer(size);
113
- };
114
- SafeBuffer.allocUnsafeSlow = function(size) {
115
- if (typeof size !== "number") {
116
- throw new TypeError("Argument must be a number");
117
- }
118
- return buffer.SlowBuffer(size);
119
- };
120
- })(safeBuffer, safeBuffer.exports);
121
- return safeBuffer.exports;
122
- }
123
- export {
124
- requireSafeBuffer as a,
125
- requireSafeBuffer$1 as r
126
- };
1
+ import c from"buffer";var i={exports:{}},s;function y(){return s||(s=1,(function(p,a){var o=c,e=o.Buffer;function l(r,f){for(var n in r)f[n]=r[n]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?p.exports=o:(l(o,a),a.Buffer=u);function u(r,f,n){return e(r,f,n)}l(e,u),u.from=function(r,f,n){if(typeof r=="number")throw new TypeError("Argument must not be a number");return e(r,f,n)},u.alloc=function(r,f,n){if(typeof r!="number")throw new TypeError("Argument must be a number");var t=e(r);return f!==void 0?typeof n=="string"?t.fill(f,n):t.fill(f):t.fill(0),t},u.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return e(r)},u.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(r)}})(i,i.exports)),i.exports}var m={exports:{}};var b;function B(){return b||(b=1,(function(p,a){var o=c,e=o.Buffer;function l(r,f){for(var n in r)f[n]=r[n]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?p.exports=o:(l(o,a),a.Buffer=u);function u(r,f,n){return e(r,f,n)}u.prototype=Object.create(e.prototype),l(e,u),u.from=function(r,f,n){if(typeof r=="number")throw new TypeError("Argument must not be a number");return e(r,f,n)},u.alloc=function(r,f,n){if(typeof r!="number")throw new TypeError("Argument must be a number");var t=e(r);return f!==void 0?typeof n=="string"?t.fill(f,n):t.fill(f):t.fill(0),t},u.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return e(r)},u.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(r)}})(m,m.exports)),m.exports}export{B as a,y as r};