184 lines
4.4 KiB
JavaScript
184 lines
4.4 KiB
JavaScript
// Metro module 583 (f584).
|
|
let length2;
|
|
const _createForOfIteratorHelper = function _createForOfIteratorHelper(a0, a1) {
|
|
let r19;
|
|
let c12375_2, c12375_3, done, c12375_5;
|
|
let c12375_0 = a0;
|
|
const Symbol2 = globalThis.Symbol;
|
|
const r6 = (typeof Symbol2 !== "undefined" ? a0[Symbol.iterator] : typeof Symbol2 !== "undefined") || a0["@@iterator"];
|
|
let c12375_1 = r6;
|
|
if (r6) {
|
|
done = true;
|
|
c12375_5 = false;
|
|
return {
|
|
s: function() {
|
|
c12375_1 = c12375_1.call(c12375_0);
|
|
},
|
|
n: function n() {
|
|
const r3 = c12375_1.next();
|
|
done = r3.done;
|
|
return r3;
|
|
},
|
|
e: function e(a0) {
|
|
c12375_5 = true;
|
|
c12375_3 = a0;
|
|
},
|
|
f: function f() {
|
|
try {
|
|
if (!(done || c12375_1.return == null)) {
|
|
c12375_1.return();
|
|
}
|
|
} catch (r11) {
|
|
if (c12375_5) {
|
|
throw c12375_3;
|
|
}
|
|
throw r11;
|
|
}
|
|
if (c12375_5) {
|
|
throw c12375_3;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
if (!Array.isArray(a0)) {
|
|
L25: {
|
|
r19 = void 0;
|
|
if (a0) {
|
|
if (typeof a0 === "string") {
|
|
const length2 = a0.length;
|
|
const array2 = new Array(length2);
|
|
let r52 = 0;
|
|
const r53 = 0 < length2;
|
|
r19 = array2;
|
|
if (r53) {
|
|
do {
|
|
array2[r52] = a0[r52];
|
|
r52 = r52 + 1;
|
|
r19 = array2;
|
|
} while (r52 < length2);
|
|
}
|
|
} else {
|
|
const r25 = Object.prototype.toString.call(a0).slice(8, -1);
|
|
const r10 = r25 === "Object" && a0.constructor ? a0.constructor.name : r25;
|
|
if (r10 !== "Map" && r10 !== "Set") {
|
|
if (r10 !== "Arguments") {
|
|
const r34 = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r10);
|
|
r19 = void 0;
|
|
if (!r34) {
|
|
break L25;
|
|
}
|
|
}
|
|
const length = a0.length;
|
|
const array = new Array(length);
|
|
let r40 = 0;
|
|
const r3 = 0 < length;
|
|
r19 = array;
|
|
if (!r3) {
|
|
break L25;
|
|
}
|
|
while (true) {
|
|
array[r40] = a0[r40];
|
|
r40 = r40 + 1;
|
|
r19 = array;
|
|
if (!(r40 < length)) {
|
|
break L25;
|
|
}
|
|
}
|
|
}
|
|
r19 = Array.from(a0);
|
|
}
|
|
}
|
|
}
|
|
c12375_1 = r19;
|
|
if (!r19) {
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
}
|
|
const r62 = c12375_1;
|
|
if (r62) {
|
|
c12375_0 = r62;
|
|
}
|
|
c12375_2 = 0;
|
|
const F = function F() {};
|
|
return {
|
|
s: F,
|
|
n: function n() {
|
|
let r8;
|
|
const r1 = c12375_2;
|
|
if (r1 >= c12375_0.length) {
|
|
r8 = {
|
|
done: true
|
|
};
|
|
} else {
|
|
const r6 = +c12375_2;
|
|
c12375_2 = r6 + 1;
|
|
r8 = {
|
|
done: false,
|
|
value: c12375_0[r6]
|
|
};
|
|
}
|
|
return r8;
|
|
},
|
|
e: function e(a0) {
|
|
throw a0;
|
|
},
|
|
f: F
|
|
};
|
|
};
|
|
const Agent = function Agent() {
|
|
this._defaults = [];
|
|
};
|
|
const r9 = ["use", "on", "once", "set", "query", "type", "accept", "auth", "withCredentials", "sortQuery", "retry", "ok", "redirects", "timeout", "buffer", "serialize", "parse", "ca", "key", "pfx", "cert", "disableTLSCerts"];
|
|
const length = r9.length;
|
|
let r1 = 0;
|
|
const r5 = 0 < length;
|
|
let r0 = 0;
|
|
if (r5) {
|
|
do {
|
|
const fn = r9[r0];
|
|
Agent.prototype[fn] = function() {
|
|
const length = arguments.length;
|
|
const array = new Array(length);
|
|
let r0 = 0;
|
|
while (r0 < length) {
|
|
array[r0] = arguments[r0];
|
|
r0 = r0 + 1;
|
|
}
|
|
this._defaults.push({
|
|
fn,
|
|
args: array
|
|
});
|
|
return this;
|
|
};
|
|
r0 = r1 + 1;
|
|
length2 = r9.length;
|
|
r1 = r0;
|
|
} while (r1 < length2);
|
|
}
|
|
Agent.prototype._setDefaults = function(a0) {
|
|
let r29;
|
|
const r13 = _createForOfIteratorHelper(this._defaults);
|
|
try {
|
|
try {
|
|
r13.s();
|
|
const r17 = r13.n();
|
|
let r18 = r17;
|
|
if (!r17.done) {
|
|
do {
|
|
const value = r18.value;
|
|
a0[value.fn].apply(a0, [...value.args]);
|
|
r29 = r13.n();
|
|
r18 = r29;
|
|
} while (!r29.done);
|
|
}
|
|
} catch ($e) {
|
|
r13.e($e);
|
|
}
|
|
} catch (r36) {
|
|
r13.f();
|
|
throw r36;
|
|
}
|
|
r13.f();
|
|
};
|
|
module.exports = Agent;
|