@ms-cloudpack/remote-cache 0.11.34 → 0.11.35
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/dist/{AzureRemoteCacheClient-26RKIZEO.js → AzureRemoteCacheClient-VYVBH4QC.js} +31037 -380
- package/dist/{ReporterDecorator-VYNWC6CL.js → ReporterDecorator-XVIYJ2LO.js} +1 -1
- package/dist/{chunk-NFU5RQB4.js → chunk-457DVHAF.js} +4 -1
- package/dist/{chunk-DGXRDSNI.js → chunk-D66UYJ3Q.js} +116 -2363
- package/dist/chunk-TB3K2VFA.js +2339 -0
- package/dist/{getCredential-2W3PWZWV.js → getCredential-VBKM3VGR.js} +7 -7
- package/dist/{getListOfBlobs-BGP2V7PV.js → getListOfBlobs-7QFADTY2.js} +1 -1
- package/dist/index.js +32192 -6130
- package/package.json +3 -3
- package/dist/chunk-HSAXQLEO.js +0 -26571
- package/dist/chunk-N4V3CONX.js +0 -80
|
@@ -0,0 +1,2339 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'node:module';
|
|
2
|
+
import topLevelPath from 'node:path';
|
|
3
|
+
import topLevelUrl from 'node:url';
|
|
4
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = topLevelUrl.fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = topLevelPath.dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
__commonJS,
|
|
9
|
+
__esm,
|
|
10
|
+
__export,
|
|
11
|
+
__name,
|
|
12
|
+
__require,
|
|
13
|
+
__toCommonJS
|
|
14
|
+
} from "./chunk-457DVHAF.js";
|
|
15
|
+
|
|
16
|
+
// ../../node_modules/.store/tslib-npm-2.8.1-66590b21b8/package/tslib.es6.mjs
|
|
17
|
+
var tslib_es6_exports = {};
|
|
18
|
+
__export(tslib_es6_exports, {
|
|
19
|
+
__addDisposableResource: () => __addDisposableResource,
|
|
20
|
+
__assign: () => __assign,
|
|
21
|
+
__asyncDelegator: () => __asyncDelegator,
|
|
22
|
+
__asyncGenerator: () => __asyncGenerator,
|
|
23
|
+
__asyncValues: () => __asyncValues,
|
|
24
|
+
__await: () => __await,
|
|
25
|
+
__awaiter: () => __awaiter,
|
|
26
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
27
|
+
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
28
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
29
|
+
__createBinding: () => __createBinding,
|
|
30
|
+
__decorate: () => __decorate,
|
|
31
|
+
__disposeResources: () => __disposeResources,
|
|
32
|
+
__esDecorate: () => __esDecorate,
|
|
33
|
+
__exportStar: () => __exportStar,
|
|
34
|
+
__extends: () => __extends,
|
|
35
|
+
__generator: () => __generator,
|
|
36
|
+
__importDefault: () => __importDefault,
|
|
37
|
+
__importStar: () => __importStar,
|
|
38
|
+
__makeTemplateObject: () => __makeTemplateObject,
|
|
39
|
+
__metadata: () => __metadata,
|
|
40
|
+
__param: () => __param,
|
|
41
|
+
__propKey: () => __propKey,
|
|
42
|
+
__read: () => __read,
|
|
43
|
+
__rest: () => __rest,
|
|
44
|
+
__rewriteRelativeImportExtension: () => __rewriteRelativeImportExtension,
|
|
45
|
+
__runInitializers: () => __runInitializers,
|
|
46
|
+
__setFunctionName: () => __setFunctionName,
|
|
47
|
+
__spread: () => __spread,
|
|
48
|
+
__spreadArray: () => __spreadArray,
|
|
49
|
+
__spreadArrays: () => __spreadArrays,
|
|
50
|
+
__values: () => __values,
|
|
51
|
+
default: () => tslib_es6_default
|
|
52
|
+
});
|
|
53
|
+
function __extends(d, b) {
|
|
54
|
+
if (typeof b !== "function" && b !== null)
|
|
55
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
+
extendStatics(d, b);
|
|
57
|
+
function __() {
|
|
58
|
+
this.constructor = d;
|
|
59
|
+
}
|
|
60
|
+
__name(__, "__");
|
|
61
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
+
}
|
|
63
|
+
function __rest(s, e) {
|
|
64
|
+
var t = {};
|
|
65
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
66
|
+
t[p] = s[p];
|
|
67
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
68
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
69
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
70
|
+
t[p[i]] = s[p[i]];
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
}
|
|
74
|
+
function __decorate(decorators, target, key, desc) {
|
|
75
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
76
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
77
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
78
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
79
|
+
}
|
|
80
|
+
function __param(paramIndex, decorator) {
|
|
81
|
+
return function(target, key) {
|
|
82
|
+
decorator(target, key, paramIndex);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
86
|
+
function accept(f) {
|
|
87
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
88
|
+
return f;
|
|
89
|
+
}
|
|
90
|
+
__name(accept, "accept");
|
|
91
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
92
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
93
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
94
|
+
var _, done = false;
|
|
95
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
96
|
+
var context = {};
|
|
97
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
98
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
99
|
+
context.addInitializer = function(f) {
|
|
100
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
101
|
+
extraInitializers.push(accept(f || null));
|
|
102
|
+
};
|
|
103
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
104
|
+
if (kind === "accessor") {
|
|
105
|
+
if (result === void 0) continue;
|
|
106
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
107
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
108
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
109
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
110
|
+
} else if (_ = accept(result)) {
|
|
111
|
+
if (kind === "field") initializers.unshift(_);
|
|
112
|
+
else descriptor[key] = _;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
116
|
+
done = true;
|
|
117
|
+
}
|
|
118
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
119
|
+
var useValue = arguments.length > 2;
|
|
120
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
121
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
122
|
+
}
|
|
123
|
+
return useValue ? value : void 0;
|
|
124
|
+
}
|
|
125
|
+
function __propKey(x) {
|
|
126
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
127
|
+
}
|
|
128
|
+
function __setFunctionName(f, name, prefix) {
|
|
129
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
130
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
131
|
+
}
|
|
132
|
+
function __metadata(metadataKey, metadataValue) {
|
|
133
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
134
|
+
}
|
|
135
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
136
|
+
function adopt(value) {
|
|
137
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
138
|
+
resolve(value);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
__name(adopt, "adopt");
|
|
142
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
143
|
+
function fulfilled(value) {
|
|
144
|
+
try {
|
|
145
|
+
step(generator.next(value));
|
|
146
|
+
} catch (e) {
|
|
147
|
+
reject(e);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
__name(fulfilled, "fulfilled");
|
|
151
|
+
function rejected(value) {
|
|
152
|
+
try {
|
|
153
|
+
step(generator["throw"](value));
|
|
154
|
+
} catch (e) {
|
|
155
|
+
reject(e);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
__name(rejected, "rejected");
|
|
159
|
+
function step(result) {
|
|
160
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
161
|
+
}
|
|
162
|
+
__name(step, "step");
|
|
163
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function __generator(thisArg, body) {
|
|
167
|
+
var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
|
|
168
|
+
if (t[0] & 1) throw t[1];
|
|
169
|
+
return t[1];
|
|
170
|
+
}, "sent"), trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
171
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
172
|
+
return this;
|
|
173
|
+
}), g;
|
|
174
|
+
function verb(n) {
|
|
175
|
+
return function(v) {
|
|
176
|
+
return step([n, v]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
__name(verb, "verb");
|
|
180
|
+
function step(op) {
|
|
181
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
182
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
183
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
184
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
185
|
+
switch (op[0]) {
|
|
186
|
+
case 0:
|
|
187
|
+
case 1:
|
|
188
|
+
t = op;
|
|
189
|
+
break;
|
|
190
|
+
case 4:
|
|
191
|
+
_.label++;
|
|
192
|
+
return { value: op[1], done: false };
|
|
193
|
+
case 5:
|
|
194
|
+
_.label++;
|
|
195
|
+
y = op[1];
|
|
196
|
+
op = [0];
|
|
197
|
+
continue;
|
|
198
|
+
case 7:
|
|
199
|
+
op = _.ops.pop();
|
|
200
|
+
_.trys.pop();
|
|
201
|
+
continue;
|
|
202
|
+
default:
|
|
203
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
204
|
+
_ = 0;
|
|
205
|
+
continue;
|
|
206
|
+
}
|
|
207
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
208
|
+
_.label = op[1];
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
212
|
+
_.label = t[1];
|
|
213
|
+
t = op;
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
if (t && _.label < t[2]) {
|
|
217
|
+
_.label = t[2];
|
|
218
|
+
_.ops.push(op);
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
if (t[2]) _.ops.pop();
|
|
222
|
+
_.trys.pop();
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
op = body.call(thisArg, _);
|
|
226
|
+
} catch (e) {
|
|
227
|
+
op = [6, e];
|
|
228
|
+
y = 0;
|
|
229
|
+
} finally {
|
|
230
|
+
f = t = 0;
|
|
231
|
+
}
|
|
232
|
+
if (op[0] & 5) throw op[1];
|
|
233
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
234
|
+
}
|
|
235
|
+
__name(step, "step");
|
|
236
|
+
}
|
|
237
|
+
function __exportStar(m, o) {
|
|
238
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
239
|
+
}
|
|
240
|
+
function __values(o) {
|
|
241
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
242
|
+
if (m) return m.call(o);
|
|
243
|
+
if (o && typeof o.length === "number") return {
|
|
244
|
+
next: /* @__PURE__ */ __name(function() {
|
|
245
|
+
if (o && i >= o.length) o = void 0;
|
|
246
|
+
return { value: o && o[i++], done: !o };
|
|
247
|
+
}, "next")
|
|
248
|
+
};
|
|
249
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
250
|
+
}
|
|
251
|
+
function __read(o, n) {
|
|
252
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
253
|
+
if (!m) return o;
|
|
254
|
+
var i = m.call(o), r, ar = [], e;
|
|
255
|
+
try {
|
|
256
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
257
|
+
} catch (error) {
|
|
258
|
+
e = { error };
|
|
259
|
+
} finally {
|
|
260
|
+
try {
|
|
261
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
262
|
+
} finally {
|
|
263
|
+
if (e) throw e.error;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return ar;
|
|
267
|
+
}
|
|
268
|
+
function __spread() {
|
|
269
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
270
|
+
ar = ar.concat(__read(arguments[i]));
|
|
271
|
+
return ar;
|
|
272
|
+
}
|
|
273
|
+
function __spreadArrays() {
|
|
274
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
275
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
276
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
277
|
+
r[k] = a[j];
|
|
278
|
+
return r;
|
|
279
|
+
}
|
|
280
|
+
function __spreadArray(to, from, pack) {
|
|
281
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
282
|
+
if (ar || !(i in from)) {
|
|
283
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
284
|
+
ar[i] = from[i];
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
288
|
+
}
|
|
289
|
+
function __await(v) {
|
|
290
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
291
|
+
}
|
|
292
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
293
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
294
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
295
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
296
|
+
return this;
|
|
297
|
+
}, i;
|
|
298
|
+
function awaitReturn(f) {
|
|
299
|
+
return function(v) {
|
|
300
|
+
return Promise.resolve(v).then(f, reject);
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
__name(awaitReturn, "awaitReturn");
|
|
304
|
+
function verb(n, f) {
|
|
305
|
+
if (g[n]) {
|
|
306
|
+
i[n] = function(v) {
|
|
307
|
+
return new Promise(function(a, b) {
|
|
308
|
+
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
if (f) i[n] = f(i[n]);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
__name(verb, "verb");
|
|
315
|
+
function resume(n, v) {
|
|
316
|
+
try {
|
|
317
|
+
step(g[n](v));
|
|
318
|
+
} catch (e) {
|
|
319
|
+
settle(q[0][3], e);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
__name(resume, "resume");
|
|
323
|
+
function step(r) {
|
|
324
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
325
|
+
}
|
|
326
|
+
__name(step, "step");
|
|
327
|
+
function fulfill(value) {
|
|
328
|
+
resume("next", value);
|
|
329
|
+
}
|
|
330
|
+
__name(fulfill, "fulfill");
|
|
331
|
+
function reject(value) {
|
|
332
|
+
resume("throw", value);
|
|
333
|
+
}
|
|
334
|
+
__name(reject, "reject");
|
|
335
|
+
function settle(f, v) {
|
|
336
|
+
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
337
|
+
}
|
|
338
|
+
__name(settle, "settle");
|
|
339
|
+
}
|
|
340
|
+
function __asyncDelegator(o) {
|
|
341
|
+
var i, p;
|
|
342
|
+
return i = {}, verb("next"), verb("throw", function(e) {
|
|
343
|
+
throw e;
|
|
344
|
+
}), verb("return"), i[Symbol.iterator] = function() {
|
|
345
|
+
return this;
|
|
346
|
+
}, i;
|
|
347
|
+
function verb(n, f) {
|
|
348
|
+
i[n] = o[n] ? function(v) {
|
|
349
|
+
return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
|
|
350
|
+
} : f;
|
|
351
|
+
}
|
|
352
|
+
__name(verb, "verb");
|
|
353
|
+
}
|
|
354
|
+
function __asyncValues(o) {
|
|
355
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
356
|
+
var m = o[Symbol.asyncIterator], i;
|
|
357
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
358
|
+
return this;
|
|
359
|
+
}, i);
|
|
360
|
+
function verb(n) {
|
|
361
|
+
i[n] = o[n] && function(v) {
|
|
362
|
+
return new Promise(function(resolve, reject) {
|
|
363
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
364
|
+
});
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
__name(verb, "verb");
|
|
368
|
+
function settle(resolve, reject, d, v) {
|
|
369
|
+
Promise.resolve(v).then(function(v2) {
|
|
370
|
+
resolve({ value: v2, done: d });
|
|
371
|
+
}, reject);
|
|
372
|
+
}
|
|
373
|
+
__name(settle, "settle");
|
|
374
|
+
}
|
|
375
|
+
function __makeTemplateObject(cooked, raw) {
|
|
376
|
+
if (Object.defineProperty) {
|
|
377
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
378
|
+
} else {
|
|
379
|
+
cooked.raw = raw;
|
|
380
|
+
}
|
|
381
|
+
return cooked;
|
|
382
|
+
}
|
|
383
|
+
function __importStar(mod) {
|
|
384
|
+
if (mod && mod.__esModule) return mod;
|
|
385
|
+
var result = {};
|
|
386
|
+
if (mod != null) {
|
|
387
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
388
|
+
}
|
|
389
|
+
__setModuleDefault(result, mod);
|
|
390
|
+
return result;
|
|
391
|
+
}
|
|
392
|
+
function __importDefault(mod) {
|
|
393
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
394
|
+
}
|
|
395
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
396
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
397
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
398
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
399
|
+
}
|
|
400
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
401
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
402
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
403
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
404
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
405
|
+
}
|
|
406
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
407
|
+
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
408
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
409
|
+
}
|
|
410
|
+
function __addDisposableResource(env, value, async) {
|
|
411
|
+
if (value !== null && value !== void 0) {
|
|
412
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
413
|
+
var dispose, inner;
|
|
414
|
+
if (async) {
|
|
415
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
416
|
+
dispose = value[Symbol.asyncDispose];
|
|
417
|
+
}
|
|
418
|
+
if (dispose === void 0) {
|
|
419
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
420
|
+
dispose = value[Symbol.dispose];
|
|
421
|
+
if (async) inner = dispose;
|
|
422
|
+
}
|
|
423
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
424
|
+
if (inner) dispose = /* @__PURE__ */ __name(function() {
|
|
425
|
+
try {
|
|
426
|
+
inner.call(this);
|
|
427
|
+
} catch (e) {
|
|
428
|
+
return Promise.reject(e);
|
|
429
|
+
}
|
|
430
|
+
}, "dispose");
|
|
431
|
+
env.stack.push({ value, dispose, async });
|
|
432
|
+
} else if (async) {
|
|
433
|
+
env.stack.push({ async: true });
|
|
434
|
+
}
|
|
435
|
+
return value;
|
|
436
|
+
}
|
|
437
|
+
function __disposeResources(env) {
|
|
438
|
+
function fail(e) {
|
|
439
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
440
|
+
env.hasError = true;
|
|
441
|
+
}
|
|
442
|
+
__name(fail, "fail");
|
|
443
|
+
var r, s = 0;
|
|
444
|
+
function next() {
|
|
445
|
+
while (r = env.stack.pop()) {
|
|
446
|
+
try {
|
|
447
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
448
|
+
if (r.dispose) {
|
|
449
|
+
var result = r.dispose.call(r.value);
|
|
450
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
451
|
+
fail(e);
|
|
452
|
+
return next();
|
|
453
|
+
});
|
|
454
|
+
} else s |= 1;
|
|
455
|
+
} catch (e) {
|
|
456
|
+
fail(e);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
460
|
+
if (env.hasError) throw env.error;
|
|
461
|
+
}
|
|
462
|
+
__name(next, "next");
|
|
463
|
+
return next();
|
|
464
|
+
}
|
|
465
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
466
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
467
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
468
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
return path;
|
|
472
|
+
}
|
|
473
|
+
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
474
|
+
var init_tslib_es6 = __esm({
|
|
475
|
+
"../../node_modules/.store/tslib-npm-2.8.1-66590b21b8/package/tslib.es6.mjs"() {
|
|
476
|
+
extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
477
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
478
|
+
d2.__proto__ = b2;
|
|
479
|
+
} || function(d2, b2) {
|
|
480
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
481
|
+
};
|
|
482
|
+
return extendStatics(d, b);
|
|
483
|
+
}, "extendStatics");
|
|
484
|
+
__name(__extends, "__extends");
|
|
485
|
+
__assign = /* @__PURE__ */ __name(function() {
|
|
486
|
+
__assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t) {
|
|
487
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
488
|
+
s = arguments[i];
|
|
489
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
490
|
+
}
|
|
491
|
+
return t;
|
|
492
|
+
}, "__assign");
|
|
493
|
+
return __assign.apply(this, arguments);
|
|
494
|
+
}, "__assign");
|
|
495
|
+
__name(__rest, "__rest");
|
|
496
|
+
__name(__decorate, "__decorate");
|
|
497
|
+
__name(__param, "__param");
|
|
498
|
+
__name(__esDecorate, "__esDecorate");
|
|
499
|
+
__name(__runInitializers, "__runInitializers");
|
|
500
|
+
__name(__propKey, "__propKey");
|
|
501
|
+
__name(__setFunctionName, "__setFunctionName");
|
|
502
|
+
__name(__metadata, "__metadata");
|
|
503
|
+
__name(__awaiter, "__awaiter");
|
|
504
|
+
__name(__generator, "__generator");
|
|
505
|
+
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
506
|
+
if (k2 === void 0) k2 = k;
|
|
507
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
508
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
509
|
+
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
510
|
+
return m[k];
|
|
511
|
+
}, "get") };
|
|
512
|
+
}
|
|
513
|
+
Object.defineProperty(o, k2, desc);
|
|
514
|
+
} : function(o, m, k, k2) {
|
|
515
|
+
if (k2 === void 0) k2 = k;
|
|
516
|
+
o[k2] = m[k];
|
|
517
|
+
};
|
|
518
|
+
__name(__exportStar, "__exportStar");
|
|
519
|
+
__name(__values, "__values");
|
|
520
|
+
__name(__read, "__read");
|
|
521
|
+
__name(__spread, "__spread");
|
|
522
|
+
__name(__spreadArrays, "__spreadArrays");
|
|
523
|
+
__name(__spreadArray, "__spreadArray");
|
|
524
|
+
__name(__await, "__await");
|
|
525
|
+
__name(__asyncGenerator, "__asyncGenerator");
|
|
526
|
+
__name(__asyncDelegator, "__asyncDelegator");
|
|
527
|
+
__name(__asyncValues, "__asyncValues");
|
|
528
|
+
__name(__makeTemplateObject, "__makeTemplateObject");
|
|
529
|
+
__setModuleDefault = Object.create ? function(o, v) {
|
|
530
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
531
|
+
} : function(o, v) {
|
|
532
|
+
o["default"] = v;
|
|
533
|
+
};
|
|
534
|
+
ownKeys = /* @__PURE__ */ __name(function(o) {
|
|
535
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
536
|
+
var ar = [];
|
|
537
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
538
|
+
return ar;
|
|
539
|
+
};
|
|
540
|
+
return ownKeys(o);
|
|
541
|
+
}, "ownKeys");
|
|
542
|
+
__name(__importStar, "__importStar");
|
|
543
|
+
__name(__importDefault, "__importDefault");
|
|
544
|
+
__name(__classPrivateFieldGet, "__classPrivateFieldGet");
|
|
545
|
+
__name(__classPrivateFieldSet, "__classPrivateFieldSet");
|
|
546
|
+
__name(__classPrivateFieldIn, "__classPrivateFieldIn");
|
|
547
|
+
__name(__addDisposableResource, "__addDisposableResource");
|
|
548
|
+
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
549
|
+
var e = new Error(message);
|
|
550
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
551
|
+
};
|
|
552
|
+
__name(__disposeResources, "__disposeResources");
|
|
553
|
+
__name(__rewriteRelativeImportExtension, "__rewriteRelativeImportExtension");
|
|
554
|
+
tslib_es6_default = {
|
|
555
|
+
__extends,
|
|
556
|
+
__assign,
|
|
557
|
+
__rest,
|
|
558
|
+
__decorate,
|
|
559
|
+
__param,
|
|
560
|
+
__esDecorate,
|
|
561
|
+
__runInitializers,
|
|
562
|
+
__propKey,
|
|
563
|
+
__setFunctionName,
|
|
564
|
+
__metadata,
|
|
565
|
+
__awaiter,
|
|
566
|
+
__generator,
|
|
567
|
+
__createBinding,
|
|
568
|
+
__exportStar,
|
|
569
|
+
__values,
|
|
570
|
+
__read,
|
|
571
|
+
__spread,
|
|
572
|
+
__spreadArrays,
|
|
573
|
+
__spreadArray,
|
|
574
|
+
__await,
|
|
575
|
+
__asyncGenerator,
|
|
576
|
+
__asyncDelegator,
|
|
577
|
+
__asyncValues,
|
|
578
|
+
__makeTemplateObject,
|
|
579
|
+
__importStar,
|
|
580
|
+
__importDefault,
|
|
581
|
+
__classPrivateFieldGet,
|
|
582
|
+
__classPrivateFieldSet,
|
|
583
|
+
__classPrivateFieldIn,
|
|
584
|
+
__addDisposableResource,
|
|
585
|
+
__disposeResources,
|
|
586
|
+
__rewriteRelativeImportExtension
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/log.js
|
|
592
|
+
var require_log = __commonJS({
|
|
593
|
+
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/log.js"(exports) {
|
|
594
|
+
"use strict";
|
|
595
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
596
|
+
exports.log = log;
|
|
597
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
598
|
+
var node_os_1 = __require("node:os");
|
|
599
|
+
var node_util_1 = tslib_1.__importDefault(__require("node:util"));
|
|
600
|
+
var process2 = tslib_1.__importStar(__require("node:process"));
|
|
601
|
+
function log(message, ...args) {
|
|
602
|
+
process2.stderr.write(`${node_util_1.default.format(message, ...args)}${node_os_1.EOL}`);
|
|
603
|
+
}
|
|
604
|
+
__name(log, "log");
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/debug.js
|
|
609
|
+
var require_debug = __commonJS({
|
|
610
|
+
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/debug.js"(exports) {
|
|
611
|
+
"use strict";
|
|
612
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
613
|
+
var log_js_1 = require_log();
|
|
614
|
+
var debugEnvVariable = typeof process !== "undefined" && process.env && process.env.DEBUG || void 0;
|
|
615
|
+
var enabledString;
|
|
616
|
+
var enabledNamespaces = [];
|
|
617
|
+
var skippedNamespaces = [];
|
|
618
|
+
var debuggers = [];
|
|
619
|
+
if (debugEnvVariable) {
|
|
620
|
+
enable(debugEnvVariable);
|
|
621
|
+
}
|
|
622
|
+
var debugObj = Object.assign((namespace) => {
|
|
623
|
+
return createDebugger(namespace);
|
|
624
|
+
}, {
|
|
625
|
+
enable,
|
|
626
|
+
enabled,
|
|
627
|
+
disable,
|
|
628
|
+
log: log_js_1.log
|
|
629
|
+
});
|
|
630
|
+
function enable(namespaces) {
|
|
631
|
+
enabledString = namespaces;
|
|
632
|
+
enabledNamespaces = [];
|
|
633
|
+
skippedNamespaces = [];
|
|
634
|
+
const wildcard = /\*/g;
|
|
635
|
+
const namespaceList = namespaces.split(",").map((ns) => ns.trim().replace(wildcard, ".*?"));
|
|
636
|
+
for (const ns of namespaceList) {
|
|
637
|
+
if (ns.startsWith("-")) {
|
|
638
|
+
skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`));
|
|
639
|
+
} else {
|
|
640
|
+
enabledNamespaces.push(new RegExp(`^${ns}$`));
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
for (const instance of debuggers) {
|
|
644
|
+
instance.enabled = enabled(instance.namespace);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
__name(enable, "enable");
|
|
648
|
+
function enabled(namespace) {
|
|
649
|
+
if (namespace.endsWith("*")) {
|
|
650
|
+
return true;
|
|
651
|
+
}
|
|
652
|
+
for (const skipped of skippedNamespaces) {
|
|
653
|
+
if (skipped.test(namespace)) {
|
|
654
|
+
return false;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
for (const enabledNamespace of enabledNamespaces) {
|
|
658
|
+
if (enabledNamespace.test(namespace)) {
|
|
659
|
+
return true;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
return false;
|
|
663
|
+
}
|
|
664
|
+
__name(enabled, "enabled");
|
|
665
|
+
function disable() {
|
|
666
|
+
const result = enabledString || "";
|
|
667
|
+
enable("");
|
|
668
|
+
return result;
|
|
669
|
+
}
|
|
670
|
+
__name(disable, "disable");
|
|
671
|
+
function createDebugger(namespace) {
|
|
672
|
+
const newDebugger = Object.assign(debug, {
|
|
673
|
+
enabled: enabled(namespace),
|
|
674
|
+
destroy,
|
|
675
|
+
log: debugObj.log,
|
|
676
|
+
namespace,
|
|
677
|
+
extend
|
|
678
|
+
});
|
|
679
|
+
function debug(...args) {
|
|
680
|
+
if (!newDebugger.enabled) {
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
if (args.length > 0) {
|
|
684
|
+
args[0] = `${namespace} ${args[0]}`;
|
|
685
|
+
}
|
|
686
|
+
newDebugger.log(...args);
|
|
687
|
+
}
|
|
688
|
+
__name(debug, "debug");
|
|
689
|
+
debuggers.push(newDebugger);
|
|
690
|
+
return newDebugger;
|
|
691
|
+
}
|
|
692
|
+
__name(createDebugger, "createDebugger");
|
|
693
|
+
function destroy() {
|
|
694
|
+
const index = debuggers.indexOf(this);
|
|
695
|
+
if (index >= 0) {
|
|
696
|
+
debuggers.splice(index, 1);
|
|
697
|
+
return true;
|
|
698
|
+
}
|
|
699
|
+
return false;
|
|
700
|
+
}
|
|
701
|
+
__name(destroy, "destroy");
|
|
702
|
+
function extend(namespace) {
|
|
703
|
+
const newDebugger = createDebugger(`${this.namespace}:${namespace}`);
|
|
704
|
+
newDebugger.log = this.log;
|
|
705
|
+
return newDebugger;
|
|
706
|
+
}
|
|
707
|
+
__name(extend, "extend");
|
|
708
|
+
exports.default = debugObj;
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
|
|
712
|
+
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/logger.js
|
|
713
|
+
var require_logger = __commonJS({
|
|
714
|
+
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/logger.js"(exports) {
|
|
715
|
+
"use strict";
|
|
716
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
717
|
+
exports.TypeSpecRuntimeLogger = void 0;
|
|
718
|
+
exports.createLoggerContext = createLoggerContext;
|
|
719
|
+
exports.setLogLevel = setLogLevel;
|
|
720
|
+
exports.getLogLevel = getLogLevel;
|
|
721
|
+
exports.createClientLogger = createClientLogger;
|
|
722
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
723
|
+
var debug_js_1 = tslib_1.__importDefault(require_debug());
|
|
724
|
+
var TYPESPEC_RUNTIME_LOG_LEVELS = ["verbose", "info", "warning", "error"];
|
|
725
|
+
var levelMap = {
|
|
726
|
+
verbose: 400,
|
|
727
|
+
info: 300,
|
|
728
|
+
warning: 200,
|
|
729
|
+
error: 100
|
|
730
|
+
};
|
|
731
|
+
function patchLogMethod(parent, child) {
|
|
732
|
+
child.log = (...args) => {
|
|
733
|
+
parent.log(...args);
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
__name(patchLogMethod, "patchLogMethod");
|
|
737
|
+
function isTypeSpecRuntimeLogLevel(level) {
|
|
738
|
+
return TYPESPEC_RUNTIME_LOG_LEVELS.includes(level);
|
|
739
|
+
}
|
|
740
|
+
__name(isTypeSpecRuntimeLogLevel, "isTypeSpecRuntimeLogLevel");
|
|
741
|
+
function createLoggerContext(options) {
|
|
742
|
+
const registeredLoggers = /* @__PURE__ */ new Set();
|
|
743
|
+
const logLevelFromEnv = typeof process !== "undefined" && process.env && process.env[options.logLevelEnvVarName] || void 0;
|
|
744
|
+
let logLevel;
|
|
745
|
+
const clientLogger = (0, debug_js_1.default)(options.namespace);
|
|
746
|
+
clientLogger.log = (...args) => {
|
|
747
|
+
debug_js_1.default.log(...args);
|
|
748
|
+
};
|
|
749
|
+
function contextSetLogLevel(level) {
|
|
750
|
+
if (level && !isTypeSpecRuntimeLogLevel(level)) {
|
|
751
|
+
throw new Error(`Unknown log level '${level}'. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(",")}`);
|
|
752
|
+
}
|
|
753
|
+
logLevel = level;
|
|
754
|
+
const enabledNamespaces = [];
|
|
755
|
+
for (const logger of registeredLoggers) {
|
|
756
|
+
if (shouldEnable(logger)) {
|
|
757
|
+
enabledNamespaces.push(logger.namespace);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
debug_js_1.default.enable(enabledNamespaces.join(","));
|
|
761
|
+
}
|
|
762
|
+
__name(contextSetLogLevel, "contextSetLogLevel");
|
|
763
|
+
if (logLevelFromEnv) {
|
|
764
|
+
if (isTypeSpecRuntimeLogLevel(logLevelFromEnv)) {
|
|
765
|
+
contextSetLogLevel(logLevelFromEnv);
|
|
766
|
+
} else {
|
|
767
|
+
console.error(`${options.logLevelEnvVarName} set to unknown log level '${logLevelFromEnv}'; logging is not enabled. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(", ")}.`);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
function shouldEnable(logger) {
|
|
771
|
+
return Boolean(logLevel && levelMap[logger.level] <= levelMap[logLevel]);
|
|
772
|
+
}
|
|
773
|
+
__name(shouldEnable, "shouldEnable");
|
|
774
|
+
function createLogger(parent, level) {
|
|
775
|
+
const logger = Object.assign(parent.extend(level), {
|
|
776
|
+
level
|
|
777
|
+
});
|
|
778
|
+
patchLogMethod(parent, logger);
|
|
779
|
+
if (shouldEnable(logger)) {
|
|
780
|
+
const enabledNamespaces = debug_js_1.default.disable();
|
|
781
|
+
debug_js_1.default.enable(enabledNamespaces + "," + logger.namespace);
|
|
782
|
+
}
|
|
783
|
+
registeredLoggers.add(logger);
|
|
784
|
+
return logger;
|
|
785
|
+
}
|
|
786
|
+
__name(createLogger, "createLogger");
|
|
787
|
+
function contextGetLogLevel() {
|
|
788
|
+
return logLevel;
|
|
789
|
+
}
|
|
790
|
+
__name(contextGetLogLevel, "contextGetLogLevel");
|
|
791
|
+
function contextCreateClientLogger(namespace) {
|
|
792
|
+
const clientRootLogger = clientLogger.extend(namespace);
|
|
793
|
+
patchLogMethod(clientLogger, clientRootLogger);
|
|
794
|
+
return {
|
|
795
|
+
error: createLogger(clientRootLogger, "error"),
|
|
796
|
+
warning: createLogger(clientRootLogger, "warning"),
|
|
797
|
+
info: createLogger(clientRootLogger, "info"),
|
|
798
|
+
verbose: createLogger(clientRootLogger, "verbose")
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
__name(contextCreateClientLogger, "contextCreateClientLogger");
|
|
802
|
+
return {
|
|
803
|
+
setLogLevel: contextSetLogLevel,
|
|
804
|
+
getLogLevel: contextGetLogLevel,
|
|
805
|
+
createClientLogger: contextCreateClientLogger,
|
|
806
|
+
logger: clientLogger
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
__name(createLoggerContext, "createLoggerContext");
|
|
810
|
+
var context = createLoggerContext({
|
|
811
|
+
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
|
812
|
+
namespace: "typeSpecRuntime"
|
|
813
|
+
});
|
|
814
|
+
exports.TypeSpecRuntimeLogger = context.logger;
|
|
815
|
+
function setLogLevel(logLevel) {
|
|
816
|
+
context.setLogLevel(logLevel);
|
|
817
|
+
}
|
|
818
|
+
__name(setLogLevel, "setLogLevel");
|
|
819
|
+
function getLogLevel() {
|
|
820
|
+
return context.getLogLevel();
|
|
821
|
+
}
|
|
822
|
+
__name(getLogLevel, "getLogLevel");
|
|
823
|
+
function createClientLogger(namespace) {
|
|
824
|
+
return context.createClientLogger(namespace);
|
|
825
|
+
}
|
|
826
|
+
__name(createClientLogger, "createClientLogger");
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
|
|
830
|
+
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/internal.js
|
|
831
|
+
var require_internal = __commonJS({
|
|
832
|
+
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/internal.js"(exports) {
|
|
833
|
+
"use strict";
|
|
834
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
835
|
+
exports.createLoggerContext = void 0;
|
|
836
|
+
var logger_js_1 = require_logger();
|
|
837
|
+
Object.defineProperty(exports, "createLoggerContext", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
838
|
+
return logger_js_1.createLoggerContext;
|
|
839
|
+
}, "get") });
|
|
840
|
+
}
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
// ../../node_modules/.store/@azure-logger-npm-1.3.0-d53081e040/package/dist/commonjs/index.js
|
|
844
|
+
var require_commonjs = __commonJS({
|
|
845
|
+
"../../node_modules/.store/@azure-logger-npm-1.3.0-d53081e040/package/dist/commonjs/index.js"(exports) {
|
|
846
|
+
"use strict";
|
|
847
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
848
|
+
exports.AzureLogger = void 0;
|
|
849
|
+
exports.setLogLevel = setLogLevel;
|
|
850
|
+
exports.getLogLevel = getLogLevel;
|
|
851
|
+
exports.createClientLogger = createClientLogger;
|
|
852
|
+
var logger_1 = require_internal();
|
|
853
|
+
var context = (0, logger_1.createLoggerContext)({
|
|
854
|
+
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
|
855
|
+
namespace: "azure"
|
|
856
|
+
});
|
|
857
|
+
exports.AzureLogger = context.logger;
|
|
858
|
+
function setLogLevel(level) {
|
|
859
|
+
context.setLogLevel(level);
|
|
860
|
+
}
|
|
861
|
+
__name(setLogLevel, "setLogLevel");
|
|
862
|
+
function getLogLevel() {
|
|
863
|
+
return context.getLogLevel();
|
|
864
|
+
}
|
|
865
|
+
__name(getLogLevel, "getLogLevel");
|
|
866
|
+
function createClientLogger(namespace) {
|
|
867
|
+
return context.createClientLogger(namespace);
|
|
868
|
+
}
|
|
869
|
+
__name(createClientLogger, "createClientLogger");
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
|
|
873
|
+
// ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/state.js
|
|
874
|
+
var require_state = __commonJS({
|
|
875
|
+
"../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/state.js"(exports) {
|
|
876
|
+
"use strict";
|
|
877
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
878
|
+
exports.state = void 0;
|
|
879
|
+
exports.state = {
|
|
880
|
+
instrumenterImplementation: void 0
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
});
|
|
884
|
+
|
|
885
|
+
// ../../node_modules/.store/ms-npm-2.1.3-81ff3cfac1/package/index.js
|
|
886
|
+
var require_package = __commonJS({
|
|
887
|
+
"../../node_modules/.store/ms-npm-2.1.3-81ff3cfac1/package/index.js"(exports, module) {
|
|
888
|
+
var s = 1e3;
|
|
889
|
+
var m = s * 60;
|
|
890
|
+
var h = m * 60;
|
|
891
|
+
var d = h * 24;
|
|
892
|
+
var w = d * 7;
|
|
893
|
+
var y = d * 365.25;
|
|
894
|
+
module.exports = function(val, options) {
|
|
895
|
+
options = options || {};
|
|
896
|
+
var type = typeof val;
|
|
897
|
+
if (type === "string" && val.length > 0) {
|
|
898
|
+
return parse(val);
|
|
899
|
+
} else if (type === "number" && isFinite(val)) {
|
|
900
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
901
|
+
}
|
|
902
|
+
throw new Error(
|
|
903
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
904
|
+
);
|
|
905
|
+
};
|
|
906
|
+
function parse(str) {
|
|
907
|
+
str = String(str);
|
|
908
|
+
if (str.length > 100) {
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
912
|
+
str
|
|
913
|
+
);
|
|
914
|
+
if (!match) {
|
|
915
|
+
return;
|
|
916
|
+
}
|
|
917
|
+
var n = parseFloat(match[1]);
|
|
918
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
919
|
+
switch (type) {
|
|
920
|
+
case "years":
|
|
921
|
+
case "year":
|
|
922
|
+
case "yrs":
|
|
923
|
+
case "yr":
|
|
924
|
+
case "y":
|
|
925
|
+
return n * y;
|
|
926
|
+
case "weeks":
|
|
927
|
+
case "week":
|
|
928
|
+
case "w":
|
|
929
|
+
return n * w;
|
|
930
|
+
case "days":
|
|
931
|
+
case "day":
|
|
932
|
+
case "d":
|
|
933
|
+
return n * d;
|
|
934
|
+
case "hours":
|
|
935
|
+
case "hour":
|
|
936
|
+
case "hrs":
|
|
937
|
+
case "hr":
|
|
938
|
+
case "h":
|
|
939
|
+
return n * h;
|
|
940
|
+
case "minutes":
|
|
941
|
+
case "minute":
|
|
942
|
+
case "mins":
|
|
943
|
+
case "min":
|
|
944
|
+
case "m":
|
|
945
|
+
return n * m;
|
|
946
|
+
case "seconds":
|
|
947
|
+
case "second":
|
|
948
|
+
case "secs":
|
|
949
|
+
case "sec":
|
|
950
|
+
case "s":
|
|
951
|
+
return n * s;
|
|
952
|
+
case "milliseconds":
|
|
953
|
+
case "millisecond":
|
|
954
|
+
case "msecs":
|
|
955
|
+
case "msec":
|
|
956
|
+
case "ms":
|
|
957
|
+
return n;
|
|
958
|
+
default:
|
|
959
|
+
return void 0;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
__name(parse, "parse");
|
|
963
|
+
function fmtShort(ms) {
|
|
964
|
+
var msAbs = Math.abs(ms);
|
|
965
|
+
if (msAbs >= d) {
|
|
966
|
+
return Math.round(ms / d) + "d";
|
|
967
|
+
}
|
|
968
|
+
if (msAbs >= h) {
|
|
969
|
+
return Math.round(ms / h) + "h";
|
|
970
|
+
}
|
|
971
|
+
if (msAbs >= m) {
|
|
972
|
+
return Math.round(ms / m) + "m";
|
|
973
|
+
}
|
|
974
|
+
if (msAbs >= s) {
|
|
975
|
+
return Math.round(ms / s) + "s";
|
|
976
|
+
}
|
|
977
|
+
return ms + "ms";
|
|
978
|
+
}
|
|
979
|
+
__name(fmtShort, "fmtShort");
|
|
980
|
+
function fmtLong(ms) {
|
|
981
|
+
var msAbs = Math.abs(ms);
|
|
982
|
+
if (msAbs >= d) {
|
|
983
|
+
return plural(ms, msAbs, d, "day");
|
|
984
|
+
}
|
|
985
|
+
if (msAbs >= h) {
|
|
986
|
+
return plural(ms, msAbs, h, "hour");
|
|
987
|
+
}
|
|
988
|
+
if (msAbs >= m) {
|
|
989
|
+
return plural(ms, msAbs, m, "minute");
|
|
990
|
+
}
|
|
991
|
+
if (msAbs >= s) {
|
|
992
|
+
return plural(ms, msAbs, s, "second");
|
|
993
|
+
}
|
|
994
|
+
return ms + " ms";
|
|
995
|
+
}
|
|
996
|
+
__name(fmtLong, "fmtLong");
|
|
997
|
+
function plural(ms, msAbs, n, name) {
|
|
998
|
+
var isPlural = msAbs >= n * 1.5;
|
|
999
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
1000
|
+
}
|
|
1001
|
+
__name(plural, "plural");
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
|
|
1005
|
+
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/common.js
|
|
1006
|
+
var require_common = __commonJS({
|
|
1007
|
+
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/common.js"(exports, module) {
|
|
1008
|
+
function setup(env) {
|
|
1009
|
+
createDebug.debug = createDebug;
|
|
1010
|
+
createDebug.default = createDebug;
|
|
1011
|
+
createDebug.coerce = coerce;
|
|
1012
|
+
createDebug.disable = disable;
|
|
1013
|
+
createDebug.enable = enable;
|
|
1014
|
+
createDebug.enabled = enabled;
|
|
1015
|
+
createDebug.humanize = require_package();
|
|
1016
|
+
createDebug.destroy = destroy;
|
|
1017
|
+
Object.keys(env).forEach((key) => {
|
|
1018
|
+
createDebug[key] = env[key];
|
|
1019
|
+
});
|
|
1020
|
+
createDebug.names = [];
|
|
1021
|
+
createDebug.skips = [];
|
|
1022
|
+
createDebug.formatters = {};
|
|
1023
|
+
function selectColor(namespace) {
|
|
1024
|
+
let hash = 0;
|
|
1025
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
1026
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
1027
|
+
hash |= 0;
|
|
1028
|
+
}
|
|
1029
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
1030
|
+
}
|
|
1031
|
+
__name(selectColor, "selectColor");
|
|
1032
|
+
createDebug.selectColor = selectColor;
|
|
1033
|
+
function createDebug(namespace) {
|
|
1034
|
+
let prevTime;
|
|
1035
|
+
let enableOverride = null;
|
|
1036
|
+
let namespacesCache;
|
|
1037
|
+
let enabledCache;
|
|
1038
|
+
function debug(...args) {
|
|
1039
|
+
if (!debug.enabled) {
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
const self = debug;
|
|
1043
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
1044
|
+
const ms = curr - (prevTime || curr);
|
|
1045
|
+
self.diff = ms;
|
|
1046
|
+
self.prev = prevTime;
|
|
1047
|
+
self.curr = curr;
|
|
1048
|
+
prevTime = curr;
|
|
1049
|
+
args[0] = createDebug.coerce(args[0]);
|
|
1050
|
+
if (typeof args[0] !== "string") {
|
|
1051
|
+
args.unshift("%O");
|
|
1052
|
+
}
|
|
1053
|
+
let index = 0;
|
|
1054
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
1055
|
+
if (match === "%%") {
|
|
1056
|
+
return "%";
|
|
1057
|
+
}
|
|
1058
|
+
index++;
|
|
1059
|
+
const formatter = createDebug.formatters[format];
|
|
1060
|
+
if (typeof formatter === "function") {
|
|
1061
|
+
const val = args[index];
|
|
1062
|
+
match = formatter.call(self, val);
|
|
1063
|
+
args.splice(index, 1);
|
|
1064
|
+
index--;
|
|
1065
|
+
}
|
|
1066
|
+
return match;
|
|
1067
|
+
});
|
|
1068
|
+
createDebug.formatArgs.call(self, args);
|
|
1069
|
+
const logFn = self.log || createDebug.log;
|
|
1070
|
+
logFn.apply(self, args);
|
|
1071
|
+
}
|
|
1072
|
+
__name(debug, "debug");
|
|
1073
|
+
debug.namespace = namespace;
|
|
1074
|
+
debug.useColors = createDebug.useColors();
|
|
1075
|
+
debug.color = createDebug.selectColor(namespace);
|
|
1076
|
+
debug.extend = extend;
|
|
1077
|
+
debug.destroy = createDebug.destroy;
|
|
1078
|
+
Object.defineProperty(debug, "enabled", {
|
|
1079
|
+
enumerable: true,
|
|
1080
|
+
configurable: false,
|
|
1081
|
+
get: /* @__PURE__ */ __name(() => {
|
|
1082
|
+
if (enableOverride !== null) {
|
|
1083
|
+
return enableOverride;
|
|
1084
|
+
}
|
|
1085
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
1086
|
+
namespacesCache = createDebug.namespaces;
|
|
1087
|
+
enabledCache = createDebug.enabled(namespace);
|
|
1088
|
+
}
|
|
1089
|
+
return enabledCache;
|
|
1090
|
+
}, "get"),
|
|
1091
|
+
set: /* @__PURE__ */ __name((v) => {
|
|
1092
|
+
enableOverride = v;
|
|
1093
|
+
}, "set")
|
|
1094
|
+
});
|
|
1095
|
+
if (typeof createDebug.init === "function") {
|
|
1096
|
+
createDebug.init(debug);
|
|
1097
|
+
}
|
|
1098
|
+
return debug;
|
|
1099
|
+
}
|
|
1100
|
+
__name(createDebug, "createDebug");
|
|
1101
|
+
function extend(namespace, delimiter) {
|
|
1102
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
1103
|
+
newDebug.log = this.log;
|
|
1104
|
+
return newDebug;
|
|
1105
|
+
}
|
|
1106
|
+
__name(extend, "extend");
|
|
1107
|
+
function enable(namespaces) {
|
|
1108
|
+
createDebug.save(namespaces);
|
|
1109
|
+
createDebug.namespaces = namespaces;
|
|
1110
|
+
createDebug.names = [];
|
|
1111
|
+
createDebug.skips = [];
|
|
1112
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
1113
|
+
for (const ns of split) {
|
|
1114
|
+
if (ns[0] === "-") {
|
|
1115
|
+
createDebug.skips.push(ns.slice(1));
|
|
1116
|
+
} else {
|
|
1117
|
+
createDebug.names.push(ns);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
__name(enable, "enable");
|
|
1122
|
+
function matchesTemplate(search, template) {
|
|
1123
|
+
let searchIndex = 0;
|
|
1124
|
+
let templateIndex = 0;
|
|
1125
|
+
let starIndex = -1;
|
|
1126
|
+
let matchIndex = 0;
|
|
1127
|
+
while (searchIndex < search.length) {
|
|
1128
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
1129
|
+
if (template[templateIndex] === "*") {
|
|
1130
|
+
starIndex = templateIndex;
|
|
1131
|
+
matchIndex = searchIndex;
|
|
1132
|
+
templateIndex++;
|
|
1133
|
+
} else {
|
|
1134
|
+
searchIndex++;
|
|
1135
|
+
templateIndex++;
|
|
1136
|
+
}
|
|
1137
|
+
} else if (starIndex !== -1) {
|
|
1138
|
+
templateIndex = starIndex + 1;
|
|
1139
|
+
matchIndex++;
|
|
1140
|
+
searchIndex = matchIndex;
|
|
1141
|
+
} else {
|
|
1142
|
+
return false;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
1146
|
+
templateIndex++;
|
|
1147
|
+
}
|
|
1148
|
+
return templateIndex === template.length;
|
|
1149
|
+
}
|
|
1150
|
+
__name(matchesTemplate, "matchesTemplate");
|
|
1151
|
+
function disable() {
|
|
1152
|
+
const namespaces = [
|
|
1153
|
+
...createDebug.names,
|
|
1154
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
1155
|
+
].join(",");
|
|
1156
|
+
createDebug.enable("");
|
|
1157
|
+
return namespaces;
|
|
1158
|
+
}
|
|
1159
|
+
__name(disable, "disable");
|
|
1160
|
+
function enabled(name) {
|
|
1161
|
+
for (const skip of createDebug.skips) {
|
|
1162
|
+
if (matchesTemplate(name, skip)) {
|
|
1163
|
+
return false;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
for (const ns of createDebug.names) {
|
|
1167
|
+
if (matchesTemplate(name, ns)) {
|
|
1168
|
+
return true;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
return false;
|
|
1172
|
+
}
|
|
1173
|
+
__name(enabled, "enabled");
|
|
1174
|
+
function coerce(val) {
|
|
1175
|
+
if (val instanceof Error) {
|
|
1176
|
+
return val.stack || val.message;
|
|
1177
|
+
}
|
|
1178
|
+
return val;
|
|
1179
|
+
}
|
|
1180
|
+
__name(coerce, "coerce");
|
|
1181
|
+
function destroy() {
|
|
1182
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1183
|
+
}
|
|
1184
|
+
__name(destroy, "destroy");
|
|
1185
|
+
createDebug.enable(createDebug.load());
|
|
1186
|
+
return createDebug;
|
|
1187
|
+
}
|
|
1188
|
+
__name(setup, "setup");
|
|
1189
|
+
module.exports = setup;
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
|
|
1193
|
+
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/browser.js
|
|
1194
|
+
var require_browser = __commonJS({
|
|
1195
|
+
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/browser.js"(exports, module) {
|
|
1196
|
+
exports.formatArgs = formatArgs;
|
|
1197
|
+
exports.save = save;
|
|
1198
|
+
exports.load = load;
|
|
1199
|
+
exports.useColors = useColors;
|
|
1200
|
+
exports.storage = localstorage();
|
|
1201
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
1202
|
+
let warned = false;
|
|
1203
|
+
return () => {
|
|
1204
|
+
if (!warned) {
|
|
1205
|
+
warned = true;
|
|
1206
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
})();
|
|
1210
|
+
exports.colors = [
|
|
1211
|
+
"#0000CC",
|
|
1212
|
+
"#0000FF",
|
|
1213
|
+
"#0033CC",
|
|
1214
|
+
"#0033FF",
|
|
1215
|
+
"#0066CC",
|
|
1216
|
+
"#0066FF",
|
|
1217
|
+
"#0099CC",
|
|
1218
|
+
"#0099FF",
|
|
1219
|
+
"#00CC00",
|
|
1220
|
+
"#00CC33",
|
|
1221
|
+
"#00CC66",
|
|
1222
|
+
"#00CC99",
|
|
1223
|
+
"#00CCCC",
|
|
1224
|
+
"#00CCFF",
|
|
1225
|
+
"#3300CC",
|
|
1226
|
+
"#3300FF",
|
|
1227
|
+
"#3333CC",
|
|
1228
|
+
"#3333FF",
|
|
1229
|
+
"#3366CC",
|
|
1230
|
+
"#3366FF",
|
|
1231
|
+
"#3399CC",
|
|
1232
|
+
"#3399FF",
|
|
1233
|
+
"#33CC00",
|
|
1234
|
+
"#33CC33",
|
|
1235
|
+
"#33CC66",
|
|
1236
|
+
"#33CC99",
|
|
1237
|
+
"#33CCCC",
|
|
1238
|
+
"#33CCFF",
|
|
1239
|
+
"#6600CC",
|
|
1240
|
+
"#6600FF",
|
|
1241
|
+
"#6633CC",
|
|
1242
|
+
"#6633FF",
|
|
1243
|
+
"#66CC00",
|
|
1244
|
+
"#66CC33",
|
|
1245
|
+
"#9900CC",
|
|
1246
|
+
"#9900FF",
|
|
1247
|
+
"#9933CC",
|
|
1248
|
+
"#9933FF",
|
|
1249
|
+
"#99CC00",
|
|
1250
|
+
"#99CC33",
|
|
1251
|
+
"#CC0000",
|
|
1252
|
+
"#CC0033",
|
|
1253
|
+
"#CC0066",
|
|
1254
|
+
"#CC0099",
|
|
1255
|
+
"#CC00CC",
|
|
1256
|
+
"#CC00FF",
|
|
1257
|
+
"#CC3300",
|
|
1258
|
+
"#CC3333",
|
|
1259
|
+
"#CC3366",
|
|
1260
|
+
"#CC3399",
|
|
1261
|
+
"#CC33CC",
|
|
1262
|
+
"#CC33FF",
|
|
1263
|
+
"#CC6600",
|
|
1264
|
+
"#CC6633",
|
|
1265
|
+
"#CC9900",
|
|
1266
|
+
"#CC9933",
|
|
1267
|
+
"#CCCC00",
|
|
1268
|
+
"#CCCC33",
|
|
1269
|
+
"#FF0000",
|
|
1270
|
+
"#FF0033",
|
|
1271
|
+
"#FF0066",
|
|
1272
|
+
"#FF0099",
|
|
1273
|
+
"#FF00CC",
|
|
1274
|
+
"#FF00FF",
|
|
1275
|
+
"#FF3300",
|
|
1276
|
+
"#FF3333",
|
|
1277
|
+
"#FF3366",
|
|
1278
|
+
"#FF3399",
|
|
1279
|
+
"#FF33CC",
|
|
1280
|
+
"#FF33FF",
|
|
1281
|
+
"#FF6600",
|
|
1282
|
+
"#FF6633",
|
|
1283
|
+
"#FF9900",
|
|
1284
|
+
"#FF9933",
|
|
1285
|
+
"#FFCC00",
|
|
1286
|
+
"#FFCC33"
|
|
1287
|
+
];
|
|
1288
|
+
function useColors() {
|
|
1289
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
1290
|
+
return true;
|
|
1291
|
+
}
|
|
1292
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
1293
|
+
return false;
|
|
1294
|
+
}
|
|
1295
|
+
let m;
|
|
1296
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
1297
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
1298
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
1299
|
+
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
|
|
1300
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
1301
|
+
}
|
|
1302
|
+
__name(useColors, "useColors");
|
|
1303
|
+
function formatArgs(args) {
|
|
1304
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
1305
|
+
if (!this.useColors) {
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
const c = "color: " + this.color;
|
|
1309
|
+
args.splice(1, 0, c, "color: inherit");
|
|
1310
|
+
let index = 0;
|
|
1311
|
+
let lastC = 0;
|
|
1312
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
1313
|
+
if (match === "%%") {
|
|
1314
|
+
return;
|
|
1315
|
+
}
|
|
1316
|
+
index++;
|
|
1317
|
+
if (match === "%c") {
|
|
1318
|
+
lastC = index;
|
|
1319
|
+
}
|
|
1320
|
+
});
|
|
1321
|
+
args.splice(lastC, 0, c);
|
|
1322
|
+
}
|
|
1323
|
+
__name(formatArgs, "formatArgs");
|
|
1324
|
+
exports.log = console.debug || console.log || (() => {
|
|
1325
|
+
});
|
|
1326
|
+
function save(namespaces) {
|
|
1327
|
+
try {
|
|
1328
|
+
if (namespaces) {
|
|
1329
|
+
exports.storage.setItem("debug", namespaces);
|
|
1330
|
+
} else {
|
|
1331
|
+
exports.storage.removeItem("debug");
|
|
1332
|
+
}
|
|
1333
|
+
} catch (error) {
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
__name(save, "save");
|
|
1337
|
+
function load() {
|
|
1338
|
+
let r;
|
|
1339
|
+
try {
|
|
1340
|
+
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
1341
|
+
} catch (error) {
|
|
1342
|
+
}
|
|
1343
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
1344
|
+
r = process.env.DEBUG;
|
|
1345
|
+
}
|
|
1346
|
+
return r;
|
|
1347
|
+
}
|
|
1348
|
+
__name(load, "load");
|
|
1349
|
+
function localstorage() {
|
|
1350
|
+
try {
|
|
1351
|
+
return localStorage;
|
|
1352
|
+
} catch (error) {
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
__name(localstorage, "localstorage");
|
|
1356
|
+
module.exports = require_common()(exports);
|
|
1357
|
+
var { formatters } = module.exports;
|
|
1358
|
+
formatters.j = function(v) {
|
|
1359
|
+
try {
|
|
1360
|
+
return JSON.stringify(v);
|
|
1361
|
+
} catch (error) {
|
|
1362
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
1367
|
+
|
|
1368
|
+
// ../../node_modules/.store/has-flag-npm-4.0.0-32af9f0536/package/index.js
|
|
1369
|
+
var require_package2 = __commonJS({
|
|
1370
|
+
"../../node_modules/.store/has-flag-npm-4.0.0-32af9f0536/package/index.js"(exports, module) {
|
|
1371
|
+
"use strict";
|
|
1372
|
+
module.exports = (flag, argv = process.argv) => {
|
|
1373
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
1374
|
+
const position = argv.indexOf(prefix + flag);
|
|
1375
|
+
const terminatorPosition = argv.indexOf("--");
|
|
1376
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
|
|
1381
|
+
// ../../node_modules/.store/supports-color-npm-8.1.1-289e937149/package/index.js
|
|
1382
|
+
var require_package3 = __commonJS({
|
|
1383
|
+
"../../node_modules/.store/supports-color-npm-8.1.1-289e937149/package/index.js"(exports, module) {
|
|
1384
|
+
"use strict";
|
|
1385
|
+
var os = __require("os");
|
|
1386
|
+
var tty = __require("tty");
|
|
1387
|
+
var hasFlag = require_package2();
|
|
1388
|
+
var { env } = process;
|
|
1389
|
+
var flagForceColor;
|
|
1390
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
1391
|
+
flagForceColor = 0;
|
|
1392
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
1393
|
+
flagForceColor = 1;
|
|
1394
|
+
}
|
|
1395
|
+
function envForceColor() {
|
|
1396
|
+
if ("FORCE_COLOR" in env) {
|
|
1397
|
+
if (env.FORCE_COLOR === "true") {
|
|
1398
|
+
return 1;
|
|
1399
|
+
}
|
|
1400
|
+
if (env.FORCE_COLOR === "false") {
|
|
1401
|
+
return 0;
|
|
1402
|
+
}
|
|
1403
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
__name(envForceColor, "envForceColor");
|
|
1407
|
+
function translateLevel(level) {
|
|
1408
|
+
if (level === 0) {
|
|
1409
|
+
return false;
|
|
1410
|
+
}
|
|
1411
|
+
return {
|
|
1412
|
+
level,
|
|
1413
|
+
hasBasic: true,
|
|
1414
|
+
has256: level >= 2,
|
|
1415
|
+
has16m: level >= 3
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
__name(translateLevel, "translateLevel");
|
|
1419
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
1420
|
+
const noFlagForceColor = envForceColor();
|
|
1421
|
+
if (noFlagForceColor !== void 0) {
|
|
1422
|
+
flagForceColor = noFlagForceColor;
|
|
1423
|
+
}
|
|
1424
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
1425
|
+
if (forceColor === 0) {
|
|
1426
|
+
return 0;
|
|
1427
|
+
}
|
|
1428
|
+
if (sniffFlags) {
|
|
1429
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
1430
|
+
return 3;
|
|
1431
|
+
}
|
|
1432
|
+
if (hasFlag("color=256")) {
|
|
1433
|
+
return 2;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
1437
|
+
return 0;
|
|
1438
|
+
}
|
|
1439
|
+
const min = forceColor || 0;
|
|
1440
|
+
if (env.TERM === "dumb") {
|
|
1441
|
+
return min;
|
|
1442
|
+
}
|
|
1443
|
+
if (process.platform === "win32") {
|
|
1444
|
+
const osRelease = os.release().split(".");
|
|
1445
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1446
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1447
|
+
}
|
|
1448
|
+
return 1;
|
|
1449
|
+
}
|
|
1450
|
+
if ("CI" in env) {
|
|
1451
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
1452
|
+
return 1;
|
|
1453
|
+
}
|
|
1454
|
+
return min;
|
|
1455
|
+
}
|
|
1456
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
1457
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
1458
|
+
}
|
|
1459
|
+
if (env.COLORTERM === "truecolor") {
|
|
1460
|
+
return 3;
|
|
1461
|
+
}
|
|
1462
|
+
if ("TERM_PROGRAM" in env) {
|
|
1463
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1464
|
+
switch (env.TERM_PROGRAM) {
|
|
1465
|
+
case "iTerm.app":
|
|
1466
|
+
return version >= 3 ? 3 : 2;
|
|
1467
|
+
case "Apple_Terminal":
|
|
1468
|
+
return 2;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
1472
|
+
return 2;
|
|
1473
|
+
}
|
|
1474
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
1475
|
+
return 1;
|
|
1476
|
+
}
|
|
1477
|
+
if ("COLORTERM" in env) {
|
|
1478
|
+
return 1;
|
|
1479
|
+
}
|
|
1480
|
+
return min;
|
|
1481
|
+
}
|
|
1482
|
+
__name(supportsColor, "supportsColor");
|
|
1483
|
+
function getSupportLevel(stream, options = {}) {
|
|
1484
|
+
const level = supportsColor(stream, {
|
|
1485
|
+
streamIsTTY: stream && stream.isTTY,
|
|
1486
|
+
...options
|
|
1487
|
+
});
|
|
1488
|
+
return translateLevel(level);
|
|
1489
|
+
}
|
|
1490
|
+
__name(getSupportLevel, "getSupportLevel");
|
|
1491
|
+
module.exports = {
|
|
1492
|
+
supportsColor: getSupportLevel,
|
|
1493
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
1494
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1498
|
+
|
|
1499
|
+
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/node.js
|
|
1500
|
+
var require_node = __commonJS({
|
|
1501
|
+
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/node.js"(exports, module) {
|
|
1502
|
+
var tty = __require("tty");
|
|
1503
|
+
var util = __require("util");
|
|
1504
|
+
exports.init = init;
|
|
1505
|
+
exports.log = log;
|
|
1506
|
+
exports.formatArgs = formatArgs;
|
|
1507
|
+
exports.save = save;
|
|
1508
|
+
exports.load = load;
|
|
1509
|
+
exports.useColors = useColors;
|
|
1510
|
+
exports.destroy = util.deprecate(
|
|
1511
|
+
() => {
|
|
1512
|
+
},
|
|
1513
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
1514
|
+
);
|
|
1515
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
1516
|
+
try {
|
|
1517
|
+
const supportsColor = require_package3();
|
|
1518
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
1519
|
+
exports.colors = [
|
|
1520
|
+
20,
|
|
1521
|
+
21,
|
|
1522
|
+
26,
|
|
1523
|
+
27,
|
|
1524
|
+
32,
|
|
1525
|
+
33,
|
|
1526
|
+
38,
|
|
1527
|
+
39,
|
|
1528
|
+
40,
|
|
1529
|
+
41,
|
|
1530
|
+
42,
|
|
1531
|
+
43,
|
|
1532
|
+
44,
|
|
1533
|
+
45,
|
|
1534
|
+
56,
|
|
1535
|
+
57,
|
|
1536
|
+
62,
|
|
1537
|
+
63,
|
|
1538
|
+
68,
|
|
1539
|
+
69,
|
|
1540
|
+
74,
|
|
1541
|
+
75,
|
|
1542
|
+
76,
|
|
1543
|
+
77,
|
|
1544
|
+
78,
|
|
1545
|
+
79,
|
|
1546
|
+
80,
|
|
1547
|
+
81,
|
|
1548
|
+
92,
|
|
1549
|
+
93,
|
|
1550
|
+
98,
|
|
1551
|
+
99,
|
|
1552
|
+
112,
|
|
1553
|
+
113,
|
|
1554
|
+
128,
|
|
1555
|
+
129,
|
|
1556
|
+
134,
|
|
1557
|
+
135,
|
|
1558
|
+
148,
|
|
1559
|
+
149,
|
|
1560
|
+
160,
|
|
1561
|
+
161,
|
|
1562
|
+
162,
|
|
1563
|
+
163,
|
|
1564
|
+
164,
|
|
1565
|
+
165,
|
|
1566
|
+
166,
|
|
1567
|
+
167,
|
|
1568
|
+
168,
|
|
1569
|
+
169,
|
|
1570
|
+
170,
|
|
1571
|
+
171,
|
|
1572
|
+
172,
|
|
1573
|
+
173,
|
|
1574
|
+
178,
|
|
1575
|
+
179,
|
|
1576
|
+
184,
|
|
1577
|
+
185,
|
|
1578
|
+
196,
|
|
1579
|
+
197,
|
|
1580
|
+
198,
|
|
1581
|
+
199,
|
|
1582
|
+
200,
|
|
1583
|
+
201,
|
|
1584
|
+
202,
|
|
1585
|
+
203,
|
|
1586
|
+
204,
|
|
1587
|
+
205,
|
|
1588
|
+
206,
|
|
1589
|
+
207,
|
|
1590
|
+
208,
|
|
1591
|
+
209,
|
|
1592
|
+
214,
|
|
1593
|
+
215,
|
|
1594
|
+
220,
|
|
1595
|
+
221
|
|
1596
|
+
];
|
|
1597
|
+
}
|
|
1598
|
+
} catch (error) {
|
|
1599
|
+
}
|
|
1600
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
1601
|
+
return /^debug_/i.test(key);
|
|
1602
|
+
}).reduce((obj, key) => {
|
|
1603
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
1604
|
+
return k.toUpperCase();
|
|
1605
|
+
});
|
|
1606
|
+
let val = process.env[key];
|
|
1607
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
1608
|
+
val = true;
|
|
1609
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
1610
|
+
val = false;
|
|
1611
|
+
} else if (val === "null") {
|
|
1612
|
+
val = null;
|
|
1613
|
+
} else {
|
|
1614
|
+
val = Number(val);
|
|
1615
|
+
}
|
|
1616
|
+
obj[prop] = val;
|
|
1617
|
+
return obj;
|
|
1618
|
+
}, {});
|
|
1619
|
+
function useColors() {
|
|
1620
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
1621
|
+
}
|
|
1622
|
+
__name(useColors, "useColors");
|
|
1623
|
+
function formatArgs(args) {
|
|
1624
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
1625
|
+
if (useColors2) {
|
|
1626
|
+
const c = this.color;
|
|
1627
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
1628
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
1629
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
1630
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
1631
|
+
} else {
|
|
1632
|
+
args[0] = getDate() + name + " " + args[0];
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
__name(formatArgs, "formatArgs");
|
|
1636
|
+
function getDate() {
|
|
1637
|
+
if (exports.inspectOpts.hideDate) {
|
|
1638
|
+
return "";
|
|
1639
|
+
}
|
|
1640
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
1641
|
+
}
|
|
1642
|
+
__name(getDate, "getDate");
|
|
1643
|
+
function log(...args) {
|
|
1644
|
+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
1645
|
+
}
|
|
1646
|
+
__name(log, "log");
|
|
1647
|
+
function save(namespaces) {
|
|
1648
|
+
if (namespaces) {
|
|
1649
|
+
process.env.DEBUG = namespaces;
|
|
1650
|
+
} else {
|
|
1651
|
+
delete process.env.DEBUG;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
__name(save, "save");
|
|
1655
|
+
function load() {
|
|
1656
|
+
return process.env.DEBUG;
|
|
1657
|
+
}
|
|
1658
|
+
__name(load, "load");
|
|
1659
|
+
function init(debug) {
|
|
1660
|
+
debug.inspectOpts = {};
|
|
1661
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
1662
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1663
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
__name(init, "init");
|
|
1667
|
+
module.exports = require_common()(exports);
|
|
1668
|
+
var { formatters } = module.exports;
|
|
1669
|
+
formatters.o = function(v) {
|
|
1670
|
+
this.inspectOpts.colors = this.useColors;
|
|
1671
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
1672
|
+
};
|
|
1673
|
+
formatters.O = function(v) {
|
|
1674
|
+
this.inspectOpts.colors = this.useColors;
|
|
1675
|
+
return util.inspect(v, this.inspectOpts);
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
});
|
|
1679
|
+
|
|
1680
|
+
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/index.js
|
|
1681
|
+
var require_src = __commonJS({
|
|
1682
|
+
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/index.js"(exports, module) {
|
|
1683
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
1684
|
+
module.exports = require_browser();
|
|
1685
|
+
} else {
|
|
1686
|
+
module.exports = require_node();
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
|
|
1691
|
+
// ../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/helpers.js
|
|
1692
|
+
var require_helpers = __commonJS({
|
|
1693
|
+
"../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/helpers.js"(exports) {
|
|
1694
|
+
"use strict";
|
|
1695
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1696
|
+
if (k2 === void 0) k2 = k;
|
|
1697
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1698
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1699
|
+
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
1700
|
+
return m[k];
|
|
1701
|
+
}, "get") };
|
|
1702
|
+
}
|
|
1703
|
+
Object.defineProperty(o, k2, desc);
|
|
1704
|
+
} : function(o, m, k, k2) {
|
|
1705
|
+
if (k2 === void 0) k2 = k;
|
|
1706
|
+
o[k2] = m[k];
|
|
1707
|
+
});
|
|
1708
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
1709
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1710
|
+
} : function(o, v) {
|
|
1711
|
+
o["default"] = v;
|
|
1712
|
+
});
|
|
1713
|
+
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
1714
|
+
if (mod && mod.__esModule) return mod;
|
|
1715
|
+
var result = {};
|
|
1716
|
+
if (mod != null) {
|
|
1717
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
1718
|
+
}
|
|
1719
|
+
__setModuleDefault2(result, mod);
|
|
1720
|
+
return result;
|
|
1721
|
+
};
|
|
1722
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1723
|
+
exports.req = exports.json = exports.toBuffer = void 0;
|
|
1724
|
+
var http = __importStar2(__require("http"));
|
|
1725
|
+
var https = __importStar2(__require("https"));
|
|
1726
|
+
async function toBuffer(stream) {
|
|
1727
|
+
let length = 0;
|
|
1728
|
+
const chunks = [];
|
|
1729
|
+
for await (const chunk of stream) {
|
|
1730
|
+
length += chunk.length;
|
|
1731
|
+
chunks.push(chunk);
|
|
1732
|
+
}
|
|
1733
|
+
return Buffer.concat(chunks, length);
|
|
1734
|
+
}
|
|
1735
|
+
__name(toBuffer, "toBuffer");
|
|
1736
|
+
exports.toBuffer = toBuffer;
|
|
1737
|
+
async function json(stream) {
|
|
1738
|
+
const buf = await toBuffer(stream);
|
|
1739
|
+
const str = buf.toString("utf8");
|
|
1740
|
+
try {
|
|
1741
|
+
return JSON.parse(str);
|
|
1742
|
+
} catch (_err) {
|
|
1743
|
+
const err = _err;
|
|
1744
|
+
err.message += ` (input: ${str})`;
|
|
1745
|
+
throw err;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
__name(json, "json");
|
|
1749
|
+
exports.json = json;
|
|
1750
|
+
function req(url, opts = {}) {
|
|
1751
|
+
const href = typeof url === "string" ? url : url.href;
|
|
1752
|
+
const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
|
|
1753
|
+
const promise = new Promise((resolve, reject) => {
|
|
1754
|
+
req2.once("response", resolve).once("error", reject).end();
|
|
1755
|
+
});
|
|
1756
|
+
req2.then = promise.then.bind(promise);
|
|
1757
|
+
return req2;
|
|
1758
|
+
}
|
|
1759
|
+
__name(req, "req");
|
|
1760
|
+
exports.req = req;
|
|
1761
|
+
}
|
|
1762
|
+
});
|
|
1763
|
+
|
|
1764
|
+
// ../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/index.js
|
|
1765
|
+
var require_dist = __commonJS({
|
|
1766
|
+
"../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/index.js"(exports) {
|
|
1767
|
+
"use strict";
|
|
1768
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1769
|
+
if (k2 === void 0) k2 = k;
|
|
1770
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1771
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1772
|
+
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
1773
|
+
return m[k];
|
|
1774
|
+
}, "get") };
|
|
1775
|
+
}
|
|
1776
|
+
Object.defineProperty(o, k2, desc);
|
|
1777
|
+
} : function(o, m, k, k2) {
|
|
1778
|
+
if (k2 === void 0) k2 = k;
|
|
1779
|
+
o[k2] = m[k];
|
|
1780
|
+
});
|
|
1781
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
1782
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1783
|
+
} : function(o, v) {
|
|
1784
|
+
o["default"] = v;
|
|
1785
|
+
});
|
|
1786
|
+
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
1787
|
+
if (mod && mod.__esModule) return mod;
|
|
1788
|
+
var result = {};
|
|
1789
|
+
if (mod != null) {
|
|
1790
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
1791
|
+
}
|
|
1792
|
+
__setModuleDefault2(result, mod);
|
|
1793
|
+
return result;
|
|
1794
|
+
};
|
|
1795
|
+
var __exportStar2 = exports && exports.__exportStar || function(m, exports2) {
|
|
1796
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding2(exports2, m, p);
|
|
1797
|
+
};
|
|
1798
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1799
|
+
exports.Agent = void 0;
|
|
1800
|
+
var net = __importStar2(__require("net"));
|
|
1801
|
+
var http = __importStar2(__require("http"));
|
|
1802
|
+
var https_1 = __require("https");
|
|
1803
|
+
__exportStar2(require_helpers(), exports);
|
|
1804
|
+
var INTERNAL = Symbol("AgentBaseInternalState");
|
|
1805
|
+
var _Agent = class _Agent extends http.Agent {
|
|
1806
|
+
constructor(opts) {
|
|
1807
|
+
super(opts);
|
|
1808
|
+
this[INTERNAL] = {};
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Determine whether this is an `http` or `https` request.
|
|
1812
|
+
*/
|
|
1813
|
+
isSecureEndpoint(options) {
|
|
1814
|
+
if (options) {
|
|
1815
|
+
if (typeof options.secureEndpoint === "boolean") {
|
|
1816
|
+
return options.secureEndpoint;
|
|
1817
|
+
}
|
|
1818
|
+
if (typeof options.protocol === "string") {
|
|
1819
|
+
return options.protocol === "https:";
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
const { stack } = new Error();
|
|
1823
|
+
if (typeof stack !== "string")
|
|
1824
|
+
return false;
|
|
1825
|
+
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
|
|
1826
|
+
}
|
|
1827
|
+
// In order to support async signatures in `connect()` and Node's native
|
|
1828
|
+
// connection pooling in `http.Agent`, the array of sockets for each origin
|
|
1829
|
+
// has to be updated synchronously. This is so the length of the array is
|
|
1830
|
+
// accurate when `addRequest()` is next called. We achieve this by creating a
|
|
1831
|
+
// fake socket and adding it to `sockets[origin]` and incrementing
|
|
1832
|
+
// `totalSocketCount`.
|
|
1833
|
+
incrementSockets(name) {
|
|
1834
|
+
if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
|
|
1835
|
+
return null;
|
|
1836
|
+
}
|
|
1837
|
+
if (!this.sockets[name]) {
|
|
1838
|
+
this.sockets[name] = [];
|
|
1839
|
+
}
|
|
1840
|
+
const fakeSocket = new net.Socket({ writable: false });
|
|
1841
|
+
this.sockets[name].push(fakeSocket);
|
|
1842
|
+
this.totalSocketCount++;
|
|
1843
|
+
return fakeSocket;
|
|
1844
|
+
}
|
|
1845
|
+
decrementSockets(name, socket) {
|
|
1846
|
+
if (!this.sockets[name] || socket === null) {
|
|
1847
|
+
return;
|
|
1848
|
+
}
|
|
1849
|
+
const sockets = this.sockets[name];
|
|
1850
|
+
const index = sockets.indexOf(socket);
|
|
1851
|
+
if (index !== -1) {
|
|
1852
|
+
sockets.splice(index, 1);
|
|
1853
|
+
this.totalSocketCount--;
|
|
1854
|
+
if (sockets.length === 0) {
|
|
1855
|
+
delete this.sockets[name];
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
// In order to properly update the socket pool, we need to call `getName()` on
|
|
1860
|
+
// the core `https.Agent` if it is a secureEndpoint.
|
|
1861
|
+
getName(options) {
|
|
1862
|
+
const secureEndpoint = this.isSecureEndpoint(options);
|
|
1863
|
+
if (secureEndpoint) {
|
|
1864
|
+
return https_1.Agent.prototype.getName.call(this, options);
|
|
1865
|
+
}
|
|
1866
|
+
return super.getName(options);
|
|
1867
|
+
}
|
|
1868
|
+
createSocket(req, options, cb) {
|
|
1869
|
+
const connectOpts = {
|
|
1870
|
+
...options,
|
|
1871
|
+
secureEndpoint: this.isSecureEndpoint(options)
|
|
1872
|
+
};
|
|
1873
|
+
const name = this.getName(connectOpts);
|
|
1874
|
+
const fakeSocket = this.incrementSockets(name);
|
|
1875
|
+
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
|
1876
|
+
this.decrementSockets(name, fakeSocket);
|
|
1877
|
+
if (socket instanceof http.Agent) {
|
|
1878
|
+
try {
|
|
1879
|
+
return socket.addRequest(req, connectOpts);
|
|
1880
|
+
} catch (err) {
|
|
1881
|
+
return cb(err);
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
this[INTERNAL].currentSocket = socket;
|
|
1885
|
+
super.createSocket(req, options, cb);
|
|
1886
|
+
}, (err) => {
|
|
1887
|
+
this.decrementSockets(name, fakeSocket);
|
|
1888
|
+
cb(err);
|
|
1889
|
+
});
|
|
1890
|
+
}
|
|
1891
|
+
createConnection() {
|
|
1892
|
+
const socket = this[INTERNAL].currentSocket;
|
|
1893
|
+
this[INTERNAL].currentSocket = void 0;
|
|
1894
|
+
if (!socket) {
|
|
1895
|
+
throw new Error("No socket was returned in the `connect()` function");
|
|
1896
|
+
}
|
|
1897
|
+
return socket;
|
|
1898
|
+
}
|
|
1899
|
+
get defaultPort() {
|
|
1900
|
+
return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
|
|
1901
|
+
}
|
|
1902
|
+
set defaultPort(v) {
|
|
1903
|
+
if (this[INTERNAL]) {
|
|
1904
|
+
this[INTERNAL].defaultPort = v;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
get protocol() {
|
|
1908
|
+
return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
|
|
1909
|
+
}
|
|
1910
|
+
set protocol(v) {
|
|
1911
|
+
if (this[INTERNAL]) {
|
|
1912
|
+
this[INTERNAL].protocol = v;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1916
|
+
__name(_Agent, "Agent");
|
|
1917
|
+
var Agent = _Agent;
|
|
1918
|
+
exports.Agent = Agent;
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
|
|
1922
|
+
// ../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/parse-proxy-response.js
|
|
1923
|
+
var require_parse_proxy_response = __commonJS({
|
|
1924
|
+
"../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/parse-proxy-response.js"(exports) {
|
|
1925
|
+
"use strict";
|
|
1926
|
+
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
1927
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1928
|
+
};
|
|
1929
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1930
|
+
exports.parseProxyResponse = void 0;
|
|
1931
|
+
var debug_1 = __importDefault2(require_src());
|
|
1932
|
+
var debug = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
|
1933
|
+
function parseProxyResponse(socket) {
|
|
1934
|
+
return new Promise((resolve, reject) => {
|
|
1935
|
+
let buffersLength = 0;
|
|
1936
|
+
const buffers = [];
|
|
1937
|
+
function read() {
|
|
1938
|
+
const b = socket.read();
|
|
1939
|
+
if (b)
|
|
1940
|
+
ondata(b);
|
|
1941
|
+
else
|
|
1942
|
+
socket.once("readable", read);
|
|
1943
|
+
}
|
|
1944
|
+
__name(read, "read");
|
|
1945
|
+
function cleanup() {
|
|
1946
|
+
socket.removeListener("end", onend);
|
|
1947
|
+
socket.removeListener("error", onerror);
|
|
1948
|
+
socket.removeListener("readable", read);
|
|
1949
|
+
}
|
|
1950
|
+
__name(cleanup, "cleanup");
|
|
1951
|
+
function onend() {
|
|
1952
|
+
cleanup();
|
|
1953
|
+
debug("onend");
|
|
1954
|
+
reject(new Error("Proxy connection ended before receiving CONNECT response"));
|
|
1955
|
+
}
|
|
1956
|
+
__name(onend, "onend");
|
|
1957
|
+
function onerror(err) {
|
|
1958
|
+
cleanup();
|
|
1959
|
+
debug("onerror %o", err);
|
|
1960
|
+
reject(err);
|
|
1961
|
+
}
|
|
1962
|
+
__name(onerror, "onerror");
|
|
1963
|
+
function ondata(b) {
|
|
1964
|
+
buffers.push(b);
|
|
1965
|
+
buffersLength += b.length;
|
|
1966
|
+
const buffered = Buffer.concat(buffers, buffersLength);
|
|
1967
|
+
const endOfHeaders = buffered.indexOf("\r\n\r\n");
|
|
1968
|
+
if (endOfHeaders === -1) {
|
|
1969
|
+
debug("have not received end of HTTP headers yet...");
|
|
1970
|
+
read();
|
|
1971
|
+
return;
|
|
1972
|
+
}
|
|
1973
|
+
const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n");
|
|
1974
|
+
const firstLine = headerParts.shift();
|
|
1975
|
+
if (!firstLine) {
|
|
1976
|
+
socket.destroy();
|
|
1977
|
+
return reject(new Error("No header received from proxy CONNECT response"));
|
|
1978
|
+
}
|
|
1979
|
+
const firstLineParts = firstLine.split(" ");
|
|
1980
|
+
const statusCode = +firstLineParts[1];
|
|
1981
|
+
const statusText = firstLineParts.slice(2).join(" ");
|
|
1982
|
+
const headers = {};
|
|
1983
|
+
for (const header of headerParts) {
|
|
1984
|
+
if (!header)
|
|
1985
|
+
continue;
|
|
1986
|
+
const firstColon = header.indexOf(":");
|
|
1987
|
+
if (firstColon === -1) {
|
|
1988
|
+
socket.destroy();
|
|
1989
|
+
return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
|
|
1990
|
+
}
|
|
1991
|
+
const key = header.slice(0, firstColon).toLowerCase();
|
|
1992
|
+
const value = header.slice(firstColon + 1).trimStart();
|
|
1993
|
+
const current = headers[key];
|
|
1994
|
+
if (typeof current === "string") {
|
|
1995
|
+
headers[key] = [current, value];
|
|
1996
|
+
} else if (Array.isArray(current)) {
|
|
1997
|
+
current.push(value);
|
|
1998
|
+
} else {
|
|
1999
|
+
headers[key] = value;
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
debug("got proxy server response: %o %o", firstLine, headers);
|
|
2003
|
+
cleanup();
|
|
2004
|
+
resolve({
|
|
2005
|
+
connect: {
|
|
2006
|
+
statusCode,
|
|
2007
|
+
statusText,
|
|
2008
|
+
headers
|
|
2009
|
+
},
|
|
2010
|
+
buffered
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
2013
|
+
__name(ondata, "ondata");
|
|
2014
|
+
socket.on("error", onerror);
|
|
2015
|
+
socket.on("end", onend);
|
|
2016
|
+
read();
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
__name(parseProxyResponse, "parseProxyResponse");
|
|
2020
|
+
exports.parseProxyResponse = parseProxyResponse;
|
|
2021
|
+
}
|
|
2022
|
+
});
|
|
2023
|
+
|
|
2024
|
+
// ../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/index.js
|
|
2025
|
+
var require_dist2 = __commonJS({
|
|
2026
|
+
"../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/index.js"(exports) {
|
|
2027
|
+
"use strict";
|
|
2028
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2029
|
+
if (k2 === void 0) k2 = k;
|
|
2030
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2031
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2032
|
+
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
2033
|
+
return m[k];
|
|
2034
|
+
}, "get") };
|
|
2035
|
+
}
|
|
2036
|
+
Object.defineProperty(o, k2, desc);
|
|
2037
|
+
} : function(o, m, k, k2) {
|
|
2038
|
+
if (k2 === void 0) k2 = k;
|
|
2039
|
+
o[k2] = m[k];
|
|
2040
|
+
});
|
|
2041
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
2042
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2043
|
+
} : function(o, v) {
|
|
2044
|
+
o["default"] = v;
|
|
2045
|
+
});
|
|
2046
|
+
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
2047
|
+
if (mod && mod.__esModule) return mod;
|
|
2048
|
+
var result = {};
|
|
2049
|
+
if (mod != null) {
|
|
2050
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
2051
|
+
}
|
|
2052
|
+
__setModuleDefault2(result, mod);
|
|
2053
|
+
return result;
|
|
2054
|
+
};
|
|
2055
|
+
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
2056
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2057
|
+
};
|
|
2058
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2059
|
+
exports.HttpsProxyAgent = void 0;
|
|
2060
|
+
var net = __importStar2(__require("net"));
|
|
2061
|
+
var tls = __importStar2(__require("tls"));
|
|
2062
|
+
var assert_1 = __importDefault2(__require("assert"));
|
|
2063
|
+
var debug_1 = __importDefault2(require_src());
|
|
2064
|
+
var agent_base_1 = require_dist();
|
|
2065
|
+
var url_1 = __require("url");
|
|
2066
|
+
var parse_proxy_response_1 = require_parse_proxy_response();
|
|
2067
|
+
var debug = (0, debug_1.default)("https-proxy-agent");
|
|
2068
|
+
var setServernameFromNonIpHost = /* @__PURE__ */ __name((options) => {
|
|
2069
|
+
if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
|
|
2070
|
+
return {
|
|
2071
|
+
...options,
|
|
2072
|
+
servername: options.host
|
|
2073
|
+
};
|
|
2074
|
+
}
|
|
2075
|
+
return options;
|
|
2076
|
+
}, "setServernameFromNonIpHost");
|
|
2077
|
+
var _HttpsProxyAgent = class _HttpsProxyAgent extends agent_base_1.Agent {
|
|
2078
|
+
constructor(proxy, opts) {
|
|
2079
|
+
super(opts);
|
|
2080
|
+
this.options = { path: void 0 };
|
|
2081
|
+
this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
|
|
2082
|
+
this.proxyHeaders = (opts == null ? void 0 : opts.headers) ?? {};
|
|
2083
|
+
debug("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
|
|
2084
|
+
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
|
|
2085
|
+
const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
|
|
2086
|
+
this.connectOpts = {
|
|
2087
|
+
// Attempt to negotiate http/1.1 for proxy servers that support http/2
|
|
2088
|
+
ALPNProtocols: ["http/1.1"],
|
|
2089
|
+
...opts ? omit(opts, "headers") : null,
|
|
2090
|
+
host,
|
|
2091
|
+
port
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Called when the node-core HTTP client library is creating a
|
|
2096
|
+
* new HTTP request.
|
|
2097
|
+
*/
|
|
2098
|
+
async connect(req, opts) {
|
|
2099
|
+
const { proxy } = this;
|
|
2100
|
+
if (!opts.host) {
|
|
2101
|
+
throw new TypeError('No "host" provided');
|
|
2102
|
+
}
|
|
2103
|
+
let socket;
|
|
2104
|
+
if (proxy.protocol === "https:") {
|
|
2105
|
+
debug("Creating `tls.Socket`: %o", this.connectOpts);
|
|
2106
|
+
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
|
2107
|
+
} else {
|
|
2108
|
+
debug("Creating `net.Socket`: %o", this.connectOpts);
|
|
2109
|
+
socket = net.connect(this.connectOpts);
|
|
2110
|
+
}
|
|
2111
|
+
const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
|
|
2112
|
+
const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
|
|
2113
|
+
let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
|
|
2114
|
+
`;
|
|
2115
|
+
if (proxy.username || proxy.password) {
|
|
2116
|
+
const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
|
|
2117
|
+
headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
|
|
2118
|
+
}
|
|
2119
|
+
headers.Host = `${host}:${opts.port}`;
|
|
2120
|
+
if (!headers["Proxy-Connection"]) {
|
|
2121
|
+
headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
|
|
2122
|
+
}
|
|
2123
|
+
for (const name of Object.keys(headers)) {
|
|
2124
|
+
payload += `${name}: ${headers[name]}\r
|
|
2125
|
+
`;
|
|
2126
|
+
}
|
|
2127
|
+
const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);
|
|
2128
|
+
socket.write(`${payload}\r
|
|
2129
|
+
`);
|
|
2130
|
+
const { connect, buffered } = await proxyResponsePromise;
|
|
2131
|
+
req.emit("proxyConnect", connect);
|
|
2132
|
+
this.emit("proxyConnect", connect, req);
|
|
2133
|
+
if (connect.statusCode === 200) {
|
|
2134
|
+
req.once("socket", resume);
|
|
2135
|
+
if (opts.secureEndpoint) {
|
|
2136
|
+
debug("Upgrading socket connection to TLS");
|
|
2137
|
+
return tls.connect({
|
|
2138
|
+
...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
|
|
2139
|
+
socket
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2142
|
+
return socket;
|
|
2143
|
+
}
|
|
2144
|
+
socket.destroy();
|
|
2145
|
+
const fakeSocket = new net.Socket({ writable: false });
|
|
2146
|
+
fakeSocket.readable = true;
|
|
2147
|
+
req.once("socket", (s) => {
|
|
2148
|
+
debug("Replaying proxy buffer for failed request");
|
|
2149
|
+
(0, assert_1.default)(s.listenerCount("data") > 0);
|
|
2150
|
+
s.push(buffered);
|
|
2151
|
+
s.push(null);
|
|
2152
|
+
});
|
|
2153
|
+
return fakeSocket;
|
|
2154
|
+
}
|
|
2155
|
+
};
|
|
2156
|
+
__name(_HttpsProxyAgent, "HttpsProxyAgent");
|
|
2157
|
+
var HttpsProxyAgent = _HttpsProxyAgent;
|
|
2158
|
+
HttpsProxyAgent.protocols = ["http", "https"];
|
|
2159
|
+
exports.HttpsProxyAgent = HttpsProxyAgent;
|
|
2160
|
+
function resume(socket) {
|
|
2161
|
+
socket.resume();
|
|
2162
|
+
}
|
|
2163
|
+
__name(resume, "resume");
|
|
2164
|
+
function omit(obj, ...keys) {
|
|
2165
|
+
const ret = {};
|
|
2166
|
+
let key;
|
|
2167
|
+
for (key in obj) {
|
|
2168
|
+
if (!keys.includes(key)) {
|
|
2169
|
+
ret[key] = obj[key];
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
return ret;
|
|
2173
|
+
}
|
|
2174
|
+
__name(omit, "omit");
|
|
2175
|
+
}
|
|
2176
|
+
});
|
|
2177
|
+
|
|
2178
|
+
// ../../node_modules/.store/http-proxy-agent-npm-7.0.2-643ed7cc33/package/dist/index.js
|
|
2179
|
+
var require_dist3 = __commonJS({
|
|
2180
|
+
"../../node_modules/.store/http-proxy-agent-npm-7.0.2-643ed7cc33/package/dist/index.js"(exports) {
|
|
2181
|
+
"use strict";
|
|
2182
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2183
|
+
if (k2 === void 0) k2 = k;
|
|
2184
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2185
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2186
|
+
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
2187
|
+
return m[k];
|
|
2188
|
+
}, "get") };
|
|
2189
|
+
}
|
|
2190
|
+
Object.defineProperty(o, k2, desc);
|
|
2191
|
+
} : function(o, m, k, k2) {
|
|
2192
|
+
if (k2 === void 0) k2 = k;
|
|
2193
|
+
o[k2] = m[k];
|
|
2194
|
+
});
|
|
2195
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
2196
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2197
|
+
} : function(o, v) {
|
|
2198
|
+
o["default"] = v;
|
|
2199
|
+
});
|
|
2200
|
+
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
2201
|
+
if (mod && mod.__esModule) return mod;
|
|
2202
|
+
var result = {};
|
|
2203
|
+
if (mod != null) {
|
|
2204
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
2205
|
+
}
|
|
2206
|
+
__setModuleDefault2(result, mod);
|
|
2207
|
+
return result;
|
|
2208
|
+
};
|
|
2209
|
+
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
2210
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2211
|
+
};
|
|
2212
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2213
|
+
exports.HttpProxyAgent = void 0;
|
|
2214
|
+
var net = __importStar2(__require("net"));
|
|
2215
|
+
var tls = __importStar2(__require("tls"));
|
|
2216
|
+
var debug_1 = __importDefault2(require_src());
|
|
2217
|
+
var events_1 = __require("events");
|
|
2218
|
+
var agent_base_1 = require_dist();
|
|
2219
|
+
var url_1 = __require("url");
|
|
2220
|
+
var debug = (0, debug_1.default)("http-proxy-agent");
|
|
2221
|
+
var _HttpProxyAgent = class _HttpProxyAgent extends agent_base_1.Agent {
|
|
2222
|
+
constructor(proxy, opts) {
|
|
2223
|
+
super(opts);
|
|
2224
|
+
this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
|
|
2225
|
+
this.proxyHeaders = (opts == null ? void 0 : opts.headers) ?? {};
|
|
2226
|
+
debug("Creating new HttpProxyAgent instance: %o", this.proxy.href);
|
|
2227
|
+
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
|
|
2228
|
+
const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
|
|
2229
|
+
this.connectOpts = {
|
|
2230
|
+
...opts ? omit(opts, "headers") : null,
|
|
2231
|
+
host,
|
|
2232
|
+
port
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2235
|
+
addRequest(req, opts) {
|
|
2236
|
+
req._header = null;
|
|
2237
|
+
this.setRequestProps(req, opts);
|
|
2238
|
+
super.addRequest(req, opts);
|
|
2239
|
+
}
|
|
2240
|
+
setRequestProps(req, opts) {
|
|
2241
|
+
const { proxy } = this;
|
|
2242
|
+
const protocol = opts.secureEndpoint ? "https:" : "http:";
|
|
2243
|
+
const hostname = req.getHeader("host") || "localhost";
|
|
2244
|
+
const base = `${protocol}//${hostname}`;
|
|
2245
|
+
const url = new url_1.URL(req.path, base);
|
|
2246
|
+
if (opts.port !== 80) {
|
|
2247
|
+
url.port = String(opts.port);
|
|
2248
|
+
}
|
|
2249
|
+
req.path = String(url);
|
|
2250
|
+
const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
|
|
2251
|
+
if (proxy.username || proxy.password) {
|
|
2252
|
+
const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
|
|
2253
|
+
headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
|
|
2254
|
+
}
|
|
2255
|
+
if (!headers["Proxy-Connection"]) {
|
|
2256
|
+
headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
|
|
2257
|
+
}
|
|
2258
|
+
for (const name of Object.keys(headers)) {
|
|
2259
|
+
const value = headers[name];
|
|
2260
|
+
if (value) {
|
|
2261
|
+
req.setHeader(name, value);
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
async connect(req, opts) {
|
|
2266
|
+
req._header = null;
|
|
2267
|
+
if (!req.path.includes("://")) {
|
|
2268
|
+
this.setRequestProps(req, opts);
|
|
2269
|
+
}
|
|
2270
|
+
let first;
|
|
2271
|
+
let endOfHeaders;
|
|
2272
|
+
debug("Regenerating stored HTTP header string for request");
|
|
2273
|
+
req._implicitHeader();
|
|
2274
|
+
if (req.outputData && req.outputData.length > 0) {
|
|
2275
|
+
debug("Patching connection write() output buffer with updated header");
|
|
2276
|
+
first = req.outputData[0].data;
|
|
2277
|
+
endOfHeaders = first.indexOf("\r\n\r\n") + 4;
|
|
2278
|
+
req.outputData[0].data = req._header + first.substring(endOfHeaders);
|
|
2279
|
+
debug("Output buffer: %o", req.outputData[0].data);
|
|
2280
|
+
}
|
|
2281
|
+
let socket;
|
|
2282
|
+
if (this.proxy.protocol === "https:") {
|
|
2283
|
+
debug("Creating `tls.Socket`: %o", this.connectOpts);
|
|
2284
|
+
socket = tls.connect(this.connectOpts);
|
|
2285
|
+
} else {
|
|
2286
|
+
debug("Creating `net.Socket`: %o", this.connectOpts);
|
|
2287
|
+
socket = net.connect(this.connectOpts);
|
|
2288
|
+
}
|
|
2289
|
+
await (0, events_1.once)(socket, "connect");
|
|
2290
|
+
return socket;
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
__name(_HttpProxyAgent, "HttpProxyAgent");
|
|
2294
|
+
var HttpProxyAgent = _HttpProxyAgent;
|
|
2295
|
+
HttpProxyAgent.protocols = ["http", "https"];
|
|
2296
|
+
exports.HttpProxyAgent = HttpProxyAgent;
|
|
2297
|
+
function omit(obj, ...keys) {
|
|
2298
|
+
const ret = {};
|
|
2299
|
+
let key;
|
|
2300
|
+
for (key in obj) {
|
|
2301
|
+
if (!keys.includes(key)) {
|
|
2302
|
+
ret[key] = obj[key];
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
return ret;
|
|
2306
|
+
}
|
|
2307
|
+
__name(omit, "omit");
|
|
2308
|
+
}
|
|
2309
|
+
});
|
|
2310
|
+
|
|
2311
|
+
// ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/state.js
|
|
2312
|
+
var require_state2 = __commonJS({
|
|
2313
|
+
"../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/state.js"(exports) {
|
|
2314
|
+
"use strict";
|
|
2315
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2316
|
+
exports.state = void 0;
|
|
2317
|
+
exports.state = {
|
|
2318
|
+
operationRequestMap: /* @__PURE__ */ new WeakMap()
|
|
2319
|
+
};
|
|
2320
|
+
}
|
|
2321
|
+
});
|
|
2322
|
+
|
|
2323
|
+
export {
|
|
2324
|
+
__rest,
|
|
2325
|
+
__await,
|
|
2326
|
+
__asyncGenerator,
|
|
2327
|
+
__asyncDelegator,
|
|
2328
|
+
__asyncValues,
|
|
2329
|
+
tslib_es6_exports,
|
|
2330
|
+
init_tslib_es6,
|
|
2331
|
+
require_logger,
|
|
2332
|
+
require_commonjs,
|
|
2333
|
+
require_package,
|
|
2334
|
+
require_package2,
|
|
2335
|
+
require_dist2 as require_dist,
|
|
2336
|
+
require_dist3 as require_dist2,
|
|
2337
|
+
require_state,
|
|
2338
|
+
require_state2
|
|
2339
|
+
};
|